What Is the Density Formula?
The density formula is ρ = m/V: density equals mass divided by volume. NIST's guide to the SI files density, which it calls mass density, under the quantity mass divided by volume. In the SI, mass density has the symbol ρ and is expressed in kilograms per cubic meter (kg/m³). Enter a mass, a volume and the units used; the calculator shows the resulting density. For 54 grams in 20 cubic centimeters, it shows a density of 2.7 g/cm³, which is 2,700 kg/m³.
By FiftyCalc · Updated November 11, 2026, first published November 11, 2026
How it is calculated
Measure the mass: the kilogram, symbol kg, is the SI unit of mass. The calculator accepts grams with cubic centimeters, kilograms with cubic meters, or pounds with cubic feet.
Measure the volume: NIST gives the cubic meter (m³) as the SI unit of volume. A milliliter is another name for a cubic centimeter, so a volume in milliliters can be entered as cubic centimeters.
Divide the mass by the volume: 54 grams in 20 cubic centimeters gives 54 ÷ 20 = 2.7 g/cm³. The unit follows the division, so grams over cubic centimeters give grams per cubic centimeter, and kilograms over cubic meters give kilograms per cubic meter.
NIST's conversion table goes from grams per cubic centimeter to kilograms per cubic meter, and the calculator turns 2.7 g/cm³ into 2,700 kg/m³. It also gives the density in pounds per cubic foot, another unit listed in the same NIST table.
Worked example
Assumptions: a small block with a mass of 54 grams and a volume of 20 cubic centimeters. Its density is 54 ÷ 20 = 2.7 g/cm³. The calculator shows 2.7 g/cm³, 2,700 kg/m³ and 168.5555 lb/ft³. The calculator displays: “Denser than water: it sinks.”
| Mass | 54 |
|---|---|
| Volume | 20 |
| Units used | Grams and cubic centimeters (g, cm³) |
| Density (in the units you entered) | 2.7 |
|---|---|
| Density (kg/m³) | 2,700 |
| Density (lb/ft³) | 168.5555 |
Figures computed by this site's calculator from the inputs above. Run your own numbers: Density Calculator
Frequently asked questions
How do you find mass or volume from density?
Rearrange the same formula: mass equals density times volume, and volume equals mass divided by density. For 200 grams in 250 cubic centimeters, the calculator shows 0.8 g/cm³, and 0.8 × 250 = 200 grams gives the mass back.
What is the SI unit of density?
The SI unit of mass density is the kilogram per cubic meter (kg/m³), and the symbol for the quantity is ρ. The calculator also shows density in grams per cubic centimeter: in this example, it displays 2.7 g/cm³ and 2,700 kg/m³.
Sources
- NIST Guide to the SI (Special Publication 811), Appendix B.9, Factors for units listed by kind of quantity or field of science National Institute of Standards and Technology (NIST) checked on 2026-11-01
- NIST Special Publication 330 (2019), The International System of Units (SI) National Institute of Standards and Technology (NIST) checked on 2026-11-01
- SI Units – Volume National Institute of Standards and Technology (NIST), Office of Weights and Measures checked on 2026-11-09
General information drawn from the official sources above, not tax or legal advice. Amounts change from year to year: check the source for your tax year.