Density Calculator

Science

Calculate density of materials

Density describes how much mass is packed into a given volume — it's the property that tells you why a small lead fishing weight feels far heavier than a much larger block of styrofoam. The formula is simple: Density (ρ) = Mass / Volume. Every pure substance has a characteristic density under given conditions, which makes density one of the most useful properties for identifying unknown materials in a chemistry or physics lab.

Our density calculator divides mass by volume instantly, returning results in the units you need: kilograms per cubic meter (kg/m³) for the SI standard, or the more commonly used grams per cubic centimeter (g/cm³) and grams per milliliter (g/mL) for smaller, everyday objects and liquids. Since 1 cm³ equals 1 mL, these two units are numerically interchangeable for liquids and small solids.

Enter any two of mass, volume, or density, and the calculator solves for the missing value. It's the same tool you'd use to figure out whether an unknown metal sample is aluminum or gold, or to predict whether an object will sink or float in water.

Why Density Calculator Matters

Density is a fundamental identifying property of matter, which makes it indispensable in chemistry, geology, materials science, and engineering. Because density doesn't depend on the size or shape of a sample — only on the substance itself — scientists use it to identify unknown materials. Gold has a density of about 19.3 g/cm³, far higher than pyrite ('fool's gold') at about 5.0 g/cm³, which is exactly how prospectors and jewelers have distinguished real gold from imitations for centuries. Geologists identify rock and mineral samples the same way, comparing measured density against reference tables.

Density also governs one of the most intuitive physical phenomena: buoyancy. An object floats in a fluid if its density is less than the fluid's density, and sinks if its density is greater. Water has a density of almost exactly 1 g/mL (1,000 kg/m³) at 4°C, which is why ice (about 0.92 g/mL) floats on liquid water while a steel ball bearing (about 7.8 g/mL) sinks immediately. Naval architects use this principle to design ships that displace enough water to float despite being built from dense steel, and it's the same reasoning students use in classic 'does it float' science experiments.

The Density Calculator Formula, Explained

ρ = m / V

Where: ρ (rho) = density, m = mass, V = volume. In SI units, mass is in kilograms (kg), volume is in cubic meters (m³), and density is in kilograms per cubic meter (kg/m³). For lab-scale objects, it's often more convenient to use grams (g) for mass and cubic centimeters (cm³) or milliliters (mL) for volume, giving density in g/cm³ or g/mL — these two smaller units are numerically identical since 1 cm³ = 1 mL exactly.

Rearranged, the formula also gives mass (m = ρ × V) and volume (V = m / ρ), letting you solve for any of the three quantities if you know the other two.

Specific gravity is a closely related, unitless quantity: it's the ratio of a substance's density to the density of water (approximately 1,000 kg/m³ or 1 g/cm³). A specific gravity greater than 1 means the substance is denser than water and will sink; less than 1 means it will float.

How to Use the Density Calculator: Step by Step

  1. Measure the mass

    Weigh the object or sample on a scale and record the mass in grams (g) or kilograms (kg).

  2. Measure or calculate the volume

    For regular shapes, calculate volume using geometry (length × width × height for a box, for example). For irregular shapes, use water displacement: submerge the object and measure the volume of water displaced.

  3. Enter both values

    Input the mass and volume into the calculator, making sure the units match (e.g., grams with cm³, or kilograms with m³).

  4. Interpret the density result

    Compare the calculated density to reference values to identify the material, or compare it to water's density (1 g/cm³) to predict whether the object will float or sink.

Density Calculator Examples: Real-World Scenarios

1

Identifying a Gold Nugget

A prospector finds a nugget that weighs 96.5 grams and displaces 5 cm³ of water when submerged. Is it real gold?

Mass (m):96.5 g
Volume (V):5 cm³

Calculation

ρ = 96.5 g / 5 cm³

Result

Density = 19.3 g/cm³, which matches the known density of pure gold exactly — strong evidence the nugget is genuine (pyrite would measure around 5.0 g/cm³).

2

Will This Piece of Wood Float?

A block of wood has a mass of 350 grams and a volume of 700 cm³. Will it float in water?

Mass (m):350 g
Volume (V):700 cm³

Calculation

ρ = 350 g / 700 cm³

Result

Density = 0.5 g/cm³, which is half the density of water (1 g/cm³), so the wood will float, with roughly half of its volume submerged.

3

Identifying an Unknown Metal Sample

A metal sample used in a chemistry lab has a mass of 450 grams and a volume of 50 cm³. What metal might it be?

Mass (m):450 g
Volume (V):50 cm³

Calculation

ρ = 450 g / 50 cm³

Result

Density = 9.0 g/cm³, very close to the known density of copper (8.96 g/cm³), strongly suggesting the sample is copper or a copper-heavy alloy.

Common Mistakes to Avoid

  • Mixing units without converting — for example, dividing mass in kilograms by volume in cm³ instead of m³. This produces a density value that's off by a factor of 1,000 or more. Always confirm mass and volume units are compatible before dividing.
  • Forgetting that density is independent of sample size. Students sometimes assume a bigger chunk of the same material has a different density than a smaller chunk — in reality, density stays constant for a pure, uniform substance regardless of how much of it you have.
  • Ignoring temperature effects on density, especially for gases and liquids. Water's density changes slightly with temperature (it's actually maximum at 4°C, not 0°C), and gas densities change substantially with temperature and pressure — precise work should specify these conditions.

Tips & Tricks

  • Water's density is almost exactly 1 g/mL (1,000 kg/m³), making it a convenient reference: any material with a lower density than 1 g/mL will float in water, and any material with higher density will sink.
  • When identifying an unknown solid, use water displacement to measure irregular volumes: submerge the object fully in a graduated cylinder and record the rise in water level — that rise equals the object's volume.

Density condenses two measurable quantities, mass and volume, into a single number that helps identify materials and predict whether they'll float or sink. Use this calculator for chemistry lab work, material identification, or classic buoyancy problems. For related physics tools, check out our molarity calculator for solution concentration or our molecular weight calculator when working with chemical compounds.

Density Calculator — Frequently Asked Questions

Related Calculators

Authoritative References

External links open in a new tab. OmniCalc.us is not affiliated with these organisations.

Related Calculators