Skip to content
CalculatorGeek

Why Grams and Millilitres Need Density to Convert

On this page

Grams measure mass; millilitres measure volume. There is no universal one-to-one conversion. You need the material's density, in units that match the calculation, before changing between them.

The conversion formula and units

Density is mass divided by volume: density (g/mL) = mass (g) / volume (mL). Rearrange it to find volume: mL = g / density (g/mL). Reverse it to find mass: g = mL × density (g/mL). A density of 0.8 g/mL means each millilitre has a mass of 0.8 grams; it does not mean 0.8 millilitres per gram.

Keep the units consistent. First convert kilograms to grams and litres to millilitres when the density is given in g/mL. For example, 1 kg is 1,000 g. At an illustrative 0.8 g/mL, 1,000 / 0.8 = 1,250 mL = 1.25 L.

Worked examples in both directions

Mass to volume: 100 g at an illustrative density of 0.8 g/mL gives 100 / 0.8 = 125 mL. Volume to mass: 250 mL at an illustrative density of 1.2 g/mL gives 250 × 1.2 = 300 g. These densities are chosen to demonstrate arithmetic; neither is a claim about a named food.

A zero amount converts to zero with a valid density. Missing, zero, negative or nonfinite density cannot support a mass-volume conversion and should produce a clear error, not a guessed 1:1 result. Use the Recipe Scaler's direct conversion mode to enter the amount, direction and density.

Why ingredient preparation matters

Water is near 1 g/mL only as an approximation under suitable conditions; that shortcut does not apply to all liquids, flour, sugar or chopped ingredients. Bulk ingredient mass per scoop can vary with packing, sifting, grind, temperature and how a cup is filled. A product label, supplier specification or carefully measured sample is better than an unexplained generic preset. If the source gives grams per cup, confirm which cup size and preparation it used before deriving a g/mL value.

For consequential recipe precision, weigh the ingredient instead of relying on volume. If comparing batch sizes, keep the same substance and density assumption. The Food Calculators directory separates ingredient conversion from serving and pan scaling.

How to check a conversion

Read the units on the density, substitute them into the formula, and cancel units: g / (g/mL) = mL or mL × (g/mL) = g. Reverse the result using the same density; 125 mL × 0.8 g/mL returns 100 g. A mismatch often means a reciprocal density was entered or a litre/kilogram conversion was skipped.

Return to the Recipe Scaler when you need both directions or when a converted ingredient will then be scaled by servings.

Frequently asked questions

Is 100 g always 100 mL?

No. That equality requires a density of exactly 1 g/mL; other substances and conditions differ.

What if I only know the ingredient name?

Find a reliable density or a measured mass-and-volume pair for the same preparation. Do not invent a density from the name alone.

Why did my flour result change?

Bulk density changes with how the flour is measured, packed or sifted. For repeatable baking, weigh it.

Sources and scope

NIST's Metric Kitchen guidance distinguishes kitchen mass and volume measures and treats water as an approximate reference, not a universal ingredient rule. Source checked October 2, 2026. The example densities are declared inputs solely to verify the arithmetic.

From the guide library

More calculation guides

View all articles