The cubic inch is a unit of volume derived from the imperial unit system and uses the symbol in³.
1 cubic inch is defined as equal to the volume of a cube with edges measuring 1 in. It is equivalent in volume to 16.387 ml, 1/231 US gallons and 1/1728 ft³.
Common uses for cubic inches include quantifying the size of electrical boxes and in the automotive industry for measuring engine displacement. The 5th generation Ford Mustang ran on a Boss 302 which was a 302 in³ engine (5.0L).
The liquid gallon is a unit of volume in the US customary unit system and uses the symbol gal.
It is the most common use of the word gallon and is defined as 231 in³. It is made up of 4 quarts where there are 2 pints in a quart and 16 US fluid ounces in a US pint. There are therefore 128 US fluid ounces in a US gallon.
The term gallon is most prevalent when discussing and trading oil and fuel. To ensure consistency, the temperature of the liquid (typically petroleum or alcohol) is understood to be 15.6 °C (60 °F) at the time of measurement.