What the Density Calculator Does
This Density Calculator works out how much mass is packed into a given volume of any material or substance. You enter a mass and a volume — each in the unit that suits you — and the tool returns the density expressed in three convenient forms at once: kilograms per cubic metre (kg/m³), grams per cubic centimetre (g/cm³) and kilograms per litre (kg/L). It is unit-system neutral and works for metals, liquids, gases, foods, soils — anything where you know the mass and the volume.
The Inputs You Provide
- Mass — choose from kilograms (kg), grams (g) or pounds (lb).
- Volume — choose from cubic metres (m³), cubic centimetres (cm³) or litres (L).
You can freely mix units — for example grams with litres — because the calculator converts everything to base SI units before computing.
The Formula
Density is defined simply as mass divided by volume:
Density = Mass ÷ Volume
Behind the scenes the tool first standardises your inputs. Mass is converted to kilograms (g ÷ 1000, or lb × 0.45359237), and volume is converted to cubic metres (cm³ ÷ 1,000,000, or L ÷ 1000). It then divides to get kg/m³, and derives g/cm³ and kg/L by dividing that result by 1000.
Worked Example
Suppose you have a block weighing 500 g that occupies 200 cm³.
- Mass in kg: 500 ÷ 1000 = 0.5 kg
- Volume in m³: 200 ÷ 1,000,000 = 0.0002 m³
- Density: 0.5 ÷ 0.0002 = 2500 kg/m³
- That equals 2.5 g/cm³ and 2.5 kg/L
A density of 2.5 g/cm³ is roughly that of glass or aluminium-rich rock.
Typical Densities of Common Materials
The values below are representative densities at roughly 20 °C and 1 atm (standard atmospheric pressure). Use them as a sanity check on your own measurement: if the density you calculate is far from the published figure for the same material, either the mass, the volume, or the assumption about what the sample actually is needs re-checking.
| Material | Density (kg/m³) | Density (g/cm³) | State |
|---|---|---|---|
| Air (dry, 20 °C, 1 atm) | 1.204 | 0.001204 | Gas |
| Cork | ≈ 240 | ≈ 0.24 | Solid (cellular) |
| Pine wood (dry) | ≈ 500 | ≈ 0.50 | Solid (porous) |
| Gasoline / petrol | ≈ 750 | ≈ 0.75 | Liquid |
| Ethanol (pure) | 789 | 0.789 | Liquid |
| Olive oil | ≈ 915 | ≈ 0.915 | Liquid |
| Ice (0 °C) | 917 | 0.917 | Solid |
| Fresh water | 998 (20 °C) – 1000 (4 °C) | 0.998 – 1.000 | Liquid |
| Seawater (average) | ≈ 1025 | ≈ 1.025 | Liquid |
| Concrete (normal weight) | ≈ 2400 | ≈ 2.40 | Solid |
| Glass (soda-lime) | ≈ 2500 | ≈ 2.50 | Solid |
| Aluminium | 2700 | 2.70 | Solid (metal) |
| Granite | ≈ 2700 | ≈ 2.70 | Solid (rock) |
| Steel (carbon steel) | ≈ 7850 | ≈ 7.85 | Solid (metal) |
| Copper | 8960 | 8.96 | Solid (metal) |
| Lead | 11340 | 11.34 | Solid (metal) |
| Mercury | 13534 | 13.534 | Liquid (metal) |
| Gold | 19320 | 19.32 | Solid (metal) |
Important caveat: gas and liquid densities change noticeably with temperature and pressure. Air at 0 °C is about 1.29 kg/m³ versus 1.204 kg/m³ at 20 °C — roughly 7 % denser — and air density scales almost directly with absolute pressure, so it falls with altitude. Liquids expand when heated: water drops from about 1000 kg/m³ at 4 °C to about 958 kg/m³ at 100 °C. Solids also expand, but so little that for most everyday work a single figure is fine. Natural and manufactured materials such as wood, cork, concrete and rock are ranges, not constants — species, mix design, moisture content and porosity all move the number, which is why those rows are marked with “≈”.
Density and Unit Conversion Table
Density is a ratio of mass to volume, so converting a density means converting both parts. The tables below give the exact and commonly used factors for the units this calculator accepts, plus the imperial/US units you are most likely to meet in a datasheet. Note that gallons differ by country: the factors here are for the US liquid gallon; the UK (imperial) gallon is 4.546092 L, so a “lb/gal” figure from a British source is not the same quantity as a US one.
Mass
| From | Multiply by | To get |
|---|---|---|
| 1 kilogram (kg) | 1000 | grams (g) |
| 1 gram (g) | 0.001 | kilograms (kg) |
| 1 pound (lb) | 0.45359237 (exact) | kilograms (kg) |
| 1 kilogram (kg) | 2.2046226 | pounds (lb) |
| 1 gram (g) | 0.00220462 | pounds (lb) |
Volume
| From | Multiply by | To get |
|---|---|---|
| 1 cubic metre (m³) | 1,000,000 | cubic centimetres (cm³) |
| 1 cubic metre (m³) | 1000 | litres (L) |
| 1 litre (L) | 1000 | cubic centimetres (cm³) |
| 1 cubic centimetre (cm³) | 1 | millilitres (mL) |
| 1 US gallon | 3.785412 | litres (L) |
| 1 cubic foot (ft³) | 28.3168 | litres (L) |
Density
| From | Equals |
|---|---|
| 1 g/cm³ | 1 kg/L = 1000 kg/m³ = 62.428 lb/ft³ |
| 1 kg/m³ | 0.001 g/cm³ = 0.062428 lb/ft³ |
| 1 lb/ft³ | 16.0185 kg/m³ = 0.0160185 g/cm³ |
| 1 lb/gal (US) | 119.826 kg/m³ = 0.119826 g/cm³ |
Two shortcuts save most of the arithmetic. First, g/cm³ and kg/L are the same number, and both are exactly 1/1000 of the value in kg/m³ — so water at 1.0 g/cm³ is 1.0 kg/L and 1000 kg/m³ without any calculation. Second, a value in g/cm³ is numerically the same as the material's specific gravity relative to water, so a steel figure of 7.85 g/cm³ tells you immediately that steel is 7.85 times as dense as water.
A worked conversion: a datasheet quotes a plastic at 55 lb/ft³. Converting, \(55 \times 16.0185 = 881.0\ \text{kg/m}^3\), or 0.881 g/cm³ — below water, so this plastic floats.
Frequently Asked Questions
Why is g/cm³ the same as kg/L? Because one litre equals 1000 cm³ and one kilogram equals 1000 g — the two conversion factors cancel, so the numerical values are always identical.
What is the density of water? Pure water is about 1000 kg/m³, or 1 g/cm³ — a handy reference point. Anything denser than 1 g/cm³ will sink in water; anything lighter will float.
Can I leave volume as zero? No. Dividing by a volume of zero is undefined, so always enter a positive, non-zero volume to get a valid result.