The tool you need, ready to use

Density Calculator

Enter any two of mass, volume and density and the calculator finds the third. Density is mass divided by volume (ρ = m ÷ V), and 1 g/cm³ equals 1,000 kg/m³. If you don't know the volume, measure it by the water level difference or by the dimensions of a box, cylinder or sphere. For a liquid, subtract the empty container's weight from the weight of the filled container to get the mass. The beaker drawing shows whether the object floats in water, seawater, oil and other liquids and how much of it is submerged, and the ladder shows the materials with the closest density.

Last updated 2026-10-20All math stays in your browser

Solve for
Significant figures
Placed in a liquid

Nearby materials Ordered by density · tap to insert that density

Values are published property data (PubChem and others). Reference temperatures and sources are in the materials table in the article.

Last updated 2026-10-20Your inputs are not stored

ROBERIN standardThe tool you need,
ready to use.
  • Clear at a glanceInputs and results sit where you expect them.
  • Result firstThe key number comes first; the working only when you need it.
  • Ask lessNo sign-up and no unnecessary details.

Density is mass divided by volume

Density (ρ, the Greek letter rho) tells you how much mass is packed into a given volume. The formula is density = mass ÷ volume. A metal lump with a mass of 67.5 g and a volume of 25 cm³ has a density of 67.5 ÷ 25 = 2.7 g/cm³. That matches aluminum (2.70 g/cm³), so the lump is probably aluminum.

The calculator above solves whichever of mass, volume and density you pick under "Solve for" from the other two. If you type a number into the box being solved, the box you edited longest ago becomes the new one to solve for. Each box has its own unit selector, so mixed units such as kg and mL can be entered as they are. Below the result, the beaker drawing shows whether the object floats in the liquid you choose and how much of it is submerged, and the ladder lists the materials whose density is closest.

The six calculations behind the Example button (the screen default of 4 significant figures, separate from the precision of your measurements)
SituationInputResultClosest material
Unknown metal lump67.5 g, 25 cm³2.700 g/cm³Aluminum 2.70 (0% off)
Metal piece measured by water level89.3 g, water 40 → 50 mL8.930 g/cm³Copper 8.933 (−0.034%)
Box-shaped block measured by size71.3 g, 5 × 2 × 1 cm7.130 g/cm³Zinc 7.134 (−0.056%)
Mass of 1 m³ of iron7.874 g/cm³ × 1 m³7,874 kgIron
Volume of 1 kg of ice1 kg ÷ 0.91672 g/cm³≈ 1.091 LIce at 0 °C
Liquid weighed in its container176.1 − 50 g, 100 mL1.261 g/cm³Glycerin 1.2613 (−0.024%)

When you need to calculate density

A material's density stays nearly constant whatever the size of the sample, so it is useful whenever you know both the weight and the volume of something. Typical cases include:

  • Guessing what something is made of: In a science lab you measure the mass and volume of a metal piece or a stone, work out its density, and compare it with the materials table. The smaller the percentage difference shown on the ladder, the more likely the match.
  • Estimating weight from volume, or volume from weight: For steel plate or concrete whose dimensions you know but whose weight you don't, or for a liquid sold by weight when you want to know how many liters it is, you multiply or divide by the density.
  • Finding out whether something floats or sinks: If the average density of an object is lower than that of the liquid, it floats, and that fraction of it is submerged. The same idea explains ice and icebergs, and why oil floats on water.
  • Judging how concentrated a liquid is: In sugar water or salt water, the more that is dissolved, the higher the density. Comparing the density of equal volumes shows the difference in concentration.

How to use the calculator

  1. Under "Solve for", pick density, mass or volume. Density is selected at first.
  2. Enter numbers in the other two boxes and choose a unit at the right of each box. For density you can also pick a material under "Pick a material density" below the box.
  3. If you don't know the volume directly, choose "Water level difference", "Box dimensions", "Cylinder dimensions" or "Sphere diameter" under the volume box and fill in the boxes that appear. For a liquid that has to be weighed in a container, choose "Full − empty container" under the mass box.
  4. In the result strip, check the value, the formula and the values in other units. A rounded value is marked with "≈", and you can choose 3, 4 or 6 significant figures.
  5. Use the buttons above the beaker to change the liquid, and tap a material on the ladder to insert its density into the density box. "Copy link" copies an address that contains your current input.

