Skip to content

Density Calculator

Find density from mass and volume, or the mass or volume from the other two. Mix metric and US units freely, and see specific gravity and whether it floats. Advanced adds materials, shapes and the water-rise method.

Materials, shapes, water rise, every unit
What do you want to find?
Volume

density = mass ÷ volume

The answer appears in the highlighted box; change its unit to see it another way. Numbers like 2.5e-3 work too.

Significant figures
ResultUpdates as you type—Density—kg/m³—g/cm³ (= g/mL)—lb/ft³—Specific gravity—In fresh water
The same density in every unit
In water

How your density is worked out

Your numbers: put mass and volume in base units, divide, then compare with water.

  1. 1

    Mass in kg

    270 g= 0.27 kg

  2. 2

    Volume in m³

    100 cm³= 0.0001 m³

  3. 3

    Mass ÷ volume

    0.27 kg ÷0.0001 m³= 2,700 kg/m³ = 2.7 g/cm³

  4. 4

    Compare with water

    2,700 ÷ 1,000= SG 2.7so it sinks

Read more: the formula, worked examples and a table of densities

Density tells you how tightly mass is packed into space. Two things the same size can weigh very differently: a 100 cm³ block of aluminium weighs about 270 g, the same block of pine about 50 g. Divide mass by volume and you get a number that belongs to the material, not to the size of the piece.

The formula

density ρ = mass m ÷ volume V
mass m = density ρ × volume V
volume V = mass m ÷ density ρ
specific gravity = density ÷ density of water (1,000 kg/m³)
cube V = side³ · box V = length × width × height
cylinder V = π × (diameter ÷ 2)² × height
sphere V = π × diameter³ ÷ 6
volume by displacement = water level after − water level before
it floats if its density is less than the water's; share under the surface = its density ÷ water density

Worked example

Density (the default): 270 g with a volume of 100 cm³. Mass: 270 g = 0.27 kg. Volume: 100 cm³ = 0.0001 m³. Density: 0.27 ÷ 0.0001 = 2,700 kg/m³, which is 270 ÷ 100 = 2.7 g/cm³. In US units: 2,700 ÷ 16.018 = 168.6 lb/ft³. Specific gravity: 2,700 ÷ 1,000 = 2.7, more than 1, so it sinks. The closest listed material is aluminium (about 2,700 kg/m³).

Mass: 1 US gallon of petrol at about 740 kg/m³. 1 US gal = 0.003785411784 m³, and 740 × 0.003785411784 = 2.801 kg (6.176 lb).

Volume: 1 kg of copper at about 8,960 kg/m³. 1 ÷ 8,960 = 0.0001116 m³ = 111.6 cm³.

Mass of a steel cylinder: 5 cm across and 10 cm tall. Radius 2.5 cm = 0.025 m, height 0.1 m. Volume: π × 0.025² × 0.1 = 0.00019635 m³ (196.35 cm³). Mass: 7,850 × 0.00019635 = 1.541 kg.

Mass of a gold ball: 2 cm across. Volume: π × 2³ ÷ 6 = 4.189 cm³. Mass: 4.189 × 19.3 g/cm³ = 80.84 g.

Water rise (Archimedes): a 100 g ring raises the water in a jug from 200 mL to 205.2 mL. Volume: 205.2 − 200 = 5.2 mL = 5.2 cm³. Density: 100 ÷ 5.2 = 19.23 g/cm³, close to gold (about 19.3). This is the test Archimedes is said to have used on a king’s crown.

Floating: ice at about 917 kg/m³ has a specific gravity of 0.917, so it floats with 917 ÷ 1,000 = 91.7% under fresh water, and 917 ÷ 1,025 = 89.5% under sea water.

Typical densities (approximate)

These are rounded, typical values. Real samples change with temperature, grade, alloy, moisture and air gaps (wood and concrete vary a lot). Water is about 1,000 kg/m³ near 4 °C and about 998 kg/m³ at 20 °C. Air is about 1.225 kg/m³ at sea level and 15 °C. For exact work, use the figure on the material’s data sheet: you can type it into the density box.

