Density Calculator

Enter any two of density, mass and volume, and the calculator finds the third. Pick units from metric, US customary and imperial.

Enter only the two values you know. Leave the one you want to find empty.

/
Density —

The three quantities
Density—
Mass—
Volume—
In SI base units
Density—
Mass—
Volume—
The density of a substance changes with temperature, pressure and purity. The result here is a calculation from the values you entered. Values are shown with 7 significant digits (rounded to nearest), and a value that does not come out evenly is labeled "rounded value".

Formulas

Density is the mass per unit of volume. Wikipedia's article on density defines it as the ratio of a substance's mass to its volume (ρ = m/V), gives the SI unit as kilograms per cubic meter (kg/m³), and says that the density of a material varies with temperature and pressure (checked October 31, 2026).

Unit combinations

When a value is 0

Examples

Notes

Sources

The definition of density and its SI unit were checked in the text of the Wikipedia article "Density" on October 31, 2026. The definitions of the mass and volume units are the ones used by the Weight Converter and the Volume Converter on this site, which come from NIST publications: NIST SP 811, Appendix B.8 and NIST Handbook 44, Appendix C.

Frequently asked questions

What is 1 g/cm³ in kg/m³?

1,000 kg/m³ (1 g = 0.001 kg, and 1 cm³ = 0.000001 m³).

What is the density of water?

This calculator does not list densities of substances. They change with temperature, so enter a value that you have checked in a reference.

Why does it say "Undetermined"?

When the mass is 0 and the volume (or the density) is 0 too, the calculation is 0 ÷ 0, and the answer is not a single value.

Why do I get an error when I fill in all three?

The calculator finds the missing quantity from the other two. Leave the one you want to find empty.