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.