Density Calculator
Calculate density, mass, or volume using the density formula D = M/V. Solve for any variable and convert between common density units.
Density = Mass ÷ Volume
Density measures how much mass is packed into a given volume, and the relationship is captured by one simple formula: density (ρ) = mass (m) ÷ volume (V). Rearranged, mass = ρ × V, and volume = m ÷ ρ — so knowing any two of the three lets you find the third, which is what this calculator does. The crucial discipline is consistent units: if mass is in kilograms and volume in cubic metres, density comes out in kg/m³; if mass is in grams and volume in cubic centimetres, you get g/cm³. Mixing units (grams with cubic metres, say) is the single most common source of error. Water is the natural reference point, with a density of 1 g/cm³, which is exactly 1000 kg/m³ — a handy conversion to remember, since the two unit systems differ by a factor of 1000. A worked example: a metal block with a mass of 540 g and a volume of 200 cm³ has a density of 540 ÷ 200 = 2.7 g/cm³, which identifies it as aluminium. Density is an intrinsic property of a material — it doesn't depend on how much of the substance you have — so it's a reliable way to identify materials and predict how they'll behave in fluids.
Common Densities
Knowing typical densities helps you sanity-check results and identify materials. Water sits at 1 g/cm³ by definition (at 4°C, its densest point). Ice is 0.92 g/cm³ — less dense than liquid water, which is why ice floats and, unusually, why water expands when it freezes (most substances contract when solid). Common metals: aluminium is 2.7 g/cm³, iron and steel around 7.9 g/cm³, lead 11.3 g/cm³, and gold a remarkable 19.3 g/cm³ — nearly twice the density of lead, which is why a small gold bar feels surprisingly heavy. At the other extreme, air is just 0.0012 g/cm³ (about 1.2 kg/m³), roughly 800 times less dense than water. Wood varies widely (0.4–0.9 g/cm³) depending on species and moisture, and most types float. These values let you estimate: if you calculate a density of around 8 g/cm³ for an unknown metal object, it's likely steel rather than aluminium or gold. Densities also shift slightly with temperature (substances generally expand and become less dense when heated) and, for gases, dramatically with pressure — which is why gas densities are always quoted with their conditions.
Floating and Sinking
Whether an object floats or sinks comes down to a simple comparison: an object floats if its average density is less than the density of the fluid it's placed in, and sinks if it's greater. This is Archimedes' principle in everyday terms — a floating object displaces a weight of fluid equal to its own weight. A block of solid steel sinks in water because steel (7.9 g/cm³) is far denser than water (1 g/cm³). Yet a steel ship floats, which seems paradoxical until you consider average density: the ship is mostly hollow, full of air, so its overall density (the steel hull plus all the enclosed air) is less than water's, and it floats. This is why a ship sinks if it floods — water replaces the air, raising the average density above that of water. The same principle explains why a helium balloon rises (helium plus the balloon is less dense than air), why ice floats (0.92 vs 1 g/cm³, leaving about 90% submerged — hence the 'tip of the iceberg'), and why oil floats on water (oil is less dense). For objects denser than the fluid, shape doesn't help unless it traps enough air to lower the average density — the principle behind boats, life jackets, and buoyancy aids.
Units and Significant Figures
Science calculations require consistent units throughout, and density problems are especially prone to unit mistakes. Mixed units — some values in metres, others in centimetres — are the most common source of errors, so before substituting into any formula, check whether everything is in a consistent system. Working in SI units (kilograms, metres, seconds, kelvin) gives kg/m³; working in grams and cubic centimetres gives g/cm³; just don't mix them, and convert first if needed (remember 1 g/cm³ = 1000 kg/m³). Significant figures matter too: your answer should not be quoted to more precision than the least precise measurement used. If you measured mass to 3 significant figures and volume to 2, the density should be given to 2 significant figures — claiming more implies a precision you didn't have. For very large or very small numbers, scientific notation (e.g. 1.2 × 10⁻³ g/cm³ for air) avoids ambiguity about significant figures and is far clearer than long strings of zeros. When measuring volume of an irregular object, water displacement (the rise in water level when submerged) is a practical method, and for regular shapes use the geometric formula. Always double-check that your final density is physically reasonable by comparing it against known values.
Recommended for this calculator