A grain is a unit of measurement of mass, and in the troy weight, avoirdupois, and apothecaries' systems, equal to exactly 64.79891 milligrams. It is nominally based upon the mass of a single ideal seed of a cereal. From the Bronze Age into the Renaissance, the average masses of wheat and barley grains were part of the legal definitions of units of mass. Expressions such as "thirty-two grains of wheat, taken from the middle of the ear" appear to have been ritualistic formulas. Another source states that it was defined such that 252.458 units would balance 1 cubic inch (16 cm) of distilled water at an ambient air-water pressure and temperature of 30 inches of mercury (100 kPa) and 62 °F (17 °C) respectively. Another book states that Captain Henry Kater, of the British Standards Commission, arrived at this value experimentally.
The grain was the legal foundation of traditional English weight systems, and is the only unit that is equal throughout the troy, avoirdupois, and apothecaries' systems of mass. The unit was based on the weight of a single grain of barley which was equal to about +4⁄3 the weight of a single grain of wheat. The fundamental unit of the pre-1527 English weight system, known as Tower weights, was based on the wheat grain. The tower "wheat" grain was defined as exactly +45⁄64 (≈+3⁄4) of the troy "barley" grain.