Density Calculator

This density calculator uses ρ = m ÷ V to find density, mass or volume in metric or US units. It compares your result with a NIST table of common material densities.

Density Calculator inputs

What do you want to calculate?

What is the density of an object with this mass and volume?

1 mL is the same as 1 cm³.

Result

Enter your values to see the result.

  • Formula v1.0, unit-tested
  • Examples generated by the calculator
  • Updated
  • How we calculate
On this page

Formula

ρ = m ÷ V

ρ
density (rho), in kilograms per cubic meter (kg/m³) or grams per cubic centimeter (g/cm³)
m
mass of the object or sample
V
volume the mass occupies

What density is

Density measures how much mass is packed into a given volume. A liter of water and a liter of air take up the same space, but the water has roughly 830 times more mass. Density is written with the Greek letter rho (ρ):

ρ = m ÷ V

Because it doesn’t depend on the size of the sample, density is a property of the material itself. A paper clip and a steel beam made of the same steel have nearly the same density. That is why measuring density is a simple way to help identify a material, check for impurities, or tell whether something will float.

How to use the density calculator

  1. Choose what you want to find: Density, Mass or Volume.
  2. Enter the two values you know and pick their units. Mass can be in mg, g, kg, metric tons, ounces, pounds or US tons. Volume can be in mL, L, m³, US fluid ounces, gallons, cubic inches, cubic feet or cubic yards. Density can be in kg/m³, g/cm³, g/mL, kg/L, lb/ft³, lb/in³ or lb/gal.
  3. Choose the unit for the answer. Other common units are listed below it.
  4. If you know a specific gravity instead of a density, enter it as g/cm³ (or g/mL). The two are numerically equal because water is 1 g/cm³.
  5. In the Density mode you also get the specific gravity and whether the object floats or sinks in water. A short table lists the reference materials closest to your value.

How to calculate density by hand

A metal sample has a mass of 540 g. You measure its volume by water displacement: the water level rises from 300 mL to 500 mL, so the volume is 200 mL, which is 200 cm³.

ρ = 540 g ÷ 200 cm³ = 2.7 g/cm³

That is 2,700 kg/m³, very close to aluminum in the table below.

Rearranging the formula

  • Mass: m = ρ × V. A 3 L container filled with a liquid of density 1.26 g/cm³ (3,000 cm³) holds 3,780 g, or 3.78 kg.
  • Volume: V = m ÷ ρ. 10 kg of lead at 11.35 g/cm³ occupies 10,000 ÷ 11.35 ≈ 881 cm³.

Keeping units consistent

Grams with cubic centimeters give g/cm³. Kilograms with cubic meters give kg/m³. Pounds with cubic feet give lb/ft³. Mixing them, such as grams with liters, gives g/L, which is numerically the same as kg/m³.

Density chart of metals and common materials

Nominal densities from NIST’s X-ray attenuation tables, converted to other units. Real samples vary, especially alloys, plastics and concrete.

Material g/cm³ kg/m³ lb/ft³
Air (dry, near sea level) 0.001205 1.205 0.07523
Polyethylene 0.93 930 58.06
Water (liquid) 1 1,000 62.43
Acrylic (PMMA) 1.19 1,190 74.29
PVC 1.406 1,406 87.77
Concrete (ordinary) 2.3 2,300 143.6
Aluminum 2.699 2,699 168.5
Titanium 4.54 4,540 283.4
Iron 7.874 7,874 491.6
Copper 8.96 8,960 559.4
Silver 10.5 10,500 655.5
Lead 11.35 11,350 708.6
Mercury 13.55 13,550 845.9
Gold 19.32 19,320 1,206
Platinum 21.45 21,450 1,339

Real-life uses

Identifying materials

Jewelers and collectors check whether a “gold” item is solid by measuring its density. Gold, at 19.32 g/cm³, is much denser than common plating metals.

Estimating weight from size

Builders and shippers multiply a volume by a known density to estimate weight before anything is lifted. Concrete at about 2.3 t/m³ means one cubic meter weighs roughly 2.3 metric tons.

Liquids in the kitchen and lab

Density turns volumes into masses. Converting a recipe from cups to grams, or a chemical from milliliters to grams, both rely on it. The volume converter and the weight converter handle the unit side.

Gases

Gas density changes strongly with pressure and temperature. For gases, the ideal gas law calculator relates pressure, volume and temperature.

Common mistakes

  • Mixing unit systems. Kilograms divided by cubic centimeters gives a number 1,000 times too small for g/cm³.
  • Confusing mL and L. 1 L = 1,000 mL = 1,000 cm³.
  • Using outside dimensions of hollow objects. The result is an average density, not the material’s density.
  • Forgetting temperature. Liquids and gases expand when heated, so their density falls.
  • Treating weight in pounds-force as mass. Use the mass in pounds (lb) when calculating density in lb/ft³.

Glossary

  • Specific gravity: density divided by the density of water. It has no units and equals the density in g/cm³.
  • Buoyancy: the upward push from a fluid, equal to the weight of the fluid displaced.
  • Displacement: measuring an object’s volume by the rise in liquid level when it is submerged.
  • Bulk density: mass per volume of a loose material, such as gravel, including the air gaps between pieces.

Worked examples

Identifying a metal block

A 405 g metal block displaces 150 mL of water. Its density matches aluminum.

