Density Calculator

Density describes mass per unit of volume. Choose which quantity you want to solve, then supply the other two with compatible units; be careful not to mix volume and mass units.

Quick answer. Density is mass divided by volume. A 50 lb block of 2 cubic feet is 400.46 kg/m³, well below the 1,000 kg/m³ of water, so it floats. 600 g in 200 cm³ is 3 g/cm³.

The density equation

Density is mass per unit of volume: ρ = m ÷ V. Rearranged, volume is m ÷ ρ and mass is ρ × V. Pick which of the three you want, enter the other two with their units, and the calculator does the conversions for you. The answer is shown in the unit you choose, and also in kilograms per cubic metre, litres or kilograms where that helps.

Worked example with the default numbers

The page opens on a block with a mass of 50 lb and a volume of 2 ft³, solving for density in kg/m³. First convert the units: 50 lb × 0.45359237 = 22.679619 kg, and 2 ft³ × 0.028316846592 = 0.056634 m³. Then density = 22.679619 ÷ 0.056634 = 400.461584 kg/m³. For comparison, water is 1,000 kg/m³, so the block is about 40% as dense as water and would float.

Another example from the other direction: a block of 600 g that takes up 200 cm³ has a density of 600 ÷ 200 = 3 g/cm³.

The same density in different units

A density number means little without its unit. Fresh water, at about 1,000 kg/m³, can be written all of these ways:

UnitWater
kg/m³1,000
g/cm³ and kg/L1
lb/ft³62.427961
lb/in³0.036127
lb/gal (US)8.345404
lb/gal (UK)10.022413

Always check the unit next to your result rather than the number alone.

Densities of common materials

These are typical values at room temperature, rounded. Real samples vary with composition, alloy and temperature, so use your own data when accuracy matters.

MaterialDensity (kg/m³)Specific gravity (water = 1)
Air (20°C)1.20.001
Gasoline (approx.)7400.74
Olive oil9150.915
Ice9170.917
Fresh water1,0001
Seawater (approx.)1,0251.025
Concrete (approx.)2,4002.4
Aluminium2,7002.7
Steel7,8507.85
Copper8,9608.96
Lead11,34011.34
Mercury13,53413.534
Gold19,32019.32
Densities of common materials (kg/m³)Gold is almost 19 times as dense as water, while the default block, at 400.5 kg/m³, is well under half.Densities of common materials (kg/m³)Olive oil915Ice917Fresh water1,000Seawater (approx.)1,025Concrete (approx.)2,400Aluminium2,700Steel7,850Copper8,960Lead11,340Mercury13,534Gold19,320
Metals are several times denser than water.

Solving for mass

Choose Mass, then enter the density and the volume. A steel plate of 0.5 m by 0.5 m and 10 mm thick has a volume of 0.0025 m³. At 7,850 kg/m³ its mass is 7,850 × 0.0025 = 19.625 kg. The result can be shown in kilograms, grams, milligrams, metric tons, pounds, ounces or carats.

Solving for volume

Choose Volume, then enter the density and the mass. How much room does 1 kg of gold take? Volume = 1 ÷ 19,320 = 0.0000517598 m³, or 51.76 cm³, about the size of a small cube 3.7 cm on a side. The table shows 1 kg of other metals.

Volume of 1 kg of each metal (cm³)The denser the material, the less room a kilogram takes: 370.4 cm³ of aluminium against 51.8 cm³ of gold.Volume of 1 kg of each metal (cm³)Aluminium370.4 cm³Steel127.4 cm³Lead88.2 cm³Gold51.8 cm³
A kilogram of dense metal is surprisingly small.
MetalVolume of 1 kg (cm³)
Aluminium370.4
Steel127.4
Lead88.2
Gold51.8

Will it float?

An object floats in a liquid if its density is less than the liquid’s. Fresh water is about 1,000 kg/m³ and seawater about 1,025, which is why it is easier to float at sea. A floating object sinks until it displaces its own weight of liquid, so the share below the surface is its density divided by the liquid’s. The default block (400.5 kg/m³) sits 40% below the water line.

Share of an object that sits below the water line when it floats (percent)A floating object sinks until it displaces its own weight of water, so the share below the surface equals its density divided by the water’s: 40% for the default block.Share of an object that sits below the water line when it floats (percent)Default block40%Ice92%Oak (typical)70%
Density sets how deep a floating object sits.

Everyday uses

  • Water by the gallon. A US gallon of water weighs about 8.35 lb, so a 20-gallon aquarium holds about 167 lb of water, before the tank, sand and decorations, and a 55-gallon drum holds about 459 lb.
  • Water by the cubic foot. A cubic foot of water weighs 62.43 lb, or 28.32 kg, and a cubic yard (27 cubic feet) weighs about 1,686 lb. That is why a swimming pool or a concrete slab needs a strong base.
  • Cooking and shopping. A litre of water has a mass of 1 kg, but a litre of olive oil has a mass of 0.915 kg, which is why oil floats on water.
  • Shipping and materials. A supplier may quote a material by weight while you measure by volume. Density is the bridge, so enter the volume you measured and read off the mass.

Density and specific gravity

Specific gravity is a material’s density divided by the density of water, so it has no unit. A specific gravity of 7.85 for steel means it is 7.85 times as dense as water, and anything with a specific gravity below 1 floats in fresh water. The table above lists it beside each density, and you can get it from this calculator by solving for density in g/cm³, since water is 1 g/cm³.

Temperature and pressure

Density changes with temperature and pressure, most of all for gases. Water is densest at about 4°C, at roughly 999.97 kg/m³. It falls to about 998.2 kg/m³ at 20°C and about 958.4 kg/m³ at 100°C. Ice is lighter than liquid water, which is why it floats. Enter the value that matches the conditions you care about.

Common mistakes

  • Mixing units, such as grams with cubic metres, without letting the unit boxes convert.
  • Forgetting that US and UK gallons are different sizes. The calculator offers both.
  • Using a density at the wrong temperature.
  • Confusing mass with weight. Density uses mass; weight depends on gravity.
  • Entering 0 or a negative number. The calculator needs values greater than 0.

How to read your result

The large number is the missing quantity in the unit you chose. A second line gives the same value in a base unit: kg/m³ for density, m³ for volume and kg for mass. With the Solve For menu, the box for the answer is switched off, so fill in the other two.

The calculator treats the density as constant. Real materials change with temperature, pressure and composition, so use measured values for engineering or safety work.

What to do next

Common questions

What's the density of water, for reference?

About 1,000 kg/m3, which is 1 g/cm3 or 62.4 lb/ft3, at 4 degrees Celsius, where water is densest. At 20 degrees Celsius it is about 998 kg/m3.

How do I calculate density?

Divide the mass by the volume. A sample of 600 grams that occupies 200 cubic centimetres has a density of 3 grams per cubic centimetre.

How do I find mass from density?

Multiply the density by the volume. A steel plate of 0.0025 cubic metres at 7,850 kg/m3 has a mass of 19.625 kg.

How can I tell if something will float?

It floats in a liquid if its density is less than the liquid's. Fresh water is about 1,000 kg/m3, so anything lighter than that floats in it.

Why do the units matter so much?

The same density has different numbers in different units. Water is 1 in g/cm3, 1,000 in kg/m3 and about 62.4 in lb/ft3.

Does density change with temperature?

Yes. Most materials expand when heated and become less dense, and gases change a great deal with temperature and pressure.

Sources: Wikipedia: Density; Wikipedia: Archimedes' principle; Wikipedia: Properties of water

More Everyday Calculators

Pick another tool to jump straight to it.