Skip to main content
🔬 Advanced

Density Calculator – Mass, Volume & Density

Calculate density, mass, or volume using ρ = m/V. Enter any two variables to solve for the third. Free online physics calculator, no signup.

★★★★★ 4.8/5 · 📊 0 calculations · 🔒 Private & free

What Is Density?

Density is one of the most fundamental physical properties of matter. It describes how much mass is packed into a given volume and is defined by the equation:

ρ = m / V

where ρ (Greek letter rho) is density, m is mass, and V is volume. The SI unit of density is kilograms per cubic meter (kg/m³), but in chemistry and everyday science, grams per cubic centimeter (g/cm³) is far more common. The conversion is straightforward: 1 g/cm³ = 1,000 kg/m³.

Density is an intensive property — it does not depend on the amount of substance present. A tiny gold flake and a 12-kilogram gold bar share the same density of 19,320 kg/m³ (19.32 g/cm³). This makes density extremely useful for identifying materials: measure mass and volume, compute ρ, and compare against known values.

From the core formula, two derived equations follow immediately:

This density calculator solves for any of the three variables when you provide the other two, making it useful for chemistry homework, engineering material selection, cooking conversions, and much more.

Common Material Densities Reference Table

The following table lists densities of commonly encountered materials at standard conditions (approximately 20 °C and 1 atm pressure). These values are essential references for material identification, buoyancy calculations, and engineering design.

MaterialDensity (g/cm³)Density (kg/m³)Category
Air (sea level)0.001201.20Gas
Helium0.0001640.164Gas
Balsa wood0.12–0.20120–200Organic
Cork0.12–0.24120–240Organic
Oak wood0.60–0.90600–900Organic
Ethanol0.789789Liquid
Olive oil0.91910Liquid
Ice (0 °C)0.917917Solid
Water (4 °C)1.0001,000Liquid
Seawater1.0251,025Liquid
Bone (compact)1.7–2.01,700–2,000Biological
Concrete2.302,300Composite
Aluminum2.702,700Metal
Glass (soda-lime)2.502,500Ceramic
Titanium4.514,510Metal
Iron / Steel7.877,870Metal
Copper8.968,960Metal
Silver10.4910,490Metal
Lead11.3411,340Metal
Mercury13.5513,550Liquid metal
Gold19.3219,320Metal
Platinum21.4521,450Metal
Osmium22.5922,590Metal (densest element)

These values vary slightly with temperature, pressure, alloy composition, and purity. For precise engineering work, always consult material data sheets for the specific grade and conditions of interest.

Buoyancy and Archimedes' Principle

Density is the key to understanding why objects float or sink. Archimedes' principle states that any object submerged in a fluid experiences an upward buoyant force equal to the weight of the fluid it displaces:

F_buoyant = ρ_fluid × V_displaced × g

where ρ_fluid is the fluid density (kg/m³), V_displaced is the volume of fluid displaced (m³), and g is gravitational acceleration (9.81 m/s²). If the buoyant force exceeds the object's weight (m × g), the object floats. This simplifies to a density comparison:

This is why a steel ship floats: the hull is a hollow shell, and the average density of the entire ship (steel + air inside) is much less than 1.0 g/cm³. A solid block of the same steel (ρ = 7.87 g/cm³) sinks immediately. The fraction of a floating object submerged equals the ratio of its density to the fluid's density: a block of ice (ρ = 0.917 g/cm³) floating in water (ρ = 1.000 g/cm³) has 91.7% of its volume submerged — the origin of the phrase "tip of the iceberg."

Submarines control buoyancy by flooding or emptying ballast tanks, changing their effective density relative to seawater. Hot-air balloons float because heated air (lower density) inside the envelope displaces cooler, denser ambient air, creating net upward buoyancy.

How to Measure Density: Methods and Techniques

Measuring density requires determining both mass and volume. While mass is straightforward (use a balance or scale), volume measurement depends on the object's shape:

Regular Geometric Solids

For objects with simple shapes, calculate volume from dimensions using geometry formulas:

