Density Calculator
Fill in any two of density, mass and volume, or pick a material. See if it floats.
Fill in any two of density, mass and volume to get the third, or pick a material. See whether it floats in water, plus pressure, water pressure at depth and specific gravity.
Fill in any two. The third is worked out.
ExampleVolume
185.2cm³
0.5 kg of aluminum at 2,700 kg/m³ takes up 185.2 cm³.
Enter your own values to see your result.
- Density in other units
- 2.7 g/cm³ · 168.6 lb/ft³
- Specific gravity
- 2.7
- In US gallons
- 0.04892 US gal
How this works: 4 sources,
How this works
Method
Density is mass divided by volume, ρ = m ÷ V, solved for whichever of the three is missing, with volumes and masses converted to kilograms and cubic metres first; material densities are OpenStax’s tables. Pressure is force over area, p = F ÷ A; the pressure at a depth in a liquid is p₀ + ρgh; specific gravity is the density over water’s 1,000 kg/m³, and a floating object sits with that share of itself under water.
Sources
- OpenStax University Physics Volume 1, §14.1 Fluids, Density, and Pressure (2016)
- CODATA 2022: standard atmosphere (NIST, CODATA 2022)
- CODATA 2022: standard acceleration of gravity (NIST, CODATA 2022)
- Guide for the Use of the SI, Appendix B.8 (conversion factors) (NIST, SP 811)
How it’s tested
9 worked examples for this page are checked by automated tests before every release: given the inputs, the tool must show the expected answer.
Privacy
On your device. Nothing you enter or open leaves this browser. About privacy labels
Changes
- First published: density, mass and volume from any two with a will-it-float drawing, plus pressure, water pressure at depth and specific gravity pages.
Key facts
- Density is mass per unit volume; water at 4 °C is 1,000 kg/m³, or 1 g/cm³.
- Aluminum is 2,700 kg/m³, iron 7,860, lead 11,300 and gold 19,300 (at 0 °C).
- Ice, at 917 kg/m³, is less dense than water, so it floats with about 92% of it under the surface.
Source: OpenStax University Physics Volume 1, §14.1, Tables 14.1 and 14.2
All 3 calculators
Density · Pressure
Densities of common materials
From OpenStax Tables 14.1 and 14.2: solids and liquids at 0 °C unless noted, air at 0 °C and one atmosphere.
| Material | kg/m³ | g/cm³ | lb/ft³ |
|---|---|---|---|
| Water (4 °C) | 1,000 | 1 | 62.43 |
| Water (20 °C) | 998.2 | 0.9982 | 62.32 |
| Sea water | 1,030 | 1.03 | 64.3 |
| Ice | 917 | 0.917 | 57.25 |
| Olive oil | 920 | 0.92 | 57.43 |
| Gasoline | 680 | 0.68 | 42.45 |
| Mercury | 13,600 | 13.6 | 849 |
| Aluminum | 2,700 | 2.7 | 168.6 |
| Iron | 7,860 | 7.86 | 490.7 |
| Copper | 8,920 | 8.92 | 556.9 |
Show all 13 rowsShow fewer
| Lead | 11,300 | 11.3 | 705.4 |
| Gold | 19,300 | 19.3 | 1,205 |
| Air (0 °C) | 1.29 | 0.00129 | 0.08053 |
Density tells you how much matter is packed into a space. A litre of water has a mass of about a kilogram; a litre of gold, 19.3 kg; a litre of air, about 1.3 g. It is why a small gold bar is so heavy and why helium balloons rise.
To find the density of an odd-shaped object, weigh it, then measure its volume by the water it pushes aside when you sink it: the rise in a measuring jug, in millilitres, is its volume in cubic centimetres.
Sources
- OpenStax University Physics Volume 1, §14.1 Fluids, Density, and Pressure
- NIST, CODATA 2022: standard atmosphere
- NIST, CODATA 2022: standard acceleration of gravity
- NIST, Guide for the Use of the SI, Appendix B.8 (conversion factors)
Example numbers are from OpenStax’s worked examples, cited by number; the explanations here are our own.
Common questions
What is the formula for density?
Density is mass divided by volume, ρ = m ÷ V, in kilograms per cubic metre (or grams per cubic centimetre). Rearranged, mass is density times volume and volume is mass divided by density.
How do I use the calculator?
Fill in any two of density, mass and volume, or pick a material to fill in its density, and the third is worked out. Typing a third value lets go of the oldest of the two you typed.
How do I convert g/cm³ to kg/m³?
Multiply by 1,000: water is 1 g/cm³ or 1,000 kg/m³. Switch the density unit on the field and the calculator converts the number for you.
Why does density change with temperature?
Most things expand as they warm, so the same mass takes more room. Water is odd: it is densest at 4 °C (1,000 kg/m³) and ice, at 917 kg/m³, is less dense than the water it froze from, so it floats.