Formulas linking mass, volume and density

Density, mass and volume are tied together by one formula, so any two of them determine the third.

  • Density: ρ = m ÷ V (for example, 89.3 g ÷ 10 cm³ = 8.93 g/cm³)
  • Mass: m = ρ × V (for example, 7.874 g/cm³ × 1,000,000 cm³ = 7,874,000 g = 7,874 kg)
  • Volume: V = m ÷ ρ (for example, 1,000 g ÷ 0.91672 g/cm³ ≈ 1,090.8 cm³ ≈ 1.091 L)

If the units are mixed, first convert the mass to grams and the volume to cm³, calculate, and then convert to the density unit you want. 1 mL is exactly 1 cm³, 1 L is 1,000 cm³ and 1 m³ is 1,000,000 cm³. So g/cm³, g/mL and kg/L have the same number, while kg/m³ and g/L give 1,000 times that number. The US customary units use the definitions of the National Institute of Standards and Technology (NIST): 1 lb = 453.592 37 g, 1 oz = 1/16 lb, 1 in = 2.54 cm, 1 US gal = 231 in³ = 128 US fl oz.

1 g/cm³ written in other density units (6 significant figures, ≈ means rounded)
Unit1 g/cm³Note
g/mL, kg/L11 mL = 1 cm³
kg/m³, g/L1,000The SI unit of density is kg/m³
lb/ft³≈ 62.4281 lb/ft³ ≈ 0.0160185 g/cm³
lb/in³≈ 0.0361273Common in metal data sheets
lb/gal (US)≈ 8.3454Common in US liquid data

How to measure mass and volume

Mass: weigh it, and subtract the container for liquids

