What makes it tick

Rifle

GitHub

How a rifle reloads itself

One shot, one puff of gas, ready again in a tenth of a second.

01

A tenth of a second, then again

You are looking at a gas-operated rifle. This one is modelled on the AKM, an updated version of the Kalashnikov. It is 880 mm long and weighs 3.1 kg with an empty magazine. What makes it clever is that it reloads itself. After each shot it throws out the empty case, loads a new round and locks up again. It pays for all that work with a little of the hot gas from each shot.

The model follows one shot in automatic fire, from the moment the hammer falls to the moment it falls again. The hammer hits the firing pin, and a small flame lights the powder. The burning powder turns into hot gas, which drives the bullet down the barrel. A puff of that gas shoves a piston back, and the bolt carrier goes with it. Then a spring sends everything forward again with a fresh round, and the rifle is ready for the next shot.

The whole loop takes about 100 ms, a tenth of a second. At that pace the mechanism could cycle about 600 times a minute. That number says how fast the parts move, not how many shots anyone fires in a minute. The magazine holds only 30 rounds. Playback starts slowed right down. Drag the timeline to move through the shot, or tap a chip to jump to a moment. Keep an eye on the charging handle on the right side: it moves with every shot.

A few things are kept simple. Inside the rifle, the model draws only the parts that matter for this story. No source gives exact times for the hammer's fall or for the carrier's trip back and forth, so the model uses careful guesses there. The readouts follow the model's clock. Only two of its times are backed by sources: the whole cycle and the bullet's trip down the barrel, about a millisecond. Switch on the cutaway to look inside.

One full cycle
100 ms
Pace of the mechanism
600 per minute
Time to the next shot
96 ms

02

A small flame and a lot of gas

Everything starts with the cartridge. It is 56 mm long, weighs 16.2 g and holds all that one shot needs. The case is about 39 mm long and holds 1.6 g of powder. In the middle of its base sits the primer, a small brass cup. The bullet, 7.9 g with a steel core, is pressed into the open front end.

The shot begins when the firing pin crushes the primer. The primer makes a small flame. The flame passes through two tiny holes into the case and lights the powder. The powder does not explode. It burns, very fast, and turns into a great deal of hot gas.

That gas is trapped in a very small space, so its pressure climbs fast. It pushes in every direction, but only the bullet can give way, so the bullet soon starts to move. The pressure keeps rising anyway, up to about 275 MPa. That is roughly 2,700 times the pressure of the air around you, or about 2,800 kg pressing on every square centimetre.

The peak comes early, after the bullet has moved only 4 to 6 cm. From then on the space behind the bullet grows faster than the powder can fill it, and the pressure starts to fall. Tap the chips to see the hammer strike, the bullet start and the moment of highest pressure.

Pressure
275 MPa
Compared with air
2,700 times air pressure
Bullet has moved
50 mm

03

Why the back does not blow open

Behind the cartridge, the parts that fire it wait in a line. The hammer swings forward on its spring and hits the back of the firing pin. The pin sits loose inside the bolt, so the blow drives its tip forward into the primer. That is the strike you saw in the last chapter.

Now think of that pressure again. The same pressure that pushes the bullet forward also pushes the case back, so something has to hold the case in place. That job belongs to the bolt. At its front are two lugs. Before each shot the bolt turns, and the lugs slide into two recesses in a steel block where the barrel meets the receiver. That block is called the trunnion. While the lugs sit there, the bolt cannot move back.

On the right side of the rifle sits the selector lever. From top to bottom it has three positions: safe, automatic and single. Safe locks the trigger. Single fires one shot each time the trigger is pulled and let go. Automatic keeps firing for as long as the trigger is held back. The lever sits on the side the cutaway removes, so switch the cutaway off to see it.

This model runs in automatic fire, and here one more part keeps the order right: the auto sear. It holds the cocked hammer and lets it go only once the bolt has locked and the carrier has come all the way forward. The bolt then stays locked while the pressure is high. It turns free only after the bullet has left the barrel. Tap the chips to watch the strike, the bullet starting and the bolt unlocking.

Hammer
Falling
Bolt
Locked
Pressure
0 MPa

04

About a millisecond in the barrel

