Free online tools

Density Calculator

Enter two measurements and leave the one you want to find blank. Choose a unit for each measurement, including the result.

Enter your values

This tool processes your input in your browser.

Result

Divide mass by volume to find density

Density describes how much mass occupies a given volume. A sample of 270 g occupying 100 mL has a density of 2.7 g/mL. A milliliter is one cubic centimeter, so this is also 2.7 g/cm³ or 2,700 kg/m³. OpenStax University Physics defines average density as mass per unit volume.

Find mass or volume when you know density

Multiply density by volume for mass. At 2.7 g/cm³, a block with a volume of 40 cm³ has a mass of 108 g. To find volume, divide mass by density. At the same density, 54 g occupies 20 cm³.

Choose the volume that matches your measurement

A solid piece and a container of loosely packed pieces can have different average densities. The container volume includes the spaces between its contents. For a solid sample, use its material volume. For a bulk measurement, use the total volume of the material and spaces as measured.

Frequently asked questions

Can I use different unit systems together?

Yes. Enter the actual unit for each input and select the unit you want for the result. The calculator uses kilograms and cubic meters internally.

Why must the inputs be positive?

This tool models a material with positive mass, positive volume and positive density. Dividing by zero volume or density would be undefined.

Is mass the same as weight?

Mass is the amount measured here in grams, kilograms or pounds of mass. Physical weight is a force and depends on gravity.