100+ free calculators, no signup | 💰 Financial ❤️ Health & Fitness 📐 Math 🔧 Other
🇺🇸 USD | About Contact

Density Calculator

Solve ρ = m ÷ V for density, mass or volume in metric or US units, then see the specific gravity, the closest materials and whether the object floats.

Volume from shape or water displacement
Quick examples
Density
2.703g/cm³ (g/mL, kg/L)SG 2.703Sinks in water

= 2,703 kg/m³ (g/L) · 168.7 lb/ft³

Closest match: aluminum. Sinks in fresh water and seawater.

Log scale from 0.0001 to 25 g/cm³. Bands: gases, lighter than water, 1 to 10 g/cm³, above 10 g/cm³.

Closest materials

The 3 nearest of 32 reference materials, compared by ratio.

  • Aluminum2.7 g/cm³, Pure, room temp.. Yours is 0.1% higher.
  • Granite2.7 g/cm³, Typical. Yours is 0.1% higher.
  • Concrete2.3 to 3 g/cm³, Varies by mix. Within this range.
Mass of 1 US gal22.56 lbper US gallon of this material
Volume of 1 kg370 cm³0.37 L per kilogram
Weight in fresh water63% of drybuoyancy from water at 20 °C, 0.9982 g/cm³ removes 37%
Weight in seawater62% of drybuoyancy from seawater, 1.025 g/cm³ removes 38%

Your calculation

The same steps the calculator runs, with your numbers in SI units first.

  1. Mass in kilograms: 500 g × 0.001 = 0.5 kg.
  2. Volume in cubic meters: 185 cm³ × 0.000001 = 0.000185 m³.
  3. Density: ρ = m ÷ V = 0.5 ÷ 0.000185 = 2,702.7 kg/m³.
  4. In g/cm³: 2,702.7 kg/m³ ÷ 1,000 = 2.7027 g/cm³.
  5. Specific gravity: 2.7027 g/cm³ ÷ 0.99997 g/cm³ = 2.70278 (water at 4 °C is the reference).
  6. Water check: 2.7027 g/cm³ is above 0.9982 g/cm³ (water at 20 °C), so it sinks.

Material density chart

Your closest match is highlighted. Values apply at the stated conditions.

Materialg/cm³ConditionsIn fresh water
Hydrogen0.000090 °C, 1 atmGas
Helium0.000180 °C, 1 atmGas
Air, dry0.00120420 °C, 1 atmGas
Carbon dioxide0.001980 °C, 1 atmGas
Polystyrene foam0.1TypicalFloats
Cork0.24TypicalFloats
Wood, dry0.3 to 0.9Varies by speciesFloats
Gasoline0.66 to 0.6920 °CFloats
Ethanol0.79120 °CFloats
Ice0.9170 °CFloats
Olive oil0.92TypicalFloats
Water0.998220 °CReference
Water14 °CReference
Seawater1.025Typical surfaceSinks
Blood1.05TypicalSinks
Glycerin1.2620 °CSinks
Bone1.7 to 2TypicalSinks
Concrete2.3 to 3Varies by mixSinks
Glass, common2.6AverageSinks
Aluminum2.7Pure, room temp.Sinks
Granite2.7TypicalSinks
Steel7.8TypicalSinks
Iron7.87Pure, room temp.Sinks
Brass8.44TypicalSinks
Copper8.96Pure, room temp.Sinks
Silver10.49TypicalSinks
Lead11.3Pure, room temp.Sinks
Mercury13.5520 °C, liquidSinks
Uranium18.7TypicalSinks
Gold19.32TypicalSinks
Tungsten19.3TypicalSinks
Osmium22.59Pure, room temp.Sinks

Density in other units

Units not already shown above, with the exact factor used.

UnitValueFactor
lb/in³0.097641 lb/in³ = 27,679.9 kg/m³
oz/in³1.5621 oz/in³ = 1,729.99 kg/m³

Real samples vary with temperature, purity, alloy and trapped air, so a density match points to a material but does not prove what it is.

What Is Density?

Density is the mass of a substance per unit of volume. A block of lead and a block of wood of the same size take up the same space, but the lead holds at least 12 times more mass, so it is denser. The symbol is the Greek letter ρ (rho), and the SI unit is the kilogram per cubic meter (kg/m³). Chemistry and school labs usually use grams per cubic centimeter (g/cm³), which is the same as grams per milliliter (g/mL), while US engineering uses pounds per cubic foot (lb/ft³).

This density calculator solves the formula in any direction: mass and volume give density, density and volume give mass, and density and mass give volume. It converts every unit to kilograms and cubic meters first, then reports the answer in your unit with the specific gravity, the closest of 32 reference materials and a float or sink check for fresh water and seawater.

