Pick up a rifle cartridge and shake it. You can hear the powder rattle inside, like sand in a small brass tube. That loose collection of chemical granules is about to become a projectile traveling faster than sound in under two milliseconds, before the shooter's nervous system even registers the recoil.
A gun does not create an explosion inside the barrel. It creates a controlled, progressive burn that generates gas, and that gas is what moves the bullet.
Most people picture the moment of firing as a bomb going off inside a metal tube. The powder explodes, and the bullet rockets out. That image is wrong in an important way. Modern smokeless propellant does not detonate. It deflagrates: it burns rapidly from the surface of each grain inward, generating gas at a rate that builds pressure over milliseconds rather than microseconds. The distinction matters because a detonation would destroy the barrel. Deflagration creates a sustained push, a pressure wave that accelerates the bullet the entire length of the bore. The barrel is not a container for an explosion. It is a pressure vessel that converts chemical energy into kinetic energy, one inch at a time.
This means the barrel itself is doing real work. Every additional inch gives the expanding gas more time to push. A short barrel wastes gas; it vents at the muzzle as flash and blast before the gas finishes its job. A long barrel captures more of that energy. The entire engineering of firearms follows from this one fact.
Here is what happens in the 1 to 3 milliseconds between trigger pull and muzzle exit. The trigger releases the sear, a mechanical catch holding the firing pin under spring tension. The spring drives the pin forward. The pin strikes the primer, a small cup of impact-sensitive compound seated in the base of the cartridge case. The primer detonates (this part is a true detonation, but the primer is tiny), sending a jet of flame through a small flash hole into the main propellant charge.
The propellant ignites. Nitrocellulose-based powder grains burn at roughly 3,300 degrees Celsius, converting to approximately 3,000 times their solid volume in hot gas. Chamber pressure spikes to 50,000 to 65,000 PSI in a fraction of a millisecond. The brass cartridge case expands against the chamber walls, sealing the pressure from escaping rearward. The only path for the gas is forward, into the base of the bullet.
The bullet begins moving. As it travels down the barrel, spiral grooves cut into the bore, called rifling, bite into the bullet's copper jacket and force it to spin. By the time it exits the muzzle, a typical rifle bullet rotates at 150,000 to 300,000 RPM. That gyroscopic spin stabilizes the bullet in flight, keeping it point-forward through air resistance and crosswinds. Without rifling, a bullet would tumble end over end within a few dozen meters, losing accuracy and range almost immediately.
In a semi-automatic firearm, the story continues after the bullet exits. Residual gas pressure or bolt recoil drives the action rearward, extracting and ejecting the spent brass case. The return spring then pushes the bolt forward, stripping a fresh cartridge from the magazine and chambering it. The full cycle from firing to ready-to-fire-again completes in about 80 milliseconds.
Why barrel length changes everything
The visual above reveals the most important relationship in firearm physics: barrel length versus velocity. The propellant gas continues expanding as the bullet travels. A longer barrel gives the gas more time and more distance to push. Cut the barrel short, and the remaining gas pressure vents uselessly at the muzzle as flash and blast, energy that could have been accelerating the bullet but instead becomes noise and light.
This is why the same ammunition produces dramatically different performance from different firearms. A 5.56 NATO round fired from a 4-inch pistol barrel reaches roughly 370 meters per second. The same round from a 20-inch rifle barrel reaches 940 meters per second, more than 2.5 times the velocity, carrying roughly 6.5 times the kinetic energy. The powder charge is identical. The bullet is identical. The only difference is how many inches of barrel the gas had to push against.
The relationship is not linear, though. The gas pressure drops as the bullet moves forward and the volume behind it increases. Each inch of barrel captures less additional energy than the inch before it. The first 10 inches do the majority of the work. After that, returns diminish steadily.
Same ammunition, same powder charge. The only variable is barrel length. Drag the slider past 24 inches and watch the gains nearly vanish.
The diminishing returns of barrel length
Every inch of barrel adds velocity, but the gains shrink. After 24 inches, you are carrying extra weight for almost no additional speed.
This is the central engineering tradeoff in every firearm ever designed. Soldiers carry 14.5-inch to 16-inch carbines rather than 20-inch or 24-inch rifles because the velocity curve flattens. The first 10 inches capture the majority of the gas energy. Going from 16 to 20 inches adds roughly 120 meters per second. Going from 20 to 26 inches adds only about 35 meters per second. Each inch beyond 20 adds weight, reduces maneuverability in tight spaces, and makes the weapon harder to handle from vehicles or inside buildings.
Every firearm design is a compromise. A sniper rifle uses a 24-inch or longer barrel because the shooter fires from a stable position at extreme distances where every meter per second of velocity extends effective range. A close-quarters carbine uses a 10-inch to 14.5-inch barrel because the shooter needs to move through doorways and vehicles. The physics of gas expansion shapes the engineering of every barrel length ever manufactured.
Once you understand that a gun is fundamentally a gas-expansion device, the rest of firearms physics clicks into place. Suppressors work by giving the gas somewhere to expand and cool before exiting the muzzle. Shorter barrels are louder because more gas energy remains when the bullet exits. Muzzle brakes redirect gas sideways to counteract recoil. Every accessory, every design choice, every engineering tradeoff connects back to one fact: the gun does not throw the bullet. The gas pushes it. The barrel is just a tube that gives the gas time to finish the job. Understanding this changes how you see every firearm, from a pocket pistol to a competition rifle. They are all the same machine, built around the same physical principle, optimized for different distances between the chamber and the muzzle.