Math & Statistics

Density Calculator

Enter mass and volume to find density, or use a known density to find the mass or the volume. Mix any units, then compare the result with water and common materials to see whether it would float.

Free, runs in your browserUpdated October 2026
Solve for
Density
–

Density calculator diagram: 500 g in 185 cm³ gives a density of 2.7027 g/cm³, close to aluminium
How the Density Calculator works: Solve for density, mass or volume and see what material it matches.

How to use the density calculator

How to use the density calculator: choose what to solve for, enter mass and volume, read the density
Numbered steps on the Density Calculator. Follow them in order.
  1. Choose what to solve for: density, mass or volume.
  2. Enter the mass and pick its unit, from mg to lb.
  3. Enter the volume and pick its unit, from mL to US gallons.
  4. Read the density, then check kg/m³, lb/ft³, specific gravity and the closest material.

Pick what you want to find. To calculate density, enter the mass and the volume, each in any unit. To find mass, enter the volume and the density, or choose a material from the list to fill in a typical density. To find volume, enter the mass and the density. The result is shown in several units, and the badge tells you whether the object would float in fresh water and which common material it is close to.

Density formula

ρ = m ÷ V    m = ρ × V    V = m ÷ ρ
1 g/cm³ = 1 g/mL = 1 kg/L = 1,000 kg/m³ ≈ 62.428 lb/ft³
Specific gravity = ρ ÷ ρwater

Density tells you how much mass is packed into each unit of volume. The calculator converts everything to kilograms and cubic metres first, so you can mix units freely, for example pounds with liters.

Worked examples

  • Find density: a block has a mass of 500 g and a volume of 185 cm³. ρ = 500 ÷ 185 = 2.7027 g/cm³, very close to aluminium (2.70 g/cm³). It sinks in water.
  • Find mass: 2 L of steel at 7.85 g/cm³ has a mass of 7.85 × 2,000 = 15,700 g, or 15.7 kg.
  • Find volume: 1 kg of gold at 19.32 g/cm³ occupies 1,000 ÷ 19.32 = 51.76 cm³, about the size of a matchbox.

Densities of common materials

Materialg/cm³kg/m³
Air (20 °C, sea level)0.00121.204
Ethanol0.789789
Ice0.917917
Water (20 °C)0.998998
Seawater1.0251,025
Aluminium2.702,700
Steel (typical)7.857,850
Copper8.968,960
Lead11.3411,340
Gold19.3219,320

Values are typical figures near room temperature. Alloys, woods, concrete and fuels vary from sample to sample, so treat them as estimates.

Will it float?

An object floats when its average density is lower than that of the liquid. Ice (0.917 g/cm³) floats in water with about 92% of its volume below the surface, because the submerged fraction equals the ratio of the two densities. A steel ship floats because its hull encloses a lot of air, which lowers its average density below that of seawater.

Measuring volume for density

For regular shapes, measure the dimensions and use the right volume formula. For irregular objects, use water displacement: put the object in a measuring cylinder and read how much the water level rises. One milliliter of displaced water equals one cubic centimeter of volume.

Notes

Density depends on temperature and, for gases, strongly on pressure. Water is densest at about 4 °C (0.99997 g/cm³) and its density at 20 °C, 0.9982 g/cm³, is used here for the float test and specific gravity. Gallons and fluid ounces are US measures.

Frequently asked questions

How do you calculate density?

Divide mass by volume: ρ = m ÷ V. A 300 g object with a volume of 120 cm³ has a density of 2.5 g/cm³.

What is the density of water?

About 1 g/cm³, or 1,000 kg/m³. More precisely it is 0.9982 g/cm³ at 20 °C and 0.99997 g/cm³ at 4 °C.

How do you find mass from density and volume?

Multiply density by volume: m = ρ × V. Make sure the units match, for example g/cm³ with cm³ gives grams.

How do I convert g/cm³ to kg/m³?

Multiply by 1,000. So 2.7 g/cm³ is 2,700 kg/m³.

What is specific gravity?

The ratio of a substance's density to the density of water. It has no units. Anything with a specific gravity below 1 floats in fresh water.