Inputs (Density): Mass = 405; Mass unit = Grams; Volume = 150; Volume unit = Milliliters; Show density in = Grams per cubic centimeter (g/cm³)

Convert to SI units: 405 g = 0.405 kg; 150 mL = 0.00015 m³ ρ = m ÷ V = 0.405 kg ÷ 0.00015 m³ = 2,700 kg/m³ 2,700 kg/m³ = 2.7 g/cm³

Answer: 405 g in 150 mL has a density of 2.7 g/cm³, closest to aluminum.

Mass of a steel-like iron plate

Two liters (2,000 cm³) of iron at 7.874 g/cm³.

Inputs (Mass): Density = 7.874; Density unit = Grams per cubic centimeter; Volume = 2; Volume unit = Liters; Show mass in = Kilograms (kg)

Convert to SI units: 7.874 g/cm³ = 7,874 kg/m³; 2 L = 0.002 m³ m = ρ × V = 7,874 kg/m³ × 0.002 m³ = 15.748 kg

Answer: 2 L of a material with density 7.874 g/cm³ has a mass of 15.748 kg.

Volume of water from its weight, in US units

1,248 lb of water at 62.4 lb/ft³. How many cubic feet does it fill?

Inputs (Volume): Density = 62.4; Density unit = Pounds per cubic foot; Mass = 1248; Mass unit = Pounds; Show volume in = Cubic feet (ft³)

Convert to SI units: 62.4 lb/ft³ = 999.552 kg/m³; 1,248 lb = 566.083 kg V = m ÷ ρ = 566.083 kg ÷ 999.552 kg/m³ = 0.566337 m³ 0.566337 m³ = 20 ft³

Answer: 1,248 lb of a material with density 62.4 lb/ft³ takes up 20 ft³.

Edge case: a gas

1.205 g of dry air filling one liter. Gases are about a thousand times less dense than solids and liquids.

Inputs (Density): Mass = 1.205; Mass unit = Grams; Volume = 1; Volume unit = Liters; Show density in = Kilograms per cubic meter (kg/m³)

Convert to SI units: 1.205 g = 0.001205 kg; 1 L = 0.001 m³ ρ = m ÷ V = 0.001205 kg ÷ 0.001 m³ = 1.205 kg/m³

Answer: 1.205 g in 1 L has a density of 1.205 kg/m³, closest to air (dry, near sea level).

Assumptions and limitations

  • Density is the average density of the whole sample, ρ = m ÷ V. Hollow or porous objects give a lower average than the solid material.
  • Units are converted exactly. 1 g/cm³ = 1 g/mL = 1 kg/L = 1,000 kg/m³, and 1 lb/ft³ ≈ 16.0185 kg/m³. 1 mL is the same volume as 1 cm³. Gallons and fluid ounces are US measures.
  • The reference materials are nominal densities from NIST's X-Ray Mass Attenuation Coefficients tables. Real samples vary with alloy, temperature, moisture and porosity, so a match suggests a material but does not prove it.
  • The float or sink note compares the result with water at 1,000 kg/m³. Real water is slightly less dense when warm, and seawater is denser.
  • Results are shown to 6 significant figures.

Frequently asked questions

What is the formula for density?

Density equals mass divided by volume, ρ = m ÷ V. A 540 g object with a volume of 200 cm³ has a density of 540 ÷ 200 = 2.7 g/cm³.

How do I find mass from density and volume?

Multiply them, m = ρ × V. Half a liter (500 cm³) of a liquid with a density of 0.8 g/cm³ has a mass of 400 g. Use the Mass tab for other units.

How do I find volume from mass and density?

Divide the mass by the density, V = m ÷ ρ. 1 kg of copper (8.96 g/cm³) takes up 1,000 ÷ 8.96 ≈ 111.6 cm³.

How do I measure the volume of an irregular object?

Use water displacement. Fill a measuring cylinder partway, note the level, drop in the object and read the new level. The difference in milliliters is the object's volume in cubic centimeters.

How do I convert g/cm³ to kg/m³?

Multiply by 1,000. Aluminum at 2.699 g/cm³ is 2,699 kg/m³. To get pounds per cubic foot, multiply g/cm³ by about 62.43.

What is the density of water?

About 1 g/cm³, which is 1,000 kg/m³ or 62.4 lb/ft³. It is slightly lower when water is warm. That reference is why a density in g/cm³ also tells you the specific gravity.

Why do some objects float?

A solid object floats when its average density is lower than the liquid's. Polyethylene (0.93 g/cm³) floats in water. Steel sinks, but a steel ship floats because its average density, including the air inside the hull, is below that of water.

Sources

  1. X-Ray Mass Attenuation Coefficients, Table 1: Material constants for elemental media — NIST Physical Measurement Laboratory (Hubbell & Seltzer). Checked October 12, 2026.
  2. X-Ray Mass Attenuation Coefficients, Table 2: Material constants for compounds and mixtures — NIST Physical Measurement Laboratory (Hubbell & Seltzer). Checked October 12, 2026.
  3. University Physics Volume 1, 14.1 Fluids, Density, and Pressure — OpenStax (Rice University). Checked October 12, 2026.

Volume Converter

Convert mL, liters, cups, fl oz, gallons and cubic units in one place.

Conversion

Weight Converter

Convert mg, g, kg, metric tons, ounces, pounds, stone and US tons.

Conversion