Density calculator
Weigh it, measure its volume, and find its density. The calculator also compares it with water so you know straight away whether it will float.
See it for real: play Sandpit or play Fly a Hot-Air Balloon.
The formula
Density tells you how much mass is packed into each bit of space. Divide the mass of an object by the volume it takes up:
ρ = m / V so m = ρ V and V = m / ρ
Here ρ (the Greek letter rho) is the density, m the mass and V the volume. In SI units density is measured in kilograms per cubic metre (kg/m³), but in the lab and the kitchen grams per cubic centimetre (g/cm³) is handier. The two differ by exactly 1,000: water is 1,000 kg/m³, which is 1 g/cm³ or 1 g/mL. That neat value is no accident: the gram was originally defined as the mass of one cubic centimetre of water.
The calculator also gives specific gravity (relative density), the density divided by that of water. It has no units: 2.7 means “2.7 times as heavy as the same volume of water”. Anything below 1 floats in fresh water.
How to measure the volume
For a regular shape, measure and multiply: a box is length × width × height, a cylinder is π × radius² × height, a sphere is 4/3 × π × radius³. For an awkward shape such as a stone, a key or a toy, use displacement: half fill a measuring jug, note the level, drop the object in and read the new level. The rise in millilitres is the object’s volume in cm³. This is the trick Archimedes is said to have used to check whether a king’s crown was pure gold without melting it down.
Typical densities
| Material | Density (kg/m³) | g/cm³ |
|---|---|---|
| Air at 20 °C, sea level | 1.20 | 0.0012 |
| Cork | about 240 | 0.24 |
| Pine wood (dry) | about 500 | 0.5 |
| Petrol | about 740 | 0.74 |
| Ice | 917 | 0.917 |
| Fresh water at 4 °C | 1,000 | 1.000 |
| Sea water | about 1,025 | 1.025 |
| Human body (average) | about 985 to 1,010 | 0.99 to 1.01 |
| Glass | about 2,500 | 2.5 |
| Aluminium | 2,700 | 2.70 |
| Steel | about 7,850 | 7.85 |
| Copper | 8,960 | 8.96 |
| Lead | 11,340 | 11.34 |
| Gold | 19,300 | 19.3 |
Why density decides floating and sinking
A liquid pushes up on anything in it with a force equal to the weight of the liquid pushed aside. If the object is less dense than the liquid, it only needs to sink part of the way before it has displaced its own weight, so it floats. The fraction below the surface equals the ratio of the densities: ice at 917 kg/m³ floats with about 90% of its volume under fresh water, which is where the phrase “tip of the iceberg” comes from. A steel ship floats because its average density, steel plus the air in the hull, is well below that of water. The buoyancy calculator linked below works out the force itself.
Density also sorts fluids into layers. Oil (about 920 kg/m³) floats on water, and in Sandpit you can watch oil, water and sand settle in exactly that order. Hot air is less dense than cool air, which is the whole secret of Fly a Hot-Air Balloon.
Things that change density
- Temperature: most things expand when warmed, so their density falls. Water is unusual: it is densest at about 4 °C (999.97 kg/m³) and slightly lighter at 20 °C (998.2 kg/m³).
- Pressure: gases squash easily, so their density depends strongly on pressure and temperature. Liquids and solids barely change.
- Air pockets: bread, foam, wood and soil contain air, so their bulk density depends on how tightly they are packed. Flour can be anywhere from about 0.5 to 0.7 g/cm³ depending on whether it is sifted.
Everyday uses
- Identifying materials: jewellers and scrap dealers check gold and silver by density. Pure gold is 19.3 g/cm³; 9 carat gold is only about 11 to 12.
- Cooking: converting cups to grams needs density. A US cup of water (237 mL) weighs 237 g, but a cup of flour only about 125 g.
- Testing eggs: a fresh egg sinks in water; an old one floats because air has seeped in through the shell.
Worked example
You find a small grey metal cube, 2 cm along each side (so 2 × 2 × 2 = 8 cm³), and it weighs 21.6 g on kitchen scales. What is it made of?
| Mass | 21.6 g |
|---|---|
| Volume | 8 cm³ |
| Density | 2.7 g/cm³ |
| Relative to water (specific gravity) | 2.7 × water |
A density of 2.7 g/cm³ matches aluminium almost exactly. Steel would be about 7.8 g/cm³ and the same cube in steel would weigh 63 g, so a quick weighing tells the two metals apart without any chemistry.
Frequently asked questions
- What is the formula for density?
- Density = mass ÷ volume (ρ = m / V). A 540 g block with a volume of 200 cm³ has a density of 540 / 200 = 2.7 g/cm³, the density of aluminium.
- What is the density of water?
- About 1,000 kg/m³, or 1 g/cm³. It is densest at 4 °C (999.97 kg/m³) and slightly lower at room temperature (998.2 kg/m³ at 20 °C). Sea water is about 1,025 kg/m³ because of the dissolved salt.
- How do I convert g/cm³ to kg/m³?
- Multiply by 1,000. So 2.7 g/cm³ is 2,700 kg/m³, and 0.92 g/cm³ (ice) is 920 kg/m³. To go the other way, divide by 1,000.
- How do you find the density of an irregular object?
- Weigh it, then find its volume by displacement: lower it into a measuring jug of water and read how many millilitres the level rises. Divide the mass in grams by that volume in mL to get g/cm³.
- Why does ice float?
- Water molecules lock into an open hexagonal pattern when they freeze, so ice (917 kg/m³) is about 9% less dense than liquid water. It floats with roughly nine tenths of its volume below the surface.
- What is the densest material?
- Among elements at room conditions, osmium is the densest at about 22.6 g/cm³, just ahead of iridium. That is nearly twice as dense as lead and 22 times as dense as water.
Sources
- Density, Wikipedia
- Relative density (specific gravity), Wikipedia
- Properties of water: density, Wikipedia
- Densities of solids, The Engineering Toolbox
Related calculators
- Buoyancy Calculator: How hard does water push up on something you put in it? Enter the volume under the surface, the fluid and the object’s mass to get the buoyant force and what it weighs in the water.
- Pressure Calculator: Pressure is force spread over an area. Enter a force (or a weight) and the area it presses on, and get the pressure in every common unit.
- Hot-Air Balloon Lift Calculator: How much can a hot-air balloon carry? Enter the envelope volume and the temperatures inside and out, and the calculator uses the ideal gas law to find the lift.
Checked against the sources above. Last reviewed 2026-11-11. Calculators give estimates from standard formulas; see our disclaimer.

