Density Calculator
Calculate density from mass and volume, with common unit conversions.
Each substitution is shown so you can check the arithmetic.
Enter values to see the step-by-step working.
Density formula
The live calculator applies this equation with full precision and rounds only for display.
What the variables mean
m = mass; V = volume.
Worked example
2 kg occupying 0.001 m³ has a density of 2,000 kg/m³, or 2 g/cm³.
How to interpret the result
Density compares how much mass is packed into a volume. Objects with density below the surrounding fluid float; above it, they sink.
Common mistakes
- Use SI units throughout: metres, kilograms, seconds, newtons, joules and kelvin. Mixing centimetres with metres or grams with kilograms is the classic source of factor-of-10 and factor-of-1,000 errors. Angles in trigonometry are usually radians in code but degrees in everyday use.
Frequently asked questions
What formula does this calculator use?
Are the results rounded?
Is this calculator free to use?
The formula, classification ranges and assumptions on this page follow the definitions and guidance of the bodies below.
- NIST CODATA — Fundamental physical constantsValues used for gravity, light speed and other constants in the physics calculators.
- OpenStax — College Physics 2ePeer-reviewed open textbook used to check equation forms and units.
How these are used: sources and standards.
Reviewed November 2026 · This tool is for education and estimation. See the disclaimer and methodology.
Need the theory behind density?
Read the formula entry for the derivation, units and related equations.