Calculate density in g/cm³ or g/mL from grams and volume, or find mass or volume from a density, with typical values for water, metals and other materials.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Density from mass and volumeFinds density from a measured mass and volumeRequires mass and volume
Mass from volume and densityFinds the mass of a known volume of materialRequires volume and a material or its density
Volume from mass and densityFinds the volume a known mass takes upRequires mass and a material or its density
Box: mass from dimensionsFinds the mass of solid rectangular blocksRequires length, width, height, quantity and a material or its density
Cylinder: mass from dimensionsFinds the mass of solid cylindersRequires radius, height, quantity and a material or its density
Sphere: mass from dimensionsFinds the mass of solid spheresRequires radius, quantity and a material or its density
Circular plate: mass from dimensionsFinds the mass of solid round platesRequires radius, thickness, quantity and a material or its density
Grams to millilitersConverts a mass of a material to its volumeRequires mass and a material or its density
Milliliters to gramsConverts a volume of a material to its massRequires volume and a material or its density

Mass is entered in mg, g, kg, oz or lb, volume in mL, cm³, L, in³, ft³, m³ or US gallons, and density in g/cm³, g/mL, kg/m³, lb/ft³, lb/in³, g/L or mg/mL. Choosing a material fills in a typical density, and typing a density switches the material to custom. Every result lists the mass, volume and density in several units, along with specific gravity.

Grams to Density Formulas

D = M ÷ V [1]
DDensity (g/cm³, the same number as g/mL)
MMass (g)
VVolume (cm³ or mL)

Density from mass and volume

Density is the mass in a given volume [1]. 50 g in 25 cm³ is 2 g/cm³, and 19.5 g in 14.2 cm³ is 1.3732 g/cm³. Grams alone cannot give a density, because the volume is the other half of the ratio.

Mass from volume and density

M = D × V

250 mL of water at 0.9982 g/cm³ has a mass of 249.55 g.

Volume from mass and density

V = M ÷ D

500 g of gold at 19.32 g/cm³ takes up 25.88 mL.

Box: mass from dimensions

M = D × l × w × h × n

n is the quantity of identical pieces. One aluminum block of 10 cm × 5 cm × 2 cm is 100 cm³ and 270 g.

Cylinder: mass from dimensions

M = D × π × r² × h × n

A steel bar with a 2 cm radius and a 10 cm height is 125.66 cm³ and 986.5 g.

Sphere: mass from dimensions

M = D × (4 ÷ 3) × π × r³ × n

A lead ball with a 3 cm radius is 113.1 cm³ and 1,282.5 g.

Circular plate: mass from dimensions

M = D × π × r² × t × n

t is the plate thickness. A copper disc with a 5 cm radius and a 0.5 cm thickness is 39.27 cm³ and 351.9 g.

Grams to milliliters

mL = g ÷ D

Grams become milliliters only through a density, so the answer changes with the material: 2,000 g of water is 2,003.6 mL, while 2,000 g of honey is 1,408.5 mL.

Milliliters to grams

g = mL × D

100 mL of honey at 1.42 g/cm³ weighs 142 g, and 100 mL of ethanol weighs 78.9 g.

Material Densities Used

MaterialDensity (g/cm³)
Water, 20 °C0.9982
Ice, near 0 °C0.9167
Ethanol, 20 °C0.789
Olive oil0.918
Gasoline0.74
Milk1.03
Honey1.42
Mercury, 25 °C13.534
Dry air, 15 °C and 1 atm0.001225
Aluminum2.7
C28000 brass8.4
Copper8.96
Carbon or structural steel7.85
Lead11.34
Silver10.49
Gold19.32
Normal-weight concrete2.4
White oak, 12% moisture0.76

The water figure sits between the published 0.99907 g/cm³ at 15.6 °C and 0.99802 g/cm³ at 21 °C [1]. Specific gravity in the results is the density divided by 1 g/mL, so it is the same number as the density in g/cm³.

Unit factors used: 1 lb = 453.59237 g, 1 oz = 28.349523125 g, 1 in³ = 16.387064 cm³, 1 ft³ = 28,316.846592 cm³ and 1 US gallon = 3,785.411784 mL [2]. 1 cm³ equals 1 mL.

Limits of This Estimate

  • Density changes with temperature, pressure and composition. Water alone runs from 0.99987 g/cm³ at 0 °C to 0.95865 g/cm³ at 100 °C [1].
  • The material densities are typical values. Foods, fuels, wood, concrete and alloys vary from batch to batch, so a measured density gives a better answer. These estimates are based on the best available data and estimations.
  • The shape functions assume solid pieces with no holes, voids or rounded edges.

Sources

  1. U.S. Geological Survey, Water Density: what density is and the density of water by temperature
  2. NIST, Guide to the SI (Special Publication 811), Appendix B.8: pound, ounce, cubic inch, cubic foot and US gallon in SI units