CCalclabhub

Physics

How To Calculate Density

Density is mass divided by volume, and nearly every practical difficulty comes from units: knowing which pair you are holding and which pair the answer should be in.

Quick Answer

Density = mass / volume (rho = m / V)

m
Mass of the sample, in grams or kilograms
V
Volume the sample occupies, in cm3 or m3
rho
Density — mass per unit volume, the quantity you are solving for
rho water
Density of water, 1.0 g/cm3 or 1000 kg/m3, the reference for specific gravity

Divide the mass by the volume. 500 g in 250 cm3 gives 2 g/cm3, which is 2000 kg/m3 in SI units, a specific gravity of 2 against water, and a volume of 500 cm3 per kilogram. The two metric forms differ by a factor of 1000, not 100, because a gram is a thousandth of a kilogram while a cubic centimetre is a millionth of a cubic metre.

What Is Density?

Density measures how much mass sits in a given volume, and it is calculated by dividing mass by volume. A 500 g sample that fills 250 cm3 therefore has a density of 2 g/cm3, which states that every cubic centimetre of the material holds two grams of matter. The number describes the substance itself rather than the particular lump you happen to be holding, and that distinction is what gives density its usefulness. It is also a bridge between a microscopic picture and a laboratory measurement, because the same figure you weigh out on a bench also sets how the material behaves in the wider world.

Because it does not depend on how much material is present, density is called an intensive property. Cut the 500 g sample in half and the mass falls to 250 g while the volume falls to 125 cm3, yet the ratio is still 2 g/cm3. Take a tonne of the same substance at the same temperature and pressure and the ratio is unchanged again. This is why density can be used to identify a material, whereas mass and volume on their own tell you only about the piece in front of you.

Density decides whether an object floats in a fluid. If the object is less dense than the fluid around it, it rises; if it is denser, it sinks. A block with a density of 0.8 g/cm3 floats in water, whose density is 1.0 g/cm3, and it settles with exactly eighty per cent of its volume submerged. Steel at about 7.85 g/cm3 sinks as a solid lump, yet a steel ship floats because the air trapped inside the hull brings the average density of the whole vessel below that of water. The comparison is always against the fluid, not against some fixed standard, which is why the same object floats in mercury but sinks in water.

Temperature changes density, because it changes volume far more than it changes mass. Warming a material makes it expand, so the same mass spreads through a larger volume and the density drops. Cooling reverses this. Water is the celebrated exception near freezing: it reaches its maximum density at about 4 C and then becomes less dense as it solidifies, which is why ice floats on a pond rather than sinking to the bottom.

Mass and weight are different quantities, and density is built on mass. Mass is the amount of matter in a sample, measured in grams or kilograms, and it is the same everywhere in the universe. Weight is a force, equal to mass multiplied by the local gravitational acceleration, measured in newtons, and it changes with gravity. Everyday speech calls a 500 g block a 500 g weight, but strictly speaking 500 g is its mass, not its weight. The confusion is understandable because everyday balances are labelled in grams and people call the reading a weight, but the quantity such an instrument actually reports is mass.

Because density uses mass rather than weight, a value measured on Earth stays correct on the Moon. The same block still contains the same matter and occupies the same volume, so its density is unchanged even though it weighs roughly a sixth as much. This is precisely why physicists and chemists prefer density as a way of characterising a material: it is a property of the substance, not of the planet on which the measurement happened to be taken. Astronauts reason about cargo this way and geologists reason about rock this way, without either group having to specify where the sample was weighed.

The unit conversion is where most mistakes begin. One gram per cubic centimetre equals one thousand kilograms per cubic metre, not one hundred. Substitute the base units and it becomes obvious: a gram is 0.001 kg and a cubic centimetre is 0.000001 m3, so one g/cm3 is 0.001 divided by 0.000001 kg/m3, which equals 1000. The two prefixes work in opposite directions, and their combined effect is a factor of one thousand rather than one hundred. A useful way to remember the direction is that the SI value is the larger-looking number, so 2 g/cm3 grows into 2000 kg/m3 rather than shrinking.

