Home › Other Calculators › Density Calculator

Density Calculator

Solve for density, mass, or volume using the density formula (ρ = m/V) — with instant unit conversion and a built-in reference table of common material densities.

⚖️ Density Calculator — What Do You Want to Find?

Tip: water ≈ 1,000 kg/m³ (1 g/cm³). Use this as a quick reference point.
Density
—
Advertisement
240 × 600
Ad Space
Paste your ad tag here

What Is Density? A Complete Guide

Density is a measure of how much mass is packed into a given volume of a substance. It's typically denoted by the Greek letter ρ (rho) and defined by one of the simplest formulas in physics: density equals mass divided by volume. Two objects can be exactly the same size and look identical, yet weigh completely differently — a foam block and a steel block of the same dimensions have wildly different densities, which is exactly what makes density such a useful way to identify and compare materials.

Density is an intensive property, meaning it doesn't depend on how much of a substance you have. A teaspoon of water and an entire swimming pool of water both have the same density (about 1 g/cm³) — only the total mass and volume differ, not the ratio between them. This is what makes density such a reliable fingerprint for identifying an unknown material, verifying purity, or checking whether an object is solid or hollow.

Key Definition: Density (ρ) = Mass (m) ÷ Volume (V). It tells you how "heavy for its size" a material is. Water is the most common reference point, with a density of almost exactly 1 gram per cubic centimeter (1,000 kg/m³) at 4°C.
ρ = m/V
Core Formula
g/cm³
Common Unit
1.0
Water (g/cm³)
Intensive
Property Type

Why Density Matters

Density calculations show up across nearly every scientific and industrial field:

  • Material identification: Comparing a measured density against known reference values to identify an unknown metal, gemstone, or liquid
  • Engineering and material selection: Choosing materials that balance strength against weight for aircraft, vehicles, and structures
  • Quality control: Detecting impurities, voids, or inconsistencies in manufactured parts by comparing actual density to the expected value
  • Fluid mechanics: Predicting whether an object will float or sink, and how fluids stratify by density (like oil floating on water)
  • Geology and mining: Estimating ore composition and rock type from density measurements
  • Cooking and food science: Understanding why oil floats on water, or how whipped cream's density changes as air is incorporated
  • Shipping and logistics: Calculating dimensional weight for freight pricing based on volume versus actual mass

Density vs. Weight vs. Mass — Don't Confuse Them

These three terms are frequently used loosely in everyday speech but mean distinctly different things in physics:

TermWhat It MeasuresUnitsChanges With Gravity?
MassAmount of matter in an objectg, kg, lbNo — constant everywhere
WeightForce of gravity acting on massNewtons (N), lbfYes — changes with gravity
DensityMass packed into a given volumeg/cm³, kg/m³, lb/ft³No — a material property
VolumeAmount of 3D space occupiedcm³, L, m³, ft³No — a geometric property

This calculator uses "mass" in the strict physics sense (measured in grams, kilograms, or pounds as a mass unit), which is what people commonly call "weight" in everyday, non-technical usage on Earth.

The Density Formula — Solving for Mass, Volume, or Density

The density formula can be rearranged to solve for any of its three variables, provided you know the other two. This calculator handles all three directions automatically, but understanding the algebra behind each one is useful for checking a result by hand.

1. Solving for Density

ρ = m ÷ V
✔ Example

An object weighs 80 kg and has a volume of 47 in³. Convert: 80 kg = 80,000 g; 47 in³ × 16.387064 ≈ 770.19 cm³. ρ = 80,000 ÷ 770.19 ≈ 103,870 kg/m³ (103.87 g/cm³) — a density in the range of very dense metals.

2. Solving for Mass

m = ρ × V
✔ Example

A block of aluminum (density 2.70 g/cm³) has a volume of 500 cm³. m = 2.70 × 500 = 1,350 g (1.35 kg)

3. Solving for Volume

V = m ÷ ρ
✔ Example

A gold bar (density 19.3 g/cm³) weighs 1,000 g. V = 1000 ÷ 19.3 ≈ 51.81 cm³

Important Caveat: This formula assumes a homogeneous material — one with uniform density throughout. It gives the correct answer for a solid block of a single substance, but not for hollow objects, mixtures, porous materials, or anything containing trapped air or voids, since the formula would then return an average "bulk density" rather than the true material density.

Quick Formula Reference

Density
ρ = m ÷ V
Mass
m = ρ × V
Volume
V = m ÷ ρ
Specific Gravity
SG = ρ ÷ ρ(water)

Density Unit Conversions — Complete Reference

