Why does a bowling ball sink and a beach ball float, even though both are round and both are full of something? The answer is density — how much mass is packed into a given volume — and it's one of the first properties chemists and physicists use to identify an unknown material, because every substance has its own characteristic density under given conditions.
How to Use the Density Calculator
Choose whether to solve for density, mass, or volume, then enter the other two known values. This calculator works in SI units: mass in kilograms and volume in cubic meters, giving density in kilograms per cubic meter. If your numbers are in grams and milliliters (common in a chemistry lab), the ratio works out the same numerically as grams per milliliter, but you'll need to convert to kilograms and cubic meters — or grams per milliliter times 1,000 equals kilograms per cubic meter — to use this calculator directly.
A Note on Temperature and Pressure
Density isn't perfectly fixed — it changes with temperature and pressure, especially for gases, which expand and contract far more than solids or liquids. Water is again an interesting exception: it's actually densest at about 4°C, not at its freezing point, which is why lakes freeze from the top down and aquatic life can survive winter in the still-liquid water below the ice.
The Density Formula
ρ = m / V
Density (the Greek letter rho, ρ) equals mass divided by volume. The calculator's default example uses 1 kilogram of mass in 0.001 cubic meters of volume — that's exactly 1 liter — giving a density of 1,000 kg/m³, which is the density of pure water at standard conditions. That's not a coincidence: water's density was historically used to define the kilogram itself, since 1 liter of water was designed to weigh almost exactly 1 kilogram.
Solving for Mass or Volume
If you know a material's density (from a reference table) and you've measured its volume, solve for mass — this is how shipping companies estimate cargo weight from container dimensions and cargo type, and how you can figure out whether a box of unknown liquid will exceed a weight limit before you lift it. If you know density and mass instead, solving for volume tells you how much space a given quantity of material will take up, which matters for anything from packing a moving truck to sizing a fuel tank.
Reading Density as a Fingerprint
Every material has a density that, at a given temperature and pressure, doesn't depend on how much of it you have — a gram of gold and a ton of gold have the same density, 19,300 kg/m³, even though their masses are wildly different. That consistency is what makes density useful for identification: if you measure an unknown metal's mass and volume and get a density near 2,700 kg/m³, you're likely looking at aluminum; near 7,870 kg/m³, it's probably iron or steel; near 19,300 kg/m³, it could be gold — or a very convincing gold-plated fake, which is exactly why jewelers and coin authenticators use density (via water displacement to measure volume) as a quick screening test.
Why Density Explains Floating and Sinking
An object floats in a fluid if its overall density is less than the fluid's density, and sinks if it's greater — this is the entire basis of Archimedes' principle. Ice floats on water because ice is about 917 kg/m³, less dense than the 1,000 kg/m³ of liquid water (an unusual property; most solids are denser than their liquid form). A steel ship floats not because steel is less dense than water — it's roughly eight times denser — but because the ship's hollow shape gives it a much lower average density across its entire displaced volume, air included, than the water it sits in.