Ullage or headspace is the unfilled space in a container, particularly with a liquid.
The word comes ultimately from the Latin oculus, “eye”, which was used in a figurative sense by the Romans for the bung hole of a barrel. This was taken into French in the medieval period as oeil, from which a verb ouiller was created, to fill a barrel up to the bung hole. In turn, a noun ouillage was created, which was the immediate source of the word's modern form, first recorded in Norman English about 1300, at first in the sense of the amount of liquid needed to fill a barrel up to the bung hole.
By an obvious extension, ullage came to refer to any amount by which a barrel is unfilled, perhaps because some of the contents have been used. It is also applied to the unfilled air space at the top of a bottle of wine, which in this case is essential to allow for expansion of the contents as the temperature changes.
By further extension, in brewing and beer retail, ullage is the residue of beer left in a barrel that has been emptied. When calculating tax returns and the like, licensed premises owners, landlords or managers can factor in the duty on ullage, or unavoidable barrel wastage.Ullage therefore has come to be used as a general term, in the licensed trade, for waste beer whether at the barrel or at the bar tap or pump. However, what customers leave in their glasses does not count as ullage, because it has been sold.
Liquid propellant rockets store their propellants in tanks. Cryogenic tanks are never completely filled, in order to allow for the expansion of the cold liquid propellant. On the ground, the space between the top of the propellant load and the top of the tank is known as "ullage space". Although this does not happen in the weightless condition in space without engine thrust, empty space still occurs in partially filled tanks, and the liquid floats away from the engine intake, which is undesirable for stable engine operation. Small rocket engines are sometimes used to provide enough acceleration to settle the propellant to the bottom of the tanks prior to ignition of the main engine(s). Engines devoted to this purpose are called ullage motors; sometimes reaction control system thrusters are used.