Reading that factor in the right direction matters as much as knowing it. To go from g/cm3 to kg/m3 you multiply by 1000, so 2 g/cm3 becomes 2000 kg/m3. To go the other way you divide by 1000, so 7850 kg/m3 becomes 7.85 g/cm3. Notice that the decimal point moves three places in each case, which is a useful mental check: any conversion between these two units shifts the digits by exactly three positions. A quick mental test is to ask whether the number grew or shrank; if a density that ought to be near 2 has become 0.002 or 20 000, a factor of a thousand has gone the wrong way.

Specific gravity rescales density so that water sits at one. It is the density of a material divided by the density of water, so a substance at 2 g/cm3 has a specific gravity of 2 and is twice as dense as water. Because the two densities carry the same units, the units cancel and specific gravity is a bare number with no dimensions at all. That is what makes it convenient: 2.70 means aluminium whether you were working in grams and centimetres or in kilograms and metres. It also sidesteps the unit question entirely when you are comparing two materials, because the ratio is the same regardless of which units you used to find it.

Formula

rho = m / V

The defining relationship. Divide the mass by the volume it occupies; the units of the answer follow from the units you feed in.

SymbolMeaning
mMass of the sample
VVolume the sample occupies
rhoDensity of the material

rho[kg/m3] = rho[g/cm3] x 1000

A factor of 1000, never 100. Going the other way you divide by 1000 instead of multiplying.

SymbolMeaning
rho (g/cm3)Density in grams per cubic centimetre
rho (kg/m3)Density in SI base units

SG = rho / rho_water

Divide the density by the density of water. The units cancel, leaving a dimensionless number that is 1 for water itself.

SymbolMeaning
SGSpecific gravity
rho waterDensity of water

How To Calculate Density

  1. 1

    Establish the mass of the sample

    Use a balance, which measures mass directly and reads in grams or kilograms. If you only have a spring scale you are measuring weight, so divide by the gravitational acceleration of about 9.81 m/s2 to recover the mass before going any further. A balance compares masses, so it gives the same reading on the Moon as on Earth, which is exactly the property density relies on.

  2. 2

    Find the volume in a known unit

    For a regular solid, multiply its dimensions; for a liquid, read the graduated cylinder; for an irregular solid, use displacement. Whatever route you take, record the volume as cm3 or m3 and write the unit down, because the next step inherits it.

  3. 3

    Divide mass by volume

    500 g divided by 250 cm3 gives 2 g/cm3. The units of the answer are simply the units of the inputs combined, so feeding in grams and cubic centimetres yields grams per cubic centimetre with no extra work. Carrying the units through the division is a habit worth forming, because it makes a mistake in the setup visible before you trust the number.

  4. 4

    Convert to SI when the context demands it

    Multiply the g/cm3 figure by 1000 to reach kg/m3, turning 2 into 2000. Multiplying by 100 is the classic error, and it produces an answer that is ten times too small yet still plausible enough to pass a glance.

  5. 5

    Check the result against a known material

    Water is 1.0, aluminium 2.70, steel about 7.85 and gold 19.32 g/cm3. If your answer lands far outside the range spanned by real materials, the cause is almost always a unit slip rather than a measurement problem.

Examples

Example 1: The default sample: 500 g in 250 cm3

Mass
500 g
Volume
250 cm3
StepCalculationResult
Density500 / 2502
Convert to SI units2 x 10002000
Specific gravity against water2 / 12
Volume per kilogram1000 / 2500

Result: 500 g in 250 cm3 gives 2 g/cm3, or 2000 kg/m3, a specific gravity of 2, and a volume of 500 cm3 per kilogram.

Example 2: Identifying a metal block

Mass
810 g
Volume
300 cm3
StepCalculationResult
Density810 / 3002.7
In SI units2.7 x 10002700
Compare with water2.7 / 12.7

