keepcalculator

06 Numbers and Powers

Ml to Grams Calculator Formula

Card No. 06·1170 · Updated · Standard formula, shown below

Mass 100.00 g
Volume
100 ml
You entered
Density
1 g/ml
You entered
You enter
Volume, Density
You get
Mass
Rounding
2 dp

This calculator converts milliliters (ml) to grams (g) for any liquid or substance, but it requires you to know the density of that substance. You enter the volume in milliliters and the density in grams per milliliter (g/ml), and the calculator returns the mass in grams using the formula: mass = volume × density.

Formula

The core formula is straightforward:

Mass (g) = Volume (ml) × Density (g/ml)

Where:

  • Mass (m) is the weight of the substance in grams.
  • Volume (V) is the amount of space the substance occupies in milliliters.
  • Density (ρ) is the mass per unit volume of the substance, expressed in grams per milliliter.

This formula works because the milliliter is a unit of volume, and the gram is a unit of mass. Density links the two. For water at 4°C, density is exactly 1 g/ml, so 1 ml of water weighs 1 gram. For other substances, the density differs, which is why the conversion is not a simple 1:1 ratio.

Worked Example

Using the default values from the calculator above: volume = 100 ml, density = 1 g/ml (water).

  1. Write down the formula: Mass = Volume × Density
  2. Plug in the numbers: Mass = 100 ml × 1 g/ml
  3. Multiply: Mass = 100 g

The calculator returns 100 g, matching the manual calculation. Now try a different substance: olive oil has a density of about 0.91 g/ml. For 100 ml of olive oil, Mass = 100 × 0.91 = 91 g. The calculator would show 91 g if you change the density to 0.91.

Why Density Matters

Many people assume 1 ml always equals 1 g, but that is only true for water at standard temperature. Every substance has its own density, which can vary with temperature and pressure. For example:

  • Water: 1.00 g/ml
  • Milk: about 1.03 g/ml
  • Olive oil: about 0.91 g/ml
  • Honey: about 1.42 g/ml
  • Ethanol: about 0.789 g/ml

If you ignore density, you will get incorrect results. For instance, 100 ml of honey weighs about 142 g, not 100 g. In cooking, baking, or chemistry, using the wrong density can ruin a recipe or an experiment. Always look up the density of the specific substance you are measuring.

How to Find Density

If you do not know the density of your substance, you have a few options:

  • Look it up: Many reference books, online databases, and product labels list density. For food items, nutrition labels often provide weight per volume (e.g., grams per serving in ml).
  • Measure it yourself: Use a graduated cylinder to measure a known volume (e.g., 10 ml) and weigh it on a scale. Divide the mass by the volume to get density in g/ml.
  • Use a known value: For common liquids, you can memorize approximate densities, but be aware that temperature changes density slightly. For water, density drops from 1.00 at 4°C to about 0.96 at 100°C.

Common Mistakes and How to Avoid Them

The most frequent error is using the density of water for everything. Another mistake is confusing milliliters with milligrams or grams with ounces. Here are some pitfalls:

  • Using water’s density for all liquids: Always check the density for the specific substance.
  • Mixing up units: Density must be in g/ml. If you have density in kg/L, note that 1 kg/L = 1 g/ml, so the numbers are the same. But if density is in kg/m³, divide by 1000 to get g/ml.
  • Rounding too early: If you round density to 1 for water at 20°C, you get a small error (0.998 g/ml vs 1.00). For most cooking, that is fine, but for lab work, use more precise values.
  • Ignoring temperature: Density changes with temperature. For example, warm water is less dense than cold water. For precise conversions, measure at a known temperature.

When to Use This Conversion

This ml-to-grams conversion is useful in many situations:

  • Cooking and baking: Recipes may list ingredients in ml, but you want to weigh them in grams for accuracy (e.g., flour, honey, oil).
  • Nutrition: Food labels sometimes show volume (ml) and weight (g) for the same serving. Understanding the conversion helps you compare products.
  • Science and education: In chemistry or physics labs, converting between volume and mass is routine.
  • DIY and home projects: Mixing paints, resins, or cleaning solutions often requires mass ratios, but you only have a volume measuring cup.

Remember, the formula works for any substance as long as you have the correct density. For powders, you need to account for packing; the density of a powder can vary depending on how compacted it is. In that case, use the bulk density, which is the mass of the powder per unit volume as it is poured.

Limitations of the Formula

The formula mass = volume × density is universally valid for homogeneous substances at a given temperature and pressure. However, it has limitations:

  • Mixtures: For a mixture, the density is not simply the average of the components; it depends on how they interact. You need to measure the actual density of the mixture.
  • Gases: Density of gases changes significantly with pressure and temperature. This calculator assumes you are working with liquids or solids at near-ambient conditions.
  • Non-Newtonian fluids: Some fluids (like ketchup) have a density that is constant, but their flow behavior is complex; density is still well-defined, so the formula still works.
  • Temperature variation: For most liquids, density changes by a few percent over a wide temperature range. For high precision, control the temperature.

For most everyday uses, the formula is accurate enough. For scientific or industrial applications, always use the density at the exact conditions of your measurement.

Frequently Asked Questions

Is 1 ml always equal to 1 gram?

No. 1 ml of water weighs 1 gram only because water’s density is 1 g/ml at 4°C. For any other substance, 1 ml will weigh more or less than 1 gram. For example, 1 ml of honey weighs about 1.42 grams, and 1 ml of ethanol weighs about 0.789 grams.

How do I convert grams to milliliters?

Use the same formula but solve for volume: Volume (ml) = Mass (g) ÷ Density (g/ml). For example, if you have 50 g of milk (density 1.03 g/ml), the volume is 50 ÷ 1.03 ≈ 48.5 ml.

What is the density of water in g/ml?

At 4°C, the density of pure water is exactly 1.000 g/ml. At room temperature (20°C), it is about 0.998 g/ml. For most cooking and everyday conversions, using 1 g/ml is perfectly fine.

Can I use this calculator for flour or sugar?

Yes, but you need the bulk density of the flour or sugar, which varies with how it is packed. All-purpose flour has a bulk density of about 0.53 g/ml when spooned into a cup, but it can be up to 0.65 g/ml when packed. For accuracy, weigh flour instead of using volume.

Does temperature affect the conversion?

Yes. Most substances expand when heated, so their density decreases. For water, the density drops from 1.000 g/ml at 4°C to 0.958 g/ml at 100°C. For high-precision work, measure the temperature and use the corresponding density.

Why does my recipe say ml but my scale shows grams?

Many recipes list liquid ingredients in volume (ml) because that is easy to measure with a cup. But weighing in grams is more accurate because volume can vary with temperature and container. Use the density of the ingredient to convert the ml measurement to grams.

Related

Formula used
in v | Volume | ml | 100 | 0 | 1000000
in d | Density | g/ml | 1 | 0 | 20
out m | Mass | g | v * d | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →