Density Calculator
Calculate density (Density = Mass / Volume).
What this calculator does
This tool works out density: the mass of something divided by the space it takes up. Enter the mass in kilograms and the volume in litres, and you get kilograms per litre. Use it for science homework, for checking whether something will float, or for comparing materials such as wood, metal, soil or liquids.
A worked example
Élise runs a small sugar shack in the Beauce region of Quebec. She weighs a full 4-litre can of maple syrup, then takes off the weight of the empty can. The syrup alone is 5.3 kg.
The density is 1.3250 kg/L. That is higher than water, which is about 1 kg/L, so a drop of her syrup sinks to the bottom of a glass of water. She can also use density to compare batches. A batch that comes out lighter for the same volume has more water left in it.
How we work it out
We divide the mass by the volume. Density = mass ÷ volume. The answer is in kilograms per litre, shown to four decimal places.
One kilogram per litre is the same as one gram per millilitre, or one gram per cubic centimetre. It is also 1,000 kilograms per cubic metre, because a cubic metre holds 1,000 litres. So you can read the answer in whichever unit your textbook uses.
Floating and sinking
Water has a density of roughly 1 kg/L. Anything with a lower density floats in water, and anything higher sinks. Ice is about 90% as dense as liquid water. That is why ice cubes float, and why lakes freeze from the top down in winter.
Salt water is denser than fresh water, so things float a little higher in the ocean than in a lake. The density of water also shifts a little with temperature. For most homework these small changes do not matter, but for careful lab work, write down the temperature.
Getting mass and volume right
Use the mass of the material only. Weigh the container empty, then full, and subtract. For an odd shape like a rock, measure its volume by how much water it pushes aside. Fill a measuring cup partway, note the level, drop the rock in, and read the new level. The rise is the rock's volume.
You do not have to convert if you keep your units paired. Grams divided by millilitres gives the same number as kilograms divided by litres. Mixing them, such as grams with litres, gives an answer 1,000 times too big.
Common mistakes
- Ignoring air gaps. A bag of gravel or a box of cereal has a lower density than the solid pieces inside it, because of the air between them.
- Confusing density with weight. A tonne of feathers and a tonne of steel weigh the same. The steel just takes up far less space.
- Entering cubic centimetres as litres. A litre is 1,000 cubic centimetres, so divide first.
- Rounding the volume too much. Small objects have small volumes, and a rough reading can change the answer a lot.
What this does not include
- Temperature, which changes density
- Air pockets in a material
- Mass must be in kilograms and volume in litres, or grams paired with millilitres
- It does not work out volume from the measurements of a shape
- It does not identify a material, since different materials can have similar densities
Common questions
Will it float?
Compare your answer with water, which is about 1 kg/L, the same as 1 gram per cubic centimetre. Anything less dense floats in fresh water, and anything denser sinks. A shape that traps air, like a metal canoe, can float even when the metal itself is far denser than water.
How do I find the volume of a box or cylinder?
Measure it and use the volume calculator. If you measure in centimetres, the answer is in cubic centimetres. Divide that by 1,000 to get litres before you enter it here. If you measure in decimetres, the answer is already in litres.
How is density different from specific gravity?
Specific gravity compares a material's density with the density of water, so it has no units. Because water is about 1 kg/L, the specific gravity of a material is close to its density in kilograms per litre. The hydrometers that home brewers float in their batches measure it.
How do I get kilograms per cubic metre?
Multiply the answer by 1,000. A cubic metre holds 1,000 litres, so a material at 1 kg/L has 1,000 kg in every cubic metre. Builders and engineers often use kilograms per cubic metre for concrete, soil and gravel.
Does a bigger piece have a higher density?
No. Cutting a block of wood in half halves both its mass and its volume, so the density stays the same. Density belongs to the material, not to the size of the object. That is what makes it useful for telling materials apart.
Sources
- Water Density, U.S. Geological Survey, Water Science School
- NIST Guide to the SI, Chapter 5: Units Outside the SI, National Institute of Standards and Technology
Last reviewed October 18, 2026. How we check our numbers.
This is an estimate to help you plan. It is not financial, medical, or legal advice. Talk to a professional before you make a big decision.