Density Calculator
Compute density from mass and volume.
Calculate density from a substance's mass and volume — a fundamental physics and chemistry formula used across science, engineering, and material identification.
How Density Calculator Works
Density is defined as mass divided by volume (density = mass ÷ volume). The calculator performs this single division directly on whatever mass and volume values you enter, so the result's unit depends entirely on the units you used for your inputs — commonly grams per cubic centimeter or kilograms per cubic meter.
See It In Action
Who Uses Density Calculator and Why
- Identifying an unknown material by comparing its calculated density to a reference chart of known substances.
- Checking whether an object is likely solid or hollow by comparing its measured density to the expected density of its stated material.
- Working through a chemistry or physics homework problem that gives mass and volume and asks for density.
- Estimating whether an object will float or sink in water by comparing its density to water's roughly 1 g/cm³.
Mistakes to Avoid
- Mixing mismatched units, like entering mass in grams but volume in liters instead of milliliters — the calculator just divides the two numbers you enter, so mismatched units produce a numerically correct but physically meaningless result.
- Entering a volume of zero or leaving it blank, which makes the result undefined since density can't be calculated by dividing by zero.
- Confusing density with specific gravity — density carries units (like g/cm³), while specific gravity is a unitless ratio comparing a substance's density to water's.
Tips for Best Results
- Pair grams with cubic centimeters, or kilograms with cubic meters, to keep the result in a standard, easily comparable unit.
- If you're trying to identify a material, compare your result to a standard density reference table rather than guessing — water (~1 g/cm³), aluminum (~2.7 g/cm³), and steel (~7.8 g/cm³) are common comparison points.
Fixing Common Problems
I'm getting an error or undefined result. — Check that you entered a nonzero, positive volume — density is undefined when volume is zero, since that requires dividing by zero.
My calculated density doesn't match the known density of the material I think I'm measuring. — Recheck your unit pairing (grams with cm³, or kilograms with m³) — a mismatched unit pair is the most common cause of a result that's off by a large, suspicious factor like 1,000.
Terms Explained
Density: A measure of mass per unit volume (mass ÷ volume), commonly expressed in g/cm³ or kg/m³.
Specific gravity: A unitless ratio comparing a substance's density to the density of water, used to describe how much denser or lighter something is than water.