Result: 810 g over 300 cm3 gives 2.7 g/cm3, or 2700 kg/m3, which matches aluminium at 2.70 and rules out steel at 7.85.

Example 3: Why a wooden block floats

Mass
400 g
Volume
500 cm3
StepCalculationResult
Density400 / 5000.8
In SI units0.8 x 1000800
Specific gravity0.8 / 10.8

Result: A specific gravity of 0.8 means the block is less dense than water, so it floats with 80 per cent of its volume below the surface, and its SI density is 800 kg/m3.

Calculator

Density in grams per cubic centimetre

2

The same density in SI units
2,000
Specific gravity against water
2
Cubic centimetres per kilogram of this material
500

Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.

Prefer a full-width tool? Open the Density calculator page.

Common Mistakes

  • Mixing grams per cubic centimetre with kilograms per cubic metre

    The two units differ by a factor of 1000, not 100. Feeding a mass in grams and a volume in cubic metres into the same division, or quoting a kg/m3 answer as though it were g/cm3, shifts the result by three orders of magnitude while leaving it superficially reasonable.

  • Entering millilitres but calculating as litres

    A millilitre and a cubic centimetre are the same volume, but a litre is 1000 cm3. Using 250 mL correctly gives 2 g/cm3 for 500 g, whereas treating that same 250 as litres would imply a volume a thousand times larger and a density a thousand times smaller.

  • Using weight in place of mass

    Weight is a force in newtons, so dividing it by a volume yields a quantity with the wrong dimensions entirely. On Earth the numerical difference is a factor of about 9.81, which is easy to absorb into a mistaken answer without ever noticing. The safe habit is to convert to mass before you divide, and to say mass rather than weight whenever you write the formula down.

  • Ignoring the temperature

    Density is quoted at a stated temperature because volume expands on heating. A value measured warm is lower than the same material measured cold, so comparing two figures taken at different temperatures can suggest a difference in composition that is not really there.

  • Forgetting to subtract the container in a displacement measurement

    The water level rises by the volume of the object only if you subtract the starting reading. Using the final level as the volume includes the water already present, which inflates the volume and depresses the calculated density. Reading the cylinder at eye level, at the bottom of the meniscus, removes a second source of error in the same measurement.

FAQ

What is the formula for density?

Density equals mass divided by volume, written rho = m / V. For a 500 g sample occupying 250 cm3 the density is 2 g/cm3, which is the same as 2000 kg/m3 and a specific gravity of 2 against water. If you prefer to work in SI from the start, keep the mass in kilograms and the volume in cubic metres and the same division returns kg/m3 directly.

Why is 1 g/cm3 equal to 1000 kg/m3 rather than 100?

Because two prefixes change at once. A gram is a thousandth of a kilogram and a cubic centimetre is a millionth of a cubic metre, so one gram per cubic centimetre becomes 0.001 divided by 0.000001 kg/m3, which is 1000. The two factors combine multiplicatively rather than adding.

What does specific gravity actually mean?

It is the density of a material divided by the density of water, so water itself scores 1. A specific gravity of 2.70 means the material is 2.70 times as dense as water. The units cancel, so the figure is a pure number and carries no unit of its own.

How do I measure the density of an irregular object?

Weigh it to get the mass, then use displacement to get the volume: note the water level, submerge the object, and take the difference. Dividing the mass by that volume difference gives the density, provided you remember to subtract the starting level. For a very light object that floats, you will need to push it under the surface, and the displaced volume is then the volume of the object rather than the part that would naturally sit below the waterline.

Does temperature really change density?

Yes, because volume responds to temperature while mass does not. Heating expands a material, so the same mass fills more space and the density falls. Water is the awkward exception: it is densest near 4 C and expands again as it freezes, which is why ice floats.

References

  1. [1]Wikipedia, Density — https://en.wikipedia.org/wiki/Density
  2. [2]Wikipedia, Specific gravity — https://en.wikipedia.org/wiki/Specific_gravity
  3. [3]Wikipedia, Buoyancy — https://en.wikipedia.org/wiki/Buoyancy