On this page
Density is the mass of a sample divided by the volume it occupies. For a uniform material under the same conditions, density stays the same regardless of sample size. Higher density means more mass in the same volume.
Prerequisites: You’ll use ratios and metric unit conversions.
Density formula and units
Use (rho) for density, for mass, and for volume.
Cut a uniform sample in half and both mass and volume halve. Their ratio stays the same. That makes density an intensive property. Mass and volume are extensive properties because they scale with sample size.
Use to find mass and to find volume. Let the units check your setup. If you multiply density in g/mL by volume in mL, the milliliters cancel and you get grams.
Common units include grams per milliliter (g/mL), grams per cubic centimeter (g/cm), kilograms per cubic meter (kg/m), and grams per liter (g/L). Because one milliliter and one cubic centimeter have equal volume, . In SI units, because a gram is and a milliliter is .
Compare samples by mass or volume
First check what’s held constant. A steel cube has more mass than a wooden cube of the same size because steel has more mass per unit volume. If you trim the steel until the masses match, the steel sample takes up less space.
A large log can have more mass than a small steel bolt even though the log is less dense. Weight is a separate quantity. It’s the gravitational force on a sample, so it depends on local gravity as well as mass.
Measure volume by displacement
For a regular solid, calculate volume from its dimensions. For an irregular solid, choose a liquid that neither dissolves nor reacts with the solid. Record the liquid level in a graduated cylinder, then fully submerge the solid and record the new level. The rise equals the volume of liquid displaced, which is the solid’s volume. Divide the solid’s mass by that difference to find its density.
Dislodge trapped air before taking the final reading. If the solid floats, hold it fully underwater and subtract any volume displaced by the holder from the measured rise.
How temperature and pressure affect density
For a fixed mass, expansion lowers density and contraction raises it. Most materials expand when heated at constant pressure. Liquid water near freezing behaves differently. It contracts as it warms toward , where it reaches its maximum density at ordinary pressure. Ice floats because it’s less dense than liquid water.
Gases are easier to compress than liquids and solids. Compressing a fixed amount of gas at constant temperature packs the same mass into less space, raising its density. Substitute into the ideal gas law to get . Here is absolute pressure, is molar mass, is the gas constant, and is temperature in kelvin. With the other variables held fixed, density rises with pressure or molar mass and falls as temperature rises. Real gases can depart from this model at high pressures or low temperatures.
Convert liquid volume to moles
For a pure liquid reagent, multiply volume by density to get mass, then divide by molar mass to get moles. Follow the units from milliliters to grams to moles. Review molecular weight and molar mass for the mass-to-mole step and chemical equations for using mole ratios.
For a solution, gives the total mass of solvent and solutes. Multiply by the solute’s mass fraction to get the mass of that solute. If you know its molarity, multiply by the solution volume in liters to get the solute amount directly in moles.
Worked example — A bubble in the cylinder
A student uses water displacement to test whether an irregular metal sample is consistent with aluminum, which has a reference density of about . The sample has a mass of , and the cylinder initially contains of water. With the sample fully submerged, the cylinder reads . The student spots a bubble stuck under the sample and dislodges it. Once the bubble escapes, the cylinder reads .
Common density traps
- Check the units before ranking densities. A sample at is denser than one at . Convert the first value to before comparing.
- Subtract the starting liquid volume. The final cylinder reading includes the liquid already in the cylinder.
- Check whether the volume can change. Heating a gas in a sealed, rigid container raises its pressure while its density stays fixed. Both mass and volume are constant.
Return to stoichiometry for the full calculation sequence, or review percent mass composition to convert a solute mass fraction to a percent.