The gallon is a unit of volume in the imperial unit system with the symbol gal.
1 British imperial gallon is defined as 4.54609 litres or 277.4194 in³.
The term gallon derives directly from the Old Northern French term 'galun' which means 'liquid measure'. The origin of the word prior to this is still unknown. It originated as the base of the system for measuring wine and beer in the UK and has now been adopted across the world and there are similar versions in the US and associated states (although they measure slightly differently).
The US liquid pint is a unit of volume in the US customary system with the symbol pt.
1 US liquid pint is equal to 1/8 US liquid gallon. This is equal to 1/2 US liquid quart, 2 US cups, 4 US gills or 16 US fluid ounces. The SI / metric equivalent is 473.1765 ml.
From the early (1707) adoption of the British wine gallon at 231 in³, the American pint was born. Where all pints are 1/8 of their respective unit system's gallon, that put the US pint at 28.875 in³.