Density Calculator

Calculate density, mass or volume with ρ = m/V. Converts between kg/m³, g/cm³, g/mL and lb/ft³, and gives specific gravity.

Last updated 28 November 2026

ResultEnter values to calculate
    Show calculation steps

    What is density?

    Density: Density is mass per unit volume, an intrinsic property of a material at a given temperature and pressure. — Archimedes, 3rd century BC

    A kilogram of feathers and a kilogram of lead weigh the same, but the lead takes up far less space. The difference is density: how much mass is packed into each unit of volume.

    ρ = m / V

    Density depends on how heavy a material's atoms are and how closely they are packed. Gold atoms are heavy and tightly packed, so gold is very dense. Gas molecules are far apart, so air is about 800 times less dense than water. Because each pure material has a characteristic density at a given temperature and pressure, density is one of the simplest ways to identify a substance or check its purity.

    The most famous density story is told of Archimedes in the 3rd century BC. According to the Roman writer Vitruvius, King Hiero II of Syracuse suspected that his new crown was not pure gold. Archimedes realised, supposedly while stepping into a bath, that he could measure the crown's volume by the water it displaced. Comparing its density with that of pure gold would reveal any cheaper metal mixed in.

    MaterialDensity (g/cm³)
    Air (20 °C, 1 atm)0.0012
    Ethanol0.789
    Ice0.917
    Water (4 °C)1.000
    Aluminium2.70
    Iron7.87
    Copper8.96
    Lead11.34
    Mercury13.53
    Gold19.32

    The formula explained

    ρ = mV
    SymbolQuantitySI unitMeaning
    ρDensitykg/m³Density of the material
    mMasskgMass of the sample
    VVolumem³Volume of the sample

    Units. The SI unit is kg/m³. Chemistry and everyday work often use g/cm³, which is the same as g/mL. 1 g/cm³ = 1000 kg/m³. Water is about 1000 kg/m³, or 1.000 g/cm³.

    Rearranged. m = ρV gives mass from volume, and V = m/ρ gives volume from mass.

    Specific gravity (relative density) is density divided by the density of water. It has no units. Specific gravity below 1 means the object floats in water. The calculator shows it as a derived result.

    Volume units. 1 L = 1000 cm³ = 0.001 m³, and 1 mL = 1 cm³.

    Temperature and pressure. Most materials expand slightly when heated, so their density falls. Water is unusual: it is densest at about 4 °C, and ice is less dense than liquid water. Gas density depends strongly on pressure and temperature, ρ = PM/(RT).

    How to use this calculator

    1. Choose the quantity you want to find in the Calculate menu. It is highlighted as the result field.
    2. Enter the known values. Scientific notation such as 1.6e-11 is accepted.
    3. Select a unit for each value. Units are converted to SI automatically.
    4. The answer updates as you type. Open Show calculation steps to see the working, or use Copy result to share a link with your inputs.

    Step-by-step worked example

    Problem. (a) A 270 g metal block has a volume of 100 cm³. What is it made of? (b) A "gold" crown has a mass of 1.000 kg. When fully submerged in water it displaces 60 cm³. Is it pure gold? (c) What is the mass of the air in a room 5 m × 4 m × 2.5 m?

    Part (a)

    1. ρ = m/V = 270 / 100 = 2.70 g/cm³.
    2. That matches aluminium.

    Part (b)

    1. Volume = displaced water = 60 cm³.
    2. Density. ρ = 1000 g / 60 cm³ = 16.7 g/cm³.
    3. Pure gold is 19.3 g/cm³. The crown is less dense, so it must contain a lighter metal such as silver. Archimedes' suspicion would have been confirmed.

    Part (c)

    1. Volume. 5 × 4 × 2.5 = 50 m³.
    2. Mass. m = ρV = 1.2 kg/m³ × 50 m³ = 60 kg, about the mass of an adult.

    Try it: the calculator's defaults reproduce part (a).

    How to interpret the result

    • Compare with water. Anything below 1 g/cm³ floats in fresh water, and anything above sinks. Sea water (about 1.025 g/cm³) is slightly denser, so it is a little easier to float in.
    • Identify materials carefully. Density narrows the possibilities, but several materials can share similar densities. Alloys, porous materials and composites also vary. Use density as a strong clue, not a final proof.
    • Hollow objects. A steel ship floats because its average density, including the air inside the hull, is less than that of water.
    • Precision. Volume is often the less precise measurement. A 1 cm³ error in a 60 cm³ volume is nearly a 2% error in density.

    Real-world applications

    • Identifying materials and checking purity. Jewellers, metal recyclers and quality-control labs use density to spot counterfeit gold, verify alloys and sort plastics.
    • Floating and sinking. Ship design, submarines (which adjust their average density with ballast tanks), hot-air balloons and life jackets all depend on density differences.
    • Medicine. Urine specific gravity indicates how well the kidneys concentrate urine. Bone density scans help diagnose osteoporosis.
    • Food and drink. Brewers and winemakers measure the density of their liquid with a hydrometer. As sugar ferments into alcohol the density falls, which tells them how fermentation is progressing and the final alcohol content.
    • Weather and oceans. Warm air and warm or fresh water are less dense and rise, driving convection, winds and ocean currents.
    • Engineering calculations. Density enters calculations of weight, pressure at depth (ρgh), and heat transfer through thermal diffusivity.

    Common mistakes and unit-conversion tips

    1. Mixing g/cm³ and kg/m³. Aluminium is 2.70 g/cm³ = 2700 kg/m³, not 2.70 kg/m³.
    2. Litres and cubic metres. 1 m³ = 1000 L. A density in kg/L is the same number as in g/cm³.
    3. Measuring the volume of a porous or hollow object. Water displacement measures the volume of the solid plus any sealed cavities. That gives the average density, not the material density.
    4. Ignoring temperature. Liquid densities change measurably with temperature. For precise work, quote the temperature.
    5. Air bubbles. Bubbles sticking to an object during water displacement add to its apparent volume and lower the measured density.

    Frequently asked questions

    How do I measure the volume of an irregular object?

    Use water displacement (Archimedes' method). Submerge the object and measure the rise in water level, or measure its apparent weight loss in water.

    Does density change with temperature?

    Yes. Most materials expand when heated, so density decreases. Water is unusual: it is densest at about 4 °C.

    What is the density of water?

    About 1000 kg/m³ or 1.000 g/cm³ at 4 °C, and 0.997 g/cm³ at 25 °C. Sea water is about 1.025 g/cm³ because of its dissolved salts.

    What is the difference between density and specific gravity?

    Density has units, such as g/cm³ or kg/m³. Specific gravity is density divided by the density of water, so it has no units. For most practical purposes, specific gravity equals density in g/cm³.

    Why does ice float?

    When water freezes, its molecules lock into an open hexagonal structure that takes up more space than liquid water. Ice is about 0.917 g/cm³, roughly 9% less dense than water, so it floats with about 90% of its volume submerged.

    Sources and further reading

    1. Vitruvius. De architectura, Book IX, preface (the story of Archimedes and the crown).
    2. Rumble, J. R. (Ed.). (2023). CRC Handbook of Chemistry and Physics (104th ed.). CRC Press. Densities of elements and common substances.
    3. Halliday, D., Resnick, R., & Walker, J. (2018). Fundamentals of Physics (11th ed.). Wiley. Chapter 14, Fluids.