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.

Updated June 2026 · How this works

Example calculation — edit any field to use your own numbers

Worth knowing
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.

Checking if a metal bar is real gold
Mass: 193 g, Volume: 10 cm3, Solve for: Density
Result: 19.3 g/cm3 — nearly identical to gold (19.3 g/cm3), and far above lead (11.34 g/cm3) or tungsten (19.25 g/cm3). A fake gold bar filled with lead would come in well below 19 g/cm3. This is exactly the test Archimedes applied to the king's crown — displacement volume plus mass reveals the truth without melting anything.
Figuring out how much concrete a mold will hold
Solve for: Mass, Density: 2.3 g/cm3 (concrete), Volume: 15,000 cm3 (a 30x25x20 cm mold)
Result: 34,500 g — or about 34.5 kg. That is the weight of concrete you need to pour without any guesswork. Contractors use this in reverse constantly: given a slab volume and the density of their mix, they can order the right tonnage. Underordering means two pours with a cold joint; overordering means wasted material.
A chef testing oil quality by displacement
Mass: 920 g, Volume: 1,000 mL (1 liter), Solve for: Density
Result: 0.92 g/cm3 — which matches most vegetable oils and confirms the oil floats on water rather than mixing in. Food scientists use density to verify olive oil authenticity, since adulterated oil with cheaper additives shows a measurably different density. The calculation is identical to what a physicist would run in a lab, just with a kitchen scale and a measuring cup.
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?

What is density and what does g/cm3 mean?
Density is mass per unit volume — how much matter is packed into a given space. The unit g/cm3 means grams per cubic centimeter: a cube 1 cm on each side filled with the material. Water at room temperature is exactly 1.0 g/cm3, making it the natural benchmark — anything below 1.0 floats, anything above sinks.
How do I measure volume for an irregular object?
Submerge the object in a graduated container of water and measure the volume increase in milliliters — that equals the object's volume in cm3. This water displacement method works for any solid that does not dissolve or absorb water. Archimedes famously used this to test the purity of a crown without melting it.
Why does temperature affect density calculations?
Most materials expand when heated and contract when cooled, so the same mass occupies a different volume at different temperatures, changing density. This matters most for liquids and gases — water expands about 4% between 4 C and 100 C. For solid metals in everyday applications the effect is small enough to ignore, but precision lab work requires temperature-corrected measurements.

Need something this doesn't cover?

Suggest a tool — we'll build it →