All calculators

Education

Density Calculator

Last updated: May 31, 2026

Written by Blake Boege

A density calculator is a physical science utility that computes the density, mass, or volume of a substance based on the relationship density equals mass divided by volume (D = m/V). Users input any two of the variables along with their corresponding units, and the calculator solves for the third unknown variable while performing any necessary unit conversions. It supports standard units like grams, kilograms, pounds, milliliters, cubic centimeters, and liters. Chemists, materials scientists, engineers, and students use this tool to identify unknown substances, estimate material weight, and verify volume capacities.

Calculate density from mass and volume, or solve for mass or volume. Supports metric and US customary units.

Quick Answer

Calculate density, mass, or volume. Enter any two values with their units to find the missing variable with step-by-step formulas.

What do you want to calculate?

Output Unit

Result

Density

2 g/cm³

ρ = 100 g / 50 cm³ = 2 g/cm³

Context: Plastics, concrete, light rocks

Was this helpful?

How it works

What is density?

Density is a fundamental physical property defined as mass per unit volume. It tells you how much 'stuff' is packed into a given space.

THE FORMULA:

ρ = m / V

Where:
• ρ (the Greek letter rho) is density
• m is mass
• V is volume

A more compact substance has higher density (lead, gold, iron). A less compact substance has lower density (wood, water, gases).

Why density matters

  • Determines whether something floats or sinks in water (lower density than water = floats)
  • Used to identify substances — pure gold and fool's gold (pyrite) look similar but have very different densities (19.3 vs 5.0 g/cm³)
  • Critical in engineering — calculating loads, designing ships and aircraft, choosing materials
  • Used in chemistry to determine concentrations of solutions
  • Used in geology to understand rock formations and identify minerals

How to calculate density

Calculating density requires two measurements: mass and volume.

  • MEASURE MASS: Use a scale or balance. Common units include grams (g) for small objects, kilograms (kg) for larger objects, or pounds (lb).
  • MEASURE VOLUME: For regular shapes, calculate geometrically (e.g., L × W × H). For irregular shapes, use water displacement (submerge the object in a graduated cylinder and note the change in water level). For liquids, use a measuring cup.
  • DIVIDE: Density = Mass ÷ Volume.

WORKED EXAMPLE:

A rock has a mass of 254 grams. When submerged in water, it displaces 95 mL of water.
Density = 254 g ÷ 95 mL = 2.67 g/mL = 2.67 g/cm³

Density units explained

SI STANDARD: kilograms per cubic meter (kg/m³). Mostly used in engineering and scientific papers.

MOST COMMON FOR EVERYDAY: grams per cubic centimeter (g/cm³). Most familiar for solids and liquids. Equivalent to grams per milliliter (g/mL) since 1 cm³ = 1 mL.

US CUSTOMARY: Pounds per cubic foot (lb/ft³) or pounds per cubic inch (lb/in³).

Density of common substances

SubstanceDensity (g/cm³)
Air0.0012
Wood (pine)0.5
Vegetable oil0.92
Ice0.92
Water (4°C)1.00
Seawater1.03
Concrete2.4
Aluminum2.70
Iron7.87
Lead11.34
Gold19.32

Common density mistakes

  • Confusing density with weight. A pound of feathers and a pound of lead have the same weight, but radically different densities. The lead is much smaller because it's denser.
  • Forgetting that volume changes with temperature. Most substances expand when heated and contract when cooled.
  • Mixing up units. 1 g/cm³ = 1,000 kg/m³, NOT 1 kg/m³. Watch the order of magnitude.
  • Assuming average density for non-homogeneous objects. A boat made of steel floats even though steel itself is denser than water because the internal air space lowers the average density.

Disclaimer

Density values are temperature and pressure dependent. Standard reference values are typically given at 20°C and 1 atmosphere. For precise scientific or engineering work, use temperature-corrected values from authoritative sources.

Related calculators

Related Calculators

More tools from Education

Frequently asked questions

Density equals mass divided by volume: ρ = m / V. Measure the mass of the object (in grams or kilograms) and its volume (in cm³, mL, or m³), then divide. For example, a 100-gram object that takes up 50 cm³ has a density of 2.0 g/cm³.

SI standard is kilograms per cubic meter (kg/m³). More commonly for everyday work, density is given in grams per cubic centimeter (g/cm³) or grams per milliliter (g/mL) — these are equivalent. US customary uses pounds per cubic foot (lb/ft³). Water is 1 g/cm³ or 1,000 kg/m³ or 62.4 lb/ft³.

Pure water at 4°C has a density of exactly 1.000 g/cm³ (which equals 1,000 kg/m³ or 62.43 lb/ft³). This is by definition — the gram was originally defined as the mass of 1 cm³ of water at this temperature. Water's density decreases slightly at higher temperatures (0.997 at 25°C, 0.958 at 100°C).

Use water displacement (Archimedes' principle). Fill a graduated cylinder with water, note the initial level, fully submerge the object, and note the new water level. The volume of the object equals the difference between the two levels. For example, if water rises from 50 mL to 73 mL when you submerge a rock, the rock's volume is 23 mL.

It comes down to density. An object floats in a fluid if its density is LESS than the fluid's density. Wood (0.5-0.8 g/cm³) floats in water (1.0 g/cm³) because wood is less dense. Iron (7.87 g/cm³) sinks. A boat made of iron floats because it contains air — the AVERAGE density of the boat (steel + air) is less than water.

Density has units (g/cm³, kg/m³, etc.) and is an absolute measure. Specific gravity is a unitless ratio: the density of a substance divided by the density of water at 4°C. So water has specific gravity of 1.0 by definition, and a substance with density 2.5 g/cm³ has specific gravity 2.5. They contain the same information; specific gravity just skips the units.

Most substances expand when heated and contract when cooled. Heating decreases density (same mass in larger volume); cooling increases density. Water is unusual — it's most dense at 4°C, NOT at its freezing point. This is why ice floats and why deep lakes maintain a 4°C bottom layer that supports aquatic life through winter.

Gases require knowing pressure and temperature. The simplest formula uses the ideal gas law: ρ = (P × M) / (R × T), where P is pressure, M is molar mass, R is the gas constant (8.314 J/mol·K), and T is temperature in Kelvin. At standard conditions (0°C, 1 atm), air has a density of about 1.293 kg/m³.

Osmium (22.59 g/cm³) and iridium (22.56 g/cm³) are the densest naturally occurring elements at standard conditions. White dwarf stars and neutron stars are far denser (millions to trillions of times denser than osmium), but those aren't really 'substances' in the chemical sense. The densest material made artificially in significant quantities is osmium tetroxide.

No — density is always positive. Mass is positive (no negative mass exists in classical physics), and volume is positive, so their ratio (density) must be positive. The minimum possible density is the density of a perfect vacuum: zero. Some theoretical or experimental contexts use 'negative effective density' in metamaterials, but that's a specialized engineering term, not true negative density.