Skip to content
thecalculatorstudio

Density Calculator (Mass, Volume and Density)

Choose which of density, mass and volume you want, and enter the other two in any units. You also get the density in kg/m³, g/cm³, lb/ft³ and lb/gal, and pick a material to start from.

Last reviewed

Density

7860 kg/m³

7.86 times the density of water

Density in other units
UnitValue
kg/m³7860
g/cm³ (= g/mL = kg/L)7.86
lb/ft³490.7
lb/gal (US)65.59
lb/in³0.284
Mass in kg
0.786
Volume in m³
0.0001

Density changes with temperature, and most materials expand when warm. The table values are for the temperatures shown in the reference.

What density is

Density is how much mass a material packs into a given volume:

density = mass ÷ volume, written ρ = m ÷ V

A cubic metre of iron has far more mass than a cubic metre of oak, so iron is denser. The SI unit is kilograms per cubic metre (kg/m³). In chemistry and materials work, grams per cubic centimetre (g/cm³, the same as g/mL and kg/L) is the usual choice, and 1 g/cm³ = 1,000 kg/m³. In the US you will also see pounds per cubic foot or per gallon.

The formula can be turned round to find either of the other two quantities, which is why the calculator can solve for any of the three:

  • Density = mass ÷ volume
  • Mass = density × volume
  • Volume = mass ÷ density

Worked examples

Finding the density. A metal block has a mass of 786 g and a volume of 100 cm³. Its density is 786 ÷ 100 = 7.86 g/cm³, which is 7,860 kg/m³: the density of iron.

Finding the mass. How heavy is 0.5 m³ of iron? 7,860 × 0.5 = 3,930 kg.

Finding the volume. What volume does 1 kg of gold take up? Gold is 19,300 kg/m³ (19.3 g/cm³), so 1,000 g ÷ 19.3 g/cm³ = 51.81 cm³.

A US gallon of water. At 1,000 kg/m³ and 1 US gallon = 3.785 litres, it has a mass of 3.785 kg, which is 8.345 lb.

Densities of common materials

Material kg/m³ g/cm³ lb/ft³
Water (4 °C) 1000 1 62.43
Ice (0 °C) 917 0.917 57.25
Sea water (0 °C) 1030 1.03 64.3
Olive oil 920 0.92 57.43
Ethyl alcohol 806 0.806 50.32
Gasoline 680 0.68 42.45
Oak 710 0.71 44.32
Concrete 2400 2.4 149.8
Aluminum 2700 2.7 168.6
Iron 7860 7.86 490.7
Copper 8920 8.92 556.9
Lead 11300 11.3 705.4
Mercury 13600 13.6 849
Gold 19300 19.3 1205
Platinum 21400 21.4 1336

The figures are from the OpenStax University Physics textbook. Solids and liquids are listed at 0 °C unless a temperature is given. Real materials vary: an alloy, a wood species or the moisture in concrete will move the number, so check the data sheet for anything that matters.

Temperature changes density

Most materials expand when they warm, so their density falls. Water is unusual. It is densest at 4 °C, at 1,000 kg/m³, and it is less dense at 20 °C (998.2 kg/m³) and at 0 °C as a liquid (999.8 kg/m³). Ice is lighter again, at 917 kg/m³, which is why ice floats and lakes freeze from the top down.

Will it float?

An object floats in a liquid if its average density is less than the liquid’s. Oak (710 kg/m³) and ice (917 kg/m³) float in water. Iron (7,860 kg/m³) sinks as a solid block, but a steel ship floats because its hull encloses air, so its average density is below that of water. The “relative to water” figure in the results gives the ratio directly: below 1 floats, above 1 sinks.

Changing units

The calculator works in exact SI factors: 1 lb = 0.45359237 kg, 1 ft = 0.3048 m, 1 in = 0.0254 m, and a US gallon is 231 cubic inches (3.785411784 L). One lb/ft³ is 16.01846 kg/m³, one lb/in³ is 27,679.9 kg/m³ and one lb/gal (US) is 119.8264 kg/m³, matching the NIST conversion tables. For plain volume or weight conversions see the volume converter and weight converter. To find the volume of a bulk load before you multiply by a density, use the cubic yards calculator.

Common mistakes

  • Mixing units. Dividing grams by cubic metres gives a strange number. Pick a unit for each quantity, and the calculator converts.
  • Using the wrong volume. The volume of a hollow or porous object is the whole space it occupies, not just the material.
  • Forgetting temperature. A density quoted at 20 °C is not the density at 80 °C.
  • Confusing density with weight. Density is mass per volume. It does not depend on the amount you have.
  • Mixing “specific gravity” and density. Specific gravity is density relative to water, with no unit. The “relative to water” figure here uses 1,000 kg/m³.

How it is calculated

Each input is converted to kilograms, cubic metres or kg/m³ with exact factors, the formula is solved in exact decimal arithmetic, and the answer is shown in the unit you chose to four significant figures. The “relative to water” figure divides the density by 1,000 kg/m³.

Frequently asked questions

What is the formula for density?

Density = mass ÷ volume (ρ = m ÷ V). 786 g of iron filling 100 cm³ has a density of 786 ÷ 100 = 7.86 g/cm³, the same as 7,860 kg/m³. Rearranged, mass = density × volume and volume = mass ÷ density.

What are the units of density?

Mass per volume. The SI unit is kilograms per cubic metre (kg/m³). Chemists usually use g/cm³ (the same as g/mL and kg/L), and in the US lb/ft³ or lb/gal are common. 1 g/cm³ is 1,000 kg/m³.

What is the density of water?

About 1,000 kg/m³ (1 g/cm³) at 4 °C, where water is densest. At 20 °C it is 998.2 kg/m³. The metric kilogram was originally defined as the mass of 1,000 mL of water, which is why the figure is so round.

How do I know if something will float?

It floats on water if its density is less than the water's. Oak (710 kg/m³) and ice (917 kg/m³) float on water at about 1,000 kg/m³. Iron (7,860 kg/m³) sinks, but a hollow iron ship has a low average density, so it floats.

How do I find the mass of something from its volume?

Multiply the density by the volume. 0.5 m³ of iron at 7,860 kg/m³ has a mass of 3,930 kg. Pick the material from the list to start from its density, and choose the units you want for the answer.

Why do published densities differ?

Density changes with temperature and pressure, and with purity or the exact alloy. The table here is from one textbook at stated temperatures. For precise work use the figure on your supplier's data sheet.

Related calculators

Sources