In firearms, headspace is the distance measured from the part of the chamber that stops forward motion of the cartridge (the datum reference) to the face of the bolt. Used as a verb, headspace refers to the interference created between this part of the chamber and the feature of the cartridge that achieves the correct positioning. Different cartridges have their datum lines in different positions in relation to the cartridge. For example, 5.56 NATO ammunition headspaces off the shoulder of the cartridge, whereas .303 British headspaces off the forward rim of the cartridge.
If the headspace is too short, ammunition that is in specification may not chamber correctly. If headspace is too large, the ammunition may not fit as intended or designed and the cartridge case may rupture, possibly damaging the firearm and injuring the shooter.
The cartridge is said to be rimless if the extractor groove is machined into the head of the case so the rim is the same diameter as the adjacent part of the case. Most modern automatic firearms use rimless cartridges. Straight-walled rimless cartridges often headspace on the forward lip of the cartridge as shown in the diagram at the top of this article. This necessitates careful attention to consistent case length. Bottle-necked rimless cartridges may headspace on the conical shoulder between the narrow neck and the larger diameter portion of the case.
All small arms cartridges have a flange at the base of the case called a rim. The part of the firearm called an extractor claw hooks over the rim to extract the spent case from the chamber after it has been fired. The cartridge is said to be of a rimmed type when the rim is of larger diameter than the remainder of the case. Most early cartridges were rimmed, and the rim-stop ledge at the rear of the chamber prevents the cartridge from moving forward. Headspace for rimmed cartridges is the space between that forward ledge and the bolt face when the action is closed.
Some large rimless magnum cartridges have a belt formed above the extractor groove. This belt is of slightly larger diameter than the adjacent case, so the cartridge can headspace from the forward edge of the belt closest to the bullet. The original purpose of the belt was to give accurate headspacing for cartridges with shallow shoulder angles, where longitudinal precision of seating using such a shoulder presents difficulties. In effect this was similar to the headspacing function of a rim, but gave a long enough surface for cartridges to lie side-by-side in a magazine without risk of interference during the feed-stroke. The adoption of the belt as headspacing feature on rounds such as the .300 Holland & Holland Magnum appears to work and its derivatives ultimately started a fashion that resulted in most later Magnum rifle cartridges featuring belts.