Home/Other Calculators & Tools/Density Calculator

Density Calculator

Free · No sign-up · Runs entirely in your browser

Calculate density, mass or volume from the other two — with specific gravity and a straight answer on whether the material floats.

Density = Mass / Volume

Choose what to solve for, then fill in the other two. The calculated field is greyed out.

Solve for
Density (D)
Mass (M)
Volume (V)
Common Material Densities
MaterialDensity
Water (4°C)1,000 kg/m³
Concrete2,300–2,400 kg/m³
Steel7,850 kg/m³
Aluminium2,710 kg/m³
Timber (hardwood)600–900 kg/m³
Air (sea level)1.225 kg/m³
Gold19,300 kg/m³
Petrol~740 kg/m³
Result
Density
500.00
kg/m³
PropertyValue
⏱️ Last reviewed: 26 July 2026 · Written and reviewed by Mohsin Iqbal under our editorial policy and calculation methodology.
📖 Approx. 9 min read🌊 Floats or sinks🔄 Updated 26 July 2026

On this page

  1. The Relationship, Three Ways
  2. Specific Gravity, and What Floats
  3. Why Steel Ships Float
  4. Water Behaves Strangely
  5. Measuring the Density of a Real Object
  6. Where Density Matters
  7. Common Mistakes
  8. Frequently Asked Questions
  9. One Formula, Solved Where You Point It

🔑 Key Takeaways

The Relationship, Three Ways

One formula, rearranged. The calculator asks which value you want so there is no ambiguity about what it is solving.

Density = Mass ÷ Volume
Mass = Density × Volume
Volume = Mass ÷ Density
QuantitySI unitAlso written as
Densitykg/m³g/cm³, g/mL, kg/L
Masskgg, mg, tonnes
VolumeL, mL, cm³
1 g/cm³ = 1000 kg/m³
1 g/mL  = 1000 kg/m³
1 kg/L  = 1000 kg/m³
1 t/m³  = 1000 kg/m³
1 mL    = 1 cm³
1000 L = 1 m³
The units that look different but are not. One g/cm³ is exactly 1,000 kg/m³, and g/mL is identical to g/cm³ because a millilitre is a cubic centimetre. So water at 1,000 kg/m³, 1.0 g/cm³, 1.0 g/mL and 1.0 kg/L is the same number four ways. Mixing them up by a factor of a thousand is the most common density error.

Specific Gravity, and What Floats

Specific gravity is density expressed relative to fresh water. It has no units, which is what makes it convenient — and it answers one question immediately.

Specific gravity = density of the material ÷ 1000 kg/m³

Below 1.00 → floats in fresh water
Above 1.00 → sinks

Typical material densities (approximate)

MaterialDensity (kg/m³)Specific gravityFloats in fresh water?
Balsa wood1600.16Yes
Pine (softwood)5100.51Yes
Petrol7400.74Yes
Hardwood9000.90Yes
Ice9170.92Yes
Olive oil9200.92Yes
Fresh water1,0001.00Neutral
Sea water1,0251.02No
Brick1,9001.90No
Concrete2,4002.40No
Glass2,5002.50No
Aluminium2,7002.70No
Steel7,8507.85No
Copper8,9608.96No
Lead11,34011.34No
Gold19,32019.32No

Indicative values at about 20 °C. Timber, concrete, brick and soil vary substantially with species, grade, mix and moisture — use supplier or engineering data where accuracy matters.

Sea water is the reason the calculator reports both. At about 1,025 kg/m³, sea water is 2.5% denser than fresh, so a few things float in the ocean that sink in a pool — and boats sit slightly higher in salt water than in fresh. It is a small difference that matters at the margins.

Why Steel Ships Float

Steel has a specific gravity of 7.85, so a solid block of it sinks immediately. Yet ships made of it float, and the reason is worth understanding because it shows what density actually measures.

Density is a property of the whole object, not the material. A ship's hull encloses an enormous volume of air, so the average density of the vessel — steel plus air plus cargo, divided by the total volume it displaces — comes out below that of water. Fill the hull with water and that average rises above 1.00, which is precisely what sinking is.

