Skip to content
Dilawar Hussain

Density calculator

Compute density, mass, or volume from the other two values, with metric mass, volume, and density units converted through a single base.

Browser compute / no account / no upload

Enter two of mass, volume, and density. The calculator normalizes the inputs to grams and cubic centimeters before it solves the third value.

Method

  • Density is mass divided by volume. The calculator converts mass to grams and volume to cubic centimeters before dividing, so mixed units such as kilograms and liters are handled consistently.
  • One gram per cubic centimeter equals 1000 kilograms per cubic meter. The result panel shows both, which makes it easier to compare a laboratory value with an SI table.
  • The calculation assumes a uniform sample. It does not correct for temperature, pressure, porosity, dissolved gas, or the difference between bulk and particle density.

Reference: NIST Chemistry WebBook

Density tells you how much mass sits in a given volume. It is the property behind questions such as whether an object floats, how much a liter of solvent weighs, and whether a metal sample is the alloy it claims to be. This calculator solves density from mass and volume, or recovers mass or volume when density is known.

The density equation

Here $\rho$ is density, $m$ is mass, and $V$ is volume. The units must describe the same sample. A mass in grams divided by a volume in cubic centimeters gives grams per cubic centimeter, the unit most often used for solids and liquids in a laboratory.

Units and conversions

The SI unit is kilograms per cubic meter, but grams per cubic centimeter and grams per milliliter are more practical at bench scale. The two are numerically identical because one cubic centimeter equals one milliliter. To move between the laboratory unit and the SI unit, multiply by 1000:
  • <strong>Mass:</strong> 1 kg = 1000 g, and 1 g = 1000 mg.
  • <strong>Volume:</strong> 1 L = 1000 mL = 1000 cm³, and 1 m³ = 1,000,000 cm³.
  • <strong>Density:</strong> 1 g/cm³ = 1000 kg/m³. Water is about 1.00 g/cm³ at 4 °C.

Worked example: identifying a metal

Example 1

Density from a measured mass and volume

Problem

A metal block has a mass of 270 g and a volume of 100 cm³. What is its density, and which common metal does it match?

Solution

  1. Divide the mass by the volume: .

  2. The result is 2.70 g/cm³.

  3. Compare with the reference table: aluminum is about 2.70 g/cm³.

Answer

2.70 g/cm³, consistent with aluminum

Source: Reference densities from standard handbook values.

Worked example: mass of a solvent

Example 2

Mass from volume and density

Problem

What is the mass of 250.0 mL of water at 20 °C, where the density is 0.998 g/mL?

Solution

  1. Use .

  2. Substitute the values: .

Answer

249.5 g of water

Source: Density of water at 20 °C from standard tables.
The same rearrangement answers the reverse question. If a procedure calls for 500 g of ethanol and the density is 0.789 g/mL, the volume is $500 / 0.789 = 633.7$ mL. Measuring by mass is usually more precise than measuring a volatile solvent by volume, so the density converts the recipe into a mass you can weigh.

Reference densities

Approximate densities at room temperature and standard pressure. Alloys and porous solids vary by composition and preparation.
MaterialDensity (g/cm³)Density (kg/m³)
Air (15 °C)0.0012251.225
Ice (0 °C)0.917917
Water (4 °C)1.0001000
Water (20 °C)0.998998
Seawater (20 °C)1.0251025
Ethanol (20 °C)0.789789
Aluminum2.702700
Iron7.877870
Copper8.968960
Lead11.3411340
Mercury13.5313530
Gold19.3219320

Common mistakes

  • Mixing grams with liters without converting. Grams per liter is 1000 times smaller than grams per milliliter, so the unit label matters.
  • Using the volume of solvent instead of the volume of the final solution. For a solution, density refers to the mixture, not to the liquid added first.
  • Treating a handbook density as exact for every sample. Temperature, alloy composition, and porosity all shift the value.
  • Reading a meniscus from above. Volume measurements carry their own uncertainty, which propagates into density.
  • Forgetting that a gas density depends strongly on pressure and temperature, unlike a liquid at ordinary conditions.

What the result means

A density larger than the surrounding fluid means the object sinks; a smaller density means it floats. This comparison is why ice floats on water and why a steel ship can float even though steel is denser than water: the ship displaces a volume of water whose mass exceeds the mass of the ship and its cargo.
For a powder or a porous solid, distinguish skeletal density from bulk density. Skeletal density excludes the internal pores, while bulk density includes the void space between particles. The two can differ by a factor of two or more, so report which one you measured.

Limits and assumptions

The calculator performs a point calculation with the numbers you enter. It does not model thermal expansion, compressibility, concentration-dependent solution densities, or the buoyancy correction that matters when weighing in air. For analytical work, measure density at the temperature stated in your method and report the uncertainty of both mass and volume.

Glossary

Density
Mass per unit volume of a material, usually reported in grams per cubic centimeter or kilograms per cubic meter.
Specific gravity
The ratio of a material's density to the density of water at a stated temperature. It is dimensionless.
Bulk density
The mass of a powder or granular material divided by the volume it occupies, including the voids between particles.
Skeletal density
The density of the solid material itself, excluding open pores and the space between particles.

Key takeaways

  • Density is mass divided by volume; the other two values follow from the same equation.
  • Convert mass to grams and volume to cubic centimeters before dividing, or use the unit selectors.
  • 1 g/cm³ equals 1000 kg/m³, and 1 cm³ equals 1 mL.
  • Temperature, porosity, and alloy composition change density, so state the conditions with the result.