How to Calculate Density: Formula, Steps, and Examples
By Shihab Mia July 11, 2026 6 min read
Quick answer
To calculate density, divide mass by volume: density = mass / volume, or rho = m / V. Measure mass with a scale (grams or kilograms) and volume by geometry or water displacement (cubic centimeters or cubic meters), then divide. For example, 200 g in 100 cm3 gives a density of 2 g/cm3. Water is 1 g/cm3.
Density tells you how much mass is packed into a given amount of space. It is one of the most useful numbers in science, engineering, cooking, and shipping, because it explains why a small lump of lead feels heavy while a large block of foam feels light. The good news is that the math is simple: you only need two measurements and one division.
What is the density formula?
The density formula is density = mass / volume, written in symbols as rho = m / V, where rho (the Greek letter) stands for density, m is mass, and V is volume. Divide the object's mass by the space it takes up and you have its density.
Because it is a single equation with three quantities, you can rearrange it to solve for whichever value you are missing:
- Density = mass / volume (find how tightly packed something is)
- Mass = density x volume (find how heavy a known volume will be)
- Volume = mass / density (find how much space a known mass fills)
These three forms come from the same relationship, so learning one gives you all three. If algebra is not your favorite, our average calculator and other tools handle the arithmetic while you focus on the setup.
What units is density measured in?
The SI unit of density is kilograms per cubic meter (kg/m3), but in the lab and classroom grams per cubic centimeter (g/cm3) is far more common because everyday objects are small. Both describe the same thing, and converting between them is straightforward: 1 g/cm3 equals 1000 kg/m3.
Water is the easiest reference point to memorize. Pure water has a density of 1 g/cm3, which is the same as 1000 kg/m3. Anything with a density below 1 g/cm3 will float on water, and anything above it will sink. That single fact explains ice cubes floating, oil sitting on top of vinegar, and a steel bolt dropping straight to the bottom.
Common density units and how they compare
| Unit | Where it is used | Water equals |
|---|---|---|
| g/cm3 | Chemistry, physics labs, classrooms | 1 g/cm3 |
| kg/m3 | SI standard, engineering | 1000 kg/m3 |
| g/mL | Liquids (1 mL = 1 cm3) | 1 g/mL |
| kg/L | Fluids and fuels | 1 kg/L |
| lb/ft3 | US construction and shipping | about 62.4 lb/ft3 |
How to calculate density step by step
To calculate density, measure the mass, measure the volume, then divide mass by volume. Here is the full process with a worked example using a metal block that weighs 540 grams and measures 10 cm by 3 cm by 2 cm.
- Measure the mass. Place the object on a scale or balance and record the reading. In our example the block weighs 540 g.
- Measure the volume. For a regular shape, multiply the dimensions: 10 cm x 3 cm x 2 cm = 60 cm3. For an irregular shape, use water displacement (see below).
- Divide mass by volume. density = 540 g / 60 cm3 = 9 g/cm3.
- Add the units. Always write the unit, here 9 g/cm3, so the number is meaningful. A bare number like 9 tells the reader nothing.
- Sanity check. Compare to a known material. At 9 g/cm3 this block is close to copper (about 8.96 g/cm3), which is a believable result for a dense metal.
If you would rather skip the arithmetic, drop your two numbers into a tool and read the answer directly. Calculating volume first is often the trickier half, so nail that measurement before you divide.
Finding volume for irregular shapes
For an object that is not a neat box or sphere, use water displacement. Fill a measuring cylinder with water, note the level, lower the object in fully, and note the new level. The difference in the two readings is the object's volume, because the object pushes aside exactly its own volume of water. A rise from 50 mL to 85 mL means a volume of 35 mL, which equals 35 cm3.
Worked example: is the ring solid gold?
Density is a classic way to test what a material really is. Suppose a ring has a mass of 30 g and displaces 2.1 mL of water. Its density is 30 g / 2.1 cm3 = about 14.3 g/cm3. Pure gold has a density near 19.3 g/cm3, so this ring is too light to be solid gold. It is likely an alloy or gold-plated over a lighter metal. No chemistry required, just a scale and a cylinder of water.
This is why density is prized in quality control and geology. Every pure substance has a characteristic density, so measuring it narrows down what you are holding.
Reference densities of common materials
Keeping a few reference values in mind helps you judge whether your calculated answer is reasonable. These are approximate values at room temperature.
Approximate density of everyday materials
| Material | Density (g/cm3) | Density (kg/m3) |
|---|---|---|
| Air (sea level) | 0.0012 | 1.2 |
| Cork | 0.24 | 240 |
| Ice | 0.92 | 920 |
| Water | 1.00 | 1000 |
| Aluminum | 2.70 | 2700 |
| Iron | 7.87 | 7870 |
| Lead | 11.34 | 11340 |
| Gold | 19.30 | 19300 |
Common mistakes to avoid
Most density errors come from units and measurement, not from the division itself. Watch out for these:
- Mixing units. Do not divide grams by cubic meters. Keep mass and volume in matching systems, then convert the final answer if needed.
- Confusing mass and weight. A scale reading in grams is mass, which is what the formula needs. Weight in newtons is a force and is not the same thing.
- Forgetting to subtract the container. When weighing a liquid, zero the scale with the empty container first, or subtract its mass afterward.
- Trapped air bubbles. In water displacement, bubbles clinging to a rough object inflate the volume and lower your density. Tap the object to release them.
- Ignoring temperature. Density changes with temperature, especially for gases and liquids. Reference values assume around 20 to 25 degrees Celsius.
Good to know
Density and specific gravity are closely related. Specific gravity is an object's density divided by the density of water, so it has no units. A material with a density of 2.7 g/cm3 has a specific gravity of 2.7, meaning it is 2.7 times as dense as water. Because water is 1 g/cm3, the two numbers look identical in g/cm3, which is why the terms are often confused.
Density also connects to other physics topics you may be studying. If you are working through mechanics, our guides on the kinetic energy formula and the momentum formula use the same measure and rearrange approach you just practiced here.
โ๏ธ Try the free tool Density Calculator Free density calculator solves density = mass / volume. Enter any two of density, mass and volume, pick your units, and get results in g/cm3 and kg/m3 instantly.Density is one of the simplest yet most revealing calculations in science. Measure the mass, measure the volume, divide one by the other, and label your answer with units. With the reference values and worked examples above, you can now compute density confidently, check whether your result makes sense, and even use it to identify materials. Bookmark the calculator for the times you just want a fast, accurate answer.