The barrel is 415 mm long, and the bullet runs its length in about 1 millisecond, a thousandth of a second. That is far too quick to see, so the timeline stretches this part of the shot out for you. Drag the slider to move the bullet along the barrel, and read its speed and the pressure behind it.

The push is strongest early on. The pressure peaks in the first few centimetres and then falls away, yet the gas keeps pushing the bullet all along the barrel. By the muzzle the bullet moves at about 715 m/s. That is about twice the speed of sound, and about 26 times as fast as a car at 100 km/h.

The inside of the barrel is not smooth. Four spiral grooves, the rifling, make one full turn every 240 mm, twisting to the right. They grip the bullet and make it spin. It turns about one and a half times on its way through, and by the muzzle it spins about 3,000 times a second.

Only part of the powder's energy ends up in the bullet: about a quarter to a third. Some of it heats the barrel and the case, and some goes into pressing the bullet into the grooves. About 40 % leaves with the hot gas that rushes out after the bullet. Just before the bullet leaves, though, the rifle borrows a little of that gas for itself. The next chapter shows how.

386 mm
Bullet speed
715 m/s
Pressure behind it
55 MPa
Spin
3,000 turns per second
Turns so far
1.5 turns

05

A puff that does the reloading

Near the muzzle, a small slanted hole leads from the barrel up into the gas block. This is the gas port. While the bullet is still behind it, nothing happens here. Only once the bullet slides past does hot gas rush up through the port. In the gas block it meets the piston.

The piston sits at the front of a long rod, and the rod is fixed to the bolt carrier, the long part that rides on top of the bolt. So when the gas shoves the piston back, the rod, the carrier and the charging handle all go with it. That is why the handle moves with every shot. The push is short. A moment later the bullet leaves the muzzle, the pressure drops and the spent gas escapes through vent holes. By then the carrier is already moving, and it coasts the rest of the way back on its own.

The carrier does not turn the bolt at once. For the first few millimetres it slides back alone, and the bolt stays locked. Then a shaped cut inside the carrier catches a stud on top of the bolt and turns the bolt about a tenth of a turn. The locking lugs swing out of their recesses, and the bolt is free to follow. By that moment the bullet has already left the barrel.

Now try blocking the gas port. The shot fires just the same, and the bullet still leaves the barrel. But no gas reaches the piston, so nothing moves. The empty case stays in the chamber, and the rifle stops after one shot. To load the next round, someone would have to pull the charging handle back by hand. With the port open, that small puff of gas does the job for you.

Gas in the gas block
80 %
Carrier travel
12 %
What happens
The carrier reloads the rifle

06

Out with the empty, in with the next

On its way back, the carrier pulls the bolt along, and the bolt pulls the empty case out of the chamber. A small sprung claw on the bolt, the extractor, holds the case by a groove around its base. Partway back, the case meets the ejector, a fixed lip inside the receiver. The lip knocks the left side of the case, so the case swings around the claw and flies out of the opening on the right.

The carrier does two more jobs on the way back. It rolls the hammer back and cocks it for the next shot, and it squeezes the return spring. The spring stops the carrier and then throws it forward again. Meanwhile the spring in the magazine lifts the next round up against the lips at the top. The magazine holds 30 rounds in two staggered columns, and all it does is lift them.

Moving forward, the bolt catches the top round, pushes it out of the magazine and drives it into the chamber. The extractor claw snaps over the groove of the new case. Then the bolt turns clockwise, seen from behind, and its lugs lock into place again. The auto sear lets the hammer go, but the hammer first hits the retarder. It slows the hammer for a moment, so the rifle can settle after the carrier slams home. Then the next shot begins.

One whole round trip takes about 100 ms. A blink of an eye lasts 100 to 400 ms, so one cycle is about as long as the quickest blink. Each shot also kicks the rifle back. If nothing held it, the loaded rifle would move back at about 2 m/s, and about a quarter to a third of that kick comes from the gas rushing out of the muzzle. The stock sits below the line of the barrel, so the kick also lifts the muzzle a little. Tap the chips to compare one cycle with things you know.

Carrier travel
15 %
Empty case
Held by the extractor
Next round
Waiting in the magazine
Time to the next shot
55 ms

One cycle lasts about as long as the quickest blink.