Density Calculator

Calculate density, mass or volume from the other two using ρ = m / V — units are yours to choose.

Written by Ahmet Tur · Reviewed by Kübra Yıldız · Updated

Your result will appear here

Fill in the fields and press Calculate.

Density is mass divided by volume: ρ = m ÷ V. A 113.4 g fishing weight that displaces 10 mL (10 cm³) of water has a density of 113.4 ÷ 10 = 11.34 g/cm³, which matches lead. Rearranged, m = ρ × V and V = m ÷ ρ.

Choose whether you want density, mass or volume, enter the other two, and the calculator solves it. The tool does not convert units: the answer comes out in whatever units you put in. Grams and cubic centimeters give g/cm³; kilograms and cubic meters give kg/m³; pounds and cubic feet give lb/ft³.

Water is the benchmark. Its density is about 1 g/cm³, 1,000 kg/m³, 62.4 lb/ft³ or 8.34 lb per U.S. gallon, and anything denser than the liquid it's in will sink. Below you'll find the conversion factors from NIST, a table of common materials from a standard physics text, the water-displacement method for irregular objects, and the unit mix-ups that produce answers 1,000 times too big or too small.

Density Calculator: step-by-step worked example

Example inputs
Solve for
Density (from mass & volume)
Mass
250 g
Volume
92.6 cm³
  1. 1

    Density

    ρ = m ÷ V

    250 g ÷ 92.6 cm³ = 2.6998 g/cm³

  2. 2

    In kg/m³

    kg/m³ = g/cm³ × 1,000

    2.6998 × 1,000 = 2,699.78 kg/m³

  3. 3

    Relative to water (specific gravity)

    SG = ρ ÷ 1 g/cm³ (> 1 sinks in water)

    2.6998 ÷ 1 = 2.6998

Result · Density2.6998 g/cm³
Compared with common materials
  • Ice0.917 g/cm³
  • Water1 g/cm³
  • This sample2.6998 g/cm³
  • Aluminium2.7 g/cm³
  • Iron7.87 g/cm³
  • Copper8.96 g/cm³

Good to know: The result follows the units you enter: g and cm³ → g/cm³, kg and m³ → kg/m³. The example (250 g in 92.6 cm³ ≈ 2.70 g/cm³) matches aluminium.

Density Calculator — how it works

Three forms of one equation

Solve forFormulaExample
Densityρ = m ÷ V54 g ÷ 20 cm³ = 2.7 g/cm³
Massm = ρ × V0.92 g/cm³ × 236.59 cm³ = 217.66 g
VolumeV = m ÷ ρ31.1 g ÷ 19.32 g/cm³ = 1.61 cm³

Results are shown to six decimal places. Because units pass straight through, keep them consistent: if density is in g/cm³, mass must be in grams and volume in cm³. One milliliter equals one cubic centimeter, so lab and kitchen volumes in mL can be entered directly.

Density of common materials

These values come from the density table in OpenStax College Physics, given here in g/cm³ (multiply by 1,000 for kg/m³).

Materialg/cm³Floats in water?
Cork0.24Yes
Gasoline0.68Yes (it sits on top)
Ethyl alcohol0.79Mixes
Olive oil0.92Yes
Ice (0 °C)0.917Yes
Water (4 °C)1.000—
Blood1.05—
Aluminum2.7No
Iron / steel7.8No
Copper8.8No
Lead11.3No
Mercury13.6No
Gold19.32No
Air0.00129—

Gases are roughly a thousand times less dense than liquids and solids, which is why a cubic meter of air weighs about 1.3 kg while a cubic meter of water weighs 1,000 kg.

Unit conversions (U.S. and SI)

NIST Special Publication 811 gives the conversion factors to kg/m³:

FromMultiply byTo get
g/cm³1,000 (exact)kg/m³
lb/ft³16.01846kg/m³
lb/gal (U.S.)119.8264kg/m³
oz/in³1,729.994kg/m³

Working the other way, 1 g/cm³ = 1,000 ÷ 16.01846 = 62.43 lb/ft³ and 1,000 ÷ 119.8264 = 8.345 lb/gal. That is where the familiar "a gallon of water weighs about 8.34 pounds" comes from. Gasoline at 0.68 g/cm³ works out to about 5.67 lb/gal.

Finding the volume of an irregular object

For a rock, a ring or a fishing weight, measure the volume by water displacement: fill a graduated cylinder or measuring cup partway, read the level, submerge the object fully and read again. The rise in milliliters is the object's volume in cm³. Weigh it on a kitchen or lab scale in grams, then divide. This is the method traditionally attributed to Archimedes for testing a gold crown, and it works for any object that doesn't absorb water or float.

For regular shapes, compute volume geometrically: a rectangular block is length × width × height; a cylinder is πr² × height.

Why water is "1" and when it isn't

The metric system was set up so water has a density of 1 g/cm³. USGS notes that water is densest at about 4 °C (39.2 °F) and that ice is roughly 9% less dense than liquid water, which is why ice floats and lakes freeze from the top down. Warm water is slightly less dense than cold, and seawater is denser than fresh water because of dissolved salt. For most calculations, 1.00 g/cm³ is accurate to within a fraction of a percent.