Solids go straight onto the scale. For a liquid, weigh the empty container first, weigh it again after adding the liquid, and use the difference as the mass of the liquid. The "Full − empty container" option in the calculator does exactly this. For example, with a 50 g empty container holding 100 mL of glycerin that reads 176.1 g, the mass is 126.1 g and the density is 1.261 g/cm³. If your scale has a tare function (subtracting the container's weight), you can type the displayed value straight into the mass box.

Volume: use dimensions for regular shapes, water level otherwise

  • Box: length × width × height. A 5 cm × 2 cm × 1 cm block is 10 cm³.
  • Cylinder: π × (diameter ÷ 2)² × height. A rod 2 cm across and 5 cm long is about 15.71 cm³.
  • Sphere: π × diameter³ ÷ 6. A ball 3 cm across is about 14.14 cm³.
  • Irregular objects: Fill a graduated cylinder with water and read the level, then lower the object in until it is fully submerged and read it again. The rise is the volume (1 mL = 1 cm³). This does not work for objects that dissolve in water or soak it up.

A small object may have a volume smaller than the spacing of the cylinder's markings, which makes the error large. In that case, put a cup of water on a scale and tare it, then hang the object from a thread so that it is fully under water without touching the bottom or the wall. The extra reading on the scale is the mass of the water the object displaced, and dividing that number of grams by the density of water (0.998207 g/cm³ at 20 °C) gives the volume in cm³. Enter that volume directly in the volume box of the calculator.

Density table by material

These are the values used by the calculator's "Pick a material density" menu and by the ladder. The element values are those listed in the periodic table of PubChem, run by the US National Institutes of Health, which gives no reference temperature. The same material varies slightly with temperature, crystal structure and purity, so it is safest to compare only to about the second decimal place.

Density of 30 materials (g/cm³; for heaviest-first order, see the ladder)
MaterialDensityBasis and source
Hydrogen0.00008988Gas, PubChem periodic table
Helium0.0001785Gas, PubChem periodic table
Air at 20 °C0.001204Dry air, 1 atm, calculated with the ideal gas law
Ethanol0.789320 °C, PubChem (CRC Handbook)
Olive oil0.911Midpoint 0.913 of the relative density 0.910–0.916 × water at 20 °C (0.998207), Codex standard
Water at 20 °C0.9982071 atm, Tanaka et al. 2001
Water at 4 °C0.999975Densest value, at 3.98 °C, Tanaka et al. 2001
Seawater1.025Reference value used for conversions in NOAA data (varies with salinity and temperature)
Glycerin1.261320 °C, PubChem (CRC Handbook)
Mercury13.5336Liquid metal, PubChem periodic table
Ice at 0 °C0.91672Melting point at 1 atm, IAPWS 2009
Sugar (sucrose)1.5805Crystal, 17 °C, PubChem (CRC Handbook)
Salt (sodium chloride)2.17Crystal, 25 °C, PubChem (CRC Handbook)
Graphite (carbon)2.267PubChem periodic table
Lithium0.534Lightest metal, PubChem periodic table
Sodium0.97PubChem periodic table
Magnesium1.74PubChem periodic table
Aluminum2.70PubChem periodic table
Titanium4.5PubChem periodic table
Zinc7.134PubChem periodic table
Tin7.287PubChem periodic table
Iron7.874Pure iron, PubChem periodic table
Nickel8.912PubChem periodic table
Copper8.933PubChem periodic table
Silver10.501PubChem periodic table
Lead11.342PubChem periodic table
Gold19.282Pure gold, PubChem periodic table
Tungsten19.3PubChem periodic table
Platinum21.46PubChem periodic table
Osmium22.57Heaviest in this table, PubChem periodic table

Air density was calculated at 1 atm (101,325 Pa) and 20 °C with the ideal gas law ρ = p × M ÷ (R × T). The molar mass M of dry air is 28.9644 g/mol from the 1976 U.S. Standard Atmosphere, and the gas constant R is 8.314 462 618 J/(mol·K). The result is about 1.204 kg/m³. The iron value is for pure iron, so it can differ a little from steel, which contains carbon.

Float or sink: finding the submerged fraction

An object placed in a liquid is pushed up by a force equal to the weight of the liquid it displaces (Archimedes' principle). So if the average density of the object is lower than that of the liquid, it floats, and a floating object comes to rest with a fraction of its volume submerged equal to object density ÷ liquid density. If the object is denser, it sinks, and in the liquid it feels like only (1 − liquid density ÷ object density) of its weight in air.

An object placed in a liquid: the submerged fraction if it floats, or "sinks" with its weight in the liquid
ObjectWater at 20 °CSeawater (1.025)Mercury
Ice (0.91672)Floats, 91.8% submergedFloats, 89.4% submergedFloats, 6.77% submerged
Olive oil (0.911)Floats, 91.3% submergedFloats, 88.9% submergedFloats, 6.73% submerged
Aluminum (2.70)Sinks, weighs 63%Sinks, weighs 62%Floats, 20% submerged
Iron (7.874)Sinks, weighs 87.3%Sinks, weighs 87%Floats, 58.2% submerged
Lead (11.342)Sinks, weighs 91.2%Sinks, weighs 91%Floats, 83.8% submerged
Gold (19.282)Sinks, weighs 94.8%Sinks, weighs 94.7%Sinks, weighs 29.8%

Olive oil is a liquid rather than an object, but the thickness of the layer that floats on water without mixing follows the same ratio, so it is included. Mercury is heavy enough to float iron and lead, but gold is 1.42 times as dense as mercury and sinks. Ships and life jackets float even though their material is denser than water, because they contain air, and the average density of the whole is lower than that of water.

The density of water changes with temperature

When you compare against water, you need to know the temperature of the water. By the formula that Tanaka et al. (2001) recommended for metrology, pure water with no dissolved air is densest at about 3.98 °C at 1 atm and becomes lighter when it is colder or warmer. So 1 g/cm³ is an approximation: between 0 and 30 °C it holds only to two decimal places (about 0.18% off at 20 °C). The specific gravity in this calculator takes the densest water (0.999975 g/cm³) as 1.

Density of pure water (1 atm, formula of Tanaka et al. 2001, 6 significant figures)
Water temperaturekg/m³g/cm³
0 °C999.8430.999843
4 °C999.9750.999975
10 °C999.7030.999703
15 °C999.1030.999103
20 °C998.2070.998207
25 °C997.0470.997047
30 °C995.6490.995649
35 °C994.0330.994033
40 °C992.2150.992215

Common mistakes

  • Dividing without matching units: Writing 2 kg ÷ 500 mL as 2 ÷ 500 = 0.004 is wrong. The answer is 2,000 g ÷ 500 cm³ = 4 g/cm³.
  • Mixing kg/m³ and g/cm³ in a comparison: Do not compare water at 998 kg/m³ with aluminum at 2.7 g/cm³ by the numbers alone. In the same unit they are 0.998 and 2.7.
  • Treating weight as mass when weighing under water: A reading taken with the object hanging in water is lighter by the buoyant force, so it is not the mass.
  • Air bubbles and water absorption: When you measure by water level, air bubbles on the surface make the volume look larger, and objects that soak up water, such as wood or a sponge, make it look smaller.
  • Writing more digits than you measured: For a density worked out from 67.5 g (3 significant figures) and 25 cm³ (2 figures), the convention is to report 2.7 g/cm³, matching the measurement with fewer digits. You can choose the number of digits with the significant-figures buttons in the calculator.

Limits and cautions

  • The result is the average density of the whole object. A hollow object, a porous one or one made of several glued materials gives a different value from the density of any single material.
  • Several materials share almost the same density, so density alone cannot identify a material. Gold (19.282) and tungsten (19.3) are the classic example.
  • The materials table and the liquid densities are representative values. Real values change with temperature, pressure, purity and alloy ratio, and gases change a great deal with temperature and pressure.
  • The beaker drawing is based only on the density ratio. It ignores surface tension, the shape and tilt of the object, and the mixing of liquids. Seawater is assumed to be 1.025 g/cm³.
  • The values you enter are calculated only inside this browser and are never sent to a server.

Basis: the unit factors are the exact definitions in NIST Handbook 44 (2026) Appendix C, and the water density formula is Tanaka et al. (2001). Material densities from PubChem, IAPWS, Codex and NOAA were checked on October 20, 2026.

Sources

Frequently asked questions

How do you calculate density?

Density is mass divided by volume (ρ = m ÷ V). With a mass of 67.5 g and a volume of 25 cm³, it is 67.5 ÷ 25 = 2.7 g/cm³. If the units are mixed, such as kg for mass and mL for volume, first convert to g and cm³ and then divide. The calculator above does this for you when you choose a unit for each box.

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

Multiply by 1,000. 1 g/cm³ is 1,000 kg/m³, and the number is the same in g/mL and kg/L. For example, the density of water at 20 °C, 0.998207 g/cm³, is 998.207 kg/m³. In US customary units, 1 g/cm³ is about 62.428 lb/ft³.

Can I find mass or volume from density?

Yes. Mass is density × volume, and volume is mass ÷ density. 1 m³ of iron (7.874 g/cm³) has a mass of 7,874 kg, and 1 kg of ice (0 °C, 0.91672 g/cm³) has a volume of about 1.091 L. In the calculator, change "Solve for" to mass or volume and pick a material.

How do I measure the volume of an irregular object?

Fill a graduated cylinder with water, lower the object in until it is fully submerged, and the rise in the water level is the volume (1 mL = 1 cm³). If the level goes from 40 mL to 50 mL, the volume is 10 cm³, and with a mass of 89.3 g the density is 8.93 g/cm³, almost the same as copper (8.933). Air bubbles clinging to the object make the volume look larger, so shake them off before reading.

Does something float if its density is below 1?

An object floats if its overall average density is lower than that of the liquid. Water at 20 °C is 0.998207 g/cm³, so anything lighter floats, and the submerged fraction is object density ÷ liquid density. Ice (0.91672) is about 91.8% submerged in water and about 89.4% in seawater (assumed 1.025). For a hollow object such as a ship, what counts is the average density including the empty space, not the material.

What is the difference between specific gravity and density?

Specific gravity is the ratio to the density of a reference substance, and it has no unit. This calculator uses water at about 4 °C (0.999975 g/cm³), where it is densest, as the reference. So it is almost the same number as the density in g/cm³, with a difference of about 0.003%. Some fields use water at 20 °C as the reference, so check the basis of your source.

Is the density of water exactly 1 g/cm³?

No. Pure water with no dissolved air is densest at about 3.98 °C, at 0.999975 g/cm³, and is 0.998207 g/cm³ at 20 °C and 0.997047 g/cm³ at 25 °C (Tanaka et al. 2001, 1 atm). 1 g/cm³ is an approximation that holds only to two decimal places between 0 and 30 °C; at 20 °C it is about 0.18% off.

Can density alone tell if gold is real?

It is a clue, but not proof. Pure gold is 19.282 g/cm³, and tungsten is almost the same at 19.3 g/cm³, so a fake filled with tungsten is hard to catch by density. Gold mixed with other metals, such as 14K or 18K, comes out lower than pure gold. Leave a definite verdict to a professional assay.