Archimedes' principle says the same thing from the other direction: an object floats when it displaces a weight of water equal to its own weight. A hull shaped to displace a lot of water for its mass will float; the same steel rolled flat will not.

This is also why the density figures in the table above are for solid material. A brick has a density of about 1,900 kg/m³, but a pallet of bricks with air gaps between them has a much lower bulk density — which is the number that matters when you are working out what a truck can carry.

Water Behaves Strangely

Almost every substance gets denser as it cools, right up to the point it solidifies. Water does not, and life on Earth depends on the exception.

TemperatureDensity
0 °C999.84 kg/m³
4 °C999.97 kg/m³
10 °C999.7 kg/m³
20 °C998.21 kg/m³
25 °C997.05 kg/m³
40 °C992.22 kg/m³
80 °C971.79 kg/m³
100 °C958.35 kg/m³

Water reaches maximum density at about 4 °C and then becomes less dense as it cools further. Ice at 0 °C is around 917 kg/m³ — roughly 8% lighter than the liquid it froze from.

Two consequences. Ice floats rather than sinking, so lakes and dams freeze from the surface down and the water beneath stays liquid — if ice sank, deep water bodies would freeze solid from the bottom. And water expanding as it freezes is why pipes split in a cold snap: the ice occupies more volume than the water did, and something has to give.

It also explains why "1 litre = 1 kg" is an approximation rather than a rule. At 20 °C a litre of water is about 998 g. Close enough for most work, and worth knowing when it is not.

Measuring the Density of a Real Object

Mass is easy — put it on scales. Volume is the hard part for anything that is not a neat shape.

ObjectHow to find the volume
Regular shapeMeasure and calculate — the mass calculator handles blocks, cylinders, pipes and spheres
Irregular solidWater displacement: submerge it and measure the volume of water pushed aside
Object that floatsDisplacement still works, but you must hold it fully under
Porous or absorbentDisplacement measures the outer volume including sealed pores, not the solid material
Powder or aggregateYou get bulk density, which includes the air between particles
The displacement method is genuinely old. Fill a container to the brim, submerge the object, and catch the overflow — the overflow volume equals the object's volume. A kitchen measuring jug and a set of scales are enough to get a usable density for an irregular object, which is a satisfying experiment and a standard school demonstration.

Where Density Matters

FieldWhy it matters
ConstructionDead load calculations start from material density — concrete at 2,400 kg/m³ adds up fast
Freight and logisticsDense cargo hits weight limits; bulky cargo hits volume limits. Density decides which
MarineBuoyancy, draught and stability all follow from density and displacement
Materials selectionAluminium at 2,700 kg/m³ against steel at 7,850 is why aircraft use it
Quality controlDensity is a quick check for purity, alloy composition or trapped air
Geology and soilCompaction is measured as achieved density against a reference

In Australian construction, density figures feed directly into structural calculations. A cubic metre of reinforced concrete at about 2,500 kg is 2.5 tonnes of dead load before anything is placed on it, which is why slab and beam design starts with the material's own weight.

Common Mistakes

  1. Mixing g/cm³ with kg/m³. They differ by a factor of 1,000. Water is 1.0 g/cm³ and 1,000 kg/m³ — the same density.
  2. Using solid density for loose material. A cubic metre of gravel includes the air between the stones. Bulk density is well below the density of the rock itself.
  3. Assuming density is fixed. It changes with temperature, and for gases with pressure too. Published figures usually assume around 20 °C.
  4. Treating "1 litre = 1 kg" as exact. It is about 998 g at room temperature. Fine for everyday work, not for precise measurement.
  5. Confusing density with weight. Density is mass per unit volume and does not depend on gravity. A material has the same density on the Moon.
  6. Expecting an object's density to match its material. Anything hollow, porous or composite has a lower average density than the solid material.
  7. Forgetting that timber and soil vary. Moisture content moves both substantially, so published figures are starting points.

Frequently Asked Questions

How do you calculate density?

