Convert grams to gallons or gallons to grams using the density of water by default, or pick milk, oil, honey, paint or your own density.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Gallons from gramsConverts a mass in grams to a volume in US or Imperial gallonsRequires the mass in grams, a density preset and the result gallon
Grams from gallonsConverts a volume in gallons to a mass in gramsRequires the volume in US or Imperial gallons and a density preset

The density presets are water (about 1 g/mL), milk (1.03), cooking oil (0.92), honey (1.42) and latex paint (1.3). Custom / measured density takes any other value in g/mL. Every result also lists the mass, both gallon sizes and liters, and the volume box accepts fractions such as 1/2.

Grams to Gallons Formulas

gal = g ÷ ρ ÷ V [1]
galVolume in gallons
gMass in grams
ρDensity of the liquid (g/mL), 1 for water [2]
VMilliliters in one gallon: 3,785.41 for US, 4,546.09 for Imperial [1]

Grams measure mass and gallons measure volume, so the conversion depends on the liquid. Dividing the grams by the density gives milliliters, and dividing by the milliliters in a gallon gives gallons. The calculator carries the US gallon as 3,785.411784 mL and the Imperial gallon as 4,546.09 mL [1].

Gallons from grams

For water, 1,000 g is 1,000 ÷ 1 ÷ 3,785.41 = 0.2642 US gallons, or 0.22 Imperial gallons. The same 1,000 g of honey is only 0.186 US gallons, because honey is denser.

Grams of waterUS gallonsImperial gallons
100 g0.02640.022
250 g0.0660.055
300 g0.07930.066
500 g0.13210.11
750 g0.19810.165
1,000 g0.26420.22
1,500 g0.39630.33
1,892 g0.49980.4162
2,000 g0.52830.4399
3,000 g0.79250.6599
4,000 g1.05670.8799
5,000 g1.32091.0998
10,000 g2.64172.1997

Grams from gallons

g = gal × V × ρ

V is 3,785.41 for a US gallon and 4,546.09 for an Imperial gallon. Half a US gallon of milk is 0.5 × 3,785.41 × 1.03 = 1,949.49 g.

How Many Grams in a Gallon

One US gallon of water is about 3,785 g (3.785 kg), and one Imperial gallon of water is about 4,546 g. Other liquids differ with their density:

LiquidDensity (g/mL)Grams in 1 US gallonGrams in 1/2 US gallon
Water13,7851,893
Milk1.033,8991,949
Cooking oil0.923,4831,741
Honey1.425,3752,688
Latex paint1.34,9212,461

Limits of This Estimate

  • Water is taken as 1 g/mL. Its real density is slightly lower and falls as it warms [2], which changes a gallon by a few grams to a few tens of grams.
  • The milk, cooking oil, honey and latex paint densities are typical round values, and real products vary with recipe and temperature. These estimates are based on the best available data and estimations. A measured density gives a closer answer.
  • The US gallon here is the liquid gallon. The US dry gallon is a different size and is not used.

Sources

  1. NIST, Guide for the Use of the International System of Units (SP 811), Appendix B.8: the US gallon as 3.785412 L and the Imperial gallon as exactly 4.54609 L
  2. U.S. Geological Survey, Water Density: water at roughly 1 g/mL, and how its density changes with temperature