Skip to main content
Mathovia

Science / Physics

Density Calculator

Choose what you want to solve for below, then enter the two values you already know. Works with any combination of common mass, volume, and density units.

Density
2.5000 g/cm³

Density = Mass ÷ Volume. Pick which value you're solving for above — the other two become your inputs. All unit conversions are handled internally by normalizing to grams and cm³ first.

Written by
MPhil in Mathematics, Founder of Mathovia
Updated

Mathematics verification: Mathematical formulas, calculations, worked examples and solutions are reviewed for accuracy before publication. How we check our work

Density Calculator formula
The Density formula

What density tells you

Density is how much mass is crammed into a given space. Two objects can be identical in size and appearance, but the heavier one is denser — that’s why a solid steel ball sinks and a foam ball of the same size floats. Because most pure substances have a stable, well-documented density under ordinary conditions, a measured density is one of the quickest ways to identify an unknown material or check the purity of a known one.

This calculator solves the density relationship in whichever direction you need: density from mass and volume, mass from density and volume, or volume from mass and density. Pick the mode that matches what you already know.

The density formula

is density, is mass, and is volume. Rearranged for the other two unknowns:

Worked examples

Solving for density. The calculator’s defaults are a mass of 500 g and a volume of 200 cm³.

Solving for mass. Given and :

Solving for volume. Given and :

All three are the same physical situation seen from different sides.

Densities of common materials

MaterialDensity (g/cm³)Density (kg/m³)Floats in water?
Balsa wood0.16160yes
Ice0.92920yes (just)
Water1.001,000—
Glass2.52,500no
Aluminium2.702,700no
Steel7.857,850no
Copper8.968,960no
Lead11.3411,340no
Gold19.3219,320no

The calculated 2.5 g/cm³ from the worked example matches glass — a plausible identification for a clear, hard, non-magnetic sample.

Where density calculations are used

  • Material identification. Weigh a sample, measure its volume by displacement, divide, and compare to a table.
  • Buoyancy. Whether an object or a boat floats comes down to its average density versus the fluid’s.
  • Unit and recipe conversions. Turning a volume of a liquid into a mass (or vice versa) needs its density — the reason “a cup of flour” and “120 g of flour” aren’t automatically the same.
  • Purity checks. A metal’s measured density drifts from the pure value if it’s an alloy or contains voids.
  • Shipping and packing. Freight is often priced on density (mass per volume) rather than either alone.

Common mistakes

  • Mismatched units — mass in kilograms with volume in cubic centimetres gives a number 1,000× too large unless the tool normalizes for you.
  • Measuring the wrong volume — for an irregular solid, use displacement, not length × width × height.
  • Assuming a hollow or porous object has its material’s density. Average density includes the air inside.

For turning a density into a weight for a known volume, the mass mode above does it directly; for material-specific work like solutions, see the molarity calculator.

Finding volume by displacement

Irregular objects don’t have a length × width × height. Drop the object into a measuring cylinder of water and read the rise. A 250 g rock raises the water level from 150 mL to 245 mL:

That falls in the range for granite and other common rocks. One millilitre is exactly one cubic centimetre, so the cylinder reading converts directly.

Converting density units

  • 1 g/cm³ = 1,000 kg/m³ (water is about 1,000 kg/m³).
  • 1 g/cm³ ≈ 62.4 lb/ft³.
  • 1 g/mL = 1 g/cm³ = 1 kg/L.

So the 2.5 g/cm³ glass from the worked example is 2,500 kg/m³, or about 156 lb/ft³.

How much of a floating object is underwater

A floating object sinks until it pushes aside its own weight of fluid. The fraction underwater equals the object’s density divided by the fluid’s density. Ice at 0.917 g/cm³ in fresh water floats about 92% submerged. In seawater (about 1.025 g/cm³) the figure is about , which is where “the tip of the iceberg” comes from.

About the formula: Density = Mass ÷ Volume. Pick which value you're solving for above — the other two become your inputs. All unit conversions are handled internally by normalizing to grams and cm³ first.

Frequently Asked Questions

What is the formula for density?+

Density is mass divided by volume, ρ = m/V. Rearranged: mass = density × volume, and volume = mass ÷ density. This calculator solves whichever one you leave blank.

How do I tell if something will float in water?+

Compare its density to water's 1 g/cm³ (1000 kg/m³). Lower than water floats, higher sinks. Ice at 0.92 g/cm³ floats; aluminium at 2.7 sinks. It's the average density that counts, which is why a steel ship floats.

What is the density of a 500 g object that takes up 200 cm³?+

500 ÷ 200 = 2.5 g/cm³. That's close to glass or granite, and about the density of a typical rock.

Why does switching the density unit change the number so much?+

Only the label changes, not the substance. 1 g/cm³ is exactly 1000 kg/m³ and about 62.43 lb/ft³ — the same density expressed three ways.

Can I mix unit systems, like density in kg/m³ with volume in cubic feet?+

Yes. Every value converts to a common internal base (grams and cm³) before the calculation, so any combination of units gives a correct result.

Does density change with temperature?+

Slightly, for most substances — they expand when heated, so density drops. Water is unusual: it's densest at about 4°C. For everyday work at room temperature the standard tabulated values are close enough.

Related calculators