Divide mass by volume. A 2 kg object occupying 1 litre has a density of 2 kg per litre, which is 2,000 kg/m³. Keep the units consistent — mixing grams with cubic metres is the usual source of errors that are wrong by a factor of a thousand.

What is the density formula?

Density equals mass divided by volume, usually written ρ = m/V. Rearranged, mass is density times volume and volume is mass divided by density. The calculator above solves whichever one you select.

What is the SI unit of density?

Kilograms per cubic metre (kg/m³). Grams per cubic centimetre is also common and differs by exactly a factor of 1,000 — water is 1,000 kg/m³ or 1.0 g/cm³. Grams per millilitre is identical to g/cm³, since a millilitre is a cubic centimetre.

What is the density of water?

About 1,000 kg/m³, but not exactly, and it varies with temperature. Water peaks at roughly 999.97 kg/m³ near 4 °C and falls to about 998.2 kg/m³ at 20 °C. Sea water is denser at around 1,025 kg/m³ because of dissolved salts.

What is specific gravity?

Density expressed relative to fresh water, so it has no units. Steel's specific gravity is 7.85 because it is 7.85 times as dense as water. The useful part is the threshold: below 1.00 a material floats in fresh water, above 1.00 it sinks.

Why do objects float or sink?

An object floats if its average density is less than the fluid's. Archimedes' principle puts it another way — it floats when it displaces a weight of fluid equal to its own weight. What matters is the average density of the whole object, including any air it encloses, not the density of the material it is made from.

Why do steel ships float when steel sinks?

Because a hull encloses a large volume of air, the ship's average density — steel, air and cargo divided by total volume — is below that of water. A solid block of the same steel has nothing but steel in it and sinks. Flooding a hull raises its average density above water's, which is what sinking is.

Why does ice float?

Because water is unusual: it reaches maximum density at about 4 °C and becomes less dense as it cools further. Ice at 0 °C is around 917 kg/m³, roughly 8% lighter than liquid water. This is why lakes freeze from the surface down rather than solid from the bottom, and why water pipes split when they freeze.

Can density change?

Yes. Density falls as most materials warm and expand, and rises as they cool — water being the notable exception below 4 °C. Gases change dramatically with both temperature and pressure. Published densities normally assume around 20 °C at atmospheric pressure.

How do I measure the density of an irregular object?

Weigh it, then find its volume by water displacement — fill a container to the brim, submerge the object fully, and measure the overflow. The overflow volume equals the object's volume, and mass divided by that gives density. A measuring jug and kitchen scales are enough for a usable result.

What is the difference between density and bulk density?

Density refers to the solid material. Bulk density includes the air gaps in a loose material such as sand, gravel or grain, so it is always lower. When you buy a cubic metre of gravel you are buying bulk volume, and the bulk density is what determines its mass.

What is the difference between density and weight?

Density is mass per unit volume and does not depend on gravity — a material has the same density on the Moon as on Earth. Weight is the force gravity exerts, measured in newtons, and it does change with location. Our weight and force calculator covers that distinction.

One Formula, Solved Where You Point It

Density is the simplest of relationships and the one most often mangled by units. A factor of a thousand between g/cm³ and kg/m³ accounts for most wrong answers, and keeping the units straight solves nearly everything else.

The specific gravity figure is worth glancing at whenever you calculate a density — it tells you instantly whether the material floats, and whether the number you just produced is plausible for what you were measuring.

To go from material and dimensions straight to mass, use the mass calculator. For converting an existing mass between units, the weight converter.

📏 Measurement Tools

Density Calculator — density, mass or volume from the other two (this page) Mass Calculator — mass from material and dimensions Volume Converter — litres, cubic metres and gallons Weight Converter — kilograms, pounds, stone and ounces Weight & Force Calculator — newtons, kgf and gravity Unit Converter — all measurement categories Length Converter — metres, feet and millimetres

📋 References & Further Reading

National Measurement Institute — Australia's measurement system BIPM — The International System of Units NIST — Weights and measures reference data Standards Australia — Materials and testing standards