ShapeVolume FormulaExample
CubeV = s³s = 2 cm → V = 8 cm³
Rectangular prismV = l × w × h3 × 4 × 5 cm → 60 cm³
CylinderV = π × r² × hr = 1 cm, h = 10 cm → 31.4 cm³
SphereV = (4/3) × π × r³r = 3 cm → 113.1 cm³

Irregular Objects: Water Displacement

For irregularly shaped objects, the water displacement method (credited to Archimedes) is the standard approach. Fill a graduated cylinder with a known volume of water, gently submerge the object, and measure the new water level. The difference equals the object's volume. For objects too large for a graduated cylinder, use an overflow can (eureka can) — the water that overflows into a catch beaker equals the displaced volume.

Liquids

Use a graduated cylinder or volumetric flask to measure a precise volume, then weigh it on an analytical balance. Subtract the container's mass (tare). For high-precision work, a pycnometer — a small glass flask with a precisely known volume — is the standard laboratory instrument. Hydrometers measure liquid density directly by floating in the sample and reading the density scale at the liquid surface.

Gases

Gas density depends strongly on temperature and pressure. The ideal gas law gives: ρ = (P × M) / (R × T), where P is pressure (Pa), M is molar mass (kg/mol), R is the gas constant (8.314 J/(mol·K)), and T is temperature (K). At STP (0 °C, 101.325 kPa), air has a density of approximately 1.293 kg/m³.

Temperature and Pressure Effects on Density

Density is not a fixed constant — it varies with temperature and pressure. Understanding these dependencies is crucial for accurate scientific and engineering work.

Temperature: Most materials expand when heated (thermal expansion), reducing density. The relationship is: ρ(T) ≈ ρ₀ / (1 + β × ΔT), where β is the volumetric thermal expansion coefficient (1/°C or 1/K) and ΔT is the temperature change. For water at atmospheric pressure, density peaks at 3.98 °C (999.97 kg/m³) — this anomalous behavior is why lakes freeze from the top down, insulating the water below and allowing aquatic life to survive winter.

Pressure: Liquids and solids are nearly incompressible, so pressure has minimal effect on their density (less than 1% change per 100 atm for water). Gases, however, are highly compressible: doubling pressure approximately doubles gas density at constant temperature (Boyle's Law: P₁V₁ = P₂V₂). At the bottom of the Mariana Trench (about 1,100 atm), seawater is compressed by roughly 5%, increasing its density to approximately 1.076 g/cm³.

Industrial applications often require density correction. Fuel dispensers adjust for temperature to deliver accurate energy content. Brewery and wine-making hydrometers are calibrated for specific temperatures (usually 20 °C), with correction tables provided for other temperatures.

Specific Gravity and API Gravity

Specific gravity (SG) is the ratio of a substance's density to the density of a reference substance — usually water at 4 °C (1.000 g/cm³) for liquids and solids, or dry air at STP for gases:

SG = ρ_substance / ρ_reference

Since both densities have the same units, specific gravity is dimensionless. Numerically, SG is identical to density in g/cm³ when the reference is water. A specific gravity of 2.70 (aluminum) means aluminum is 2.70 times denser than water.

SubstanceSpecific GravityFloats in Water?
Gasoline0.72–0.78Yes
Ethanol0.789Yes
Olive oil0.91Yes
Water1.000
Glycerol1.261No
Sulfuric acid (conc.)1.84No
Mercury13.55No

API gravity is used in the petroleum industry and is inversely related to specific gravity: API = (141.5 / SG at 60 °F) − 131.5. Higher API means lighter crude oil. "Light" crudes (API > 31.1) are more valuable because they yield more gasoline and diesel per barrel. "Heavy" crudes (API < 22.3) require more refining.

Density in Science and Engineering

Beyond the classroom, density calculations are critical across many fields:

Material Science: Engineers select materials based on strength-to-weight ratio (specific strength = tensile strength / density). Aluminum (2.70 g/cm³) and titanium (4.51 g/cm³) are preferred in aerospace because they offer high strength at lower density than steel (7.87 g/cm³). Carbon fiber composites achieve even better ratios at 1.55–1.60 g/cm³.

Geology and Mining: Density measurements help identify minerals and assess ore quality. Heavy minerals like galena (PbS, ρ = 7.60 g/cm³) are separated from lighter gangue minerals by gravity concentration methods — a technique used since ancient times and still employed in gold panning (gold at 19.32 g/cm³ settles to the bottom).

Medicine: Bone density (measured via DEXA scans) diagnoses osteoporosis. Normal trabecular bone density ranges from 0.15–0.40 g/cm³; values below threshold indicate fracture risk. Body fat percentage can be estimated from overall body density using hydrostatic (underwater) weighing: %fat = (495 / ρ_body) − 450 (Siri equation).

Food Industry: Density determines concentration of solutions. Sugar content in beverages is measured using a refractometer or hydrometer calibrated in Brix degrees, which correlate directly with density. A 10% sugar solution has a density of approximately 1.040 g/cm³.

Cosmology: The critical density of the universe — the density at which the universe is geometrically flat — is approximately 9.47 × 10⁻²⁷ kg/m³, or about 5.7 hydrogen atoms per cubic meter. Observational evidence suggests the actual density is very close to this critical value.

Frequently Asked Questions

Why does ice float on water?

Ice has a density of about 0.917 g/cm³ — less than liquid water at 1.000 g/cm³. This anomalous behavior occurs because water molecules form a crystalline hexagonal lattice structure when freezing, with hydrogen bonds holding molecules in a more open arrangement than in the liquid state. This creates about 9% more volume, lowering the density. Almost all other substances are denser as solids than as liquids. This property is critical for aquatic life — ice forms on the surface of lakes and oceans, insulating the liquid water below from further freezing.

What is specific gravity?

Specific gravity (SG) is the dimensionless ratio of a substance's density to the density of a reference substance (usually water at 4 °C for liquids/solids, or air at STP for gases). Since water's density is 1.000 g/cm³, specific gravity is numerically equal to density in g/cm³. A specific gravity greater than 1 means the substance sinks in water; less than 1 means it floats. SG is widely used in brewing (to measure sugar content), petroleum (API gravity), and medicine (urinalysis).

How do you measure the density of an irregular object?

Use the water displacement method (Archimedes' principle): fill a graduated cylinder with water and record the initial level. Gently submerge the object completely and record the new level. The difference equals the object's volume in cm³ (since 1 mL = 1 cm³). Weigh the object on a balance to get mass in grams. Then ρ = mass / volume. For very small objects, use a pycnometer. For objects that absorb water, coat them in wax or use a non-reactive liquid.

Does density change with temperature?

Yes. Most substances expand when heated, decreasing density. The relationship is ρ(T) ≈ ρ₀ / (1 + β × ΔT), where β is the volumetric thermal expansion coefficient. Water is anomalous: it reaches maximum density at 3.98 °C, then expands as it cools further to 0 °C. Gases are most affected — their density is inversely proportional to absolute temperature at constant pressure (from the ideal gas law). Mercury thermometers and fuel dispensers must account for thermal expansion in their measurements.

What is the densest naturally occurring element?

Osmium (Os) holds the record at 22.59 g/cm³ at room temperature, slightly denser than iridium (22.56 g/cm³). Both are platinum-group metals and are extremely rare. Osmium is so dense that a 1-liter cube would weigh 22.59 kg (about 50 pounds). For comparison, lead — often considered "heavy" — is only 11.34 g/cm³, roughly half the density of osmium.

How is density used to identify unknown substances?

Density serves as a "fingerprint" for materials. By measuring an unknown sample's mass and volume, you calculate its density and compare it against tables of known materials. This method was famously used by Archimedes to determine whether King Hiero's crown was pure gold (19.32 g/cm³) or a gold-silver alloy (lower density). In geology, mineral density combined with crystal structure, hardness, and luster is used for identification. In forensics, glass fragment density can link evidence to crime scenes.

What is bulk density vs. true density?

True (absolute) density is the density of the solid material itself, excluding any pores or voids. Bulk density includes the air spaces between particles in a granular or porous material. For example, solid quartz sand has a true density of 2.65 g/cm³, but loose sand has a bulk density of roughly 1.50 g/cm³ because of air gaps between grains. Bulk density is critical in civil engineering (soil compaction), agriculture (seed storage), and pharmaceuticals (powder filling).

Why does hot air rise?

Heating air causes it to expand, reducing its density relative to the surrounding cooler air. The less dense warm air is buoyed upward by the denser cool air around it — the same principle as a balloon floating in water. This convection process drives weather patterns, ocean currents, and the operation of hot-air balloons. The density difference is calculated from the ideal gas law: ρ = P × M / (R × T). At 20 °C, air density is about 1.204 kg/m³; at 100 °C, it drops to about 0.946 kg/m³ — a 21% decrease.

How do hydrometers work?

A hydrometer is a sealed glass tube with a weighted bulb at the bottom and a calibrated scale on the narrow stem. When placed in a liquid, it sinks until the weight of liquid displaced equals its own weight (Archimedes' principle). In denser liquids, it floats higher (less displacement needed); in less dense liquids, it sinks lower. The density is read directly from the scale at the liquid surface. Hydrometers are widely used in brewing (measuring wort sugar content), automotive (testing battery acid and antifreeze), and petroleum (measuring fuel density).

What is the density of the human body?

The average human body density is approximately 0.95–1.10 g/cm³, depending on body composition. Lean tissue (muscle, bone, organs) has a density of about 1.10 g/cm³, while fat tissue is about 0.90 g/cm³. A person with more body fat has a lower overall density and floats more easily. This principle underlies hydrostatic weighing for body fat measurement: the subject is weighed underwater, and their body density is calculated, then converted to body fat percentage using the Siri equation: %fat = (495/ρ) − 450.

💡 Did you know?

},{"@type":“Question”,“name”:“What is specific gravity?”,“acceptedAnswer”:{"@type":“Answer”,“text”:“Specific gravity is the dimensionless ratio of a substance’s density to water’s density. Numerically equal to density in g/cm³. Greater than 1 means the substance sinks in water.”}},{"@type":“Question”,“name”:“How do you measure the density of an irregular object?”,“acceptedAnswer”:{"@type":“Answer”,“text”:“Use water displacement: submerge the object in a graduated cylinder and measure the volume change. Divide the object’s mass by the displaced volume to get density.”}},{"@type":“Question”,“name”:“Does density change with temperature?”,“acceptedAnswer”:{"@type":“Answer”,“text”:“Yes. Most substances expand when heated, decreasing density. Water is anomalous, reaching maximum density at 3.98 °C.”}},{"@type":“Question”,“name”:“What is the densest naturally occurring element?”,“acceptedAnswer”:{"@type":“Answer”,“text”:“Osmium at 22.59 g/cm³, slightly denser than iridium at 22.56 g/cm³. Both are platinum-group metals.”}},{"@type":“Question”,“name”:“How is density used to identify unknown substances?”,“acceptedAnswer”:{"@type":“Answer”,“text”:“By measuring mass and volume, you calculate density and compare against known values — a fingerprint for materials, famously used by Archimedes.”}},{"@type":“Question”,“name”:“What is bulk density vs. true density?”,“acceptedAnswer”:{"@type":“Answer”,“text”:“True density excludes pores and voids. Bulk density includes air spaces between particles. Important for soils, powders, and granular materials.”}},{"@type":“Question”,“name”:“Why does hot air rise?”,“acceptedAnswer”:{"@type":“Answer”,“text”:“Heating air causes expansion, reducing density. Less dense warm air is buoyed upward by surrounding cooler, denser air — the basis of convection.”}},{"@type":“Question”,“name”:“How do hydrometers work?”,“acceptedAnswer”:{"@type":“Answer”,“text”:“A hydrometer floats in liquid; in denser liquids it floats higher. The density is read from the calibrated scale at the liquid surface.”}},{"@type":“Question”,“name”:“What is the density of the human body?”,“acceptedAnswer”:{"@type":“Answer”,“text”:“Approximately 0.95–1.10 g/cm³ depending on body composition. Fat tissue (~0.90 g/cm³) is less dense than lean tissue (~1.10 g/cm³).”}}]}