Home / Math

Density calculator

Find density, mass or volume when you know the other two.

Density
2
Formula
density = mass ÷ volume

Use matching units: grams with cubic centimeters give grams per cubic centimeter, and kilograms with cubic meters give kilograms per cubic meter. The box for the value you are solving for is ignored.

How this density calculator works

Density tells you how much mass is packed into a given volume. This calculator solves the density formula for whichever value you are missing: choose density, mass or volume, enter the other two, and the answer appears.

The formula

Density = mass ÷ volume. Rearranged, mass = density × volume and volume = mass ÷ density. Keep your units consistent: grams with cubic centimeters give g/cm³, and kilograms with cubic meters give kg/m³.

Worked examples

An object with a mass of 500 g and a volume of 250 cm³ has a density of 2 g/cm³. Water's density is about 1 g/cm³ (1,000 kg/m³), so a liter of water has a mass of about 1 kg. Aluminum is about 2.7 g/cm³, so a 100 cm³ block of aluminum has a mass of about 270 g.

Why density matters

Density explains why things float or sink: an object less dense than water floats, and a denser one sinks. It is also used to identify materials, to work out the weight of a material from its volume (useful for gravel, soil or metal stock), and in science classes everywhere.

Common questions

How do I find the volume of an odd-shaped object? Lower it into a measuring container of water and note how much the water level rises. That rise is the object's volume, and 1 ml equals 1 cm³.

Do I need to convert units? 1 g/cm³ equals 1,000 kg/m³. Converting mass and volume to matching units before you start avoids mistakes.