Foundations of Chemistry

Density: What It Measures and How to Calculate It

See what density tells you about a material, how to calculate and measure it, and why it decides what floats, with worked examples.

Key takeaways

  • Density equals mass divided by volume, and you can rearrange the equation to find either of the other two quantities.
  • Density does not depend on sample size, so it helps characterize a substance.
  • Temperature changes density for all materials, and pressure strongly changes the density of gases.
  • An object floats in a fluid when its average density is lower than the fluid's density.
  • Volume is often the harder measurement, so choose a method that fits the sample's shape and state.

Density is the mass of a material divided by the volume it occupies. It tells you how much matter is packed into each unit of space, and you calculate it with d = m ÷ V.

A block of aluminum with a mass of 21.6 g and a volume of 8.00 cm³ has a density of 2.70 g/cm³. A block ten times larger has ten times the mass and ten times the volume, so the ratio stays at 2.70 g/cm³. That constancy is what makes density useful for identifying materials.

What the number means

Mass tells you how much matter you have, and volume tells you how much room it takes. Neither alone describes the material. A kilogram of feathers and a kilogram of steel have equal mass but very different volumes.

Dividing one by the other removes the amount from the picture. Density is therefore an intensive property, one that stays the same however much you have, while mass and volume are extensive properties that grow with the sample. The distinction is covered in intensive and extensive properties.

At the particle level, density depends on two things: how heavy the individual atoms are and how closely they sit. Gold is dense because its atoms are very massive and pack tightly. Lithium is light enough to float on water because its atoms have little mass and are not packed closely for their size.

Units and typical values

Chemists usually write g/cm³ for solids, g/mL for liquids and g/L for gases. Since 1 mL equals 1 cm³, the first two are interchangeable. The SI unit is kg/m³.

1 g/cm³ = 1 g/mL = 1000 kg/m³
Material Approximate density near room temperature
Air (about 1 atm) 1.2 g/L, or 0.0012 g/cm³
Ethanol 0.79 g/cm³
Water 1.00 g/cm³
Aluminum 2.70 g/cm³
Iron 7.87 g/cm³
Copper 8.96 g/cm³
Lead 11.3 g/cm³
Mercury 13.5 g/cm³
Gold 19.3 g/cm³

Notice the gap of roughly a thousandfold between air and water. Particles in a gas are far apart compared with their own size, which the kinetic picture of matter explains.

Calculating with the formula

The one relationship d = m ÷ V can be turned three ways: d = m ÷ V, m = d × V and V = m ÷ d. Let the units guide you. Multiplying g/mL by mL leaves grams, which confirms the arrangement.

What volume does 50.0 g of ethanol occupy, taking its density as 0.789 g/mL?

V = m ÷ d
V = 50.0 g ÷ 0.789 g/mL
V = 63.4 mL

The answer exceeds 50 mL, as it should for a liquid less dense than water.

What is the mass of 25.0 mL of mercury, with density 13.5 g/mL?

m = d × V
m = 13.5 g/mL × 25.0 mL
m = 338 g

That is roughly a third of a kilogram in less than two tablespoons. (Mercury is toxic, and this is a paper exercise only.)

Measuring volume by shape and state

Mass comes straight from a balance. Volume takes more thought.

  • Regular solids: measure dimensions and use geometry. A rectangular block has V = length × width × height, and a cylinder has V = π × r² × height.
  • Irregular solids: use water displacement, provided the object sinks and does not dissolve or react.
  • Liquids: weigh an empty container, add a measured volume from a pipette or volumetric flask, and weigh again.
  • Precise liquid work: a pycnometer, a small flask that holds a very reproducible volume, or an electronic density meter based on a vibrating tube.
  • Quick liquid checks: a hydrometer, a weighted float that sits higher in denser liquids.

Here is a displacement example. A piece of metal has a mass of 71.7 g. Water in a graduated cylinder reads 25.0 mL before you slide the metal in and 33.0 mL afterward.

V = 33.0 mL − 25.0 mL = 8.0 mL
d = 71.7 g ÷ 8.0 mL = 8.96 g/mL, reported as 9.0 g/mL

The volume has only two significant figures because it is a difference of two readings, so it limits the answer. The result is consistent with copper but does not prove it, since other alloys have similar values. Trapped air bubbles inflate the volume and lower the calculated density, so tap them loose.

Using a graph

Measuring several samples of one material and plotting mass (vertical) against volume (horizontal) should give a straight line through the origin. The slope is the density.

