ThisCalculator

Physics

Density to Mass Calculator: Formula & Examples

Updated · Standard formula, shown below

Mass 1,000 g
Mass
1.0 kg
Result
Mass
2.20 lb
Result
Density
1 g/cm³
You entered

Density to Mass Calculator: Formula & Examples

This calculator converts a substance’s density and its volume into mass, using the standard formula mass = density × volume. You enter the density (in kg/m³, g/cm³, or other units) and the volume (in m³, L, or other units), and the tool returns the mass in kilograms, grams, or pounds. The result is the amount of matter in that volume, which is essential for shipping, cooking, construction, and science labs.

Formula

The relationship between mass, density, and volume is one of the most fundamental in physics and chemistry:

m = � × V

  • m = mass, measured in grams (g), kilograms (kg), or pounds (lb)
  • Ï� (rho) = density, measured in g/cm³, kg/m³, or lb/ft³
  • V = volume, measured in cm³, m³, liters (L), or gallons

Density is a material property: it tells you how much mass is packed into a given space. Water has a density of about 1 g/cm³ (or 1000 kg/m³) at room temperature, which is why 1 liter of water weighs almost exactly 1 kilogram.

Worked Example

Using the calculator defaults: density = 1.0 g/cm³, volume = 1 liter.

  1. Convert volume to cubic centimeters: 1 L = 1000 cm³.
  2. Apply the formula: mass = 1.0 g/cm³ × 1000 cm³ = 1000 g.
  3. Convert to kilograms: 1000 g ÷ 1000 = 1 kg.
  4. Convert to pounds: 1 kg × 2.20462 = 2.20462 lb.

The calculator shows: mass = 1000 g, mass_kg = 1.0 kg, mass_lb = 2.20 lb. This matches the known fact that 1 liter of water weighs 1 kilogram.

When to Use This Calculator

You need a density-to-mass conversion whenever you know the volume of a substance but need to know its weight for practical purposes. Common situations include:

  • Shipping and freight: A tank holds 500 liters of olive oil (density 0.92 g/cm³). The mass is 500 × 0.92 = 460 kg, which determines shipping costs.
  • Cooking and baking: Recipes often list flour by volume (cups), but nutrition labels use grams. If flour density is 0.55 g/cm³, one cup (240 ml) weighs 132 g.
  • Construction and engineering: Concrete density is about 2.4 g/cm³. A slab of 2 m³ weighs 4800 kg, which affects structural support.
  • Science experiments: Determining the mass of a liquid sample when you only have a graduated cylinder.
  • Fuel and storage: Diesel density is about 0.85 g/cm³, so a 1000 L tank holds 850 kg of fuel, not 1000 kg.

How to Choose Density Values

The calculator is only as accurate as the density you enter. Density varies with temperature and pressure, so you must use the value appropriate for your conditions. Here are some typical densities at room temperature (20°C) and standard pressure:

  • Water: 1.00 g/cm³ (exactly 0.998 at 20°C)
  • Milk: 1.03 g/cm³
  • Olive oil: 0.92 g/cm³
  • Ethanol: 0.789 g/cm³
  • Aluminum: 2.70 g/cm³
  • Iron: 7.87 g/cm³
  • Air: 0.001225 g/cm³ (about 1.225 kg/m³)

For gases, temperature and pressure change density dramatically. For liquids, temperature changes density by a few percent. For solids, it is fairly constant unless the material is porous or contains air pockets.

Common Mistakes and Misconceptions

The most frequent error is mixing up units. Density in g/cm³ must be multiplied by volume in cm³ to get grams. If you enter volume in liters, you must convert: 1 L = 1000 cm³. Similarly, density in kg/m³ requires volume in m³ (1 m³ = 1000 L).

Another misconception is that density equals weight. Density is mass per volume, not weight per volume. Weight is mass times gravitational acceleration (9.81 m/s² on Earth). On the Moon, the same object has the same mass but less weight. This calculator gives mass, not weight.

