Density Calculator

Enter any two of mass, volume or density to solve for the third.

Inputs
Results
Density
2,000 kg/m³
Density
2 g/cm³
Formula
ρ = m ÷ V.
Example

2 kg in 1 L → 2000 kg/m³ (2 g/cm³).

About the Density Calculator

The Density Calculator applies the standard physics, chemistry, or engineering formula for density and returns a numeric answer with the correct units. It's aimed at students, teachers, and working engineers who need a quick, dependable calculation without opening a full CAS.

Constants are taken from CODATA / NIST reference values and rounded to the precision most useful for classroom and applied work. If you need higher precision, the formula shown below the Density Calculator lets you verify by hand.

  • SI-first inputs with imperial options where they apply
  • Answers labeled with units and, where useful, scientific notation
  • Published formula visible on the page for verification
  • No hidden assumptions — every input is exposed

How to use the Density Calculator

Enter every value in the units listed next to each field. The Density Calculator does not silently convert between systems mid-calculation, so mixed units produce a warning rather than a wrong answer.

For teaching, work through the formula shown under the results by hand, then confirm your answer against the Density Calculator. This is a fast way to catch algebra mistakes without waiting on a marker.

Precision and limitations

The Density Calculator uses double-precision floating-point math, which is accurate to about 15 significant figures — more than enough for undergraduate coursework and most engineering calculations involving density.

Edge cases (division by zero, negative logarithms, out-of-range temperatures) are guarded, so the Density Calculator surfaces a clear message rather than silently returning ±Infinity or NaN.

Frequently asked questions