Science & Units

Density Calculator

Density, mass or volume, with unit conversion.

Runs entirely in your browser. Nothing you type is sent to our servers.

About the Density Calculator

Density tells you how much mass is packed into a given space. It is why a steel bolt sinks and a large log floats, and it is one of the first formulas in chemistry and physics labs: density equals mass divided by volume.

This calculator solves the formula for whichever value you are missing. It converts units as it goes, so you can enter grams and liters together, and it compares your result with water and with common materials as a sanity check.

How to use it

  1. Choose what you want to find: density, mass or volume.
  2. Enter the other two values and pick their units.
  3. Read the answer, the working and the result in g/cm³ and kg/m³.
  4. Check the "closest common material" card. A metal block that comes out at 0.5 g/cm³ points to a measurement mistake.

The formula

ρ = m ÷ V
m = ρ × V
V = m ÷ ρ

ρ (rho) is density, m is mass and V is volume. 1 g/cm³ = 1 g/mL = 1,000 kg/m³. Water is about 1.00 g/cm³, so anything denser sinks in it.

Worked examples

Identifying a metal

A block has a mass of 54 g and a volume of 20 cm³: ρ = 54 ÷ 20 = 2.7 g/cm³, the density of aluminum.

Finding mass

Olive oil has a density of 0.92 g/mL. 500 mL of it has a mass of 0.92 × 500 = 460 g.

Finding volume

Gold is 19.32 g/cm³. A 1 kg bar takes up 1000 ÷ 19.32 = 51.8 cm³, about the size of a small matchbox.

Frequently asked questions

What are the units of density?

Mass per volume. Labs usually use g/cm³ or g/mL, which are the same. SI units are kg/m³. The US sometimes uses lb/ft³.

How do I find the volume of an irregular object?

Use water displacement: put it in a measuring cylinder of water and read how much the level rises. 1 mL of rise equals 1 cm³ of volume.

Why does ice float?

Ice is about 0.917 g/cm³, less dense than liquid water at 1.00 g/cm³. Water is unusual: most substances are denser as solids.

Does temperature change density?

Yes, a little. Most materials expand when heated, so their density drops. The values here are for room temperature.

Is density the same as weight?

No. Weight depends on how much material there is. Density is a property of the material itself, so a small and a large gold bar have the same density.