A third mistake is assuming all substances have the density of water. Many people use 1 g/cm³ for everything, which is wrong for oils, metals, and most chemicals. Always look up the specific density for your material.

Limits of the Formula

The formula m = � × V assumes a homogeneous substance—uniform density throughout. This works for pure liquids, well-mixed solutions, and solid metals. It fails for:

  • Mixtures with different densities (e.g., oil and water in the same tank)
  • Porous materials (e.g., foam, sponge, some rocks) where the volume includes air pockets
  • Substances that change density with temperature (most liquids and gases)
  • Granular materials (e.g., sand, flour) where packing density varies with how they are poured or compacted

For granular solids, you need the “bulk density,” which is the mass of the material divided by the total volume it occupies, including the spaces between particles. This is lower than the density of the solid material itself.

How to Convert Units Manually

If you prefer to calculate by hand, here are the key conversions:

  • 1 g/cm³ = 1000 kg/m³
  • 1 kg/m³ = 0.001 g/cm³
  • 1 L = 1000 cm³ = 0.001 m³
  • 1 gallon (US) = 3.78541 L
  • 1 kg = 2.20462 lb
  • 1 lb = 453.592 g

For example, to find the mass in pounds of 5 gallons of milk (density 1.03 g/cm³):

  1. Convert gallons to liters: 5 × 3.78541 = 18.927 L
  2. Convert liters to cm³: 18.927 × 1000 = 18,927 cm³
  3. Mass in grams: 1.03 × 18,927 = 19,495 g
  4. Convert to pounds: 19,495 ÷ 453.592 = 42.98 lb

Frequently Asked Questions

What is the difference between density and specific gravity?

Specific gravity is the ratio of a substance’s density to the density of water (at 4°C, where water is most dense). It has no units. For example, if a liquid has a specific gravity of 1.2, its density is 1.2 g/cm³. To use this calculator, multiply specific gravity by 1 g/cm³ (or 1000 kg/m³) to get density.

Can I use this calculator for gases?

Yes, but you must use the correct density for the gas at your specific temperature and pressure. Gas density changes significantly with conditions. For example, air at sea level and 20°C has a density of about 1.2 kg/m³, but at high altitude it is much lower. Look up the density for your exact conditions or use the ideal gas law to calculate it.

Why does the calculator show mass in grams, kilograms, and pounds?

Different fields use different units. Cooking and chemistry often use grams, engineering and shipping use kilograms, and US everyday use often involves pounds. The calculator provides all three so you don’t have to convert manually. The first output is the primary answer in grams, matching the input density unit (g/cm³).

What if I only know the weight (not mass) of an object?

Weight is the force exerted by gravity on a mass. To get mass from weight, divide the weight by the gravitational acceleration (9.81 m/s² on Earth). For example, a 10 N object has a mass of 10 ÷ 9.81 ≈ 1.02 kg. This calculator works with mass directly, so you would need to convert weight to mass first.

Does temperature affect the result?

Yes, for most substances. Liquids and gases expand when heated, so the same mass occupies a larger volume, meaning density decreases. For example, water at 4°C has a density of 1.000 g/cm³, but at 80°C it is about 0.972 g/cm³. If you need high accuracy, use the density at the actual temperature of your substance.

How accurate is this calculator for cooking?

It is accurate if you use the correct density for the ingredient. Flour density varies from 0.5 to 0.6 g/cm³ depending on how it is sifted or packed. For liquids like water, milk, or oil, the density is well-known and consistent, so the calculator is very reliable. For dry ingredients, use a kitchen scale for best results.

Related

Formula used
in density | Density | g/cm³ | 1.0 | 0
in volume | Volume | L | 1 | 0
out mass | Mass | g | density * volume * 1000 | 0
out mass_kg | Mass | kg | density * volume | 1
out mass_lb | Mass | lb | density * volume * 2.20462 | 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.