Skip to content
Tool · Chemistry

Density calculator

Solve ρ = m ÷ V for density, mass or volume. Measure the volume from a shape or by water displacement, pick from 33 materials, and see whether the object floats in fresh and sea water.

Density calculator
Material
Density ρ
Mass m
Volume V

Show density in
Density…
Fresh water…
Sea water…
Closest materials
    Working

    Density is mass per volume

    Divide the mass by the volume it takes up. Rearrange to get the mass of a known volume, or the volume of a known mass.

    ρ = mV

    Units

    One g/cm³ is the same as one g/mL, 1,000 kg/m³ and 62.43 lb/ft³. Water at 20 °C is 0.998 g/cm³, or 998.2 kg/m³.

    1 g/cm³ = 1000 kg/m³

    Floating

    A floating object sinks until it has pushed aside its own weight of water. So the fraction under the surface is its density divided by the water's.

    fraction under = ρobjectρwater

    How do you calculate density?

    Density is mass divided by volume: ρ = m ÷ V. A block of oak with a mass of 518 g and a volume of 720 cm³ has a density of 0.7194 g/cm³, so it floats with 72% of itself under water. Water at 20 °C is 0.9982 g/cm³, and anything less dense floats in it. The calculator solves for whichever of the three you do not know and converts between g/cm³, kg/m³, g/mL and lb/ft³.

    For the volume you can type a number, give the sides of a cube or box, the radius and height of a cylinder, the radius of a sphere, or read the water level before and after dropping the object into a measuring cylinder. The materials list gives each density with the source it came from. For a worked explanation of floating, read Why does ice float?.

    Key results

    • Formula: ρ = m ÷ V, m = ρ × V, V = m ÷ ρ. Keep the units matched: grams with cm³, or kilograms with m³.
    • Water: 0.9982 g/cm³ at 20 °C and 0.99997 g/cm³ near 4 °C (NIST). Sea water is about 1.025 g/cm³.
    • Floating: an object floats if it is less dense than the liquid, with the fraction ρ_object ÷ ρ_liquid below the surface. Ice (0.917) floats 92% under in fresh water.
    • Unit conversions: 1 g/cm³ = 1 g/mL = 1,000 kg/m³ = 62.43 lb/ft³.

    Six worked examples

    Each button loads the example into the calculator.

    A 3 cm ice cube: 24.76 g

    mass from density and volume

    A cube 3 cm on each side has a volume of 3³ = 27 cm³. Ice is 0.917 g/cm³ at 0 °C, so the cube has a mass of 0.917 × 27 = 24.76 g.

    In fresh water it floats with 92% of its volume below the surface, and in sea water 89%. That is where the "tip of the iceberg" comes from: only about a tenth shows.

    Related reading: Why does ice float?

    Volume 27 cm³ Mass 24.76 g Under, fresh 92% Under, sea 89%

    1 kg of gold: 51.86 cm³

    volume from mass and density

    Gold is 19.28 g/cm³ (PubChem). A kilogram therefore takes up 1,000 ÷ 19.28 = 51.86 cm³, the volume of a cube 3.7 cm on a side.

    The same kilogram of aluminium, at 2.70 g/cm³, would be 370.4 cm³, seven times bigger. That is why a gold bar feels so heavy for its size.

    Gold 19.28 g/cm³ Volume 51.86 cm³ Cube side 3.73 cm 1 kg aluminium 370.4 cm³

    A steel ball 2 cm across: 32.76 g

    sphere volume

    A ball of radius 1 cm has a volume of 4/3 × π × 1³ = 4.189 cm³. At 7.82 g/cm³ for steel it has a mass of 32.76 g.

    It sinks in fresh and sea water alike: steel is 7.83 times as dense as water. Steel ships float because their hull encloses a great deal of air, so the ship's average density is far lower than steel's.

    Volume 4.189 cm³ Mass 32.76 g Steel 7.82 g/cm³ Water sinks

    A ring by displacement: 10.5 g/cm³

    volume from the water level

    A ring weighing 5.25 g lifts the water in a 10 mL measuring cylinder from 10.0 to 10.5 mL, so its volume is 0.5 cm³ and its density 5.25 ÷ 0.5 = 10.5 g/cm³. The nearest match is silver (10.5 g/cm³).

    The weak point is the volume: misread the level by 0.1 mL and the answer swings from 8.75 to 13.1 g/cm³, from below copper to above lead. Use the narrowest cylinder that fits, and several rings at once if you can.

    Mass 5.25 g Volume 0.5 cm³ Density 10.5 g/cm³ Closest Silver

    A wooden block: 0.719 g/cm³

    box volume

    A block 10 × 10 × 7.2 cm has a volume of 720 cm³. If it weighs 518 g its density is 0.7194 g/cm³, close to the 0.72 listed for oak.

    It floats with 72% under in fresh water: put 7.2 cm of its height upright and about 5.2 cm sits below the surface.

    Volume 720 cm³ Density 0.719 g/cm³ Under, fresh 72% Closest Oak

    A litre of olive oil: 911 g

    liquids

    Olive oil is about 0.911 g/cm³ at 20 °C, so a litre (1,000 cm³) has a mass of 911 g, about 9% less than a litre of water. That is why oil floats on vinegar in a salad dressing.

    Ethanol is lighter still at 0.7893 g/cm³ and glycerol heavier at 1.2613, both from PubChem; a layered "density tower" in a glass uses exactly these differences.

    Olive oil 0.911 g/cm³ 1 L mass 911 g Ethanol 0.7893 g/cm³ Glycerol 1.2613 g/cm³

    Densities of common materials

    Materialg/cm³kg/m³In waterSource
    Air (20 °C)0.0012041.204floatsideal gas, 20 °C
    Balsa wood0.11 to 0.14110 to 140floatsEngineering ToolBox
    Cork0.2 to 0.25200 to 250floatsEngineering ToolBox
    Pine0.53530floatsEngineering ToolBox
    Oak0.72720floatsEngineering ToolBox
    Ethanol (20 °C)0.7893789.3floatsPubChem (HSDB)
    Paraffin wax0.9900floatsEngineering ToolBox
    Olive oil (20 °C)0.911911floatsEngineering ToolBox
    Ice (0 °C)0.917917floatsPubChem (HSDB)
    Rubber, pure gum0.91 to 0.93910 to 930floatsEngineering ToolBox
    Water (20 °C)0.9982998.2NIST WebBook
    Sea water1.0251,025sinksPubChem (HSDB)
    Nylon 6,61.13 to 1.151,130 to 1,150sinksEngineering ToolBox
    Acrylic1.191,190sinksEngineering ToolBox
    Glycerol (20 °C)1.2611,261sinksPubChem (HSDB)
    PVC1.39 to 1.421,390 to 1,420sinksEngineering ToolBox
    Magnesium1.741,740sinksPubChem periodic table
    Concrete, dense2 to 2.42,000 to 2,400sinksEngineering ToolBox
    Glass, common2.4 to 2.82,400 to 2,800sinksEngineering ToolBox
    Granite2.6 to 2.82,600 to 2,800sinksEngineering ToolBox
    Aluminium2.72,700sinksPubChem periodic table
    Titanium4.54,500sinksPubChem periodic table
    Zinc7.1347,134sinksPubChem periodic table
    Tin7.2877,287sinksPubChem periodic table
    Steel7.827,820sinksEngineering ToolBox
    Iron7.8747,874sinksPubChem periodic table
    Copper8.9338,933sinksPubChem periodic table
    Silver10.510,501sinksPubChem periodic table
    Lead11.3411,342sinksPubChem periodic table
    Mercury (liquid)13.5313,534sinksPubChem periodic table
    Gold19.2819,282sinksPubChem periodic table
    Platinum21.4621,460sinksPubChem periodic table
    Osmium22.5722,570sinksPubChem periodic table

    Element densities from the PubChem periodic table; ethanol, glycerol, ice and sea water from PubChem compound records; water from the NIST Chemistry WebBook at 20 °C and 1 atm; air worked out from the ideal gas law at 20 °C. Engineering ToolBox values are typical ranges for materials that vary from sample to sample; the calculator uses the middle of the range.

    How the calculator works

    Everything is converted to grams and cubic centimetres first, then ρ = m ÷ V is rearranged for the unknown. 1 kg = 1,000 g, 1 lb = 453.59237 g, 1 L = 1,000 cm³, 1 m³ = 1,000,000 cm³, 1 in³ = 16.387064 cm³ and 1 ft³ = 28,316.85 cm³, all exact.

    Volume helpers: cube a³, box l × w × h, cylinder πr²h, sphere 4/3 πr³, and displacement as the rise in water level (1 mL = 1 cm³).

    Float or sink compares the density with fresh water at 20 °C (0.9982 g/cm³) and sea water (about 1.025 g/cm³). A floating object settles with the fraction ρ ÷ ρ_water of its volume below the surface, which is what the tanks on the stage show.

    What the model leaves out

    • Temperature: most materials expand when warmed, so their density falls. Water changes by about 0.2% between 4 °C and 20 °C; metals much less.
    • Hollow objects: the calculator gives the average density of whatever you weigh and measure. A hollow steel ball or a ship can float though steel sinks.
    • Surface tension: a steel needle or paper clip can rest on water without sinking, held up by surface tension rather than buoyancy.
    • Mixtures and alloys: brass, steel, wood, glass and concrete vary with composition. Use your own measured density where it matters.

    Common misconceptions

    "Heavy things sink." Density decides, not weight. A 10 tonne log floats; a 1 g pebble sinks.

    "Ice floats because of the air in it." Clear ice with no bubbles floats too. Water molecules in ice lock into an open hexagonal pattern that takes more room than liquid water.

    "Salt water is much denser." Sea water is only about 2.7% denser than fresh water, enough to lift a floating body slightly but not to float most things that sink in fresh water.

    Frequently asked questions

    What is the formula for density?

    Density equals mass divided by volume, ρ = m ÷ V. In grams and cubic centimetres the answer is in g/cm³; in kilograms and cubic metres it is in kg/m³.

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

    Multiply by 1,000. Water at 20 °C is 0.998 g/cm³, which is 998.2 kg/m³. To get lb/ft³, multiply g/cm³ by 62.43.

    What is the density of water?

    0.9982 g/cm³ (998.2 kg/m³) at 20 °C, rising to a maximum of about 0.99997 g/cm³ near 4 °C, from the NIST Chemistry WebBook. Sea water is about 1.025 g/cm³.

    How do you find the volume of an irregular object?

    Use water displacement: read a measuring cylinder, lower the object in completely, and read it again. The rise in mL is the volume in cm³.

    Will it float?

    If its density is less than the liquid it is in, yes. In fresh water anything under about 0.998 g/cm³ floats; the fraction below the surface equals its density divided by the water density.

    Keep learning

    More simulations

    More chemistry and lab tools

    See all science tools