Density depends on the material, not the sample size: a paper clip and a steel beam are both about 7.8 g/cm³. It changes with temperature and pressure, strongly for gases, so reference values state their conditions.

Density Formula: How to Calculate Density, Mass or Volume

Know any two of the three quantities and the formula gives the third. In the triangle m over ρ × V, cover the one you want to see the operation.

ρ = m ÷ V   m = ρ × V   V = m ÷ ρ ρ = density (kg/m³), m = mass (kg), V = volume (m³) Density: 500 g ÷ 185 cm³ = 2.7027 g/cm³ (an aluminum block) SI check: 0.5 kg ÷ 0.000185 m³ = 2,702.7 kg/m³ Mass: 7.8 g/cm³ × 50 cm³ = 390 g of steel Volume: 1,000 g ÷ 19.32 g/cm³ = 51.76 cm³ for 1 kg of gold

How to calculate density manually

  1. Measure the mass. Weigh the object on a scale and note the unit, for example 500 g.
  2. Measure the volume. Use a ruler for a regular shape or water displacement for an irregular one, for example 185 cm³.
  3. Match the units. Grams pair with cubic centimeters to give g/cm³; kilograms pair with cubic meters to give kg/m³.
  4. Divide mass by volume. 500 ÷ 185 = 2.7027, so the density is 2.703 g/cm³ to four significant figures.
  5. Convert if needed. Multiply g/cm³ by 1,000 for kg/m³ (2,702.7 kg/m³) or divide kg/m³ by 16.0185 for lb/ft³ (168.7 lb/ft³).

To find mass from density, multiply the density by the volume in matching units. To find volume from density, divide the mass by the density. Ethanol at 0.791 g/cm³ shows the second case: 100 g of it fills 100 ÷ 0.791 = 126.4 mL, more than 100 mL, because ethanol is less dense than water.

How to Use the Calculator

  • Solve for. Pick density, mass or volume; the unknown's field sets the answer unit.
  • Known values. Type each value and choose its unit.
  • Volume from shape. Enter box, cylinder or sphere dimensions in the optional panel.
  • Water displacement. Enter the water level before and after the object goes in.
  • Examples. Six chips load cases from a gold ring to the air in a room.

Common Mistakes

  • Mixing units. Grams over cubic meters is 1,000,000 times too small for g/cm³.
  • Confusing mL and L. 185 L instead of 185 mL changes the density 1,000 times.
  • Cubing the wrong factor. 1 m is 100 cm, but 1 m³ is 1,000,000 cm³.
  • Air bubbles. Bubbles on a submerged object add false volume.
  • Ignoring temperature. Gas densities change about 7 percent from 0 °C to 20 °C.

How to Find the Density of an Irregular Object

A rock or a ring has no simple volume formula, so use the water displacement method: a fully submerged object pushes aside exactly its own volume of water.

  1. Weigh the dry object, for example 250 g.
  2. Fill a graduated cylinder partway and read the bottom of the curved surface, for example 50 mL.
  3. Tilt the cylinder and slide the object in so no water splashes out, then read the new level, for example 80 mL.
  4. Subtract: 80 − 50 = 30 mL, which is 30 cm³.
  5. Divide: 250 g ÷ 30 cm³ = 8.333 g/cm³, close to brass at 8.44 g/cm³.

A second method weighs the object twice, once in air and once hanging fully under water. By Archimedes' principle the buoyant force equals the weight of the water displaced, so the apparent mass loss equals the mass of that water. OpenStax works this for an ancient coin: 8.630 g in air and 7.800 g in water give a loss of 0.830 g, a volume of 0.830 cm³ and a density of 8.630 ÷ 0.830 = 10.40 g/cm³, close to silver at 10.49 g/cm³.

💡
Use the smallest cylinder the object fits in. Reading a 30 mL rise to half a 1 mL mark is 1.7 percent uncertain; to half a 10 mL mark it is 17 percent.

Density of Water by Temperature

The density of water is 0.99997 g/cm³ at 4 °C, its densest point, and 0.99820 g/cm³ at 20 °C. Water expands as it warms, so a gallon of hot water weighs less. Densities are USGS values; the US columns are computed with the exact NIST factors.

Temperatureg/cm³lb/ft³lb per US gal
32 °F (0 °C)0.9998762.428.344
39.2 °F (4 °C)1.0000062.438.345
60 °F (15.6 °C)0.9990762.378.338
70 °F (21 °C)0.9980262.308.329
100 °F (37.8 °C)0.9931862.008.288
212 °F (100 °C)0.9586559.858.000