Materialkg/m³g/cm³lb/ft³
Water (4 °C)1,000162.43
Sea water1,0251.02563.99
Ice9170.91757.25
Air (sea level, 15 °C)1.2250.0012250.07647
Petrol / gasoline7400.7446.2
Diesel8400.8452.44
Olive oil9100.9156.81
Milk1,0301.0364.3
Honey1,4201.4288.65
Wood (pine)5000.531.21
Wood (oak)7500.7546.82
Cork2400.2414.98
Concrete2,4002.4149.8
Glass2,5002.5156.1
Aluminium2,7002.7168.6
Steel7,8507.85490.1
Copper8,9608.96559.4
Lead11,34011.34707.9
Silver10,49010.49654.9
Gold19,30019.31,205

Notes

  • 1 g/cm³ = 1 g/mL = 1 kg/L = 1,000 kg/m³ = 62.43 lb/ft³ = 8.345 lb per US gallon.
  • Unit definitions used: 1 lb = 0.45359237 kg, 1 oz = 1/16 lb, 1 in = 2.54 cm, 1 US gallon = 231 in³ (3.785 L), 1 UK gallon = 4.54609 L, 1 US fl oz = 1/128 US gallon.
  • For a hollow object or one with holes (a boat, a bottle, a sponge), the result is its average density, which decides whether it floats.
  • In the water-rise method the object must be fully under water and must not soak up water. Use a narrow jug for small objects so the rise is easy to read.
  • Specific gravity here is compared with water at 1,000 kg/m³. Some industries compare with water at 15.6 °C (60 °F, about 999 kg/m³), which changes the answer by about 0.1%.

Common questions

What is density?

Density is how much mass is packed into each bit of space: mass divided by volume. Water is about 1,000 kg/m³, which is the same as 1 g/cm³ or 1 kg per litre. Something with a density of 2.7 g/cm³, like aluminium, weighs 2.7 times as much as the same volume of water.

How do I calculate density?

Divide the mass by the volume. 270 g ÷ 100 cm³ = 2.7 g/cm³. In SI units that is 0.27 kg ÷ 0.0001 m³ = 2,700 kg/m³. Keep the units together: grams with cm³ (or mL) gives g/cm³, kilograms with m³ gives kg/m³.

How do I find mass from density and volume?

Multiply density by volume. One US gallon of petrol (about 740 kg/m³) is 740 × 0.003785 m³ ≈ 2.80 kg, or about 6.2 lb.

How do I find the volume of an odd-shaped object?

Use water displacement. Read the water level in a measuring jug, drop the object in so it is fully under, and read it again. The rise is the object’s volume: 200 mL → 205.2 mL means 5.2 cm³. Turn on Advanced and pick “From water rise”.

What is specific gravity?

Specific gravity (relative density) is the density divided by the density of water, 1,000 kg/m³. It has no units. Steel at 7,850 kg/m³ has a specific gravity of 7.85. Anything below 1 floats in fresh water.

Will it float?

A solid object floats in water if its average density is less than the water’s: about 1,000 kg/m³ for fresh water and about 1,025 kg/m³ for sea water. The share of it under the surface is its density ÷ the water’s density, so ice (917) floats with about 92% under fresh water.

Is g/cm³ the same as g/mL?

Yes. 1 mL is exactly 1 cm³, so 1 g/cm³ = 1 g/mL = 1 kg/L = 1,000 kg/m³.

Related calculators

Ideal Gas Law CalculatorPressure, volume, moles or temperature from PV = nRT in mixed units, from grams too, combined gas law (Boyle, Charles, Gay-Lussac, Avogadro), gas density, molar mass and STP.Molarity CalculatorMass, molar mass, volume or molarity from the other three in mixed units, molar mass from a formula, common compounds, dilution C1V1 = C2V2, % w/v and ppm.Volume calculatorVolume and surface area of 14 shapes in any mix of units, in litres, gallons and cubic units, with weight, a missing-size finder and the working.Volume converterLitres to US or UK gallons and back, plus quarts, pints, cups, fl oz, spoons, ml, cubic metres, cubic feet and oil barrels.

Made by Zulu Calculator, part of AlphaZulu LLC. Formulas are shown in full and rule figures are checked against official sources; see how we build calculators.

Embed this calculator on your site

Free to use on your website or blog. Paste this code where you want the calculator to appear. Please keep the credit link.

Density Calculator by Zulu Calculator ↗