Skip to main content
Density

Density Calculator

Calculate density, mass, or volume from any two known values using density = mass / volume.

ρ = m / V  |  mass = ρ × V  |  volume = m / ρ
g
010000
cm³
01000000
Enter two known values above to calculate the third

How It Works

Density is a fundamental physical property that describes how much mass is packed into a given volume. It answers a simple but powerful question: for a fixed amount of space, how heavy is the material that fills it? Two objects can be the same size yet have very different weights — a block of lead and a block of foam, for instance — and density is exactly the number that captures this difference. This calculator uses the relationship ρ = m / V (density = mass ÷ volume) and can solve for any one of the three quantities when the other two are known, making it useful for physics and chemistry students, lab work, engineering estimates, and everyday problems like checking the purity of a metal or working out the weight of a material before transporting it.

Density is what decides whether something floats or sinks. An object placed in a fluid floats if it is less dense than that fluid and sinks if it is more dense. Because pure water has a density of about 1 g/cm³, any solid or liquid below that value will float on water and anything above it will sink. This single idea explains why wood floats, why a steel coin sinks, and why a huge steel ship can still float — its hull encloses enough air that itsaverage density drops below that of water.

Formula

ρ = m / V — Density = Mass ÷ Volume (commonly g/cm³ = grams ÷ cubic centimetres)

Rearranged to find the other two quantities: m = ρ × V and V = m / ρ.

The symbol ρ is the Greek letter "rho". The SI unit of density is kg/m³, but g/cm³ (identical to g/mL) is more convenient for everyday solids and liquids. The two scales are easy to switch between: 1 g/cm³ = 1000 kg/m³. To convert a value in kg/m³ to g/cm³, divide by 1000; to go the other way, multiply by 1000.

Worked example

Suppose a small metal cube has a mass of 135 g and a volume of 50 cm³. Its density is ρ = m / V = 135 ÷ 50 = 2.7 g/cm³. Comparing that result with the reference table below, 2.7 g/cm³ matches aluminium, so the cube is very likely aluminium. The same formula works in reverse. If you know a block of iron has a density of 7.87 g/cm³ and a volume of 20 cm³, its mass is m = ρ × V = 7.87 × 20 = 157.4 g. And if you have 100 g of gold (density 19.3 g/cm³), its volume is V = m / ρ = 100 ÷ 19.3 ≈ 5.18 cm³ — a striking reminder of just how compact a dense metal is.

Tips for using this calculator

Pick the correct mode first — "Find Density", "Find Mass", or "Find Volume" — then enter the two values you already know. Keep your units consistent: this tool works in grams and cubic centimetres, so convert kilograms to grams (×1000) and litres or millilitres to cubic centimetres (1 mL = 1 cm³, 1 L = 1000 cm³) before entering them. For an irregularly shaped solid, find its volume by water displacement — lower it into a measuring cylinder and read off how much the water level rises. Use the built-in materials table to identify an unknown sample or to sanity-check your answer against known values.

Common mistakes to avoid

The single biggest error is mismatched units — mixing kilograms with cubic centimetres, or millilitres with cubic metres, throws the answer off by factors of a thousand or a million. Another is confusing density with mass: a kilogram of feathers and a kilogram of steel have the same mass but vastly different densities and volumes. Finally, remember that density changes with temperature (materials expand when heated and so become slightly less dense), which is why reference values are usually quoted at a specific temperature such as water at 4°C.

Frequently Asked Questions

Density tells you how much matter is packed into a space. It determines whether objects float or sink (objects less dense than water float), and is critical in materials selection for engineering. A material with density greater than water (1 g/cm³) will sink; less dense materials float.

Part of Science & Engineering Calculators — compare every related calculator in one place.