Density Calculator

Density ρ = m ÷ V (kg/m³)—
Density (g/cm³)—
Relative density (to water)—

How Density Calculator is calculated: ρ = m ÷ V; 1 g/cm³ = 1000 kg/m³; relative density = ρ ÷ 1000

What is a Density Calculator?

The Density Calculator is a free online tool that finds the density of a material from its mass and volume — how much matter is packed into each unit of space. School physics and chemistry students working through density, floating and sinking use it when the density of a block, a liquid or a metal, to identify it or to predict whether it floats. Instead of dividing mass by volume and converting between kg/m³ and g/cm³, where the factor of 1000 is easy to lose, you type the mass in kilograms and the volume in cubic metres and the calculator returns the density in kg/m³, the density in g/cm³, and the relative density compared with water straight away.

The working idea is simple. the calculator divides the mass by the volume, then divides by 1000 for the g/cm³ value and the relative density The two density units differ by a factor of 1000, because a cubic metre holds a million cubic centimetres and a kilogram holds a thousand grams. The relative density is the density divided by water's 1000 kg/m³, so water itself has a relative density of 1. There is no sign-up and nothing to install: the page runs entirely in your browser, so your numbers never leave your device.

That matters because density is the property that decides whether things float or sink, and it identifies materials: gold is 19.3 g/cm³, aluminium is 2.7, and water is 1.0 The density of a gas depends strongly on temperature and pressure, so the value here is only meaningful for the conditions the mass and volume were measured in. For solids and liquids it is nearly constant. The rest of this page walks through the formula, the input people get wrong most often, and a worked example with real numbers you can check by hand.

How a Density Calculator works

At its core, the calculator applies density is mass divided by volume. ρ = m ÷ V. The unit is kg/m³, and the older unit g/cm³ is the same number divided by 1000. The relative density, also called specific gravity, is ρ ÷ 1000 kg/m³, which is the density compared with water. The formula box at the top of this page shows the same rule in symbols: ρ = m ÷ V; 1 g/cm³ = 1000 kg/m³; relative density = ρ ÷ 1000.

The calculator divides the mass by the volume for the kg/m³ value, then divides by 1000 for the other two results. The arithmetic is exact; only the two decimals shown are rounded. The volume must be positive — a zero volume would divide by zero, and the calculator shows dashes. A negative mass or volume has no physical meaning here.

The arithmetic is exact, so any error in the answer comes from the measurements of mass and volume, not the calculation A volume converter can help you check the numbers that feed into this step, and it is worth doing that check before you trust an answer that looks surprising.

The calculator does the arithmetic, but the judgement stays with you: check that the inputs are the ones the problem states, that the units match, and that the answer is in the range you expect before you use it anywhere else. A result that surprises you is usually a mistyped input, not a broken formula.

The the volume explained

The volume is the input people get wrong most often, because it must be the volume of the object itself, in cubic metres, and measuring it is harder than weighing the object. A block's volume is length times width times height, an irregular object's is found by water displacement, and a common slip is to enter the volume in cm³ or litres without converting — 250 cm³ is 0.00025 m³, not 0.25 m³, and the factor of a thousand makes the density come out a thousand times too small.

Measure the volume in cubic metres, or convert it: 1 m³ is 1000 litres and a million cm³, so divide litres by 1000 and cm³ by a million. For an irregular object, use the water-displacement method: the rise in the water level is the volume. Check the relative density first: if it is below 1 the object floats in water, and if it is above 1 it sinks. A relative density of 2 means the material is twice as dense as water.

For the defaults, 500 kg in 0.25 m³ gives 2000 kg/m³, or 2.0 g/cm³ — twice as dense as water, so the object sinks, and the material is in the range of concrete or stone. A weight converter is a good cross-check when the input comes from a measurement or a table rather than from a textbook problem.

A worked example

Take the default numbers on this page: a mass of 500 kg in a volume of 0.25 m³.

The density is 500 ÷ 0.25 = 2000 kg/m³, which is 2 g/cm³, and the relative density is 2.

A density of 2 g/cm³ is twice water's, so the material sinks, and it sits in the range of concrete, stone and glass — far below iron at 7.9 and far above wood at about 0.6. Pure water is 1000 kg in 1 m³, giving 1000 kg/m³ and a relative density of 1, which is the reference point for the other two results.

You can check the arithmetic above with a pocket calculator: take the inputs, apply the formula step by step, and compare each intermediate value with the one shown. If a step disagrees, the input that feeds it is usually the cause — a mistyped digit, a wrong unit, or a value entered in the wrong box.

Where the Density Calculator is used

In materials science, density identifies a metal: aluminium is 2.7 g/cm³, iron is 7.9, gold is 19.3, so a density measurement can tell a real gold coin from a fake one.

In shipping, density decides whether a cargo floats: a ship floats because its average density, hull plus air inside, is less than water's, even though steel alone is far denser. A mass flow converter often sits next to it in the same workflow, because the two answers answer different halves of the same question.

In geology, the density of a rock hints at what it is made of: a dense rock is likely to contain iron or other heavy minerals, while a light one is probably porous or rich in silica.

It also helps to keep the units consistent from the first number to the last. Mixing units — metres with centimetres, degrees with radians, seconds with minutes — is the quietest way to get an answer that looks plausible and is wrong by a large factor. Write the unit next to every number you enter, and check the result's unit against the unit you expect before you use the answer anywhere else.

Density Calculator vs Volume Converter

A volume converter changes the unit of a volume — litres to cubic metres, for example — without changing the physics. This calculator finds a density from a mass and a volume, which is a property of the material, not a unit change.

Use the volume converter when you have a volume and need it in another unit. Use this calculator when you have a mass and a volume and need the density of the material. The length converter covers the other side of the same problem, so the two tools complement each other rather than compete.

The two meet in practice: volumes are often measured in litres or cm³, so you convert to m³ with the converter first, then divide the mass by it here to get the density.

Common mistakes with the Density Calculator

The first mistake is entering the volume in the wrong unit. A litre is 0.001 m³ and a cm³ is 0.000001 m³, so entering 250 instead of 0.00025 makes the density a million times too small.

The second mistake is confusing density with weight. A large block of polystyrene can weigh more than a small block of lead, but the lead is far denser — density is mass per volume, not mass alone.

The third mistake is forgetting that density changes with temperature. Water is densest at 4 °C, and a hot gas is far less dense than a cold one, so a density without the conditions is incomplete for gases.

A last mistake is trusting the first answer without a rough check. Before you accept a result, estimate it by hand to one significant figure: if the calculator says 400 and your rough estimate says 40, something is off — usually a misplaced decimal point or a wrong unit. The calculator does the arithmetic; the judgement about whether the answer makes sense still belongs to you.

How to use this Density Calculator

Open the page and enter the mass in kilograms and the volume in cubic metres. Enter the mass in kilograms and the volume in cubic metres. The density appears in both units, plus the relative density to water.

Read the density in kg/m³ as the headline, and the g/cm³ value as the same number in the unit textbooks use — water is 1.0 in that unit. Read the relative density as the float test: below 1 it floats in water, above 1 it sinks, and 1 means it neither floats nor sinks.

Everything runs in your browser. No account, no upload, no data sent anywhere — your numbers never leave your device. If a result looks wrong, re-check the inputs first: a single mistyped number is the usual cause, and a volume converter will confirm the arithmetic.

Frequently Asked Questions

The density is 2000 kg/m³, which is 2 g/cm³, and the relative density is 2 — twice as dense as water, so it sinks.

density is mass divided by volume ρ = m ÷ V. The unit is kg/m³, and the older unit g/cm³ is the same number divided by 1000. The relative density, also called specific gravity, is ρ ÷ 1000 kg/m³, which is the density compared with water.

It is the density of a material divided by the density of water, 1000 kg/m³. Water itself has a relative density of 1, ice is about 0.92, so it floats, and iron is 7.9, so it sinks. It has no unit, because it is a ratio, and it is also called specific gravity.

By water displacement: fill a measuring cylinder with water, note the level, lower the object in, and read the new level. The rise in the level is the object's volume. Archimedes used the same idea to test the king's crown, and it is still the standard method for irregular shapes.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.