UTILS.
Private by default
ρ

Density Calculator

Enter any two of density, mass and volume to compute the third using density = mass / volume.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
Enter any two values and the third is calculated automatically.

About this tool

Solve density = mass / volume by entering two values and reading off the third. The calculation runs live in your browser.

The fields are labelled with SI units: density in kg/m³, mass in kg and volume in m³, and the result line is also written in those units. The page opens with mass 2 and volume 0.5, giving 4 kg/m³. The units are only labels, so any consistent set such as g and cm³ gives a density in g/cm³; you just need to read the unit yourself.

The box to solve for is chosen from what is filled in. If mass and volume are both present, the tool always calculates density from them, even when the density box also has a number. To find mass, clear the mass box and enter density and volume. To find volume, clear the volume box and enter density and mass. With fewer than two values a prompt asks for more.

A volume of zero (when solving density) or a density of zero (when solving volume) shows an error instead of dividing by zero. Results are rounded to six decimals and formatted with your language's separators. For reference, water is about 1000 kg/m³; the tool does not include a material table.

Frequently asked questions

What units does it use?
Density in kg/m³, mass in kg and volume in m³ are labelled and used in the result. Any consistent set of units works, but you must read the unit yourself.
Which value does it solve for?
Normally the one you leave blank. If mass and volume are both filled, density is always computed from them, so clear the box you want to solve for.
Why do I see a zero error?
Dividing by zero is not possible. Volume must be non-zero to find density, and density must be non-zero to find volume.
Does it know material densities?
No. There is no built-in table; enter the values you have, for example a known density to find the mass of a given volume.

More tools