Science

Density Calculator

Calculate density, mass, or volume from any two known values. Includes presets for common materials like water, gold, iron, and aluminum.

Key Formula

ρ = m / V  |  m = ρ × V  |  V = m / ρ

Calculate

Select what to solve for, then enter the known values.

Density
1,000 kg/m³
1 g/cm³
Mass
1,000 kg
1,000,000 g
Volume
1 m³
1,000,000 cm³
Floats in water?
Neutral buoyancy

About This Tool

The Density Calculator helps you find any one of the three related quantities -- density, mass, or volume -- when you know the other two. Density is a fundamental physical property of matter defined as mass per unit volume (ρ = m/V). Understanding density is essential in physics, chemistry, engineering, geology, and many everyday situations, from determining whether an object will float to identifying unknown substances.

Understanding the Density Formula

The density equation ρ = m/V can be rearranged to solve for any of the three variables. To find mass, multiply density by volume (m = ρV). To find volume, divide mass by density (V = m/ρ). These three forms are algebraically equivalent and form the foundation of countless calculations in science and engineering. The SI unit for density is kilograms per cubic meter (kg/m³), though grams per cubic centimeter (g/cm³) and grams per milliliter (g/mL) are commonly used in chemistry, where 1 g/cm³ equals 1000 kg/m³.

Why Density Matters

Density determines buoyancy: objects less dense than the surrounding fluid float, while denser objects sink. This principle, discovered by Archimedes, explains why massive steel ships float (the average density of the ship including air space is less than water) and why helium balloons rise (helium is less dense than air). In geology, density differences between rock layers drive plate tectonics and mantle convection. In chemistry, density is used to identify and characterize substances, as each pure material has a characteristic density.

Temperature and Pressure Effects

Density is not a fixed constant for a given material -- it changes with temperature and pressure. Most substances expand when heated, increasing volume while mass stays constant, thereby decreasing density. Water is a famous exception: it reaches maximum density at 3.98°C, and ice at 0°C is about 9% less dense than liquid water. This anomalous behavior is why ice floats and why lakes freeze from the top down, insulating aquatic life below. Pressure increases density by compressing the material into a smaller volume. This effect is negligible for solids and liquids but very significant for gases.

Measuring Density in Practice

For regular-shaped solids, measure mass with a balance and calculate volume from dimensions. For irregular solids, use the water displacement method: submerge the object in a graduated cylinder and measure the rise in water level. For liquids, use a hydrometer (which floats higher in denser liquids) or weigh a known volume. For gases, measure the mass of a known volume of gas at a specific temperature and pressure. Digital density meters use oscillating U-tube technology to measure liquid density with high precision (up to 0.00001 g/cm³).

Density in Material Selection

Engineers routinely consider density when selecting materials. Aerospace applications demand low-density, high-strength materials like aluminum alloys (2700 kg/m³), titanium (4507 kg/m³), and carbon fiber composites (1600 kg/m³) to minimize weight. Ballast and counterweight applications require high-density materials like lead (11,340 kg/m³) or tungsten (19,250 kg/m³). Insulation materials use low-density structures with trapped air pockets. Understanding the density-strength-cost tradeoff is fundamental to engineering design.

Frequently Asked Questions

What is density?
Density is the mass of a substance per unit volume, expressed as rho = m/V. It is a fundamental physical property that indicates how tightly matter is packed together. The SI unit is kilograms per cubic meter (kg/m³), but grams per cubic centimeter (g/cm³) is also common (1 g/cm³ = 1000 kg/m³). Density varies with temperature and pressure: most substances expand when heated, reducing their density. Water is unusual because it reaches maximum density at approximately 4°C, which is why ice floats.
How do you calculate density from mass and volume?
Density equals mass divided by volume: rho = m/V. For example, if you have 500 grams of a substance occupying 200 cubic centimeters, the density is 500/200 = 2.5 g/cm³, or equivalently 2500 kg/m³. To measure mass, use a scale or balance. Volume can be measured directly for regular shapes (length x width x height for a box) or by water displacement for irregular objects. For water displacement, submerge the object and measure how much the water level rises.
Why does gold have such a high density?
Gold's high density (19,320 kg/m³) results from its heavy atomic nucleus (197 atomic mass units) and its face-centered cubic crystal structure with relatively small atomic spacing. The strong nuclear force holds 79 protons and 118 neutrons in each gold nucleus, contributing significant mass in a compact volume. Additionally, relativistic effects on gold's inner electrons cause them to orbit closer to the nucleus than classical physics predicts, slightly contracting the atom and further increasing density. This is also why gold has its characteristic yellow color.
What materials float in water?
Any material with a density less than 1000 kg/m³ (the density of fresh water) will float. Common floating materials include most woods (400-800 kg/m³), ice (917 kg/m³), many plastics (850-950 kg/m³), oils (800-950 kg/m³), ethanol (789 kg/m³), and cork (120-200 kg/m³). Interestingly, objects that are denser than water can still float if shaped correctly (like steel ships), because buoyancy depends on the volume of water displaced, not just the material density. This is Archimedes' principle.
How does temperature affect density?
Most substances become less dense as temperature increases because thermal expansion increases volume while mass stays constant. For example, water at 4°C has a density of 1000 kg/m³, but at 100°C it drops to 958 kg/m³. Air density drops from 1.293 kg/m³ at 0°C to 1.127 kg/m³ at 50°C at sea level. This thermal density variation drives natural convection: hot air rises because it is less dense. Water is a notable exception below 4°C, where it expands as it cools, which is why lakes freeze from the top down.
What is the densest element?
Osmium is the densest naturally occurring element at approximately 22,590 kg/m³, slightly denser than iridium at 22,560 kg/m³. For comparison, lead is 11,340 kg/m³ and gold is 19,320 kg/m³. Osmium's exceptional density comes from its heavy nucleus (190.2 atomic mass units) combined with a hexagonal close-packed crystal structure that minimizes empty space between atoms. Despite its extreme density, osmium is relatively rare and is primarily used in specialized alloys for fountain pen tips, electrical contacts, and instrument pivots.

Was this tool helpful?