Density calculator showing the density of water worked out as 1,000 kg/m³, 1 g/cm³ and 62.43 lb/ft³ from a mass of 1 kg and a volume of 1 litre

Density Calculator

Density is the property that explains why a block of steel sinks, a block of ice floats, and a litre of petrol weighs less than a litre of water. It measures how much mass is packed into a given volume, and once you know any two of density, mass and volume, the third is a single calculation away. This density calculator solves all three directions: enter the mass and volume to get the density, enter the density and volume to get the mass, or enter the density and mass to get the volume — with the units you actually work in, from kg/m³ and g/cm³ to lb/ft³ and pounds per gallon.

Unlike a bare formula, the calculator also puts the answer in context. A density result comes with its equivalents in the other common units, its specific gravity against water, and the closest common material from the reference table, so a number like 7,850 kg/m³ immediately reads as “about the density of steel”. Material presets fill in known densities for you in the mass and volume modes. Everything runs locally in your browser.

Density calculator showing the density of water worked out as 1,000 kg/m³, 1 g/cm³ and 62.43 lb/ft³ from a mass of 1 kg and a volume of 1 litre
Presets fill the density box. They help most in Find Mass and Find Volume mode.

The density formula

Density, written with the Greek letter ρ (rho), is mass divided by volume:

ρ = m / V

The same relationship rearranged solves for the other two quantities:

m = ρ × V and V = m / ρ

That triangle is the whole subject. Every density problem — in a physics class, a lab, a kitchen or a shipping quote — is one of those three forms with units attached. The SI unit of density is the kilogram per cubic metre (kg/m³). The unit most people meet first is the gram per cubic centimetre (g/cm³), and the two differ by exactly a factor of 1,000: 1 g/cm³ = 1,000 kg/m³. That factor surprises people because it is not 100 — a gram is a thousandth of a kilogram, but a cubic centimetre is a millionth of a cubic metre, and a million divided by a thousand is a thousand.

How to use this density calculator

  1. Choose a mode at the top: Find Density, Find Mass or Find Volume. The field you are solving for is marked and locked.
  2. Enter the two values you know, and pick the unit next to each one. Mixed units are fine — grams with litres, pounds with cubic feet.
  3. In Find Mass or Find Volume mode, you can pick a material preset instead of typing a density: water, aluminium, steel, gold and more fill the density box for you.
  4. Press Calculate. The result appears in your chosen unit, with a formula line showing the exact substitution, equivalents in other units, and — for density results — the specific gravity and the closest common material.

Worked examples

Example 1 — the density of water. A litre bottle filled with water has a mass of almost exactly 1 kg. Density = 1 kg ÷ 0.001 m³ = 1,000 kg/m³, which is also 1 g/cm³, 1 g/mL and 1 kg/L. Water is the reference material for the whole subject, which is why its density is the most searched-for value in this cluster of tools.

Example 2 — a steel block. A steel offcut has a mass of 15.7 kg and a volume of 0.002 m³ (about the size of a brick). Density = 15.7 ÷ 0.002 = 7,850 kg/m³ — the standard density of steel, and the calculator's closest-material note confirms the match.

Example 3 — finding a mass. How heavy is half a cubic metre of aluminium? Mass = ρ × V = 2,700 × 0.5 = 1,350 kg. The same method prices out concrete pours, gravel deliveries and tank contents: volume times density is the weight you have to move.

Example 4 — finding a volume. A 500 g gold bar takes up how much space? Volume = m ÷ ρ = 0.5 ÷ 19,300 = 0.0000259 m³, which is 25.9 cm³ — smaller than a matchbox, which is exactly why gold feels so startlingly heavy for its size.

The density of water in every common unit

More people look up the density of water in a specific unit than any other density value, so here it is in all of them. These figures are for pure water at about 4 °C, where it is at its densest; at room temperature (20 °C) it is very slightly less, about 998 kg/m³.

UnitDensity of water
kg/m³1,000
g/cm³1
g/mL1
kg/L1
lb/ft³62.43
lb/US gallon8.345
oz/in³0.578

The imperial figures are the ones that cause trouble in practice: 62.43 lb/ft³ (often rounded to 62.4) for engineering in cubic feet, and 8.345 lb per US gallon for anything sold or shipped by the gallon. A US gallon of water really does weigh about 8.34 pounds — the old saying "a pint's a pound the world around" is close for US pints (1.04 lb) but was coined for them; an imperial pint of water weighs 1.25 lb.

Density of common materials

Reference densities at room temperature and ordinary pressure. Solids and liquids vary a little by alloy, moisture and temperature — treat these as the standard textbook values the calculator's presets use.

