Skip to content

Density Calculator

Fill in any two of density, mass and volume, or pick a material. See if it floats.

Fill in any two of density, mass and volume to get the third, or pick a material. See whether it floats in water, plus pressure, water pressure at depth and specific gravity.

Fill in any two. The third is worked out.

ExampleVolume

185.2cm³

0.5 kg of aluminum at 2,700 kg/m³ takes up 185.2 cm³.

Enter your own values to see your result.

Fresh water, 1,000 kg/m³sinksSea water, 1,030 kg/m³sinks
Density in other units
2.7 g/cm³ · 168.6 lb/ft³
Specific gravity
2.7
In US gallons
0.04892 US gal
How this works: 4 sources,

How this works

Method

Density is mass divided by volume, ρ = m ÷ V, solved for whichever of the three is missing, with volumes and masses converted to kilograms and cubic metres first; material densities are OpenStax’s tables. Pressure is force over area, p = F ÷ A; the pressure at a depth in a liquid is p₀ + ρgh; specific gravity is the density over water’s 1,000 kg/m³, and a floating object sits with that share of itself under water.

How it’s tested

9 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.

Privacy

On your device. Nothing you enter or open leaves this browser. About privacy labels

Changes

  • First published: density, mass and volume from any two with a will-it-float drawing, plus pressure, water pressure at depth and specific gravity pages.

Every change on What’s new

How we make toolsReport a mistake

Key facts

  • Density is mass per unit volume; water at 4 °C is 1,000 kg/m³, or 1 g/cm³.
  • Aluminum is 2,700 kg/m³, iron 7,860, lead 11,300 and gold 19,300 (at 0 °C).
  • Ice, at 917 kg/m³, is less dense than water, so it floats with about 92% of it under the surface.

Source: OpenStax University Physics Volume 1, §14.1, Tables 14.1 and 14.2

All 3 calculators

Density · Pressure

Densities of common materials

From OpenStax Tables 14.1 and 14.2: solids and liquids at 0 °C unless noted, air at 0 °C and one atmosphere.

Densities of common materials
Materialkg/m³g/cm³lb/ft³
Water (4 °C)1,000162.43
Water (20 °C)998.20.998262.32
Sea water1,0301.0364.3
Ice9170.91757.25
Olive oil9200.9257.43
Gasoline6800.6842.45
Mercury13,60013.6849
Aluminum2,7002.7168.6
Iron7,8607.86490.7
Copper8,9208.92556.9
Show all 13 rows
Lead11,30011.3705.4
Gold19,30019.31,205
Air (0 °C)1.290.001290.08053

Density tells you how much matter is packed into a space. A litre of water has a mass of about a kilogram; a litre of gold, 19.3 kg; a litre of air, about 1.3 g. It is why a small gold bar is so heavy and why helium balloons rise.

To find the density of an odd-shaped object, weigh it, then measure its volume by the water it pushes aside when you sink it: the rise in a measuring jug, in millilitres, is its volume in cubic centimetres.

Sources

Example numbers are from OpenStax’s worked examples, cited by number; the explanations here are our own.

Common questions

What is the formula for density?

Density is mass divided by volume, ρ = m ÷ V, in kilograms per cubic metre (or grams per cubic centimetre). Rearranged, mass is density times volume and volume is mass divided by density.

How do I use the calculator?

Fill in any two of density, mass and volume, or pick a material to fill in its density, and the third is worked out. Typing a third value lets go of the oldest of the two you typed.

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

Multiply by 1,000: water is 1 g/cm³ or 1,000 kg/m³. Switch the density unit on the field and the calculator converts the number for you.

Why does density change with temperature?

Most things expand as they warm, so the same mass takes more room. Water is odd: it is densest at 4 °C (1,000 kg/m³) and ice, at 917 kg/m³, is less dense than the water it froze from, so it floats.