The gallon is the base unit of the United States customary system of capacity for liquid commodities. (It is not used in measuring dry commodities, for which the base unit is the bushel). It is defined as equal to 231 cubic inches, and is based on a traditional British gallon used for measuring wine. However, in the United States, it is used for all liquid commodities.