Density Calculator: Mass, Volume and Specific Gravity
By FindMySum · Last reviewed
A density calculator works out how much mass is packed into each unit of volume, or uses a known density to find a mass or a volume. The relationship is one line, ρ = m ÷ V, but getting a useful answer depends on measuring the volume properly, keeping the units straight and knowing what density to expect. This article covers all three, with a worked example using the calculator's opening values.
The formula and its rearrangements
Density, written with the Greek letter rho (ρ), is defined as mass per unit volume:
ρ = m ÷ V
Rearranging gives the other two forms the calculator uses:
- m = ρ × V: the mass of a known volume of a known material, such as the weight of a concrete slab.
- V = m ÷ ρ: the space a known mass will take up, such as how many litres a kilogram of oil fills.
The SI unit of density is the kilogram per cubic metre (kg/m³). Laboratories usually work in grams per cubic centimetre (g/cm³), which equals grams per millilitre (g/mL) and kilograms per litre (kg/L). In the United States and in trades that still use imperial units, pounds per cubic foot (lb/ft³) and pounds per gallon are common.
Worked example: the calculator's defaults
The calculator opens with a 500 g object that takes up 185 cm³.
- Density = 500 g ÷ 185 cm³ = 2.7027 g/cm³.
- In SI units that is 2,702.7 kg/m³ (multiply g/cm³ by 1,000).
- Specific gravity = 2,702.7 ÷ 999.975 = 2.703, where 999.975 kg/m³ is the density of pure water at 4 °C.
The closest material in the table is aluminium (2,699 kg/m³ in NIST's tables), so a block like this is very likely aluminium. Because its specific gravity is above 1, it sinks in water.
Measuring volume
Mass is easy: put the object on a scale. Volume is where most errors come from.
Regular shapes. Measure and use the geometry formula. A rectangular block is length × width × height; a cylinder is π × radius² × height; a sphere is 4/3 × π × radius³. Measure in the same unit throughout, then pick the matching volume unit in the calculator.
Irregular shapes. Use water displacement. Half-fill a measuring cylinder, note the level, lower the object in on a thread and read the new level. The rise is the object's volume, and because 1 mL equals 1 cm³ you can enter it directly. Objects that float need to be pushed just under the surface with a thin wire, and porous objects (wood, brick, sponge) soak up water and give a falsely small volume unless sealed first.
Liquids. Weigh an empty container, fill it to a known volume mark, weigh again and subtract. The difference is the mass of that volume of liquid.
Units and conversions
The calculator converts everything to kilograms and cubic metres internally, using the exact factors in NIST Special Publication 811: one pound is exactly 0.45359237 kg, one cubic foot is exactly 0.028316846592 m³, and one US gallon is exactly 3.785411784 L. Some handy results:
| Material | g/cm³ | kg/m³ | lb/ft³ |
|---|---|---|---|
| Water at 4 °C | 1.000 | 999.975 | 62.43 |
| Aluminium | 2.699 | 2,699 | 168.5 |
| Structural steel | 7.849 | 7,849 | 490 |
| Gold | 19.32 | 19,320 | 1,206 |
Water at 1 g/cm³ is 62.43 lb/ft³ and 8.345 lb per US gallon, two numbers worth remembering for quick checks.
Specific gravity
Specific gravity (relative density) is the ratio of a material's density to that of water. Because it is a ratio, it has no unit and reads the same whether you measured in grams and millilitres or pounds and cubic feet. The calculator uses water at 4 °C, its densest point, as the reference. Some industries use water at 15.6 °C (60 °F) instead; the difference is about 0.1%.
Specific gravity gives the float-or-sink answer directly: below 1 floats in fresh water, above 1 sinks. Ice at 0 °C has a specific gravity of about 0.917, which is why roughly nine-tenths of an iceberg sits below the waterline.
Why tabulated densities are only a guide
The material table gives reference values, but real materials vary:
- Temperature. Most things expand as they warm, so density falls. Water at 20 °C is 998.2 kg/m³ rather than 999.975.
- Composition. "Steel" covers many alloys; stainless steels are a little denser than carbon steel. Concrete varies with its aggregate and air content.
- Moisture and porosity. Wood density depends heavily on species and moisture. The table's wood values are averages at 12% moisture content, and boards of the same species can differ by 10% or more.
- Pressure. Gases are very sensitive to pressure and temperature. The air values in the table are for sea level at 15 °C and 20 °C; at altitude, air is noticeably thinner.
For engineering decisions, use the density from the supplier's data sheet or a measurement of your own material.
Where density shows up
Density turns up wherever you need to switch between how much something weighs and how much space it takes. Shipping and freight use it to decide whether a load is limited by weight or by volume. Cooks convert cups of flour to grams with it. Geologists identify minerals by it, jewellers screen gold with it, and brewers track fermentation by the falling density of the wort. In chemistry, density links the mass of a solution to its volume, which is the step between a mass percentage and a molarity.
More questions
Why does a steel ship float if steel is denser than water?
A ship is not solid steel. Its hull encloses a large volume of air, so the average density of the whole ship (steel plus air plus cargo) is below that of sea water. It sinks until it has displaced its own weight of water, which is Archimedes' principle. Flood the hull and the average density rises above water's, and it sinks.
How accurate does my volume measurement need to be?
Density inherits the percentage error of both measurements. If the mass is good to 0.1% but the volume is only good to 2%, the density is good to about 2%. For small objects, a narrow measuring cylinder read at eye level beats a kitchen jug; for regular shapes, measure each side several times and average.
What is bulk density?
Bulk density is the mass of a loose material (sand, soil, grain, gravel) divided by the volume it fills, including the air gaps between particles. It is always lower than the density of the solid grains themselves. Builders use bulk density to convert cubic metres or cubic yards of gravel into tonnes.
Does the density of gold prove a ring is real?
It is a good first test. Pure gold is about 19.3 g/cm³, while 14-karat gold is roughly 13 to 14 g/cm³ and gold-plated brass is near 8.5 g/cm³. Weigh the ring, find its volume by water displacement and compare. Small rings displace well under a millilitre, so you need a precise scale and a fine measuring cylinder.
What is the difference between density and relative density?
Relative density is the modern name for specific gravity: a material's density divided by a reference density, usually water. It has no unit. A relative density of 2.7 means the material is 2.7 times as dense as water, whatever units you measured in.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.