Density can be expressed in many different unit combinations depending on the field and country. Getting the unit right matters just as much as getting the math right, since mixing up g/cm³ and kg/m³ (a factor of 1,000 apart) is one of the most common density calculation mistakes.

UnitEqual to (g/cm³)Common Use
g/cm³ (= g/mL)1Chemistry, solids and liquids
kg/m³0.001SI standard, engineering
kg/L1Liquids, industrial tanks
g/L0.001Gases, dilute solutions
lb/ft³0.0160185US construction, materials
lb/in³27.6799US mechanical engineering
lb/gal (US)0.1198US liquids and fuel
oz/in³1.72999Small parts, US customary
Common Material Densities (g/cm³, log scale)

Density of Common Materials — Reference Table

The table below lists the approximate density of familiar substances, gases, liquids, and solids at standard temperature and pressure unless otherwise noted. Use it to sanity-check a calculated result or to identify an unknown material.

Gases

MaterialDensity (kg/m³)Density (g/cm³)
Hydrogen0.090.00009
Helium0.180.00018
Air (sea level, 20°C)1.200.0012
Carbon dioxide1.980.00198

Liquids

MaterialDensity (kg/m³)Density (g/cm³)
Gasoline710–7700.71–0.77
Ethanol7890.789
Vegetable oil9200.92
Ice (0°C)9170.917
Water (4°C, pure)1,0001.000
Seawater1,020–1,0301.02–1.03
Milk1,0301.03
Honey1,4201.42
Mercury13,53413.534

Solids and Metals

MaterialDensity (kg/m³)Density (g/cm³)
Cork2400.24
Balsa wood1600.16
Oak wood7500.75
Ice9170.917
Plastic (HDPE)9700.97
Concrete2,4002.40
Glass2,5002.50
Aluminum2,7002.70
Titanium4,5064.51
Steel (mild)7,8507.85
Iron7,8747.87
Copper8,9608.96
Silver10,49010.49
Lead11,34011.34
Gold19,30019.30
Platinum21,45021.45
Osmium (densest natural element)22,59022.59
Values are approximate and can vary with temperature, pressure, alloy composition, and purity.

Real-World Density Calculation Examples

Density calculations solve practical problems across science, industry, and everyday decision-making. The following worked examples show the formula applied in context.

Example 1 — Identifying an Unknown Metal

A metal sample weighs 178.5 g and displaces 66 cm³ of water when submerged.

  • ρ = 178.5 ÷ 66 ≈ 2.70 g/cm³ — matching the known density of aluminum

Example 2 — Will an Object Float?

A children's pool toy weighs 340 g and has a volume of 900 cm³.

  • ρ = 340 ÷ 900 ≈ 0.378 g/cm³, which is less than water's 1.0 g/cm³, so the toy will float

Example 3 — Calculating Shipping Volume from Density

A shipment of industrial oil weighs 2,000 kg and the oil's density is 920 kg/m³.

  • V = 2000 ÷ 920 ≈ 2.17 m³ of tank capacity needed

Example 4 — Concrete Mix Verification

A cured concrete test cylinder measures 10 cm diameter × 20 cm height (volume ≈ 1,570.8 cm³) and weighs 3,770 g.

  • ρ = 3770 ÷ 1570.8 ≈ 2.40 g/cm³ — consistent with standard concrete density, confirming a properly mixed batch

Example 5 — Gemstone Authentication

A jeweler weighs a suspected diamond at 0.95 g with a measured volume of 0.271 cm³ (via water displacement).

  • ρ = 0.95 ÷ 0.271 ≈ 3.51 g/cm³ — matching diamond's known density and supporting authenticity (cubic zirconia, by comparison, is denser at ≈ 5.6–6.0 g/cm³)

Specific Gravity and Buoyancy

Specific gravity (also called relative density) is the ratio of a substance's density to the density of a reference substance — almost always water for solids and liquids, or air for gases. Because it's a ratio of two densities, specific gravity has no units at all, which makes it convenient for quickly comparing materials without worrying about which density unit was originally used.

Specific Gravity = ρ(substance) ÷ ρ(water at 4°C)
✔ Example

Aluminum has a density of 2.70 g/cm³. Since water is 1.00 g/cm³, aluminum's specific gravity is 2.70 ÷ 1.00 = 2.70 — meaning aluminum is 2.70 times denser than water.

Why Objects Float or Sink

Whether an object floats or sinks in a fluid depends entirely on comparing its density to the fluid's density — a principle first formalized by Archimedes. An object with a lower density than the surrounding fluid experiences more buoyant force than gravitational force and floats; an object with higher density sinks. This is exactly why a solid steel ball sinks in water (steel ≈ 7.85 g/cm³ vs. water ≈ 1.0 g/cm³) while a massive steel ship floats — the ship's overall shape traps enough air that its average density, hull plus air-filled interior, drops well below that of water.

Practical Rule of Thumb: If an object's density is less than 1.0 g/cm³ (1,000 kg/m³), it floats in fresh water. If it's greater than 1.0 g/cm³, it sinks. In salt water (≈ 1.02–1.03 g/cm³), objects need to be slightly less dense to float — which is why swimming in the ocean feels easier than swimming in a freshwater pool.

Advanced Density Concepts

Density of Mixtures and Alloys

For a mixture of substances that don't chemically react or change volume when combined, the overall density can be estimated with a weighted average based on the volume fraction of each component. Real alloys and solutions often deviate slightly from this ideal because atoms of different sizes can pack together more or less efficiently than they would separately, which is why measured alloy densities are usually looked up rather than calculated from a simple average.

Temperature and Pressure Effects

Density isn't perfectly constant — it changes with temperature and, for gases especially, with pressure. Most materials expand slightly as they heat up, which lowers their density, and contract as they cool, which raises it. Water is a famous exception near its freezing point: it's actually less dense as solid ice than as liquid water just above freezing, which is why ice floats — an unusual property with major consequences for aquatic ecosystems in winter. For precise scientific and engineering work, density values are always specified at a stated temperature and pressure (often 20°C and 1 atmosphere, sometimes called STP).

Bulk Density vs. Particle (True) Density

For granular or porous materials — soil, sand, powders, sponge, aerated concrete — there's an important distinction between true density (the density of the solid material itself, with zero voids) and bulk density (the density of the material as it naturally sits, including the air gaps between particles). A cup of sand has a lower bulk density than the density of solid quartz, simply because a meaningful fraction of that cup's volume is empty air between grains. This calculator's basic formula returns bulk density whenever the measured volume includes internal voids, so it's important to know which one your application actually needs.

Measuring Volume for Irregular Objects

For objects with a simple geometric shape — cubes, cylinders, spheres — volume can be calculated directly from their dimensions. For irregular objects, the most reliable method is water displacement: submerge the object fully in a graduated container and measure how much the water level rises, which equals the object's volume exactly (provided the object doesn't absorb water or trap air bubbles). This is the same principle Archimedes is said to have used over two thousand years ago to test whether a king's crown was pure gold.

Frequently Asked Questions About Density

Answers to the most commonly searched density calculation questions — from basic formulas to real-world applications.

Density equals mass divided by volume: ρ = m ÷ V. Example: a 500 g object with a volume of 250 cm³ has a density of 500 ÷ 250 = 2 g/cm³. Rearranged, m = ρ × V and V = m ÷ ρ solve for mass or volume instead.
Use m = ρ × V. Multiply density by volume, keeping units consistent (g/cm³ with cm³, or kg/m³ with m³). Example: 2.7 g/cm³ × 100 cm³ = 270 g.
Use V = m ÷ ρ. Divide mass by density with consistent units. Example: 500 g ÷ 2.5 g/cm³ = 200 cm³.
Pure water is almost exactly 1 g/cm³ (1,000 kg/m³) at its densest point, around 4°C. It's the standard reference point for specific gravity — anything below 1 g/cm³ floats in fresh water, anything above sinks.
Multiply by 1,000. Example: 2.7 g/cm³ (aluminum) = 2.7 × 1,000 = 2,700 kg/m³. This comes from 1,000,000 cm³ per m³ combined with 1,000 g per kg.
It floats if its density is lower than the fluid's density, and sinks if higher. A solid steel ball sinks, but a hollow steel ship floats, because the ship's overall shape gives it a much lower average density than solid steel.
Specific gravity is the ratio of a substance's density to a reference (usually water), so it has no units. Aluminum's specific gravity is about 2.70 — 2.70 times denser than water.
Weigh it for mass, then submerge it fully in water and measure how much the water level rises — that rise equals its volume. Divide mass by that volume to get density.
Yes — most materials expand and become less dense when heated, and contract and become denser when cooled. Water is a notable exception near freezing, becoming less dense as ice, which is why ice floats.
True density is the solid material itself with no air gaps. Bulk density includes the empty space between particles, like air between sand grains. Bulk density is always lower than true density.
Most commonly g/cm³ or kg/m³ in metric, and lb/ft³ in US customary units. Liquids are also often given in kg/L, which is numerically the same as g/cm³.
Osmium, at about 22.59 g/cm³, is the densest naturally occurring element, closely followed by iridium at about 22.56 g/cm³ — both roughly twice as dense as lead.

Related Calculators