keepcalculator

06 Numbers and Powers

ml to Grams Calculator: Convert Volume to Mass

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

Mass 250.00 g
Volume
250 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, provided you know its density. You enter the volume in milliliters and the density in grams per milliliter, and the calculator returns the mass in grams. The result is exact for pure water at 4°C, where 1 ml = 1 g, but for other substances you must supply the correct density.

Formula

The conversion relies on the fundamental density relationship:

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

Where:

  • Mass (m) is the result in grams (g).
  • Volume (V) is the amount of substance in milliliters (ml).
  • Density (ρ) is the mass per unit volume in grams per milliliter (g/ml).

This formula is the definition of density rearranged: density = mass / volume. To get mass, you multiply both sides by volume. The unit g/ml is equivalent to kg/L, so the same numeric density works for liters and kilograms.

Worked Example

Using the calculator defaults: volume = 250 ml, density = 1.00 g/ml (pure water).

  1. Start with the formula: mass = volume × density.
  2. Plug in the numbers: mass = 250 ml × 1.00 g/ml.
  3. Multiply: 250 × 1.00 = 250.
  4. The result is 250 g.

So 250 ml of water weighs exactly 250 grams. The calculator shows 250.00 g with two decimal places.

Why Density Matters

Milliliters measure volume (how much space something takes up), while grams measure mass (how much matter it contains). These are different physical quantities, so you cannot convert between them without knowing the density of the specific substance. Density tells you how tightly packed the matter is.

For example:

  • Water: 1.00 g/ml – 1 ml weighs 1 g.
  • Olive oil: about 0.91 g/ml – 1 ml weighs 0.91 g.
  • Honey: about 1.42 g/ml – 1 ml weighs 1.42 g.
  • Ethanol: about 0.789 g/ml – 1 ml weighs 0.789 g.
  • Mercury: about 13.53 g/ml – 1 ml weighs 13.53 g.

This is why a cup of flour (about 120 g) weighs far less than a cup of water (about 240 g) – the flour has lower density because the particles have air between them.

How to Find the Density

For many common liquids, you can find density values online or on the product label. For cooking ingredients, standard references list approximate densities. For a solid substance, you can measure density yourself:

  1. Weigh a known volume of the substance using a kitchen scale and a measuring cup.
  2. Divide the weight in grams by the volume in milliliters.
  3. Use that number as the density in the calculator.

For example, if you measure 200 ml of a liquid and it weighs 180 g, the density is 180 / 200 = 0.90 g/ml. Enter that density and any volume to get the mass.

Common Mistakes and Pitfalls

  • Using water’s density for everything: This is the most common error. Unless the substance is water or a water-based solution with similar density, the result will be wrong. For cooking oil, using 1 g/ml overestimates the mass by about 10%.
  • Confusing milliliters with liters: 1 liter = 1000 ml. If you enter 1.5 liters as 1.5 ml, the result will be off by a factor of 1000. Always convert to ml first.
  • Ignoring temperature: Density changes with temperature. Water is densest at 4°C (1.000 g/ml); at 20°C it is about 0.998 g/ml. For most everyday purposes the difference is negligible, but for precise lab work you need the density at your actual temperature.
  • Rounding too early: If you round density to one decimal place, the final mass can be off by several percent. Keep at least two or three significant figures.

Practical Applications

This conversion is useful in many real situations:

  • Cooking and baking: Many recipes list liquids in ml but dry ingredients in grams. Knowing the density helps convert between them.
  • Chemistry and lab work: Preparing solutions often requires measuring mass from a volume of a known-density liquid.
  • Nutrition: Food labels sometimes list serving sizes in ml; converting to grams helps track macros.
  • DIY and crafts: Mixing resins, paints, or oils where the ratio is by weight but you only have a volume measure.

For water, the 1:1 ratio is so convenient that many people assume it applies to all liquids. This calculator helps you avoid that mistake.

Limits of the Formula

The formula mass = volume × density is exact for any homogeneous substance at a given temperature and pressure. However, it assumes the density is constant throughout the volume. For mixtures, emulsions, or substances with suspended particles, the effective density may vary. Also, gases have very low densities (around 0.001 g/ml at room temperature), so the calculator’s minimum density of 0.01 g/ml excludes them – for gases, you would need a different scale.

For solids with irregular shapes, measuring volume by displacement (Archimedes’ principle) gives the correct volume, but the density must be uniform. If you are working with a material that absorbs water (like wood or cloth), the volume measurement becomes tricky because the substance changes volume as it absorbs liquid.

Frequently Asked Questions

Is 1 ml always equal to 1 gram?

No, only for pure water at 4°C (and even then, only approximately at other temperatures). For any other substance, 1 ml weighs more or less than 1 g depending on its density. For example, 1 ml of honey weighs about 1.42 g, while 1 ml of olive oil weighs about 0.91 g.

How do I convert ml to grams without a density?

You cannot do it accurately without knowing the density. If you have a kitchen scale, you can measure the mass directly: weigh an empty container, add the liquid, and subtract the container’s weight. That gives you grams without needing density.

What is the density of water in g/ml?

Pure water has a density of approximately 1.000 g/ml at 4°C. At room temperature (20°C), it is about 0.998 g/ml. For most cooking and everyday use, 1.00 g/ml is accurate enough.

Can I use this calculator for flour or sugar?

Yes, but you must enter the correct bulk density. Flour has a density of about 0.5–0.6 g/ml depending on how it is packed, and granulated sugar about 0.85 g/ml. These values vary with humidity and compaction, so for precise baking, weighing directly is better.

What is the difference between ml and grams?

Milliliters measure volume – the amount of space a substance occupies. Grams measure mass – the amount of matter in that substance. They are related through density, which is mass per unit volume.

Why does the calculator ask for density if I just want to convert ml to grams?

Because the conversion is impossible without density. The calculator is a tool that does the multiplication for you once you provide the density. For water, you can just use 1.00, but for other liquids you need to look it up or measure it.

Related

Formula used
in v | Volume | ml | 250 | 0 | 1000000
in d | Density | g/ml | 1.00 | 0.01 | 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 →