Gallons measure volume and kilograms measure mass, so there is no universal gallons-to-kilograms factor. This calculator uses U.S. liquid gallons and the substance’s density in kilograms per liter (kg/L). The input density must be greater than zero and at most 30 kg/L; the result is rounded to two decimal places. The default density example of 1 kg/L is a convenient water-like approximation, not a rule for every liquid.
Density varies with the substance and may change with temperature or concentration. The output is liquid mass only and does not include the container.