The USGS rounds the 4 °C value to 1.00000; the more precise figure is 0.99997 g/cm³. How much does a gallon of water weigh? About 8.33 lb at room temperature: 3.785411784 L × 0.99820 kg/L = 3.7786 kg, and 3.7786 ÷ 0.45359237 = 8.330 lb. Seawater averages about 1.025 g/cm³, so a gallon of it weighs about 8.554 lb.

Why ice floats

Freezing water forms an open crystal lattice, so ice at 0 °C has a density of about 0.917 g/cm³, around 8 percent less than liquid water at 20 °C. Ice floats with 0.917 ÷ 0.99984 = 91.7 percent of its volume under fresh water near 0 °C, and an iceberg floats with 0.917 ÷ 1.025 = 89.5 percent under seawater.

Density Unit Conversions

Each density unit is a mass unit over a volume unit, so every factor follows from the exact definitions 1 lb = 0.45359237 kg, 1 in = 2.54 cm and 1 US gallon = 231 in³. The calculator converts inputs to kg/m³ and converts the answer back.

UnitEquals (kg/m³)Water at 20 °C
g/cm³ = g/mL = kg/L1,0000.9982
kg/m³ = g/L1998.2
lb/ft³16.018562.32
lb/in³27,679.90.03606
lb/US gal119.8268.330
oz/in³1,729.990.5770
g/cm³ to kg/m³: multiply by 1,000 2.70 g/cm³ × 1,000 = 2,700 kg/m³ kg/m³ to lb/ft³: 2,700 ÷ 16.0185 = 168.56 lb/ft³ lb/ft³ to kg/m³: 100 lb/ft³ × 16.0185 = 1,601.85 kg/m³

Specific Gravity and Will It Float?

Specific gravity (relative density) is a density divided by the density of water. It has no units, and it equals the density in g/cm³ to within 0.003 percent when the reference is water at 4 °C, the reference this calculator uses. Aluminum at 2.70 g/cm³ has a specific gravity of 2.700.

SG = ρ ÷ ρ water (0.99997 g/cm³ at 4 °C) Fraction submerged when floating = ρ object ÷ ρ fluid Wood at 0.6 g/cm³: 0.6 ÷ 0.9982 = 60.1% under fresh water Same wood in seawater: 0.6 ÷ 1.025 = 58.5% under

An object floats when its average density is below the fluid's, sinks when it is above and hovers when they match. The calculator checks fresh water at 20 °C (0.9982 g/cm³) and seawater (1.025 g/cm³); a material between the two sinks in a lake but floats in the ocean.

For an object that sinks, the calculator reports its weight in water: aluminum at 2.7027 g/cm³ keeps 1 − 0.9982 ÷ 2.7027 = 63.07 percent of its dry weight. A steel ship floats because its hull encloses air, which lowers its average density.

Density vs Mass vs Weight, and the Density of Air

Mass is the amount of matter, in kilograms or pounds. Weight is the force of gravity on that mass, in newtons; on Earth 1 kg weighs about 9.81 N. Density is mass divided by volume, so a ton of feathers and a ton of bricks share a mass but not a density.

NASA gives dry air a density of 1.293 kg/m³ at 273 K and 101.325 kPa. The ideal gas law gives the value at room temperature:

ρ air = P × M ÷ (R × T) P = 101,325 Pa, M = 0.02897 kg/mol, R = 8.314 J/(mol·K), T = 293.15 K ρ = 101,325 × 0.02897 ÷ (8.314 × 293.15) = 1.204 kg/m³ at 20 °C Room 4 m × 5 m × 2.5 m = 50 m³; 50 × 1.204 = 60.2 kg (132.7 lb)

Helium at 0.18 kg/m³ is lighter than air, so a helium balloon rises, while carbon dioxide at 1.98 kg/m³ is heavier and collects near the floor.

Density of Common Materials

The chart in the results lists 32 substances from hydrogen to osmium. The density of aluminum is 2.70 g/cm³, the density of steel is about 7.8 g/cm³ and pure iron is 7.87 g/cm³. Copper is 8.96 g/cm³, lead 11.3 g/cm³ and the density of gold is 19.32 g/cm³, which is 2.45 times iron, while iron is 2.91 times aluminum.

Osmium, at 22.59 g/cm³, is the densest element at room temperature and about twice as dense as lead, so the calculator flags any result above it as a likely unit mistake. Tungsten, at 19.30 g/cm³, is so close to gold that density alone cannot verify a gold bar.

Liquids and natural materials vary more. Gasoline runs from 0.66 to 0.69 g/cm³, so a gallon weighs 5.51 to 5.76 lb, and dry wood ranges from 0.3 to 0.9 g/cm³ by species.

⚠️
Alloys, porous materials and mixtures have no single density. Treat a match as a clue, and confirm gold or silver with an assay before buying or selling.

Frequently Asked Questions

How do you calculate density?

Divide the mass of an object by its volume: ρ = m ÷ V. Measure the mass on a scale, find the volume from its dimensions or by water displacement, and keep the units consistent. An aluminum block of 500 g that fills 185 cm³ has a density of 500 ÷ 185 = 2.703 g/cm³, which equals 2,703 kg/m³ or 168.7 lb/ft³. Rearrange the same formula to find mass (m = ρ × V) or volume (V = m ÷ ρ) when you know the other two values.

What is the density of water?

Pure water has a density of 0.99997 g/cm³ at 4 °C, where it is densest, and 0.99820 g/cm³ at 20 °C, a typical room temperature. Both round to 1 g/mL, or 1,000 kg/m³, which is why the kilogram was first defined as the mass of 1,000 mL of water. In US units, water at 20 °C is 62.32 lb/ft³ and 8.330 lb per US gallon. Warm water is less dense: near 100 °C the value falls to about 0.958 g/cm³. Seawater is denser, about 1.025 g/cm³, because of dissolved salt.

How much does a gallon of water weigh?

A US gallon of water weighs about 8.33 pounds at room temperature. The gallon is exactly 231 cubic inches, or 3.785411784 liters, and water at 20 °C (68 °F) has a density of 0.99820 kg/L, so one gallon holds 3.7786 kg, which is 8.330 lb. At 60 °F the figure is 8.338 lb, and at 4 °C, where water is densest, it reaches 8.345 lb. An imperial gallon (4.54609 L) of water at 20 °C weighs about 10.00 lb. The USGS lists 8.33 pounds per gallon as a general figure.

How do you find the density of an irregular object?

Use water displacement. Weigh the object, then pour water into a graduated cylinder and read the level. Lower the object in until it is fully under water and read the new level. The rise in the water level equals the object's volume, since 1 mL equals 1 cm³. A metal part with a mass of 250 g that raises the water from 50 mL to 80 mL has a volume of 30 cm³ and a density of 250 ÷ 30 = 8.333 g/cm³, close to brass at 8.44 g/cm³. Push floating objects fully under with a thin wire, and seal porous objects first.

What is specific gravity and how is it related to density?

Specific gravity is the density of a substance divided by the density of water, so it has no units. This calculator uses water at 4 °C (0.99997 g/cm³) as the reference, the convention in physics texts and for hydrometers. Aluminum at 2.70 g/cm³ has a specific gravity of 2.700, and ice at 0.917 g/cm³ has 0.917. Materials with a specific gravity well below 1 float in fresh water, and those above 1 sink. Specific gravity measured against water at 20 °C comes out 0.18 percent higher, because warm water is slightly less dense.

Why does ice float on water?

Ice floats because it is less dense than liquid water. When water freezes, its molecules lock into an open lattice that takes up more space, so ice at 0 °C has a density of about 0.917 g/cm³, roughly 8 percent less than water at 20 °C. A floating object sinks until it displaces its own mass of water, so the fraction under water equals its density divided by the density of the water. For ice in fresh water near 0 °C that is 0.917 ÷ 0.99984 = 91.7 percent, and for an iceberg in seawater it is 0.917 ÷ 1.025 = 89.5 percent.

Sources & References

  • National Institute of Standards and Technology. NIST Handbook 44 (2026), Appendix C: General Tables of Units of Measurement (exact pound, inch and gallon). nist.gov
  • National Institute of Standards and Technology. NIST Guide to the SI (SP 811), Appendix B.8: Factors for Units Listed Alphabetically (density factors, imperial gallon). nist.gov
  • U.S. Geological Survey, Water Science School. Water Density (water from 0 to 100 °C, ice, hydrometers). usgs.gov
  • U.S. Geological Survey, Water Science School. Facts About Water (8.33 pounds per gallon). usgs.gov
  • NOAA National Centers for Environmental Information. World Ocean Database 2018 notes (seawater density of 1025 kg/m³). noaa.gov
  • OpenStax. College Physics 2e, Section 11.2 Density, Table 11.1 (densities of solids, liquids and gases). openstax.org
  • OpenStax. College Physics 2e, Section 11.7 Archimedes' Principle (buoyancy, specific gravity, coin example). openstax.org
  • Royal Society of Chemistry. Periodic Table (Al, Fe, Cu, Au, Pb and Os densities; osmium 22.5872 g/cm³). rsc.org
  • Simon Fraser University, Department of Physics. Density of Common Fluids (water at 4 and 20 °C and liquids at 20 °C, from the CRC Handbook). sfu.ca
  • NASA Earthdata. Air Mass/Density (dry air 1.293 kg/m³ at 273 K and 101.325 kPa). nasa.gov

Results are estimates for educational use. Every number on this page was recomputed with the same formulas and conversion factors the calculator uses. Reference data reviewed: 2026.