Skip to content

Density Calculator

Enter any two of density, mass and volume to find the third, so it also works as a mass calculator.

Science & EngineeringUpdated Free · No sign-up

How to use the Density Calculator

  1. Choose Solve for.
  2. Read your answer in the results panel. It updates as you type, and the breakdown, step-by-step working and any charts or tables appear below it.
  3. Use Share link to save or send the exact calculation, or Copy to paste the results elsewhere.

What density means

Density tells you how much mass is packed into a given volume. A block of lead feels far heavier than a same-sized block of wood because lead is about 20 times denser. Density is written with the Greek letter ρ (rho):

ρ = m ÷ V

Rearranging gives the other two forms: m = ρ × V and V = m ÷ ρ. Choose what to solve for and the calculator uses the matching version.

Units

The SI unit is kilograms per cubic metre (kg/m³). Chemists and lab workers often use grams per cubic centimetre (g/cm³), which is the same as grams per millilitre. Engineers in the US use pounds per cubic foot. Useful equivalences:

  • 1 g/cm³ = 1 g/mL = 1,000 kg/m³
  • 1 g/cm³ = 62.43 lb/ft³ = 8.345 lb/US gal
  • Water at 4 °C is almost exactly 1 g/cm³

Worked example

A sample has a mass of 500 g and displaces 250 mL of water. Its density is 500 ÷ 250 = 2 g/cm³, or 2,000 kg/m³. That is a little less dense than concrete or glass, and it will sink in water because it is denser than 1 g/cm³.

Going the other way: how much does 2 L of steel weigh? With ρ = 7.85 g/cm³ and V = 2,000 cm³, m = 7.85 × 2,000 = 15,700 g, or 15.7 kg.

Finding mass from density and volume

If you know what something is made of and how big it is, you can work out its mass without a scale using m = ρ × V. An aluminum part of 100 cm³ at 2.7 g/cm³ has a mass of 270 g (0.27 kg, about 0.595 lb) and weighs about 2.65 newtons on Earth. A concrete slab 3 m × 2 m × 0.1 m is 0.6 m³, so at roughly 2,400 kg/m³ its mass is 1,440 kg, which is useful to know before hiring lifting gear or checking a load limit.

The most common mistake is mixing units: g/cm³ times cm³ gives grams, and kg/m³ times m³ gives kilograms. The calculator converts everything first, so you can enter density in lb/ft³ and volume in litres.

Mass versus weight

Mass is the amount of matter in an object and is the same everywhere. Weight is the force of gravity on that mass, measured in newtons or pounds-force. A 70 kg astronaut still has 70 kg of mass on the Moon but weighs about a sixth as much. When you solve for mass, the result also shows the weight on Earth.

Measuring density at home

  1. Weigh the object on a kitchen or lab scale.
  2. Fill a measuring jug part way, note the level, then submerge the object fully and note the new level. The difference is the object’s volume.
  3. Divide mass by volume.

This water-displacement method, which Archimedes is said to have used to test a gold crown, works for any solid that doesn’t float or absorb water.

Things that change density

  • Temperature: most materials expand when heated, so their density falls. Water is unusual: it is densest at 4 °C, and ice floats because it is about 9% less dense than liquid water.
  • Pressure: gases compress easily, so their density depends strongly on pressure. Air at sea level is about 1.2 kg/m³.
  • Composition: alloys, woods and soils vary, so table values are typical figures rather than exact constants. Hollow or porous objects have a lower overall density than their material.

Specific gravity is density divided by the density of water. It has no units, so a material with ρ = 2.7 g/cm³ (aluminum) has a specific gravity of 2.7.

Frequently asked questions

What is the formula for density?

Density equals mass divided by volume: ρ = m ÷ V. A 500 g object with a volume of 250 cm³ has a density of 2 g/cm³.

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

Multiply by 1,000. For example, aluminum at 2.7 g/cm³ is 2,700 kg/m³.

Why does ice float on water?

Ice has a density of about 0.917 g/cm³, which is lower than liquid water at about 1.000 g/cm³. Anything less dense than the liquid it is in will float.

What is the densest naturally occurring element?

Osmium, at about 22.6 g/cm³, just ahead of iridium. Both are roughly twice as dense as lead.

How do you calculate mass?

Multiply density by volume: m = ρ × V. With density in g/cm³ and volume in cm³, the answer is in grams.

What is the difference between mass and weight?

Mass is the amount of matter and doesn’t change with location. Weight is the force of gravity on that mass, so it depends on where you are.

How do I find the mass of a liquid?

Measure its volume and multiply by its density. 2 litres of olive oil at 0.91 kg/L has a mass of 1.82 kg.