Gallons to Grams Conversion
This calculator converts US gallons to grams by multiplying the entered volume by the selected density in grams per gallon. The exact density presets in the conversion method are water = 3,785.41 g/gal, milk = 3,898.97 g/gal, vegetable oil = 3,482.58 g/gal, and gasoline = 2,839.06 g/gal. If Custom density is selected, the calculator uses your entered g/gal value. The result is therefore valid only for the selected substance, density, and US-gallon volume.
A gallon-to-gram conversion is not like inches to centimeters or gallons to liters. Those are unit changes within one measurement type. Gallons to grams crosses from volume to mass, so density must supply the missing information. Water is the familiar reference because 1 US gallon is about 3,785.41 milliliters, and a water density of about 1 g/mL gives about 3,785.41 grams. Gasoline is lighter, vegetable oil is lighter than water but heavier than gasoline in this calculator, and milk is heavier than water. For pure volume work, use the gallons to liters calculator or volume converter. For mass units after the result, use the ounces to grams calculator or weight converter. For the principle behind the conversion, use the density calculator.
Formula used by the calculator
The physical relationship is:
In the units used here:
The secondary kilogram result is:
If your density is in grams per milliliter, convert it to grams per US gallon before using the custom field:
That conversion reflects US gallons. An imperial gallon is larger, so the same g/mL density would produce more grams per imperial gallon.
Density table
| Substance | Density used by this calculator | Notes |
|---|---|---|
| Water | 3,785.41 g/gal | Default US-gallon water preset |
| Milk | 3,898.97 g/gal | Slightly denser than water in the preset |
| Vegetable oil | 3,482.58 g/gal | Lighter than water in the preset |
| Gasoline | 2,839.06 g/gal | Fuel estimate; real blends vary |
| Diesel fuel, typical | about 3,100 to 3,200 g/gal | Reference range; not a preset |
| Honey, typical | about 5,300 to 5,400 g/gal | Moisture content changes the value; not a preset |
| Custom material | user-entered g/gal | Use product, supplier, or lab data |
The table makes two things clear. First, the calculator’s built-in values are specific; it does not look up a new density based on temperature, brand, or grade. Second, reference values outside the presets are only there to show scale. If you are weighing a fuel, food ingredient, chemical, fertilizer, or slurry for billing or safety, use the density printed on the certificate of analysis, safety data sheet, or supplier specification.
Conversion example matching the default form
The default form selects Water and 1 US gallon. The conversion method chooses 3,785.41 g/gal. The primary result is:
The kilogram line is:
Those are the exact values produced before display rounding. If the gallons entry is changed to 5 and the substance remains water, the result is 18,927.05 grams. If the substance is changed to gasoline for the same 5 gallons, it uses 2,839.06 g/gal and returns 14,195.30 grams. The volume can be identical while mass changes because density changed.
Domains where grams matter
Grams are common in science, food formulation, small-batch manufacturing, aquarium chemistry, cleaning concentrates, and international shipping documents. A recipe developer may know a container volume but need grams for scaling. A lab technician may receive a liquid by gallon but prepare a mass-based solution. A shipping clerk may need to compare a US supplier’s gallon label with a metric freight limit.
For construction or landscaping liquids such as sealers, additives, or fuels, the gram result can be converted into kilograms for pallet or truck planning. Remember to add packaging. A gallon jug’s liquid mass is not the same as the gross shipping mass after the bottle, cap, carton, and pallet are included.
Common pitfalls
Do not use 3,785.41 grams for every gallon. That is the water preset. Do not enter g/mL directly into the g/gal field; multiply by 3,785.41 first. Do not use imperial gallons unless you convert them to US gallons or convert the density to grams per imperial gallon. Do not ignore temperature, especially for fuels and oils. Finally, do not assume food products are identical across brands. Fat, sugar, and water content change density.
Sources
- NIST, SI Units - Mass — gram and kilogram mass-unit context.
- NIST, SI Units - Volume — volume-unit context.
- Engineering ToolBox, Densities of common liquids — reference density ranges for liquids including fuels, oils, water, and food liquids.