How an AR-15 Gas System Works, in 3D: Gas Blocks and Lengths
Watch a shot's gas go up an AR-15's gas port, through the gas block and back down the gas tube to the bolt carrier in slow motion 3D. Turn it down with an adjustable gas block, and see where the port sits on pistol, carbine, mid length and rifle gas.
Quick answer
- An AR-15 runs on its own gas: a port in the barrel bleeds gas into the gas block, and the gas tube carries it back to the bolt carrier's gas key.
- Where the port sits is the gas system's length: about 4 inches from the upper for pistol gas, 7 for carbine, 9 for mid length and 12 for rifle.
- Gas blocks are sized to the barrel under them, most often .750 inch, and an adjustable block lets you turn the gas down for a suppressor or a lighter carrier.
Source: maker specifications and the GunPartPicker catalog.
See how the gas system works, in 3D
Watch a shot's gas go up the port, back down the tube and into the carrier, turn it down with an adjustable block, or walk the block out from pistol to rifle gas. Step through it, scrub it, or drag to turn it.
How gas runs it · 1 of 6The round fires
How gas runs it · step 1 of 6
The round fires
The powder burns and the gas behind the bullet drives it down the bore at thousands of pounds per square inch.
Illustrative, not to scale or real time: the parts are drawn shapes, the gas is shown as a glow, and real blocks, tubes and ports differ.
| Pistol | Carbine | Mid length | Rifle | |
|---|---|---|---|---|
| Port from the upper | About 4 in | About 7 in | About 9 in | About 12 in |
| Gas tube | 6.75 in | 9.75 in | 11.75 in | 15 in |
| Usual barrels | Under about 10.5 in | 10.3 to 16 in | 14.5 to 18 in | 18 in and up |
| Feels | Harshest | Snappy | Smooth | Softest |
Adjustable gas blocks in stock
Ranked by what builders add most, in stock first. One listing per model.






.750 gas blocks in stock
Ranked by what builders add most, in stock first. One listing per model.






.625 gas blocks in stock
Ranked by what builders add most, in stock first. One listing per model.






Gas tubes in stock
Ranked by what builders add most, in stock first. One listing per model.






