Density Calculator

About this calculator

The Density Calculator solves the relationship ρ = m ÷ V. Enter any two of density, mass and volume, in the units you have, and it returns the third with the working shown and the answer converted to every common unit.

Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

What is density?

Density is how much mass is packed into a given volume. A block of lead feels far heavier than a block of wood the same size because lead is much denser. Density is written with the Greek letter rho (ρ), and in SI units it is measured in kilograms per cubic meter.

ρ = m ÷ V    m = ρ × V    V = m ÷ ρ

Here m is mass and V is volume. Knowing any two of the three gives you the third, which is exactly what this calculator does.

Worked examples

Finding density. A 50 lb block occupies 2 cubic feet. Its density is 50 ÷ 2 = 25 lb/ft³, or about 400.5 kg/m³, a little less than half the density of water, so it floats.

Finding mass. Water weighs about 62.4 lb per cubic foot. A 3 ft³ tank of water therefore holds 3 × 62.4 = 187.2 lb of water.

Finding volume. Steel has a density of about 7.8 g/cm³. A 3 g steel ball has a volume of 3 ÷ 7.8 = 0.385 cm³.

What changes density

For a given material, density shifts with temperature and pressure. Most substances expand when heated, so their density drops; gases are especially sensitive to both temperature and pressure. Water is a famous exception: it is densest at about 4 °C, and ice is less dense than liquid water, which is why ice floats and lakes freeze from the top down.

Comparing an object's density with that of a fluid tells you whether it will float. Anything less dense than water (1,000 kg/m³) floats in it, and anything denser sinks. Specific gravity, often used in brewing and gemology, is just a material's density divided by the density of water.

Common density units

UnitEqual to (kg/m³)
kilogram/cubic meter1 (SI unit)
kilogram/cubic centimeter1,000,000
gram/cubic meter0.001
gram/cubic centimeter1,000
kilogram/liter1,000
gram/liter1
pound/cubic inch27,680
pound/cubic foot16.02
pound/cubic yard0.5933
pound/gallon (US)119.83
pound/gallon (UK)99.78
ounce/cubic inch1,730
ounce/cubic foot1.001
ounce/gallon (US)7.489
ounce/gallon (UK)6.236
ton (short)/cubic yard1,186.6
ton (long)/cubic yard1,328.9

Density of common materials

MaterialDensity (kg/m³)
Earth's atmosphere at sea level1.2
Water at standard temperature and pressure1,000
The Earth (average)5,515.3
Iron7,874
Copper8,950
Tungsten19,250
Gold19,300
Platinum21,450
Atomic nuclei2.3 × 1017
Black holeabove 1 × 1018

The default example in the calculator, 8,900 kg in 1 m³, is roughly the density of copper or nickel.

How to measure density yourself

For a regular solid such as a cube or cylinder, weigh it on a kitchen or lab scale and calculate its volume from its dimensions (length × width × height, or π × r² × h). For an irregular object, use water displacement: partly fill a measuring cylinder, note the level, submerge the object and read the new level. The rise is the object's volume, a method usually credited to Archimedes and the king's crown.

For liquids, weigh an empty container, fill it to a known volume mark, weigh it again and divide the difference by the volume. A hydrometer, a weighted float with a scale on its stem, reads the density or specific gravity of a liquid directly and is common in brewing, battery testing and winemaking.

Density in everyday work

  • Shipping and construction: converting a volume of gravel, concrete or soil into tons for trucks and material orders.
  • Cooking: turning cup measurements into grams, since a cup of flour weighs far less than a cup of sugar or honey.
  • Fuel: gasoline is about 0.74 kg/L and diesel about 0.83 kg/L, which matters when fuel is sold by volume but engines burn it by mass.
  • Purity checks: a metal or gem whose density does not match the expected value may be an alloy or an imitation.

Density, specific weight and specific gravity

Density is mass per volume. Specific weight is weight per volume, density multiplied by gravitational acceleration, measured in N/m³ or lbf/ft³. Specific gravity is the ratio of a substance's density to the density of water at 4 °C, so it has no units: steel has a specific gravity of about 7.8, meaning it is 7.8 times as dense as water.

Frequently asked questions

What is the formula for density?
Density equals mass divided by volume: ρ = m ÷ V.
What is the density of water?
About 1,000 kg/m³, which is 1 g/cm³ or 62.4 lb/ft³, near 4 °C. It is slightly lower at room temperature (about 998 kg/m³).
How do I convert g/cm³ to kg/m³?
Multiply by 1,000. For example, 7.8 g/cm³ is 7,800 kg/m³.
Why do some objects float?
An object floats when its average density is lower than the density of the fluid around it.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.