keepcalculator

06 Numbers and Powers

Grams per ml Calculator: Convert Mass to Volume

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

Volume 100.00 mL
Mass from volume
100.00 g
Result
Mass
100 g
You entered
Density
1 g/mL
You entered
You enter
Mass, Density
You get
Volume, Mass from volume
Rounding
2 dp

This calculator converts a mass in grams to a volume in milliliters using the density of the substance. You enter the mass in grams and the density in grams per milliliter (g/mL), and you get the volume in milliliters. It also works in reverse: enter volume and density to get mass.

Formula

The core relationship is density = mass / volume. Rearranged to solve for volume:

Volume (mL) = Mass (g) / Density (g/mL)

Where:

  • Mass is the amount of substance, measured in grams (g).
  • Density is the mass per unit volume, measured in grams per milliliter (g/mL). This is the same as grams per cubic centimeter (g/cm³) because 1 mL = 1 cm³.
  • Volume is the space the substance occupies, measured in milliliters (mL).

To find mass from volume, use: Mass (g) = Volume (mL) × Density (g/mL)

Worked Example

Using the default values from the calculator: mass = 100 g, density = 1.0 g/mL (the density of water at room temperature).

  1. Write the formula: Volume = Mass / Density
  2. Plug in the numbers: Volume = 100 g / 1.0 g/mL
  3. Calculate: Volume = 100 mL

The calculator shows 100.00 mL. For water, 100 grams is exactly 100 milliliters because its density is 1.0 g/mL. For a denser substance like honey (density ≈ 1.4 g/mL), 100 g would give about 71 mL.

Why Density Matters

Many people assume 1 gram equals 1 milliliter, but that’s only true for water. Every substance has its own density, which changes with temperature and pressure. For example:

  • Water: 1.0 g/mL
  • Olive oil: 0.91 g/mL
  • Honey: 1.4 g/mL
  • Ethanol: 0.789 g/mL
  • Iron: 7.87 g/mL

So 100 g of olive oil takes up more volume (about 110 mL) than 100 g of water (100 mL). The same mass can occupy very different volumes depending on what it is.

How to Use the Calculator

The calculator has two modes, but both use the same density value:

  • Mass to Volume: Enter a mass in grams and a density in g/mL. The first output shows the volume in milliliters.
  • Volume to Mass: The second output uses the volume you just calculated and multiplies it by the density to give mass in grams. If you want to start with a specific volume, simply enter that volume as the mass field? No—that would be wrong. Instead, use the second output as a check: enter a mass, see the volume, then adjust the mass until the volume matches your target. For direct volume-to-mass, you can use the formula manually: mass = volume × density.

For example, to find the mass of 250 mL of milk (density ≈ 1.03 g/mL): mass = 250 × 1.03 = 257.5 g. The calculator can help you verify this by entering 257.5 as the mass and 1.03 as the density—the volume output will be 250 mL.

Common Mistakes and Misconceptions

Here are the most frequent errors people make when converting grams to milliliters:

  • Using 1 g/mL for everything: Only water has a density of exactly 1 g/mL at 4°C. Cooking oils, syrups, and powders all differ.
  • Confusing grams and milliliters in recipes: A recipe that says “100 g flour” is not the same as “100 mL flour” because flour is light and fluffy—its density is about 0.5 g/mL, so 100 g of flour is about 200 mL.
  • Ignoring temperature: Density changes with temperature. Water at 100°C has a density of about 0.958 g/mL, so 100 g of boiling water is about 104 mL. For most home cooking, the difference is small, but for precise lab work it matters.
  • Mixing up units: Density can be given in kg/L, g/cm³, or lb/ft³. Always convert to g/mL before using the formula. 1 kg/L = 1 g/mL, but 1 lb/ft³ ≈ 0.016 g/mL.

Practical Applications

This conversion is used in many everyday situations:

  • Cooking and baking: Converting weight-based recipes to volume measures (or vice versa) for ingredients like flour, sugar, and butter.
  • Nutrition: Understanding serving sizes—some labels list grams, others list milliliters (for liquids).
  • Science experiments: Preparing solutions with precise concentrations requires converting mass to volume.
  • DIY and crafts: Mixing resins, paints, or glues where you need a specific volume from a weight.
  • Medicine (general): Liquid medications often have a density close to water, but always follow the label or a professional’s instruction—never assume.

Limitations and When to Be Careful

The formula is simple, but it assumes you know the density of your substance. For pure substances, you can look up density tables. For mixtures or unknown materials, you may need to measure it yourself: weigh a known volume and divide mass by volume.

Also, this calculator works for any substance, but the density input must be in g/mL. If you have density in kg/m³, divide by 1000 to get g/mL (e.g., 1000 kg/m³ = 1 g/mL). If you have density in lb/gal, multiply by 0.1198 to get g/mL.

For safety-critical applications (like chemical dilutions or medication dosing), always verify with a professional and use calibrated equipment. The calculator is for general arithmetic, not for medical or industrial decisions.

Frequently Asked Questions

Is 1 gram always 1 milliliter?

No. This is only true for water at 4°C (and substances with the same density). For most other materials, 1 gram occupies more or less than 1 milliliter. For example, 1 g of honey is about 0.7 mL, while 1 g of whipped cream is about 2 mL.

How do I convert grams to milliliters without a scale?

If you don’t have a scale, you can use a measuring cup or spoon, but you need to know the density. For water, 1 mL = 1 g. For other liquids, use a conversion chart or measure a small sample: pour 100 mL into a measuring cup, weigh it on a kitchen scale, then divide the weight by 100 to get density.

What is the density of flour in g/mL?

All-purpose flour has a density of about 0.5 g/mL when loosely scooped, but it can range from 0.4 to 0.6 g/mL depending on how it’s packed. That’s why weight measurements are more accurate for baking. 1 cup of flour (240 mL) weighs about 120 g.

Can I use this calculator for liquids and solids?

Yes, the formula works for any substance—solid, liquid, or gas—as long as you know its density. For gases, density is much lower (e.g., air is about 0.0012 g/mL), so 1 g of air occupies about 833 mL. For solids, density is usually higher than water (e.g., aluminum is 2.7 g/mL).

How do I find the density of my substance?

Look up a density table online or in a reference book. For common substances, you can search “density of [substance] in g/mL”. For a mixture, measure it yourself: weigh a known volume (e.g., 100 mL) and divide the mass by the volume.

What if I only know the density in kg/L?

That’s the same as g/mL because 1 kg/L = 1000 g / 1000 mL = 1 g/mL. So you can use the number directly. For example, milk has a density of about 1.03 kg/L, which is the same as 1.03 g/mL.

Related

Formula used
in m | Mass | g | 100 | 0
in d | Density | g/mL | 1.0 | 0
out v | Volume | mL | m / d | 2
out mass2 | Mass from volume | 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 →