Density Calculator: Mass, Volume and Density Formula

: Find density, mass or volume from the other two with ρ = m ÷ V, in any unit, with the volume from a box, cylinder or sphere, specific gravity, float or sink in water and a materials table
Mass, volume and density
A number, or with its unit: 20 g, 5 kg, 3 lb, 2 oz.
Used when the mass has no unit typed; also the unit of the answer when finding mass.
A number, or with its unit: 8 cm³, 250 mL, 3 ft³, 1 gal.
Used when the volume has no unit typed; also the unit of the answer when finding volume.
Used when the density has no unit typed; also the unit of the answer when finding density.
Density ρ = m ÷ V, so m = ρ × V and V = m ÷ ρ. Everything is worked in kg, m³ and kg/m³ and shown in the unit you pick. Conversions are exact: 1 lb = 0.45359237 kg, 1 oz = 28.349523125 g, 1 short ton = 907.18474 kg, 1 in = 2.54 cm, 1 US gal = 3.785411784 L, 1 UK gal = 4.54609 L, 1 US fl oz = 29.5735295625 mL, 1 US cup = 236.5882365 mL. Specific gravity is measured against water at 4 °C (999.972 kg/m³). Material densities: Wikipedia, Density (Various materials), metals checked against Densities of the elements (data page), read 2026-11-30. Densities of real materials vary with temperature, alloy, moisture and porosity.
Result
Density
2.5 g/cm³
ρ = m ÷ V = 0.02 kg ÷ 0.000008 m³ = 2,500 kg/m³.
Specific gravity
2.5001
ρ ÷ 999.972 kg/m³ (water at 4 °C) = 2,500 kg/m³ ÷ 999.972 = 2.5001.
In fresh water
Sinks
Denser than water (2.5001 times). A solid piece of this sinks; a hollow thing such as a ship can still float.
Nearest materials
Glass, Concrete, Granite
Glass 2,500 kg/m³; Concrete 2,400 kg/m³; Granite 2,700 kg/m³. Closest by ratio of density.
  • Densities of real materials vary with temperature, alloy, moisture and porosity. The table gives typical values: use your own figure when you have it.
Density in every unit
UnitValue
kg/m³2,500
g/cm³ (your unit)2.5
g/mL2.5
g/L2,500
kg/L2.5
lb/ft³156.07
lb/in³0.090318
lb/gal (US)20.864
oz/in³1.4451
Densities of common materials, lowest first
Materialkg/m³g/cm³lb/ft³
Air (20 °C, 1 atm)1.2040.0012040.075163
Cork2400.2414.983
Pine3730.37323.286
Wood (seasoned, typical)7000.743.7
Oak7100.7144.324
Ice916.70.916757.228
Cooking oil9200.9257.434
Water (20 °C)998.210.9982162.316
Water (4 °C)999.970.9999762.426
Seawater (3 % salinity)1,0301.0364.301
Nylon1,1501.1571.792
Glycerol1,2611.26178.722
Sand (dry)1,6001.699.885
Magnesium1,7401.74108.62
Concrete2,4002.4149.83
Glass2,5002.5156.07
Your result (you)2,5002.5156.07
Granite2,7002.7168.56
Aluminium2,7002.7168.56
Limestone2,7502.75171.68
Basalt3,0003187.28
Diamond3,5003.5218.5
Titanium4,5064.506281.3
Zinc7,1407.14445.74
Tin (white)7,2657.265453.54
Mild steel7,8507.85490.06
Iron7,8707.87491.31
Brass8,6008.6536.88
Nickel8,9008.9555.61
Copper8,9608.96559.35
Silver10,50010.5655.49
Lead11,34011.34707.93
Mercury13,53413.534844.9
Tungsten19,30019.31,204.9
Gold19,32019.321,206.1
Platinum21,45021.451,339.1
Osmium22,57022.571,409

This density calculator finds density, mass or volume from the other two with the formula ρ = m ÷ V. Pick what to find, type the two you know with their units (20 g, 3 ft³, 62.4 lb/ft³) or take a density from a table of common materials, and get the answer in the unit you want and in every other unit, with the working. The volume can be typed, or worked out from the sides of a box, a cylinder or a sphere. It also gives specific gravity and says whether the thing floats in fresh water.

  1. Pick Find: Density from mass and volume, Mass from density and volume, or Volume from mass and density. Each choice shows only the fields it needs.
  2. Type the Mass, with its unit if you like (20 g, 5 lb); the Mass unit is used when you type only a number.
  3. Give the volume. Use Volume from to type one amount (8 cm³, 1 gal) or to enter the length, width and height of a box, the diameter and height of a cylinder or the diameter of a sphere, in the Length unit you pick or with units typed in.
  4. When finding mass or volume, pick a Material to fill in its density, or leave Type a density and enter your own (2.5 g/cm³). The Density unit sets the unit of a density answer.
  5. Read the answer with its working, the answer in every unit, the specific gravity, whether it floats or sinks in fresh water and, when finding density, the three nearest materials. Your result is marked in the materials table.

A stone of 20 g that displaces 8 cm³ of water: the result rows as the tool shows them.

Input
Find: Density
Mass: 20 g
Volume: 8 cm³
Density unit: g/cm³
Output
Density: 2.5 g/cm³
Specific gravity: 2.5001
In fresh water: Sinks
Nearest materials: Glass, Concrete, Granite

How do you calculate density?

Divide mass by volume: ρ = m ÷ V. A mass of 20 g in a volume of 8 cm³ is 2.5 g/cm³, which is 2.5 g/cm³ as the tool computes it, or 2,500 kg/m³.

How do you find mass from density and volume?

Multiply: m = ρ × V. For example aluminium at 2,700 kg/m³ and a 10 cm cube (0.001 m³) gives 2.7 kg. Set Find to Mass, pick the material and enter the dimensions.

How do you find volume from mass and density?

Divide: V = m ÷ ρ. 1 kg of gold at 19,320 kg/m³ is 51.76 cm³. Set Find to Volume and choose the unit you want the volume in.

What is the density of water, and does it float?

Fresh water is 999.972 kg/m³ at 4 °C, about 1 g/cm³ or 1 kg/L, and 998.21 kg/m³ at 20 °C. In pounds that is about 62.4 lb/ft³ or 8.34 lb per US gallon. A solid with a lower density floats in it and one with a higher density sinks: the tool shows specific gravity and a floats, sinks or about-the-same verdict.

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

Multiply by 1,000: 2.5 g/cm³ is 2,500 kg/m³. The answer table lists the density in kg/m³, g/cm³, g/mL, g/L, kg/L, lb/ft³, lb/in³, lb/gal and oz/in³ at once.

Runs entirely in your browser. Nothing is uploaded.