Calculators

Density Calculator

Solve for density, mass, or volume from the other two values with consistent units locally in your browser.

Choose what to solve for, then enter the other two values using consistent units (for example, kilograms with litres, or grams with cubic centimetres). Calculations run locally in your browser; your values are not uploaded or stored.

Your density, mass, and volume result will appear here.

Solve the density, mass, and volume triangle without uploading anything.

Choose whether to solve for density, mass, or volume, then enter the other two values with consistent units. The calculator applies density = mass ÷ volume, mass = density × volume, or volume = mass ÷ density and shows the worked formula. Everything runs locally in your browser, so your values are not uploaded or stored.

Frequently Asked Questions

Everything you need to know about this tool, how it works, and privacy.

Which formulas does the density calculator use?

It uses density = mass ÷ volume, mass = density × volume, and volume = mass ÷ density. For example, 10 mass units in 2 volume units gives a density of 5 mass units per volume unit.

Which units should I use?

Use the same mass and volume units on both inputs, such as kilograms with litres or grams with cubic centimetres. The answer is reported in the matching combined unit, for example kilograms per litre.

Which inputs are accepted?

Enter values of zero or greater up to 1,000,000,000,000. Volume must be greater than zero when solving for density, and density must be greater than zero when solving for volume. Missing or non-numeric entries show a clear error instead of a result.

Do my values stay private?

Yes. The calculation and copy action run locally in your browser. CodeASystem does not upload or store the values you enter.