Density calculator
Compute density, mass, or volume from the other two values, with metric mass, volume, and density units converted through a single base.
Browser compute / no account / no upload
Enter two of mass, volume, and density. The calculator normalizes the inputs to grams and cubic centimeters before it solves the third value.
Method
- Density is mass divided by volume. The calculator converts mass to grams and volume to cubic centimeters before dividing, so mixed units such as kilograms and liters are handled consistently.
- One gram per cubic centimeter equals 1000 kilograms per cubic meter. The result panel shows both, which makes it easier to compare a laboratory value with an SI table.
- The calculation assumes a uniform sample. It does not correct for temperature, pressure, porosity, dissolved gas, or the difference between bulk and particle density.
Reference: NIST Chemistry WebBook
The density equation
Units and conversions
- <strong>Mass:</strong> 1 kg = 1000 g, and 1 g = 1000 mg.
- <strong>Volume:</strong> 1 L = 1000 mL = 1000 cm³, and 1 m³ = 1,000,000 cm³.
- <strong>Density:</strong> 1 g/cm³ = 1000 kg/m³. Water is about 1.00 g/cm³ at 4 °C.
Worked example: identifying a metal
Example 1
Density from a measured mass and volume
Problem
A metal block has a mass of 270 g and a volume of 100 cm³. What is its density, and which common metal does it match?
Solution
Divide the mass by the volume: .
The result is 2.70 g/cm³.
Compare with the reference table: aluminum is about 2.70 g/cm³.
Answer
2.70 g/cm³, consistent with aluminum
Worked example: mass of a solvent
Example 2
Mass from volume and density
Problem
What is the mass of 250.0 mL of water at 20 °C, where the density is 0.998 g/mL?
Solution
Use .
Substitute the values: .
Answer
249.5 g of water
Reference densities
| Material | Density (g/cm³) | Density (kg/m³) |
|---|---|---|
| Air (15 °C) | 0.001225 | 1.225 |
| Ice (0 °C) | 0.917 | 917 |
| Water (4 °C) | 1.000 | 1000 |
| Water (20 °C) | 0.998 | 998 |
| Seawater (20 °C) | 1.025 | 1025 |
| Ethanol (20 °C) | 0.789 | 789 |
| Aluminum | 2.70 | 2700 |
| Iron | 7.87 | 7870 |
| Copper | 8.96 | 8960 |
| Lead | 11.34 | 11340 |
| Mercury | 13.53 | 13530 |
| Gold | 19.32 | 19320 |
Common mistakes
- Mixing grams with liters without converting. Grams per liter is 1000 times smaller than grams per milliliter, so the unit label matters.
- Using the volume of solvent instead of the volume of the final solution. For a solution, density refers to the mixture, not to the liquid added first.
- Treating a handbook density as exact for every sample. Temperature, alloy composition, and porosity all shift the value.
- Reading a meniscus from above. Volume measurements carry their own uncertainty, which propagates into density.
- Forgetting that a gas density depends strongly on pressure and temperature, unlike a liquid at ordinary conditions.
What the result means
Limits and assumptions
Glossary
- Density
- Mass per unit volume of a material, usually reported in grams per cubic centimeter or kilograms per cubic meter.
- Specific gravity
- The ratio of a material's density to the density of water at a stated temperature. It is dimensionless.
- Bulk density
- The mass of a powder or granular material divided by the volume it occupies, including the voids between particles.
- Skeletal density
- The density of the solid material itself, excluding open pores and the space between particles.
Key takeaways
- Density is mass divided by volume; the other two values follow from the same equation.
- Convert mass to grams and volume to cubic centimeters before dividing, or use the unit selectors.
- 1 g/cm³ equals 1000 kg/m³, and 1 cm³ equals 1 mL.
- Temperature, porosity, and alloy composition change density, so state the conditions with the result.