A rim is an external flange that is machined, cast, molded, stamped or pressed around the bottom of a firearms cartridge. Thus, rimmed cartridges are sometimes called "flanged" cartridges. Almost all cartridges feature an extractor or headspacing rim, in spite of the fact that some cartridges are known as "rimless cartridges". The rim may serve a number of purposes, including providing a lip for the extractor to engage, and sometimes serving to headspace the cartridge
There are various types of firearms rims in use in modern ammunition. These types are rimmed, rimless, semi-rimmed, rebated rim, and belted. These categories describe the size of the rim in relation to the base of the case.
The rimmed cartridge, sometimes called flanged cartridge, is the oldest of the types and has a rim that is significantly larger in diameter than the base of the cartridge. Rimmed cartridges use the rim to hold the cartridge in the chamber of the firearm, with the rim serving to hold the cartridge at the proper depth in the chamber—this function is called "headspacing". Because the rimmed cartridge headspaces on the rim, the case length is of less importance than rimless cartridges.
This allows some firearms chambered for similar rimmed cartridges to safely chamber and fire shorter cartridges, such as using .38 Special cartridges in a .357 Magnum revolver. Rimmed cartridges are well suited to certain types of actions, such as revolvers, where the rim helps hold the cartridge in position, and break-action firearms.
Rimmed cartridges generally do not work quite as well in firearms that feed from a box magazine, since the magazine must be carefully loaded so that the rim from each successive case is loaded ahead of the round beneath it, so the round won't snag on the rim of the cartridge below it as the bolt strips it out of the magazine. However, box magazine firearms firing rimmed cases have seen extensive use; the famous Lee–Enfield rifle used by the UK, and the Soviet Mosin-Nagant rifle, were both used from before World War I until after World War II. Semi-automatic handguns have been chambered in rimmed cartridges as well, for example a LAR Grizzly or Desert Eagle in .357 or .44 Magnum.