Density Calculator Guide: How to Calculate Density, Mass and Volume

Written and verified by Muhammad Haroon, founder of Numblox · ρ = m ÷ V · The density triangle · Worked examples · Updated 24 November 2026

Density answers a simple question: how much mass is packed into a given space? It is why a brick sinks and a same-sized block of wood floats, why oil sits on water, and how engineers identify materials from a single measurement. One division — mass over volume — plus two rearrangements cover every density problem. This guide explains all three forms with examples verified against the calculator.

Try it yourself: use the free Density Calculator on Numblox — choose whether you want density, mass or volume, enter the two values you know, and see all three together. Nothing you enter is stored or sent anywhere.

The density formulas

Density: ρ = m ÷ V
Mass: m = ρ × V
Volume: V = m ÷ ρ

The Greek letter ρ (rho) stands for density. Picture the three letters in a triangle — ρ at the bottom is not standard; the usual drawing puts m on top with ρ and V beneath: cover the one you want and the other two show you the operation, exactly like the Ohm's law triangle. Units must match: grams with cm³ give g/cm³; kilograms with m³ give kg/m³; and 1 g/cm³ = 1,000 kg/m³.

MaterialDensity (g/cm³)Floats in water?
Water1.00—
Ice0.92Yes — about 92% submerged
Olive oil0.91Yes
Wood (pine)≈ 0.5Yes
Aluminium2.70No
Copper8.90No
Gold19.30No

How to use the calculator

Step 1: Choose what you want to find: Density (ρ), Mass (m) or Volume (V).

Step 2: Enter the two values you know — for density, that is mass and volume, in matching units such as grams and cm³.

Step 3: Read the result: the calculator shows density, mass and volume together.

Worked example 1 — finding density: 100 g in 40 cm³

A metal sample weighs 100 g and displaces 40 cm³ of water.

Step 1: ρ = m ÷ V = 100 ÷ 40 = 2.5 g/cm³.

Step 2: compare with the table — 2.5 g/cm³ is close to aluminium (2.70), a useful first clue about what the metal is. The calculator reports density 2.5 g/cm³ with the mass and volume alongside.

Worked example 2 — water itself: 500 g in 500 cm³

ρ = 500 ÷ 500 = 1.0 g/cm³ — the reference point for the whole table. Anything denser than 1.0 g/cm³ sinks in water; anything less dense floats. That single comparison is the fastest density sanity check there is.

Worked example 3 — finding mass: a copper block of 10 cm³

Copper's density is 8.9 g/cm³, so a 10 cm³ block has mass m = ρ × V = 8.9 × 10 = 89 g. In the calculator, choose "Mass", enter density 8.9 and volume 10, and it shows 89 g.

Worked example 4 — finding volume: 400 g of oil at 0.8 g/cm³

V = m ÷ ρ = 400 ÷ 0.8 = 500 cm³ — half a litre of oil weighs only 400 g, which is why a litre bottle of oil feels lighter than a litre of water. Choose "Volume" in the calculator, enter density 0.8 and mass 400, and it returns 500 cm³.

Why ice floats — density in everyday life

Most substances contract as they freeze; water is the famous exception, expanding into a crystal that is about 8% less dense (0.92 vs 1.00 g/cm³). Icebergs float with roughly 92% of their volume underwater — the origin of "tip of the iceberg". Hot air is less dense than cold air, which lifts balloons and drives weather. Density is one of those small ideas that quietly explains a large part of the physical world.

Common questions

What is the formula for density? Density = mass ÷ volume (ρ = m/V). With mass in grams and volume in cm³, the result is in g/cm³: for example, 100 g ÷ 40 cm³ = 2.5 g/cm³.

How do I find mass if I know density and volume? Multiply them: m = ρ × V. Copper at 8.9 g/cm³ with a volume of 10 cm³ has a mass of 89 g.

Why do objects float or sink? An object floats in a fluid if its average density is lower than the fluid's, and sinks if it is higher. Ice (0.92 g/cm³) floats in water (1.00 g/cm³); a steel ship floats because the air inside its hull brings its average density below 1.00.

How do I convert g/cm³ to kg/m³? Multiply by 1,000. Water is 1.00 g/cm³ = 1,000 kg/m³; copper is 8.9 g/cm³ = 8,900 kg/m³.

Check your own numbers

Enter your two known values in the Numblox Density Calculator and compare with the triangle above. Working with solutions next? The Molarity Calculator Guide builds on density's cousin — concentration.

Disclaimer: This article and the calculator provide general educational information and estimates only. Always double-check figures that matter for coursework grades, lab work, wiring, or safety.

Related: Density Calculator · Mole Calculator Guide · Molarity Calculator Guide · All free calculators

Real-world examples and common mistakes

Density settles arguments. A 'gold' bar of 250 g that measures 100 cm³ has a density of 2.5 g/cm³ — real gold is 19.3 g/cm³, so the bar is certainly not solid gold. The same test works kindly elsewhere: ice at 0.92 g/cm³ floats on water (1.00 g/cm³) with about 92% submerged, which is why icebergs hide most of their bulk. The common mistakes: mixing unit systems — 1 g/cm³ equals 1,000 kg/m³, so a value that looks tiny may just be in the other system — measuring the volume of an irregular object by its outer dimensions instead of by water displacement, and weighing a container along with its contents.