Specific gravity is the same idea without units: the ratio of a material's density to that of water. Aluminum has a specific gravity of 2.7, which means it is 2.7 times as dense as water.

Common mistakes

  • Mixing g with kg or cm³ with m³. 1 m³ = 1,000,000 cm³, so a g/cm³ value entered against m³ is off by a factor of a million.
  • Confusing weight and mass. In everyday U.S. use, pounds are treated as mass; for density this is fine, as long as volume is in matching units.
  • Using nominal volume for porous materials. Wood, soil and powders contain air, so their bulk density is lower than the density of the solid material.
  • Expecting "heavy" to mean "dense". A ship weighs thousands of tons, but its hull encloses so much air that its average density is below that of water, so it floats.

Will it float? Using density for buoyancy

An object floats in a fluid when its average density is lower than the fluid's, and the fraction that sits below the surface equals the ratio of the two densities. Ice at 0.917 g/cm³ in fresh water at 1.000 g/cm³ floats with about 92% of its volume submerged, which is where the "tip of the iceberg" idea comes from. Cork at 0.24 g/cm³ floats with only about a quarter submerged.

To use the calculator for this, compute the object's density first, then compare it with the fluid's value from the table above. For a mixture or a hollow object, use the total mass divided by the total outer volume; that average is what decides whether it floats. This is also how a hydrometer works: it sinks deeper in a less dense liquid and rides higher in a denser one, so the depth it settles at can be read as a density or specific gravity. Saltwater is denser than fresh water, so the same boat floats slightly higher in the ocean than in a lake.

Worked example

A fisherman wants to check whether an old 4-ounce sinker is lead or a lighter substitute.

  • Mass: the kitchen scale reads 113.4 g (4 oz).
  • Volume: a measuring cup filled to 200 mL rises to 210 mL when the sinker is dropped in, so its volume is 10 mL = 10 cm³.
  • In "Density" mode, enter mass 113.4 and volume 10: ρ = 113.4 ÷ 10 = 11.34 g/cm³.

That matches lead (11.3 g/cm³ in the OpenStax table) and rules out steel, which at 7.8 g/cm³ would read much lower. In U.S. units: 11.34 × 62.43 ≈ 708 lb/ft³.

The same tool helps in the kitchen. To weigh 1 U.S. cup (236.59 mL) of olive oil at 0.92 g/cm³, use "Mass" mode: 0.92 × 236.59 = 217.6628 g, about 218 g. And to see how small a 1-troy-ounce gold coin's metal really is, use "Volume" mode: 31.1 g ÷ 19.32 g/cm³ = 1.609731 cm³, about a third of a U.S. teaspoon (4.93 mL) of metal. Displacement accuracy depends on how finely the container is marked; a 10 mL graduated cylinder is far more precise than a kitchen measuring cup.

Frequently asked questions

What is the formula for density?+

Density equals mass divided by volume: ρ = m ÷ V. A 54 g object with a volume of 20 cm³ has a density of 2.7 g/cm³, the density of aluminum.

How do I find mass from density and volume?+

Multiply: m = ρ × V. One U.S. cup (236.59 mL) of olive oil at 0.92 g/cm³ has a mass of about 217.7 g.

How do I find volume from mass and density?+

Divide: V = m ÷ ρ. 31.1 g of gold at 19.32 g/cm³ occupies about 1.61 cm³.

What is the density of water?+

About 1.000 g/cm³ at 4 °C (39.2 °F), its densest point. In other units: 1,000 kg/m³, about 62.4 lb/ft³ and about 8.34 lb per U.S. gallon.

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

Multiply by 1,000 (exact, per NIST SP 811). Aluminum at 2.7 g/cm³ is 2,700 kg/m³.

How do I convert g/cm³ to lb/ft³?+

Multiply by about 62.43. NIST gives 1 lb/ft³ = 16.01846 kg/m³, so 1 g/cm³ (1,000 kg/m³) = 1,000 ÷ 16.01846 ≈ 62.43 lb/ft³.

How do you find the density of an irregular object?+

Weigh it, then measure its volume by water displacement: the rise in water level in mL equals its volume in cm³. Divide the mass in grams by that volume.

Why does ice float on water?+

Ice is less dense than liquid water: about 0.917 g/cm³ versus 1.000 g/cm³. USGS notes water's density drops by about 9% when it freezes.

Is density the same as specific gravity?+

Nearly. Specific gravity is density divided by the density of water, so it has no units. A material with a density of 7.8 g/cm³ has a specific gravity of about 7.8.

Sources

About this page

Publisher:
Kalkoro — Teknolojig Bilişim Teknolojileri A.Ş., İstanbul
Written by:
Ahmet Tur — Editor (Math, date & time, unit conversion, physics & chemistry, everyday tools)
Reviewed by:
Kübra Yıldız — Editor

Parameters come from official sources; the last update date is shown at the bottom of the page.

Spotted a wrong result? Use the "Report a bug" button at the top of the page; every report is reviewed.

How we calculate and our accuracy policy →

Results are for information only. For official matters the relevant authority's calculation prevails.

Last updated: