Density Calculator — Mass, Volume & Density

Density is mass per unit volume: ρ = m ÷ V. Solve for any of the three, identify materials from known densities, and test sink-or-float in water.

Density Lab Report — ρ = m / V

Density mode: enter mass in grams as A and volume in cm³ as B. Result in g/cm³.

Enter values and press Calculate.

Material reference (g/cm³)

MaterialDensityIn water?
Ice0.92Floats
Oak wood0.75Floats
Aluminium2.70Sinks
Iron7.87Sinks
Gold19.32Sinks

Density: Mass Divided by Volume

Density is a measure of how much matter is packed into a given space. It is defined as mass divided by volume, written ρ = m/V, where the Greek letter rho stands for density. If an aluminium block has a mass of two hundred and seventy grams and occupies one hundred cubic centimetres, its density is two hundred and seventy divided by one hundred, which is two point seven grams per cubic centimetre. That number is a property of the material itself, not of the particular block: a larger aluminium block has more mass and more volume, but the ratio stays at two point seven. This is what makes density so useful for identifying materials and predicting how they behave.

The units of density follow directly from the units of mass and volume. In school and laboratory work, grams per cubic centimetre is standard. In engineering and SI work, kilograms per cubic metre is standard, and the conversion is simple: one gram per cubic centimetre equals one thousand kilograms per cubic metre. Water has a density of one gram per cubic centimetre, or one thousand kilograms per cubic metre, at around four degrees Celsius, which makes it a convenient reference point: any material denser than water sinks in it, and any material less dense floats.

Solving for Mass or Volume

The same formula rearranges to solve for any of its three quantities. To find mass from density and volume, multiply: m = ρV. A gold bar with a volume of ten cubic centimetres and a density of nineteen point three two grams per cubic centimetre has a mass of one hundred and ninety-three point two grams. To find volume from mass and density, divide: V = m/ρ. Five hundred grams of a material with density two grams per cubic centimetre occupies two hundred and fifty cubic centimetres. This calculator handles all three arrangements, so you can start from whichever two values you actually measured.

Measuring mass is straightforward with a balance, but measuring volume depends on the object's shape. Regular objects can be measured with a ruler and a geometry formula: a rectangular block's volume is length times width times height, and a cylinder's is pi times radius squared times height. Irregular objects, such as a stone or a key, are measured by displacement: submerge the object in a graduated cylinder of water and read how much the water level rises. That rise equals the object's volume, a method attributed to Archimedes and still used in laboratories today.

Density and Floating

Whether an object floats depends on its average density compared with the fluid around it, not on its weight alone. A massive steel ship floats because its overall shape encloses a large volume of air, bringing its average density below that of water, while a tiny steel nail sinks because its density is the full seven point eight seven grams per cubic centimetre of steel. Ice floats because its density of zero point nine two is slightly less than liquid water's one point zero — an unusual property, since most substances become denser when they freeze, and one on which aquatic life depends: lakes freeze from the top down, insulating the water below.

Hot air balloons use the same principle in air. Heating the air inside the balloon lowers its density below that of the surrounding cooler air, and the balloon rises until the densities balance. Submarines control their average density by flooding or emptying ballast tanks, and fish adjust theirs with a swim bladder. In every case, the governing comparison is the same: less dense than the fluid means up, denser means down.

Densities of Common Materials

Everyday materials span an enormous density range. Air at sea level is about zero point zero zero one two grams per cubic centimetre, cork about zero point two four, and most woods between zero point four and zero point nine. Plastics cluster around zero point nine to one point four, which is why some float and some sink. Glass sits near two point five, aluminium at two point seven, iron at seven point eight seven, lead at eleven point three four, and gold at nineteen point three two. At the extremes, the densest naturally occurring element, osmium, reaches twenty-two point six, while aerogels — solid materials that are mostly air — can be as light as zero point zero zero one grams per cubic centimetre.

These numbers explain many everyday observations. Cooking oil, at about zero point nine one, floats on water and is used to separate mixtures. A bowling ball's weight depends on its core material and overall density, not just its size. Jewelers test gold by density because a fake made of a cheaper metal with the same appearance will almost never match gold's distinctive nineteen point three two. Density is, in short, a fingerprint: a single number that carries a surprising amount of information about what a material is.

Density Changes With Temperature

Density is not perfectly fixed for a given material, because most materials expand when heated. As volume grows while mass stays constant, density falls. This is why hot water rises above cold water, why the air above a radiator circulates, and why engineers must specify the temperature at which a density was measured for precise work. Water is famously exceptional: it contracts as it warms from zero to four degrees Celsius, reaching maximum density at four degrees, and only then begins to expand. That anomaly is why ice floats and why deep lake water stays near four degrees through winter.

Gases show the effect most dramatically, because their volumes change greatly with temperature and pressure. The density of air at sea level on a hot day is noticeably lower than on a cold day, which affects aircraft lift, balloon performance, and even the speed of sound. For solids and liquids the effect is smaller but still real, and laboratory density tables always state their reference temperature for that reason.

Density in Industry and Science

Density measurements drive quality control across industries. Brewers measure the density of wort to track fermentation, because dissolved sugars make the liquid denser and alcohol makes it less so. Battery manufacturers check electrolyte density to judge charge state. Geologists use density to identify minerals and to interpret gravity surveys that reveal underground structures. Doctors measure bone density to diagnose osteoporosis, and urine density to assess hydration. In each case, a simple ratio of mass to volume becomes a window into composition, condition, or history.

For students, density is often the first intensive property encountered — a property that does not depend on how much material you have, unlike mass or volume themselves. Grasping that distinction unlocks much of chemistry and physics: temperature, pressure, concentration, and refractive index are all intensive properties too, and they all share density's useful trait of describing the material rather than the sample. Master this one idea, and a whole family of concepts becomes easier.

Using This Calculator

Choose whether to solve for density, mass, or volume, enter your two known values in consistent units, and the calculator returns the third, converted to both grams per cubic centimetre and kilograms per cubic metre where relevant. In density mode it also tells you whether the material would float or sink in water, and the reference table helps you match a measured density to a likely material. Measure carefully, keep your units consistent, and remember that a single density number can identify a substance, predict its behaviour in a fluid, and reveal whether it is what it claims to be.

Frequently Asked Questions

What is the formula for density?

Density ρ = mass ÷ volume (ρ = m/V). For example, 270 g ÷ 100 cm³ = 2.70 g/cm³, the density of aluminium.

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

Multiply by 1,000. Water's 1 g/cm³ equals 1,000 kg/m³. To go the other way, divide by 1,000.

Why do some things float and others sink?

An object floats if its average density is less than the fluid's density. Ice (0.92 g/cm³) floats in water (1.0 g/cm³); iron (7.87 g/cm³) sinks.

How do you measure the volume of an irregular object?

Use water displacement: submerge it in a graduated cylinder and read how much the water level rises. That rise equals its volume.

Does density change with temperature?

Yes, usually. Heating expands most materials, increasing volume and lowering density. Water is unusual: it is densest at 4°C.

Can density identify a material?

Often, yes. Gold's density of 19.32 g/cm³ is distinctive, so a density test can expose fakes made from cheaper metals.