Free Science Tool

The density equation,
finally simple.

Enter any two of density, mass, or volume. Get the third instantly with a step-by-step breakdown. No paywall. No login. No clutter.

Open Calculator

On 20 May 2019, the International Prototype Kilogram was retired. The platinum-iridium cylinder had sat in a triple-locked vault at the Bureau International des Poids et Mesures (BIPM) in Sevres, France since 1889, and Resolution 1 of the 26th CGPM replaced it with a fixed numerical value of the Planck constant: 6.62607015 × 10⁻³⁴ J s. After 130 years, the kilogram suddenly had no physical referent you could weigh against. That decision is the reason a calculator that solves D = M / V is more historically loaded than it looks.

The kilogram that kept drifting: measurement before 2019

The IPK had a problem. Periodic comparisons against its six official sister copies (the temoins) showed drift of roughly 50 micrograms over the 20th century. Nobody could say whether the prototype was getting lighter or the copies heavier, because there was no external reference. The kilogram was defined as the mass of the IPK, so by definition the IPK could not drift. Everything else did.

Watt balances at NIST and Avogadro-sphere experiments at the Physikalisch-Technische Bundesanstalt (PTB) in Braunschweig converged on the Planck-constant route through the 2010s. The CGPM vote in November 2018 set the formal cutover for World Metrology Day the following May.

For 130 years before that, every mass measurement on Earth traced back, eventually, to one lump of metal in a vault outside Paris.

How the SI redefinition changed what mass actually means

The post-2019 kilogram is defined by fixing the numerical value of the Planck constant h to exactly 6.62607015 × 10⁻³⁴ when expressed in J s, which equals kg m² s⁻¹. The meter is fixed by the speed of light. The second is fixed by a cesium-133 hyperfine transition. So the kilogram now falls out of three fundamental constants. Mass is no longer a thing; it is a number derived from how light, time, and energy interact.

For a working calculation the change is invisible. A 540 g aluminum block massed in 2018 is still 540 g in 2026. What changed is that any lab with a Kibble balance and a vacuum chamber can now realize the unit from first principles, without shipping platinum back to France.

The mole was redefined the same day, fixing the Avogadro constant at exactly 6.02214076 × 10²³ mol⁻¹. Density work that crosses molar units inherits both fixes without doing anything different.

Mass versus weight: the confusion every physics class inherits

Mass is the quantity of matter. Weight is the force gravity exerts on that mass. The conflation predates Newton and survives in everyday language because for anyone who has not left Earth, the two are proportional. A 1 kg object weighs about 9.807 m/s² worth of force at sea level on the equator and roughly 9.832 N at the poles, a 0.25% difference driven by the planet's oblateness and centrifugal effects. That gap is the entire reason precision scales need location-aware calibration.

Density inherits this confusion sideways. The dimensional formula is mass per unit volume, M L⁻³, with SI units of kg/m³. The non-SI unit g/cm³ equals 1000 kg/m³ numerically, which is why engineering literature flips between them without conversion arithmetic. Water at 4 degrees C has a density of exactly 1.000 g/cm³, or 1000 kg/m³, or 62.43 lb/ft³. Specific gravity drops the units by dividing by the water reference, which is convenient until somebody assumes the reference temperature is 20 degrees C instead of 4 degrees C and the third decimal place quietly moves.

In Massvo we picked 4 degrees C as the buoyancy reference because that is where water reaches maximum density and the value is a clean 1000 kg/m³ with no ambiguity. A sample that reads 0.998 g/cm³ at room temperature still floats. The indicator does not model thermal expansion of the fluid itself.

A century of unit conversion friction between metric and imperial

The United States, Liberia, and Myanmar are the three nations that have not adopted SI as their primary measurement system. Everywhere else kg/m³ is the working unit. In customary practice, lb/ft³ and lb/in³ are still the operational numbers on a fabrication drawing. The factor between g/cm³ and lb/ft³ is 62.428, a number engineers eventually memorize. The factor between kg/m³ and lb/in³ is 3.6127 × 10⁻⁵, which nobody memorizes.

ConversionFactor
g/cm³ to kg/m³× 1000
lb/ft³ to kg/m³× 16.0185
g/cm³ to lb/ft³× 62.428
kg/m³ to lb/in³× 3.6127 × 10⁻⁵

Mass units alone span seven orders of magnitude in common use: micrograms in pharmacology, milligrams in chemistry, grams and kilograms in daily life, ounces and pounds in customary, short tons in US shipping, metric tons in international trade. Volume runs equally wide, with the irritation that a US fluid ounce (29.5735 mL) and a UK fluid ounce (28.4131 mL) are different units sharing a name.

Massvo handles 24 units across the three quantities by converting every input to SI base units, doing the arithmetic, then converting back to whichever output unit you asked for. Internal storage as kg, m³, and kg/m³ means a value entered as lb/in³ and read back as lb/in³ round-trips to within a single ULP of double precision. A value entered as g/cm³ and read as lb/ft³ inherits the exact 62.428 factor without intermediate truncation.

What Massvo computes and where the numbers come from

Three formulas, rearrangements of the same identity:

FormulaSolves for
D = M / VDensity
M = D × VMass
V = M / DVolume

The 18-material reference table draws densities from the CRC Handbook of Chemistry and Physics 102nd edition and the NIST WebBook, with values quoted at 20 degrees C and 1 atm unless the material is conventionally specified otherwise. Aluminum is 2.700 g/cm³. Iron is 7.874. Mercury is 13.534. Pine gets a range of 0.35 to 0.50 g/cm³ because wood density varies with species, moisture, and growth conditions enough that a single number would be dishonest.

The step-by-step breakdown is not a styling choice. The failure mode we kept hitting during build was learners getting the right answer for the wrong reason. They typed numbers, accepted the output, and could not reproduce the work on paper. Showing the formula, the substitution, and the arithmetic makes the algebra visible. If you got the answer wrong by hand, you can see which step diverges from ours.

The buoyancy indicator runs after every density solve. It compares the result against 1000 kg/m³ and reports float or sink. It does not model surface tension, container shape, or fluids other than fresh water at 4 degrees C. What it catches reliably is the order-of-magnitude error: the case where somebody computed 0.27 g/cm³ for what should have been aluminum and walked away believing aluminum floats.

Everything runs in the browser. No data leaves your machine, no account is required, and the reference table is bundled in the JavaScript payload. If you close the tab mid-calculation the work is gone, which is the right tradeoff for a calculator that should not need to remember anything between sessions.

Frequently Asked Questions

How do I calculate density?

Density is mass divided by volume: D = M / V. Weigh the object on a scale to get its mass, measure its volume (water displacement works for irregular shapes, length × width × height for rectangular ones), then divide. In Massvo, type the mass in any supported unit (g, kg, lb, oz), type the volume (cm³, mL, L, in³, ft³, gal), and the answer appears in your chosen density unit with the substitution shown step by step.

What is the formula for density, mass, and volume?

Three rearrangements of the same equation handle every case. To find density, use D = M / V. To find mass when density and volume are known, use M = D × V. To find volume when density and mass are known, use V = M / D. Massvo solves whichever variable you leave blank — fill in any two fields and the third populates automatically with the worked algebra below.

How do I find mass from density and volume?

Multiply density by volume: M = D × V. For a 50 cm³ block of aluminum (density 2.70 g/cm³), the mass is 2.70 × 50 = 135 grams. Massvo handles unit conversion automatically — enter density in lb/ft³ and volume in liters, and you can read mass back in grams or kilograms without any manual conversion.

How do I find volume from mass and density?

Divide mass by density: V = M / D. A 1 kg block of copper (density 8.96 g/cm³) occupies 1000 ÷ 8.96 ≈ 111.6 cm³. Massvo converts the units internally, so you can mix systems freely — pounds for mass, g/cm³ for density, and the result comes out in whatever volume unit you select.

Will an object float or sink in water based on its density?

An object floats when its density is less than the surrounding fluid and sinks when its density is greater. Pure water at 4°C has a density of 1,000 kg/m³ (or 1.000 g/cm³), the standard reference. When you solve for density in Massvo, the buoyancy indicator compares your result against water and tells you immediately whether the substance floats or sinks — useful for quick sanity checks on materials and homework problems.

What units does the density calculator support?

Massvo handles 24 unit types across mass, volume, and density. Mass: kilograms, grams, milligrams, pounds, ounces. Volume: cubic meters, liters, milliliters, cubic centimeters, cubic feet, cubic inches, gallons, quarts, pints. Density: kg/m³, g/cm³, kg/L, g/mL, lb/ft³, lb/gal. All inputs are converted to SI base units internally for the calculation, then the answer is converted back to whatever unit you picked for output.

How do I convert between kg/m³ and g/cm³?

Divide kg/m³ by 1,000 to get g/cm³, or multiply g/cm³ by 1,000 to get kg/m³. Water is 1,000 kg/m³ or 1.000 g/cm³. Aluminum is 2,700 kg/m³ or 2.70 g/cm³. Massvo does this conversion automatically — pick your output unit from the dropdown and the answer appears in that unit no matter what you entered.

What is the density of common materials like aluminum, gold, and water?

Aluminum is about 2,700 kg/m³ (2.70 g/cm³), gold is 19,300 kg/m³ (19.30 g/cm³), and water at 4°C is exactly 1,000 kg/m³ (1.000 g/cm³). Massvo's material reference table holds 18 common substances — metals, liquids, woods, and composites — at room temperature and 1 atm. Click any card to prefill the calculator with that density and solve for mass or volume immediately.

Is Massvo's density calculator free?

Yes. Massvo is free with no signup, no paywall, and no usage limits. The full step-by-step breakdown, all 24 unit conversions, and the material reference table are available without an account. The site is supported by unobtrusive ads — no popups, no autoplay, no chat widgets blocking the calculator.

Why does density change with temperature?

Most substances expand when heated. Molecules move faster and occupy more volume while the mass stays constant, so density decreases. Massvo's reference values are quoted at room temperature (~20°C). Water is the famous exception: it reaches maximum density at 4°C, then becomes less dense as it freezes, which is why ice floats and lakes freeze top-down. Gases are especially temperature-sensitive because PV = nRT couples pressure, volume, and temperature directly.

Massvo runs entirely in your browser. No data sent to any server, no account, no tracking. Free forever, supported by unobtrusive advertising.

Built by Infinite Orchard · Privacy Policy

Open Calculator