From a thermodynamic point of view, a firearm is a special type of piston engine, or in general heat engine where the bullet has a function of a piston. The energy conversion efficiency of a firearm strongly depends on its construction, especially on its caliber and barrel length. However, for illustration, here is the energy balance of a typical small firearm for.300 Hawk ammunition: