StatGardenREF. DESK
Calculators/Physics/Density, mass & volume
Physics

Density, mass & volume calculator

Any one of the three from the other two.

Published 5 August 2026 · Updated 21 September 2026

What this calculator does

Density is mass divided by volume, and it is what determines whether something floats, how heavy a given quantity of material will be, and whether two substances will mix or separate into layers.

The convenient reference point is water, at almost exactly 1 gram per cubic centimetre. Anything denser than that sinks in water and anything less dense floats, which is why the calculator reports the ratio directly.

The formula

Formulaρ = m/V; m = ρV; V = m/ρ

Divide mass by volume. Working in grams and cubic centimetres gives a figure that compares directly against water at 1.0, and multiplying by 1,000 converts it to kilograms per cubic metre.

TermMeaning
Density (ρ)Mass per unit volume. The same material has the same density regardless of how much of it there is.
Relative densityDensity compared with water. Above 1 sinks, below 1 floats.
g/cm³ and kg/m³Two common units for the same quantity. One gram per cubic centimetre is exactly 1,000 kilograms per cubic metre.

The inputs explained

FieldWhat to enter
Mass (g)The mass of the sample, in grams.
Volume (cm³)The volume the sample occupies, in cubic centimetres. One millilitre is one cubic centimetre.

When to use it

Identifying a material

Density is a property of the substance rather than of the sample, so measuring it is a quick way to narrow down what something is made of.

Working out the weight of a quantity

Knowing density converts a volume of material into a mass, which is what matters for transport and load limits.

Predicting whether something floats

Comparing against water settles the question immediately, without needing to test it.

Worked examples

Every figure in the tables below is produced by this page’s own calculator at build time, so the numbers and the tool always agree. Select any row to load that scenario.

What densities do common sample sizes give?

The same volume at a range of masses.

Volume fixed at 200 cm³
MassDensityIn kg/m³
100 g0.5000 g/cm³500.0
200 g1.000 g/cm³1,000.0
500 g2.500 g/cm³2,500.0
1000 g5.000 g/cm³5,000.0
A 200 g sample occupying 200 cm³ has a density of exactly 1.000 g/cm³, the same as water. The 500 g sample at 2.500 g/cm³ is in the range of glass and stone; 1,000 g at 5.000 is denser than most common metals other than lead.

Questions

Why does the same material always have the same density?

Because density is a ratio. Taking twice as much of a substance gives twice the mass in twice the volume, so the ratio between them does not change. That is what makes it useful for identifying materials.

Does density change with temperature?

Yes, though usually slightly. Most materials expand when heated, which increases volume while mass stays the same, so density falls. Water is unusual in being densest at about 4°C rather than at freezing.

Why is water the reference?

Partly convenience and partly history: the gram was originally defined so that one cubic centimetre of water has a mass of one gram. It makes relative density easy to read straight off the figure.

Does a hollow object still follow this?

The calculation gives the average density of whatever occupies the volume, air included. That is exactly why a steel ship floats: the hull encloses enough air that the average density of the whole vessel is below that of water, even though steel itself is far denser.

For whether something will float and by how much, see the buoyancy calculator. For pressure produced by a column of liquid, see the pressure calculator.