How to Calculate Density: Equation, Units and Measuring Methods
Learn how to calculate density, convert between g/cm³ and kg/m³, measure the density of solids and liquids in the lab, and explain why objects float or sink.
Published · 7 min read
On this page
Density is the mass of each unit of volume of a material. To calculate it, divide the mass by the volume:
Here ρ (the Greek letter rho) is the density, m is the mass and V is the volume. In SI units, mass is in kilograms (kg), volume is in cubic metres (m³) and density is in kg/m³. In the lab you will often use grams and cubic centimetres instead, which gives density in g/cm³.
To convert from g/cm³ to kg/m³, multiply by 1000. Water has a density of 1.0 g/cm³, which is 1000 kg/m³. An object floats in water if its density is less than this, and sinks if its density is more.
This guide shows you how to calculate density, how to measure it for solids and liquids, and how it explains floating and sinking.
What does density actually tell you?
Density tells you how much mass is packed into a given space. A 1 cm³ cube of gold has a mass of about 19 g. A 1 cm³ cube of pine wood has a mass of about 0.5 g. The cubes are the same size, but the gold is nearly 40 times as dense.
Density depends on how heavy the particles are and how closely they are packed. Gases have very low densities because their particles are far apart.
| Material | Density (kg/m³) | Density (g/cm³) |
|---|---|---|
| Air (at room temperature) | 1.2 | 0.0012 |
| Pine wood (varies) | about 500 | about 0.5 |
| Ice (at 0 °C) | 917 | 0.917 |
| Water | 1000 | 1.00 |
| Sea water | 1030 | 1.03 |
| Aluminium | 2700 | 2.7 |
| Iron | 7900 | 7.9 |
| Lead | 11 300 | 11.3 |
| Gold | 19 300 | 19.3 |
Even air has mass. A classroom 8.0 m long, 6.0 m wide and 3.0 m high holds 144 m³ of air. Its mass is . That is more than twice the mass of a typical adult.
How do you convert between g/cm³ and kg/m³?
A cube 1 m along each side is 100 cm along each side. So its volume is 100 × 100 × 100 = 1 000 000 cm³. And 1 kg is 1000 g. Putting these together:
- g/cm³ to kg/m³: multiply by 1000. For example, 2.7 g/cm³ = 2700 kg/m³.
- kg/m³ to g/cm³: divide by 1000. For example, 920 kg/m³ = 0.92 g/cm³.
Also useful: 1 ml = 1 cm³, and 1 litre = 1000 cm³ = 0.001 m³.
How do you find the density of a regular solid?
For a block, cylinder or other regular shape:
- Measure the mass on a digital balance.
- Measure the dimensions with a ruler. For small objects, vernier calipers give more precise readings.
- Calculate the volume. For a cuboid, V = length × width × height. For a cylinder, .
- Calculate the density with .
Worked example 1: identifying a metal block
A student in Johannesburg has a metal block measuring 5.0 cm × 4.0 cm × 2.0 cm. Its mass is 108 g. Find its density and identify the metal using the table above.
Volume: V = 5.0 × 4.0 × 2.0 = 40 cm³
Equation:
Substitution:
Answer: ρ = 2.7 g/cm³ = 2700 kg/m³. The block is probably aluminium.
Check in SI units: the volume is 0.050 × 0.040 × 0.020 = m³ and the mass is 0.108 kg. Then . Both routes give the same answer.
How do you find the density of an irregular solid?
A stone or a key has no simple formula for its volume. Instead, you measure the volume of water it pushes aside. This is the displacement method.
Using a measuring cylinder (for objects that fit inside):
- Half-fill a measuring cylinder with water and read the volume.
- Tie the object to a thin thread and lower it gently until it is fully under the water.
- Read the new volume. The difference is the volume of the object.
Using a eureka can (also called an overflow can, for larger objects):
- Fill the can with water until it drips out of the spout. Wait for it to stop.
- Put an empty measuring cylinder under the spout.
- Lower the object into the can. The water that overflows has the same volume as the object.
For accurate readings, read the bottom of the meniscus with your eye level with the water surface. Make sure no air bubbles cling to the object.
Worked example 2: a stone from a river
A student in Kathmandu finds a stone in a river. Its mass is 156 g. The water in a measuring cylinder rises from 40 cm³ to 100 cm³ when the stone is lowered in. Find its density.
Volume of stone: V = 100 − 40 = 60 cm³
Equation:
Substitution:
Answer: ρ = 2.6 g/cm³ = 2600 kg/m³. This is a typical value for rock.
You can practise both displacement methods, and read the meniscus, in the density measurement simulation.
How do you find the density of a liquid?
- Measure the mass of an empty measuring cylinder.
- Pour in some liquid and read its volume.
- Measure the mass of the cylinder and liquid together.
- Subtract to find the mass of the liquid alone.
You can also place the empty cylinder on the balance and press "zero" (tare) before you pour. Then the balance shows the mass of the liquid directly.
Worked example 3: cooking oil
An empty measuring cylinder has a mass of 120.0 g. With 50.0 cm³ of cooking oil inside, the total mass is 166.0 g. Find the density of the oil.
Mass of oil: 166.0 − 120.0 = 46.0 g
Equation:
Substitution:
Answer: ρ = 0.920 g/cm³ = 920 kg/m³
The oil is less dense than water, so it floats on top. You can see this in any frying pan with a few drops of water in it.
Why do some objects float and others sink?
An object floats in a liquid if its average density is less than the density of the liquid. If its average density is greater, it sinks.
- Ice floats on water because 917 kg/m³ is less than 1000 kg/m³. Most of an iceberg sits below the surface, because ice is only a little less dense than sea water.
- A steel ship floats even though steel is much denser than water. The hull is hollow and full of air, so the average density of the whole ship is less than that of water.
- Swimmers float more easily in the Dead Sea. The water there is very salty, so it is much denser than fresh water.
- A hot-air balloon rises because the hot air inside makes its average density less than that of the cooler air around it.
When an object floats, the upward force from the liquid, called upthrust, equals the object's weight. Explore how density and upthrust decide whether an object floats in the upthrust and floating simulation.
Common mistakes
- Dividing the wrong way. Density is mass ÷ volume, not volume ÷ mass.
- Converting cm³ to m³ by dividing by 100. Divide by 1 000 000.
- Mixing units. Do not divide grams by cubic metres. Use g with cm³, or kg with m³.
- Forgetting to subtract. In displacement, the volume of the object is the change in reading. For a liquid, subtract the mass of the empty container.
- Reading the top of the meniscus. Read the bottom, at eye level.
- Saying heavy objects always sink. A huge ship floats. What matters is density, not mass.
Key points
- Density = mass ÷ volume, .
- The SI unit is kg/m³. To convert g/cm³ to kg/m³, multiply by 1000.
- Regular solid: measure the dimensions and calculate the volume.
- Irregular solid: find the volume by displacement, using a measuring cylinder or a eureka can.
- Liquid: measure its volume, and find its mass by subtraction.
- An object floats if its average density is less than the density of the liquid.