Materialkg/m³g/cm³
Air (at sea level)1.2250.0012
Oak wood7200.72
Petrol (gasoline)7370.737
Ethanol7890.789
Olive oil9100.91
Ice9170.917
Water1,0001.0
Sea water1,0251.025
Milk1,0351.035
Concrete2,4002.4
Glass2,5002.5
Aluminium2,7002.7
Steel7,8507.85
Iron7,8707.87
Copper8,9608.96
Silver10,49010.49
Lead11,34011.34
Gold19,30019.3
Osmium22,59022.59

Converting between density units

The calculator converts for you, but the manual rules are short. Between g/cm³ and kg/m³, multiply or divide by 1,000. g/mL and kg/L are numerically identical to g/cm³, so 0.91 g/mL of olive oil is 910 kg/m³ with no arithmetic at all. For imperial work, 1 lb/ft³ = 16.018 kg/m³, so water's 1,000 kg/m³ ÷ 16.018 = 62.43 lb/ft³; and 1 lb/US gallon = 119.83 kg/m³. The most common error in density work is not the formula — it is mixing units inside it, like dividing kilograms by litres and reporting the answer as kg/m³. Convert first (or let the unit dropdowns do it), then divide.

How to calculate volume from mass and density

Rearrange the formula: V = m / ρ. Divide the mass by the density, keeping the units consistent, and the result is the volume in the matching unit. Half a kilogram of gold: 0.5 kg ÷ 19,300 kg/m³ = 0.0000259 m³ = 25.9 cm³. Twenty kilograms of petrol: 20 ÷ 737 = 0.0271 m³ = 27.1 litres — the check that tells you whether a fuel load fits the tank. This is the Find Volume mode of the calculator, and it is the direction people need most often after density itself.

Density and floating: why ice floats

An object floats in a liquid if its average density is lower than the liquid's, and sinks if it is higher. Ice, at 917 kg/m³, is less dense than water at 1,000 kg/m³, so it floats with about 92% of its volume submerged — the literal tip of the iceberg. Steel at 7,850 kg/m³ sinks as a solid block, yet a steel ship floats because the hull encloses air, dragging the average density of the whole vessel below 1,000. The specific gravity shown with each density result is the same comparison in one number: density ÷ 1,000. Below 1 floats on water; above 1 sinks.

FAQs

What is the formula for density?

The density formula is ρ = m / V: density equals mass divided by volume. Rearranged, it also gives mass as m = ρ × V and volume as V = m / ρ. The SI unit is kilograms per cubic metre (kg/m³); grams per cubic centimetre (g/cm³) is the other common unit, and 1 g/cm³ = 1,000 kg/m³.

How do I calculate volume from mass and density?

Divide the mass by the density: V = m / ρ. Keep the units consistent — kilograms with kg/m³ gives cubic metres. For example, 0.5 kg of gold at 19,300 kg/m³ gives 0.5 ÷ 19,300 = 0.0000259 m³, which is 25.9 cm³. The Find Volume mode of the calculator above does this with the unit conversions handled for you.

What is the density of water in g/cm³?

The density of water is 1 g/cm³ (at about 4 °C, where water is densest). The same value is 1 g/mL, 1 kg/L and 1,000 kg/m³ — water is the reference material the gram was originally tied to, which is why its density is a round 1 in the centimetre-gram units. At 20 °C it is slightly lower, about 0.998 g/cm³.

What is the density of water in lb/ft³?

The density of water is 62.43 lb/ft³ in imperial units (often rounded to 62.4). It comes from converting 1,000 kg/m³ using 1 lb/ft³ = 16.018 kg/m³. In the other common imperial unit, water is 8.345 lb per US gallon.

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

Multiply by 1,000. A density of 2.7 g/cm³ (aluminium) is 2,700 kg/m³, and 7.85 g/cm³ (steel) is 7,850 kg/m³. Going the other way, divide by 1,000. The factor is 1,000 rather than 100 because a cubic metre contains a million cubic centimetres while a kilogram contains only a thousand grams.

Does the density of water change with temperature?

Yes, slightly. Water is densest at about 4 °C, at 1,000 kg/m³ (more precisely 999.97). At 20 °C it is about 998 kg/m³, and at 100 °C about 958 kg/m³. For almost all everyday calculations 1,000 kg/m³ is accurate enough; the difference only matters in laboratory work and precise engineering.

What is specific gravity?

Specific gravity is a material's density divided by the density of water, so it has no units. Water itself is 1, aluminium is 2.7, gold is 19.3 and petrol is about 0.74. Because it compares against water, specific gravity also tells you floating behaviour at a glance: below 1 floats on water, above 1 sinks.

Is mass the same as weight?

Not quite. Mass is the amount of matter, measured in kilograms, and it is the same everywhere. Weight is the force gravity exerts on that mass, measured in newtons; it changes with gravity, which is why astronauts are weightless but not massless. Density is defined with mass. In everyday use on Earth, "weight" in kilograms is really mass, and that is what this calculator expects.

Scroll to Top