Skip to content
Test versionSearch

Mathematics

Mass and volume density

Work out density from mass in kilograms and volume in cubic metres using ρ = m ÷ V. The result is in kg/m³, and an extra mode also shows g/cm³ and volumes in litres.

How it worksFAQRelated tools

Content reviewed:

Enter the mass in kilograms and the volume in cubic metres. You can change every value; the format of decimal results is under More options. Downloads keep your inputs and results, and nothing is saved or sent.

Density is mass divided by volume: ρ = m / V, in kg/m³. Use the mass and volume of the same sample. To convert, 1 g/cm³ equals 1000 kg/m³; water is about 1000 kg/m³.

Decimal results are approximate. Inputs stay in this browser tab.

How it works

The formula and units appear with the result above. Decimal results are rounded for display; you can choose the format under More options.

About this calculation

The calculator finds density by dividing mass by volume, written as ρ = m ÷ V. The main form takes mass in kilograms and volume in cubic metres and gives density in kg/m³. An additional physics mode shows results in kg/m³ and g/cm³, with volumes in cubic metres and litres. You choose the result format and from 0 to 12 decimal places.

You use the measurements of your own sample: there are no preset densities for materials and no corrections for temperature or pressure. Results are floating-point approximations. Inputs may be at most 1e12, positive known quantities must be at least 1e-12, and results go up to 1e18. You can download your values and the results as JSON, printable HTML or TXT, and the current result as TXT or CSV. Nothing is saved or sent automatically.

Example: 10 kg in 2 m³ gives 10 ÷ 2 = 5 kg/m³.

Worked example

With these example values the calculator gives the result below. You can change any value in the form above.

Inputs

Mass (kg)
10
Volume (m³)
2

Result

Density
5 kg/m³

Frequently asked questions

How do I calculate density from mass and volume?

Density is mass divided by volume: rho = mass in kg / volume in m³. The default example of 10 kg and 2 m³ gives 5 kg/m³.

Which units does the density calculator use?

The main calculator uses mass in kg and volume in m³ and gives density in kg/m³. The additional physics mode gives results in kg/m³ and g/cm³, with volumes in m³ and litres.

Can I choose how many decimal places are shown?

Yes. You can choose the result format and displayed decimal places from 0 to 12. Decimal results are approximate.

Does the calculator have material density presets?

No. You supply your own sample data. There are no material-density presets and no temperature or pressure corrections.

What input limits apply in the density mode?

Finite input magnitude is at most 1e12, and positive known quantities must be at least 1e-12. Outputs are floating-point approximations with magnitude at most 1e18.

Can I download or save the result?

Yes. You can download the entered values and original results as JSON, printable HTML or TXT, and the current result as TXT or CSV. Nothing is saved or sent automatically.