Density Calculator
Does your material float, sink, or match a known substance?
Enter mass and volume to find density, or use any two known values to solve for the third. Works for solids, liquids, and gases across metric and imperial units.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Imagine trying to carry two identical-looking boxes, one filled with air and one filled with sand. The volume is the same but one is obviously heavier — that ratio of heaviness to size is density. It is one of the few physical properties you can measure accurately with nothing more than a kitchen scale and a measuring cup.
The formula is deceptively simple: density equals mass divided by volume (D = m / V). But the power comes from rearranging it. If you know a material's published density and you have its volume, you can calculate its mass without weighing it. If you know the mass and the density, you can back-calculate the volume — useful when a container's shape makes direct measurement awkward.
The reason density is so useful for identification is that it is an intrinsic property — it does not change based on how much of the material you have. A small gold nugget and a gold bar have the same density. A drop of olive oil and a liter of olive oil have the same density. This makes it one of the fastest non-destructive ways to tell materials apart or verify a substance.
When To Use This
Right tool, right situation
Use this calculator when you have a physical sample you can weigh and measure, and you want to identify it, verify a purchase, or calculate a derived quantity like mass from volume. It works for solids, liquids, and gases across any unit system.
Good situations: identifying a metal by comparing its density to published values, calculating how much a custom part will weigh before manufacturing it, verifying whether a liquid is what the label claims, or determining if a floating body will support a given load in water.
Do not use this calculator when the material is not uniform — wood with grain voids, foam with variable cell density, or composite materials with layered construction. The result will represent an average density across the sample, which may not predict behavior at specific points. Also, gas density is highly sensitive to temperature and pressure — the standard reference is usually given at 0 C and 1 atmosphere, and real conditions can shift the result significantly.
Common Mistakes
Why results sometimes look wrong
The most common mistake is confusing weight and mass. In everyday English people use them interchangeably, but for density calculations mass in grams or kilograms is required — not force in newtons. If you weighed something on a digital kitchen scale, you have mass. If you used a spring scale calibrated in newtons, you need to divide by 9.81 first.
The second mistake is using the wrong volume for porous or hollow objects. A hollow metal sphere has a large geometric volume but most of that space is air. If you calculate volume from geometric dimensions, you get apparent density — the density of the whole object including voids. If you use water displacement, you get the same result. Neither is wrong, but they answer different questions. true material density requires a solid, non-porous sample.
The third mistake is rounding mass or volume too aggressively before dividing. Density is sensitive to small errors: if your volume is off by 5%, your density is off by 5%. A volume measured as 200 cm3 versus 210 cm3 changes a density result by nearly 5%. Use as many significant figures as your measurement allows and round only the final result.
The Math
Worked examples and deeper derivation
The core equation is D = m / V, where D is density in g/cm3, m is mass in grams, and V is volume in cubic centimeters. Rearranged: m = D x V gives mass when density and volume are known; V = m / D gives volume when mass and density are known.
Unit consistency is where most errors appear. One mL equals exactly one cm3 for liquids, so those two units are interchangeable without conversion. But one liter equals 1,000 cm3, one cubic inch equals 16.387 cm3, and one cubic foot equals 28,316.85 cm3. This calculator converts all inputs to grams and cm3 before dividing, so the result is always in g/cm3 regardless of the input units you choose.
For relative comparison, specific gravity is density divided by the density of water (1.0 g/cm3) — making it a dimensionless number that tells you directly how many times denser the material is than water. A specific gravity of 2.7 means the material is 2.7 times heavier than an equal volume of water. This calculator's compared-to-water output gives you that same ratio.
Expert Unlock
The thing most explanations skip
The formula assumes uniform density throughout the sample, which almost nothing in the real world satisfies exactly. Bone has a cortical shell and a porous marrow interior. Wood has annual rings of different densities. Even metals have grain boundaries and micro-voids introduced during casting. What the calculator gives you is bulk density — the average across the entire sample. For structural or materials engineering, this is often exactly what you need, but never assume it describes any specific point inside the material. Additionally, density changes with temperature through thermal expansion, and for precise laboratory work this correction is applied using the material's coefficient of thermal expansion multiplied by the temperature delta.
Why does my density not match the material I expected?
Need something this doesn't cover?
Suggest a tool — we'll build it →