Which gas system length should I use?
The one made for your barrel's length: pistol gas under about 10.5 inches, carbine on 10.3 to 16, mid length on 14.5 to 18, rifle on 18 and up. On a 16 inch barrel, mid length shoots softer than carbine because the port sits farther from the chamber, where the pressure is lower, and the bullet stays past it for less time. The barrel sets the length; buy the gas tube to match.
A gassy rifle is tamed with the buffer as much as the block. Find yours in the buffer weight calculator, check a short barrel's legal length in the barrel length checker, and see what the gas does inside the carrier in how a BCG works.
What size gas block do I need?
The size of the barrel under it, its journal: .750 inch on most government, M4 and medium profile barrels, .625 on pencil and lightweight barrels, and .936 on heavy and bull barrels. Measure the barrel where the block sits. A low profile block hides under a free float handguard; a front sight base block carries the sight.
Line the block's hole up with the port before you tighten it: a block that half covers the port starves the rifle, and it short strokes. Set screw blocks hold best on a dimpled barrel, clamp on blocks need no dimples, and pinned blocks are the most permanent. Compare direct impingement with a piston in DI vs piston.
Frequently Asked Questions
How does an AR-15 gas system work?
It bleeds some of each shot's gas to work the action. A port in the top of the barrel lets gas into the gas block once the bullet passes it, the gas tube carries it back to the gas key on the bolt carrier, and the gas pushes the carrier back to unlock the bolt.
What are the AR-15 gas system lengths?
Four, by how far the gas port sits from the front of the upper receiver: pistol about 4 inches, carbine about 7, mid length about 9 and rifle about 12. Each takes its own length of gas tube.
Is mid length or carbine gas better on a 16 inch barrel?
Mid length, for most shooters. Its port sits farther out, where the pressure is lower, so it recoils softer and is easier on parts. Carbine gas on 16 inches runs well but harsher, usually with an H buffer.
What size gas block do I need?
The diameter of the barrel under it: .750 inch for most government, M4 and medium profile barrels, .625 for pencil and lightweight barrels, and .936 for heavy and bull barrels. Measure the barrel at the gas port.
Do I need an adjustable gas block?
Only if you shoot suppressed, run a light carrier or buffer, or want to tune recoil. It turns the gas down so the carrier strokes softer, and less gas comes back at your face with a can.
What happens if the gas block is not lined up?
The rifle short strokes. If the block's hole doesn't sit over the port, too little gas gets through, and the bolt doesn't come back far enough to eject or feed.
Cite this tool: GunPartPicker, “How an AR-15 Gas System Works, in 3D: Gas Blocks and Lengths”, https://gunpartpicker.net/tools/how-ar-15-gas-system-works. Data from the GunPartPicker catalog and real community builds, prices checked October 29, 2026. Free to cite with attribution.
Read next
All guides →More Gun Tools
- CompatibilityDI vs Piston (3D)Watch a direct impingement AR-15 and a gas piston HK416 fire in slow motion x-ray 3D. Follow the gas from the port back into the carrier, or into a piston that kicks an op rod, see which bolt runs hot, and compare weight, cleaning, suppressed use, carrier tilt and cost.
- TuningBuffer Weight CalculatorEnter your gas system, barrel length, buffer tube and ammo, add a suppressor or a fast trigger, and get the buffer weight to start with plus the buffers in stock that match.
- CompatibilityHow a BCG Works (3D)Watch an AR-15 bolt carrier group unlock, extract and lock again in slow motion 3D, then take it apart part by part. See the cam pin turn the bolt out of the barrel extension, and what each part does.
- LegalBarrel and Overall Length CheckerEnter barrel length, muzzle device and how the back end is configured, and see whether the build is a rifle, a short barreled rifle, a pistol or an AOW under federal law, with the barrels in stock at that length.
- LegalGun Travel CheckerCan I bring my gun to another state? Pick where you start, where you are going and what is coming along: carry pistol, AR-15, magazines, suppressor, SBR, brace, forced reset or binary trigger, hollow points. Every state on the route is checked for transporting firearms across state lines: magazine limits, assault weapon bans, NFA rules, carry permit type and trigger bans, with what to do before the state line.
- PlanningAR Build Cost CalculatorHow much does it cost to build an AR-15? Pick caliber, barrel length, stock or brace and optic, then drag both edges of the price band from the cheap end to the top end. Every slot fills with the part builders add most that is in stock, priced live. The headline total is the core rifle, optics and extras are priced separately, and beside them sits what builders really pay per slot, measured from real part picks. Roll a random build, or open yours in the builder in one click. Computed from over 1 million AR parts selected on GunPartPicker since 2020.
- CompatibilityMuzzle Thread CheckerPick your barrel's caliber and platform, get the standard thread pitch, and see every muzzle device and suppressor in the catalog that actually threads on, with live prices.
- CompatibilitySuppressor Mounts (3D)Put a can on its mount in 3D. Compare SilencerCo ASR, Dead Air KeyMo, SureFire Fast-Attach, HUXWRX QD, HUB 1.375x24 and direct thread: what goes on the barrel, what is on the can, how it locks and which cans fit which mounts. Cut it open to see the taper and the baffles, then shop the mounts and cans in stock.
- CompatibilityUpper vs Lower Receiver (3D)Take a real AR-15 apart in 3D and see how the upper and lower receiver go together. Push the takedown pin, hinge the upper open on the pivot pin, pull the bolt carrier group and lift the upper off, with every part colored by the half it belongs to.
- CompatibilityHow Muzzle Devices Work (3D)Watch one shot leave an AR-15 muzzle in slow motion 3D through a bare barrel, a flash hider, a compensator, a muzzle brake and a linear comp. See where each sends the gas, and what that does to flash, recoil, muzzle rise and the blast beside you.
- CompatibilityBuffer Tube and Stock (3D)See an AR-15 buffer tube, end plate, castle nut and stock go on in 3D, walk the stock through its six positions, and put a mil spec and a commercial tube side by side to see why a stock only fits one of them.
- CompatibilityHow a Charging Handle Works (3D)Watch an AR-15 charging handle unlatch and pull the bolt carrier back by its gas key in 3D, then watch the rifle fire while the handle stays put. Compare a standard latch with an ambidextrous one.
- CompatibilityFree Float vs Drop In Handguard (3D)Watch an AR-15 free float handguard go on its barrel nut in 3D, lean on a free float and a drop in handguard to see which one moves the barrel, and lock an M-LOK rail section in. Plus M-LOK vs KeyMod and what length fits your barrel.
- CompatibilityHow Triggers Work (3D)Watch a standard trigger, a forced reset trigger and a binary trigger run inside an x-ray AR-15 in slow motion 3D. See the hammer, the disconnector, the FRT's locking bar and the bolt carrier at every step, and what each one needs and where it is legal.
- CompatibilityFRT and Binary Trigger PickerChoose your platform and see every forced reset trigger, binary trigger and Super Safety the catalog carries for it, what the host needs to run one, and where each is in stock.
- CompatibilityGlock Red Dot Fit CheckerPick how your Glock slide is cut and see which red dots mount directly, which need a plate, and the plates and optics in stock right now.
- CompatibilityGlock Size ComparisonPick any two Glocks and see them to scale as real photos sized to Glock's published dimensions, side by side, from behind and as an X-ray, with the difference in length, height, width and weight in one line and the pistols in stock for each.
- CompatibilityP385 Size ComparisonSee the SIG P385 CARRY, COMP and FULL to scale against the P365-XMACRO, the P320 and the Glock 19, 17, 45 and 43X, as real photos sized to the published length and height, with every dimension and where to order one.
- Paint plannerGun Paint PlannerRattle can guns online before you spray. Paint, stencil and camo a real photo of about 1,800 guns: AR-15s, AR-10s, AR-9s, AKs, every Glock, pistols, shotguns and bolt action rifles, the way the rattlecanned guns on r/rattlecannedguns are done, with Krylon, Rust-Oleum, Aluma-Hyde, DuraCoat and Cerakote colors, then get the cans to buy in spray order.
- TuningTwist Rate CalculatorPick a bullet and a twist rate, get the Miller stability factor, then see barrels with that twist and ammo loaded with that bullet, with today's price per round.
- TuningOptic Zero (3D)See where a 25, 36, 50, 100 or 200 yard zero hits on a 3D range, with your ammo, barrel length and optic height. Compare two zeros side by side, look through your red dot, EOTech or LPVO at each distance, then tap where your group hit and get the exact clicks up, down, left and right for your optic.
- TuningBuffer System (3D)Watch an AR-15 cycle in slow motion, cut open: gas drives the bolt carrier back, the bolt unlocks and throws the brass, the buffer and spring soak it up and send it home. Swap carbine, H, H2 and H3 buffers, add gas or a suppressor, and see the carrier speed, where the brass lands and when it short strokes.
- LegalSBR Planner (3D)Set the barrel anywhere from 7.5 to 16 inches, put a stock, a brace or a folder on the back, pin a muzzle device or slide on a can. The ruler under the rifle shows whether you've cleared the 16 inch barrel line and the 26 inch overall line. Pick your state for its SBR, suppressor and assault weapon rules, then price every part and open the build in one click.
- PlanningNight VisionLook around a real 360 degree scene through Gen 1, Gen 2+, Gen 3 green and white phosphor tubes, digital night vision and thermal. Turn the moon down from full to overcast, switch on an IR light, compare two devices side by side. Or walk a 3D farm at night and spot the people, hogs and deer hiding in it. Then see the PVS-14, PVS-31, GPNVG-18 and the thermal scopes people buy, with prices.


