Uni-Sine
Physics
+25XP
PhysicsThermal physics and matter

Density calculator

A density calculator works out how much mass is packed into each unit of volume. Density = mass ÷ volume, written ρ = m/V. Our Density Calculator finds density from mass and volume, or uses a known density to find the mass or the volume, and tells you which common materials are nearest and whether your object would float in water.

This page is about the density of materials in physics and chemistry. Searches such as density altitude, freight density or population density use the same idea of an amount per unit, but different formulas.

Try it

Density Calculator

Find density, mass or volume and compare materials

Go to its page

How to use the density calculator

  1. Choose what to find: Density, Mass or Volume.
  2. Choose your units. Mass can be in g, kg, tonnes or lb; volume in mm³, cm³, mL, L or m³; and density in kg/m³, g/cm³, g/L, kg/L or lb/ft³.
  3. Type the two values you know. When density is an input, you can pick a material instead, from air to gold.
  4. Read the answer, with the formula and the numbers put in, and the answer in other units underneath.
  5. Check the comparison: how many times denser than water it is, whether it floats or sinks, and the nearest materials either side of it.

A scale of common materials, from air to gold, marks where your density sits. For practice, Practice and help sets density, mass and volume questions, plus questions on floating and on what happens to density when an object is cut in half.

The density formula

\rho = \frac{m}{V}ρ (rho) is density, m is mass and V is volume

Rearranged, mass = density × volume (m = ρV) and volume = mass ÷ density (V = m/ρ). A formula triangle with m on top and ρ and V underneath gives all three.

Density units

UnitIn kg/m³Typical use
kg/m³1Physics, the SI unit
g/cm³1,000Chemistry and small samples
g/mL1,000Liquids, same as g/cm³
kg/L1,000Liquids, same as g/cm³
lb/ft³about 16.02US engineering

To change g/cm³ to kg/m³, multiply by 1,000: water is 1 g/cm³, or 1,000 kg/m³. Pick g/cm³ in the calculator and it converts for you.

Worked examples you can check in the calculator

Example 1: finding density

A metal bar has a mass of 81 g and takes up 30 cm³. What is its density, and what might it be made of?

\rho = \frac{81}{30} = 2.7\ \text{g/cm}^3 = 2{,}700\ \text{kg/m}^3

In the calculator, set the units to g and cm³ and type 81 and 30. It gives 2,700 kg/m³ and says this is the same as aluminium in its list, and that the bar sinks in water.

Example 2: finding mass

A steel beam has a volume of 0.05 m³. Steel's density is 7,850 kg/m³. What is its mass?

m = \rho V = 7850 \times 0.05 = 392.5\ \text{kg}

Choose Mass, pick Steel as the material, and type 0.05 m³.

Example 3: finding volume

What volume does 1.5 kg of petrol take up? Petrol's density is 750 kg/m³.

V = \frac{m}{\rho} = \frac{1.5}{750} = 0.002\ \text{m}^3 = 2\ \text{L}

Example 4: an irregular object

To find the volume of an odd shape, lower it into a measuring cylinder of water and see how far the level rises. A metal nut raises the water from 50.0 mL to 62.5 mL, so its volume is 12.5 cm³, and its mass is 112 g:

\rho = \frac{112}{12.5} = 8.96\ \text{g/cm}^3

That matches copper in the calculator's list. This is the displacement method, used in school practicals to measure the density of solids.

Check you have the formula:

practice
Pick an answer, then check it.
A stone has a mass of 300 g and a volume of 120 cm³. What is its density?

Will it float? Density and water

An object floats in water if its average density is less than water's, 1,000 kg/m³, and sinks if it is more. The calculator says "Floats" or "Sinks" for every result.

MaterialDensity (kg/m³)In water
Cork240Floats
Oak750Floats
Ice917Floats
Water1,000Neither
Aluminium2,700Sinks
Steel7,850Sinks
Gold19,300Sinks

These are the values in the calculator's materials list. Ice floats, but only just: its density is 917 ÷ 1,000 = 0.917 times water's, so about 92% of a block of ice sits under fresh water. A steel ship floats because its average density, including all the air inside its hull, is less than water's.

Density does not change when you cut something

Density is a property of the material, not of the object. Cut a block in half and both its mass and its volume halve, so mass ÷ volume stays the same. Changes of temperature or state do change density: most substances are less dense as liquids than as solids, but water is unusual, because ice is less dense than liquid water.

Common mistakes

  • Dividing the wrong way. Density is mass ÷ volume, not volume ÷ mass.
  • Mixing units. Grams with m³, or kilograms with cm³, gives an answer off by a factor of 1,000 or a million. Match the units, or set them in the calculator.
  • Getting the g/cm³ conversion backwards. 1 g/cm³ = 1,000 kg/m³, so 2.7 g/cm³ is 2,700 kg/m³, not 0.0027.
  • Using the water level, not the rise. In the displacement method, the volume is the change in level.
  • Thinking heavy things always sink. Floating depends on density, not on mass. A huge log floats; a small pebble sinks.

Practise density in a short timed paper

Density comes up in High School Physics and Grade 8 Physical Science practice, and in GCSE Physics Higher in the UK. Each daily paper is a short timed paper of 8 questions worth 25 to 35 marks, and the papers mix topics. For pressure in liquids, which uses density too, try the Pressure Calculator.

Common questions

How do you calculate density?
Divide the mass by the volume: ρ = m ÷ V. For 81 g in 30 cm³, the density is 2.7 g/cm³.
What is the density of water?
About 1,000 kg/m³, which is 1 g/cm³ or 1 g/mL. The exact value changes a little with temperature.
How do you find mass from density?
Multiply the density by the volume: m = ρ × V, with matching units.
How do you find volume from density?
Divide the mass by the density: V = m ÷ ρ.
How do you convert g/cm³ to kg/m³?
Multiply by 1,000. 1 g/cm³ = 1,000 kg/m³.
Why does ice float?
Ice is less dense than liquid water, about 917 kg/m³ against 1,000 kg/m³, because freezing locks the water molecules into a spaced-out crystal pattern.

Revision cards

Say the answer first, then flip the card to check it.

Where to go next

  • Solve it

    Density Calculator

    Find density, mass or volume and compare materials

    Open the tool
  • Test it

    High School Physics

    A new exam-style paper every day, with instant marking and a mark scheme

    Start today's paper
  • Test it

    Grade 8 Physical Science

    A new exam-style paper every day, with instant marking and a mark scheme

    Start today's paper
Read next
Maths · StatisticsFrequency density formula: how to work it outThe frequency density formula, how to work it out for a histogram with unequal class widths, reading frequencies back, estimating from bars, and practice.