How to Calculate Density

Learn how to calculate density using the formula density = mass / volume. Covers units, measurement techniques, buoyancy, and real-world applications with worked examples.

What Is Density?

Density is a fundamental physical property that describes how much mass is packed into a given volume. It is defined by the formula rho = m / V, where rho (the Greek letter rho) is density, m is mass, and V is volume. A material with high density has a lot of mass in a small space, like lead or gold. A material with low density has relatively little mass in the same space, like air or styrofoam. Density is an intensive property, meaning it does not depend on the amount of material: a small gold ring has the same density as a large gold bar.

Units of Density

In the SI system, density is measured in kilograms per cubic meter (kg/m cubed). In everyday science and chemistry, grams per cubic centimeter (g/cm cubed) is more commonly used because it gives convenient numbers for most solids and liquids. The two are related by the conversion 1 g/cm cubed = 1,000 kg/m cubed. Water at 4 degrees Celsius has a density of exactly 1.000 g/cm cubed (or 1,000 kg/m cubed), which is not a coincidence but a consequence of how the gram was historically defined. For gases, density is often expressed in kg/m cubed because gas densities are much lower than those of liquids and solids.

How to Measure Mass and Volume

To calculate density, you need accurate measurements of both mass and volume. Mass is straightforward to measure using a balance or scale. Volume measurement depends on the shape of the object. For regular geometric shapes (cubes, cylinders, spheres), calculate volume using geometric formulas. For irregularly shaped objects, use the water displacement method: submerge the object in a graduated cylinder partially filled with water and measure the rise in water level. The volume of water displaced equals the volume of the object. This method was famously used by Archimedes to determine whether a crown was pure gold.

Step-by-Step Calculation

Follow these steps to calculate density. First, measure the mass of the object in grams or kilograms using a scale. Second, determine the volume in cubic centimeters or cubic meters using either geometric formulas or water displacement. Third, divide mass by volume to get density. For example, a metal block has a mass of 450 g and dimensions of 5 cm by 3 cm by 2 cm. The volume is 5 times 3 times 2 = 30 cm cubed. The density is 450 / 30 = 15 g/cm cubed. Comparing this to known densities, this is very close to the density of gold (19.3 g/cm cubed) minus no, it is actually closer to the density of a lead-antimony alloy.

Density of Common Materials

Knowing the densities of common materials helps you identify unknowns and make engineering decisions. Air at sea level has a density of about 1.225 kg/m cubed. Fresh water is 1,000 kg/m cubed. Aluminum is 2,700 kg/m cubed. Iron is 7,874 kg/m cubed. Lead is 11,340 kg/m cubed. Gold is 19,300 kg/m cubed. Materials with densities less than 1,000 kg/m cubed (or 1.0 g/cm cubed) will float in water. This is why wood (approximately 400 to 700 kg/m cubed depending on species) floats, while iron sinks. Ice has a density of about 917 kg/m cubed, which is why it floats on liquid water, an unusual property critical for aquatic life in cold climates.

Buoyancy and Archimedes' Principle

Archimedes' principle states that an object immersed in a fluid experiences an upward buoyant force equal to the weight of the fluid it displaces. Whether an object sinks or floats depends on the relationship between its density and the fluid's density. If the object's density is less than the fluid's density, it floats. If greater, it sinks. If equal, it is neutrally buoyant. A steel ship floats despite steel being denser than water because the ship's hull encloses a large volume of air, making the average density of the entire ship (steel plus air) less than that of water. Submarines control their buoyancy by filling or emptying ballast tanks with water.

Temperature and Pressure Effects

Density is not constant; it varies with temperature and pressure. Most materials expand when heated, increasing their volume while mass stays the same, so density decreases. This is why hot air rises: it is less dense than the cooler air surrounding it. Pressure has the opposite effect, especially for gases: increasing pressure compresses a gas into a smaller volume, increasing its density. For liquids and solids, pressure effects on density are usually small unless the pressures are extreme. Water is a notable exception to the general thermal expansion rule: it reaches maximum density at about 4 degrees Celsius and actually expands as it cools below that temperature toward freezing.

Applications of Density Calculations

Density calculations are used across science and engineering. Geologists use density to identify minerals and understand the layered structure of the Earth. Engineers select materials based partly on density to optimize strength-to-weight ratios in aircraft and automobiles. Chemists use density to verify the purity and concentration of solutions. Oceanographers study how variations in water density (due to temperature and salinity) drive deep ocean currents. In manufacturing, density measurements serve as a quality control check: deviations from expected density can indicate voids, impurities, or incorrect composition in a product.

Try These Calculators

Put what you learned into practice with these free calculators.