QuestionForces

How Do You Calculate Density? Formula and Worked Examples

Illustration of the gram per cubic centimetre, the unit of density often used in school science
Illustration of the gram per cubic centimetre, the unit of density often used in school science. Image: nclm (CC BY-SA 4.0), via Wikimedia Commons

To calculate density, divide the mass of a sample by its volume: ρ = m / V. A 540 g block that occupies 200 cm³ has a density of 540 ÷ 200 = 2.7 g/cm³. The answer is in grams per cubic centimeter, and multiplying by 1,000 gives the SI value of 2,700 kg/m³.

Contents

The full answer

Density is the mass of a substance in each unit of volume. To find it, you need two measurements. First, measure the mass on a balance. Second, measure the volume, which is the space the sample takes up. For a liquid, a measuring cylinder gives the volume directly. For a regular solid, such as a cube or a cylinder, you can multiply length, width and height, or use the formula for the shape.

Then divide. The formula is ρ = m / V, where ρ (rho) is density, m is mass and V is volume. Write the units down and keep them with the numbers, because they tell you what the answer means. A mass in grams divided by a volume in cubic centimeters gives density in g/cm³. A mass in kilograms divided by a volume in cubic meters gives density in kg/m³, which is the SI unit recommended by NIST.

Worked example: a metal block has a mass of 540 g and a volume of 200 cm³. Step 1, write the formula: ρ = m / V. Step 2, substitute: ρ = 540 g ÷ 200 cm³. Step 3, divide: ρ = 2.7 g/cm³. Step 4, convert to SI: 2.7 × 1,000 = 2,700 kg/m³. This matches aluminum, whose density is about 2.70 g/cm³.

Why the formula works

Density compares how much matter is in a space. Each particle has some mass, and particles in a dense material are packed closer together than particles in a light material. If you double the number of identical particles in the same space, the mass doubles and the volume stays the same, so the density doubles. If you keep the particles the same and spread them over twice the space, the density halves. Dividing mass by volume measures exactly this packing.

The formula also explains why densities differ so much. Air is about 1.2 kg/m³, because its molecules are far apart. Iron is about 7,870 kg/m³, because its atoms are heavy and closely packed in a solid lattice. Both substances obey the same division, but their numbers reflect how much mass sits in each cubic meter.

Density depends on temperature for most materials. Warm water is slightly less dense than cold water near room temperature, because the molecules move apart. For a school calculation, the density is usually taken at a stated temperature, and that value is what you should use.

Everyday example: checking a metal sample

Imagine a jeweler or a science teacher who wants to check whether a metal bar is aluminum. They weigh the bar and find a mass of 1,350 g. They then measure the volume by lowering it into a measuring cylinder and reading the rise in water level, which gives 500 cm³. Dividing 1,350 g by 500 cm³ gives 2.7 g/cm³, the same value as aluminum.

The same method is used with everyday objects such as a bottle of cooking oil. A 920 g bottle of oil with a volume of 1,000 cm³ has a density of 0.92 g/cm³. Because this is less than the density of water at 1 g/cm³, the oil floats on water. Observing density this way needs only a balance and a measuring cylinder, and no hazardous materials.

The same equation can be rearranged to solve for mass or volume when the other two quantities are known. Multiplying both sides by V gives m = ρ × V, so mass equals density times volume. Dividing both sides by ρ gives V = m / ρ, so volume equals mass divided by density.

Units must match. If density is in kg/m³, the volume must be in m³ and the mass will be in kg. If density is in g/cm³, the volume must be in cm³ and the mass will be in grams. Mixing units, such as g/cm³ with m³, is the most common reason for a wrong answer. See the density page for a fuller explanation of the units.

Common misconceptions

Many students think that a heavier object always has a higher density. This is not true. A large wooden beam can have a larger mass than a small steel nut, yet the steel has the higher density because its mass is packed into a much smaller volume.

Another misconception is that density changes with the amount of material. For a pure substance at a fixed temperature and pressure, density stays the same whether you have a gram or a tonne. Doubling the sample doubles both mass and volume, so the ratio does not change.

A third error is forgetting to convert cubic centimeters to cubic meters. There are 1,000,000 cm³ in 1 m³, so dividing by a million is required, not dividing by a thousand. Check the final unit before writing the answer.

Frequently asked questions

What is the formula for calculating density?

Density equals mass divided by volume, written ρ = m / V. Mass is usually in grams or kilograms, and volume in cubic centimeters or cubic meters. The answer is then given in g/cm³ or kg/m³.

How do you convert g/cm³ to kg/m³?

Multiply the value in g/cm³ by 1,000 to get kg/m³. This works because 1 g is 0.001 kg and 1 cm³ is 0.000001 m³, so the factors give 1,000. For example, 2.7 g/cm³ equals 2,700 kg/m³.

How do you find the mass if you know the density and volume?

Multiply density by volume, using m = ρ × V. The units must match, so use kg/m³ with m³ or g/cm³ with cm³. For example, 2.7 g/cm³ multiplied by 50 cm³ gives 135 g.

How do you find the volume if you know the mass and density?

Divide mass by density, using V = m / ρ. If the mass is in grams and the density is in g/cm³, the volume comes out in cm³. For example, 135 g divided by 2.7 g/cm³ gives 50 cm³.

What is relative density?

Relative density, also called specific gravity, is the density of a substance divided by the density of water. Because the units cancel, it has no unit. Iron has a relative density of about 7.87.

What is the density of aluminum?

Aluminum has a density of about 2.70 g/cm³, which is about 2,700 kg/m³. That value is used in the worked example on this page, where a 540 g block of 200 cm³ gives 2.7 g/cm³.

Sources and further reading

  • NIST, "Guide for the Use of the International System of Units (SI)"
  • OpenStax, "College Physics 2e"

Cite this page

“How Do You Calculate Density? Formula and Worked Examples.” Atoms & Forces, https://science.bigworldlist.com/questions/how-do-you-calculate-density/.

More about Density