Article — Density Mass Volume Calculator
Density Mass Volume Calculator: ρ = m/V
Density is mass divided by volume, ρ = m/V, with SI units of kg/m³. Water at 4 °C is the reference at exactly 1000 kg/m³, and any substance below that floats on it.
The relationship between density, mass, and volume is one of the first equations students meet in physics, but it carries the entire logic of buoyancy, identification of materials, naval architecture, and even how planets are classified. With any two of the three quantities, the third drops out of one short equation.
What density measures
Density is the amount of matter packed into a unit of space. A kilogram of feathers and a kilogram of iron have the same mass, but the iron occupies far less volume because its density is roughly 7.87 times greater. Density is an intensive property: it does not depend on how much material you have. One drop of water has the same density as a swimming pool full of it, provided the temperature is the same.
In SI units, density is reported in kilograms per cubic metre. Chemists prefer grams per cubic centimetre because most lab volumes fit comfortably in a graduated cylinder. The two are linked by an exact factor: 1 g/cm³ equals 1000 kg/m³. American engineering uses pounds per cubic foot; 1 lb/ft³ equals 16.0185 kg/m³.
Saturn is the only planet in our solar system with an average density less than water. At 687 kg/m³, Saturn would float in a hypothetical ocean big enough to hold it. Earth, by contrast, has an average density of 5514 kg/m³, mostly because of its iron and nickel core.
The density mass volume formula
The defining equation is ρ = m/V, where ρ (Greek rho) is density, m is mass, and V is volume. The same relationship rearranges into m = ρ × V to find mass, or V = m/ρ to find volume. These three forms are the entire mathematical content of this calculator.
The trick is keeping units consistent. If mass is in grams and volume is in cubic centimetres, density comes out in g/cm³. If mass is in kilograms and volume is in cubic metres, density is in kg/m³. The calculator above normalises everything to SI internally so you can mix units freely.
ρ = m / V find densitym = ρ × V find massV = m / ρ find volumeSolving for density, mass, or volume
A 2.7 kg aluminum block has a volume of about 0.001 m³ (one litre), which gives a density of 2.7 kg / 0.001 m³ = 2700 kg/m³. Working the other way, a litre of mercury (ρ = 13 590 kg/m³) weighs 13.59 kg, and a one-kilogram gold bar (ρ = 19 300 kg/m³) occupies only 51.8 cm³, about the size of a small candy bar.
The density mass volume calculator handles all three rearrangements. Pick the variable to solve for, fill in the other two, and the formula does the rest. Material presets cover water, ice, common metals, and a few liquids so you can skip looking up density values for routine work.
Density of water and the 1000 kg/m³ reference
Water is the universal density reference. At 4 °C it reaches its maximum density of 999.972 kg/m³, conventionally rounded to 1000 kg/m³. This is the value originally used to define the kilogram: one kilogram was meant to be the mass of one litre of water at the temperature of its maximum density.
Water also exhibits the rare property of anomalous expansion: it gets denser as it warms from 0 to 4 °C, then expands like normal liquids above that. Ice is less dense than the liquid (917 kg/m³), which is why frozen ponds support ice on top while liquid water stays beneath. If water behaved like every other substance, lakes would freeze from the bottom up and aquatic life would not survive winters in temperate climates.
- 0 °C ice 917 kg/m³ (anomalous expansion on freezing)
- 4 °C water 999.97 kg/m³ (maximum density of the liquid)
- 20 °C water 998.21 kg/m³ (room temperature)
- 60 °C water 983.20 kg/m³ (warmer, less dense)
- 100 °C water 958.35 kg/m³ (boiling, still liquid)
- Sea water 1025 kg/m³ (3.5 percent salinity)
Density of common materials
Metals dominate the high end of the density chart. Osmium tops the list at 22.59 g/cm³, followed by iridium, platinum, and gold. At the other extreme, hydrogen gas at standard temperature and pressure has a density of 0.0899 kg/m³, more than 250 000 times lighter than osmium.
Knowing the density of a substance gives you a quick identity check. A 50 mL sample with a mass of 39 g has a density of 0.78 g/cm³, which rules out water (1.0) and points at ethanol (0.789) or a similar light alcohol. Gemologists, metallurgists, and forensic chemists all rely on this kind of test.
Density and buoyancy: when things float
An object floats when its average density is less than the fluid it sits in. Wood (ρ ≈ 500 to 800 kg/m³) floats on water, oil (ρ ≈ 900 kg/m³) floats on water, ice floats on its own liquid form, and almost everything floats on mercury (ρ = 13 590 kg/m³) including lead and iron. The principle Archimedes worked out in the third century BCE is still the basis for ship design, hot-air balloons, and submarines.
The buoyant force on a submerged object equals the weight of the fluid it displaces. A steel ship floats because the displaced volume of water has more mass than the ship itself, even though steel is denser than water. Shape the steel into a hull and the average density (including the air inside) drops well below 1000 kg/m³.
To check whether something will float in water, compute its density and compare to 1000 kg/m³. Below that, it floats; above, it sinks. Specific gravity (density ÷ 1000) is the same comparison expressed as a ratio.
Density units and conversions
Three units handle almost every density calculation. kg/m³ is the SI base. g/cm³ is identical to g/mL and is the chemistry standard. lb/ft³ is the US engineering convention. The conversion factors are exact: 1 g/cm³ = 1000 kg/m³ = 62.428 lb/ft³.
API gravity is a petroleum-specific scale derived from density. A density of 0.85 g/cm³ at 60 °F corresponds to an API gravity of 35°, the typical range for light sweet crude oil. The Baumé scale, used in brewing and chemistry, is another density-derived ratio that survives in hydrometer readings.
Common density mistakes
This is the most common density error. The two units differ by a factor of 1000, so a careless swap produces an answer that is off by three orders of magnitude. Always write the unit next to the number and check that mass and volume use compatible bases (kg with m³, g with cm³).
Other frequent slips: confusing density with mass (density is mass per volume, not the total amount of stuff), ignoring temperature when high precision matters, and assuming a mixture has the average density of its components (it usually does not, because volumes are not always additive). For most engineering work, two significant figures on density are enough, but high-stakes work in metrology, navigation, or pharmaceutical formulation can require five or more.