A graph beats a single measurement in two ways. It averages out scatter across points, and it exposes problems. If the line crosses the mass axis above zero, perhaps the container's mass was never subtracted. The slope may still be correct even though every single mass-over-volume ratio is wrong. More on this appears in reading chemistry graphs.

Temperature and pressure

Most substances expand when heated. The mass is unchanged and the volume grows, so density falls. For liquids and solids the effect is small but real, which explains why careful tables list a temperature and why volumetric glassware is marked with one, often 20 °C.

Water is unusual. Its density reaches a maximum near 4 °C, and ice, at about 0.92 g/cm³, is less dense than liquid water. See why ice floats.

Gas density depends strongly on both pressure and temperature. For an ideal gas, d = PM ÷ RT, where M is molar mass, R = 8.314 J/(mol·K) and T is in kelvin. With P in kPa and M in g/mol, the result is in g/L. At 101.325 kPa and 298.15 K:

Gas Molar mass (g/mol) Calculated density (g/L)
Helium 4.00 0.164
Air (average) 28.97 1.18
Carbon dioxide 44.01 1.80

A helium balloon rises because helium is far less dense than the surrounding air. Carbon dioxide tends to collect in low spots, a real hazard in cellars, fermentation rooms and places where dry ice sublimes without ventilation.

Floating, sinking and layering

An object floats when its average density is less than that of the fluid, and sinks when it is greater. "Average" matters. Steel is almost eight times as dense as water, yet a steel ship floats because the hull encloses a large volume of air. Mass of steel plus air, divided by total volume, comes out below the density of water.

Liquids that do not mix quickly settle into layers by density, with the least dense on top.

A kitchen density column, least dense on top
Vegetable oil, about 0.92 g/mL Floats on water and does not mix with it. Water, about 1.00 g/mL The middle layer and the usual reference point. Honey, about 1.4 g/mL Sinks to the bottom, then slowly dissolves if disturbed. Vegetable oil, about 0.92 g/mL Floats on water and does not mix with it. Water, about 1.00 g/mL The middle layer and the usual reference point. Honey, about 1.4 g/mL Sinks to the bottom, then slowly dissolves if disturbed.

Solubility is a separate matter from density. Ethanol is less dense than water, but the two mix completely, so gently layered portions will not stay separate. Chemists use both properties in extraction with a separatory funnel, where knowing which layer is denser tells you what drains out first.

How good is your value?

A density inherits the uncertainty of both measurements, and the weaker one dominates. In the displacement example above, a balance reading to 0.1 g gives the mass to about one or two parts in a thousand. If each cylinder reading is uncertain by a few tenths of a milliliter, the 8.0 mL difference is uncertain by several percent.

Two changes help far more than a better balance:

  • Use a larger sample. Displacing 40 mL in place of 8 mL makes the same reading error five times less important in relative terms.
  • Use a narrower cylinder or a better volume method. Finer graduations shrink the reading error itself.

You can also find the volume by weighing. Fill a pycnometer with water, weigh it, and use the known density of water at that temperature to calculate the flask's volume precisely. Because balances are usually much better than graduated glassware, this turns a weak volume measurement into a strong mass measurement. The same reasoning is set out in propagating uncertainty.

When you compare with a table, ask whether the difference exceeds your uncertainty. A value of 8.96 ± 0.4 g/cm³ is compatible with copper, nickel (about 8.9 g/cm³) and several alloys. Color, magnetism or a chemical test would be needed to separate them.

Common mistakes

  • Confusing density with weight. "Lead is heavier than aluminum" is only true for equal volumes.
  • Confusing density with viscosity. Viscosity is resistance to flow. Many oils are thicker than water yet less dense.
  • Averaging densities of a mixture blindly. Volumes are not always additive. Mixing ethanol and water gives a total volume somewhat smaller than the sum of the parts.
  • Dropping units. A bare "2.7" could mean g/cm³ or something a thousand times different.
  • Ignoring temperature. Comparing your value with a table makes sense only at similar conditions.

Where density earns its keep

Brewers and winemakers follow fermentation by watching liquid density fall as sugar becomes ethanol. Technicians estimate the concentration of an acid or salt solution from a density table. Geologists use it to help identify minerals, and recyclers separate some plastics by whether they float. In each case a simple ratio stands in for information that would otherwise take a longer analysis, as long as you remember that many different materials can share a density.

Written for 4Chemistry with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 32 articles in Foundations of Chemistry →

Latest news on this topic