keepcalculator

06 Numbers and Powers

Density to Grams Calculator: Convert Volume & Mass

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

Mass 250.00 grams
Volume if mass known
0.00 mL
Result
Density
1 g/cm³
You entered
Volume
250 mL
You entered
You enter
Density, Volume
You get
Mass, Volume if mass known
Rounding
2 dp

This calculator converts a substance’s density and volume into mass in grams, or works backward from mass and density to find volume. You enter any two of the three values (density, volume, mass), and it returns the missing one, with density in g/cm³, g/mL, or kg/m³ and volume in milliliters, liters, or cubic centimeters.

Formula

The core relationship is the density equation:

Mass (g) = Density (g/cm³) × Volume (cm³)

Since 1 mL = 1 cm³, the same formula works when volume is in milliliters. If you enter density in kg/m³, the calculator converts it to g/cm³ by dividing by 1,000 (because 1 kg/m³ = 0.001 g/cm³). The variables are:

  • d – density, in grams per cubic centimeter (g/cm³) or grams per milliliter (g/mL)
  • v – volume, in milliliters (mL) or cubic centimeters (cm³)
  • m – mass, in grams (g)

To find volume when you know mass and density, rearrange to: Volume (mL) = Mass (g) ÷ Density (g/mL).

Worked Example

Using the default values: density = 1.0 g/cm³ (the density of pure water at 4°C), volume = 250 mL.

  1. Write the formula: mass = density × volume
  2. Substitute: mass = 1.0 g/cm³ × 250 cm³
  3. Calculate: mass = 250 g

The calculator shows 250.00 g. This matches the well-known fact that 250 mL of water weighs 250 g.

Why Density Matters

Density is a material’s mass per unit volume. Pure water is the reference point at 1 g/mL, but most substances differ. For example, vegetable oil has a density around 0.92 g/mL, so 250 mL of oil weighs about 230 g, not 250 g. Iron has a density near 7.87 g/cm³, meaning a 250 cm³ block weighs roughly 1,968 g. This is why a kitchen scale and a volume measure give different results for different ingredients—density is the bridge between them.

How to Choose the Right Density Value

Getting the correct density is the most common source of error. Here are practical guidelines:

  • Water and water-based liquids: use 1.0 g/mL at room temperature. Milk is about 1.03 g/mL; seawater about 1.025 g/mL.
  • Cooking oils: 0.91–0.93 g/mL depending on the type (olive, canola, sunflower).
  • Honey and syrups: 1.36–1.45 g/mL, much heavier than water.
  • Flour (sifted vs packed): 0.5–0.6 g/mL loose, up to 0.8 g/mL packed. Always use a weight-based recipe if precision matters.
  • Metals and solids: look up the specific value; aluminum is 2.70 g/cm³, steel about 7.85 g/cm³, gold 19.3 g/cm³.

If you are unsure, check a density table for the exact substance and temperature, since density changes slightly with temperature (liquids expand when heated, lowering density).

Common Mistakes and Misconceptions

One frequent error is mixing units: entering volume in liters while using density in g/mL. A liter is 1,000 mL, so 1 L of water = 1,000 g, but if you type 1 as the volume and 1.0 as density, you get 1 g, which is wrong by a factor of 1,000. Always convert liters to milliliters (multiply by 1,000) before using g/mL density.

Another misconception is that 1 mL always equals 1 g. That is only true for water. For any other substance, the mass differs. A recipe calling for 100 mL of honey will weigh about 140 g, not 100 g. This is why bakers prefer weight measurements for accuracy.

A third issue is confusing density with specific gravity. Specific gravity is a ratio (density of substance divided by density of water) and has no units. It is numerically equal to density in g/mL, but only because water’s density is 1 g/mL. If you have specific gravity, you can use it directly as g/mL.

Practical Applications

This calculation appears in many everyday and professional contexts:

  • Cooking and baking: converting volume-based recipes to weight for consistent results.
  • Chemistry labs: preparing solutions where you need a specific mass of a liquid reagent.
  • Shipping and logistics: estimating package weight from volume when you know the material.
  • Aquariums and pools: calculating water weight (1 L = 1 kg) to check floor load limits.
  • 3D printing: estimating filament weight needed for a print from its volume and material density (PLA ≈ 1.24 g/cm³, ABS ≈ 1.04 g/cm³).

In each case, the same formula applies; only the density value changes.

Limits of the Formula

The density formula assumes a homogeneous material—uniform throughout. It does not account for air pockets, porosity, or mixtures. For example, a cup of flour contains trapped air, so its bulk density is lower than the density of wheat starch itself. Similarly, a sponge’s volume includes air, so its overall density is much less than the solid material.

Temperature and pressure also affect density, especially for gases. For gases, the ideal gas law (PV = nRT) is more appropriate than a simple constant density. This calculator is designed for solids and liquids at typical room conditions.

For irregularly shaped objects, you cannot measure volume with a ruler; use water displacement instead. Submerge the object in a graduated cylinder and read the volume change.

Frequently Asked Questions

How do I convert kg/m³ to g/cm³?

Divide by 1,000. Since 1 kg = 1,000 g and 1 m³ = 1,000,000 cm³, 1 kg/m³ = 1,000 g / 1,000,000 cm³ = 0.001 g/cm³. So 1,000 kg/m³ (water) equals 1.0 g/cm³.

Is density the same as weight?

No. Density is mass per unit volume (g/mL), while weight is the force of gravity on an object (newtons or pounds-force). On Earth, 100 g of any substance weighs about 0.98 newtons. Density tells you how much mass fits in a given space, not how heavy something feels.

Why does 1 mL of water weigh 1 g but 1 mL of mercury weighs 13.6 g?

Because mercury is 13.6 times denser than water. The gram was originally defined as the mass of 1 mL of water at 4°C, so water conveniently has a density of exactly 1 g/mL. Mercury’s density is 13.6 g/mL, so the same volume contains 13.6 times more mass.

Can I use this for gases?

Not reliably. Gas density changes dramatically with temperature and pressure. Air at sea level and 20°C has a density of about 0.0012 g/mL, but at high altitude it is much lower. For gases, use the ideal gas law or a gas density table specific to your conditions.

What if my volume is in liters?

Multiply liters by 1,000 to get milliliters, then use the density in g/mL. For example, 2 L of water = 2,000 mL × 1.0 g/mL = 2,000 g (2 kg). The calculator expects volume in mL, so convert before entering.

How accurate is the density value I find online?

Published densities are usually accurate to 2–3 decimal places for pure substances at stated temperatures. However, real-world materials vary: tap water has dissolved minerals, alloys vary by composition, and foods differ by brand and moisture content. For critical applications, measure density yourself by weighing a known volume.

Related

Formula used
in d | Density | g/cm³ | 1.0 | 0 | 100000
in v | Volume | mL | 250 | 0 | 1000000
out m | Mass | grams | d * v | 2
out v2 | Volume if mass known | mL | 0 | 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 →