Density Calculator
Calculate density, mass or volume with ρ = m/V in g/cm³ and kg/m³. Includes step-by-step examples, a material reference table and buoyancy in water.
Calculator
Water 1.00, aluminum 2.70, iron 7.87, lead 11.35, gold 19.32.
- In kg/m³ 1 g/cm³ = 1000 kg/m³ = 1 kg/L exactly.
- 2700 kg/m³
- Relative to water Specific gravity. Above 1 sinks in water, below 1 floats.
- 2.7
- Floats in water
- No
Working, with your numbers
- rho = m / V
- = 270 g / 100 cm3
- = 2.7 g/cm3 = 2700 kg/m3
Values are converted into the units the equation is worked in before the arithmetic.
Cite this tool
Citing this tool
Last updated . Add the date you accessed it as well, which a citation of a page that can change asks for. If a specific result matters, cite the permalink from the tool’s share row instead of this page: it reproduces the exact parameters.
The equation
OpenStax University Physics Volume 1 (2016), section 14.1, Tables 14.1 and 14.2
The equation as an image to reuse
What is the density formula?
Density (ρ) is defined as mass per unit volume, calculated with the formula ρ = m / V, where m is mass and V is volume. In SI units, mass is measured in kilograms (kg), volume in cubic meters (m³), and density in kg/m³. In chemistry and laboratory work, density is commonly expressed in g/cm³ (or g/mL), where 1 g/cm³ = 1,000 kg/m³ = 62.43 lb/ft³.
Common material densities
Reference densities near room temperature and 1 atm, except where a row states its temperature:
| Material | Density (g/cm³) | Density (kg/m³) | Density (lb/ft³) | In Water |
|---|---|---|---|---|
| Air (sea level, 20 °C) | 0.0012 | 1.2 | 0.075 | Rises / Floats |
| Ice (0 °C) | 0.92 | 920 | 57.4 | Floats (92% submerged) |
| Water (pure, 4 °C) | 1.00 | 1,000 | 62.4 | Neutral |
| Sea water | 1.03 | 1,030 | 64.3 | Sinks in freshwater |
| Concrete | 2.40 | 2,400 | 149.8 | Sinks |
| Aluminum | 2.70 | 2,700 | 168.6 | Sinks |
| Iron | 7.87 | 7,870 | 491.3 | Sinks fast |
| Lead | 11.35 | 11,350 | 708.6 | Sinks fast |
| Gold | 19.32 | 19,320 | 1,206.1 | Sinks fast |
In g/cm³, the table gives aluminum 2.70, water 1.00, ice 0.92 and air 0.0012. Ice sits below water in density, which is why ice floats with roughly 8% of its volume above the waterline. To test how different masses, volumes and fluid densities affect floating and displacement, see the interactive Buoyancy Simulator.
What density measures
The density formula rearranges into m = ρV to find the mass
of a known volume and V = m / ρ to find the volume a known mass
occupies. Density answers how much matter is packed into a given space,
which is why it separates materials that look similar but behave
differently.
Two unit facts remove most of the arithmetic difficulty. One cubic centimeter is one milliliter exactly, by definition of the liter, so a volume read off a graduated cylinder in milliliters is already in cubic centimeters. And 1 g/cm³ = 1000 kg/m³ = 1 kg/L, so converting between the laboratory unit and the SI unit is a factor of a thousand in one direction only.
Worked examples
Example 1: Finding density from mass and volume
A block of aluminum has a mass of 270 g and displaces 100 mL of water. Find its density.
- 100 mL of volume is 100 cm³, since the two units are identical.
ρ = m / V = 270 / 100 = 2.70 g/cm³-
Convert to SI:
2.70 × 1000 = 2700 kg/m³(or168.6 lb/ft³in US customary units). - The figure matches the reference value for aluminum, confirming the solid sample.
Example 2: Finding mass from density and displaced water
A metal cube has a density of 2.70 g/cm³. If it displaces 15 mL of water, what is its mass?
- 15 mL of displaced water equals a volume of 15 cm³.
- Rearrange the density equation for mass:
m = ρ × V. m = 2.70 g/cm³ × 15 cm³ = 40.5 g.- In kilograms:
40.5 ÷ 1000 = 0.0405 kg(about0.0893 lbor1.43 oz).
Specific gravity and measuring awkward volumes
Specific gravity is density expressed relative to water, so it is numerically the same as the density in g/cm³ but carries no units. Aluminum has a density of 2.70 g/cm³ and a specific gravity of 2.70. The useful consequence is a floating rule: a value below 1 means the material floats in water, and a value above 1 means it sinks. A specific gravity hydrometer reads this quantity directly.
Measuring the volume of a regular shape is a matter of geometry, but an irregular solid needs displacement. Lowering the object into a partly filled cylinder and recording the rise in level gives the volume directly, which is the practical form of the Archimedes principle. For an object denser than water this is accurate and quick; for one that floats it has to be held under with a thin rod or weighted, and the weight’s own volume subtracted.
Common mistakes
- Confusing mass with weight. Density uses mass in grams or kilograms. A weight in newtons has to be divided by the local gravitational acceleration before it can be used here.
- Using the outer dimensions of a hollow or porous object. Measuring a foam block or a pipe by its overall size gives bulk density, not the density of the material itself. The two differ by whatever fraction of the volume is air.
- Forgetting the temperature dependence. Most substances expand when heated and so become less dense. Water is unusual in being densest near 4 °C, which is why quoted water densities specify a temperature.
- Mixing g/cm³ with kg/m³. The two differ by a factor of a thousand, so a density reported as 2.70 kg/m³ instead of 2700 kg/m³ describes something only about twice as dense as air, not a block of aluminum.
Sources
OpenStax University Physics Volume 1,
section 14.1,
for ρ = m/V and 1 g/cm³ = 1000 kg/m³. Its Table 14.1 gives aluminum,
concrete, iron, lead and gold at 0 °C to three figures, and its Table 14.2 gives ice, water and sea
water and water’s greatest density at 4 °C. NIST’s
X-Ray Mass Attenuation
Coefficients, Table 1, gives iron as 7.874 g/cm³, lead as 11.35 g/cm³ and gold as 19.32 g/cm³. NIST Special
Publication 811,
chapter 5,
defines the liter as 1 dm³, and its
Appendix B.9
gives 1 lb/ft³ as 16.01846 kg/m³, so 1 g/cm³ is 62.43 lb/ft³. NBS Circular 555,
Testing of
Hydrometers (1954), section 1.2, describes the specific gravity hydrometer.
Converting units first? Use the volume and mass conversion tables.
How to calculate density
- Write down the formula:
ρ = m ÷ V -
Gather the values it needs. The calculator above starts with these:
- Mass: m = 270 g
- Volume: V = 100 mL
- Substitute them and work through the arithmetic. The first worked example below runs these values, line by line.
-
To find one of the other values instead, rearrange the formula for it:
- Mass:
m = ρ · V - Volume:
V = m ÷ ρ
- Mass:
More worked examples
Each one runs through the calculator above, so the arithmetic here is the arithmetic it does.
What is the density of a block with a mass of 270 g and a volume of 100 cm3?
- rho = m / V
- = 270 g / 100 cm3
- = 2.7 g/cm3 = 2700 kg/m3
2.7 g/cm³ identifies the block as aluminum. Density is the standard way to identify an unknown solid, because it depends on what the material is and not on how much of it you have.
What volume does 1 kg of mercury occupy?
- V = m / rho
- = 1000 / 13.534
- = 73.888 cm3 = 73.888 mL
About 74 cm³, which is under a third of a mug. Mercury’s density is why a barometer only needs a tube 760 mm tall where a water barometer would need over ten meters.
Will a 5 kg object with a volume of 6 liters float in water?
- rho = m / V
- = 5000 g / 6000 cm3
- = 0.83333 g/cm3 = 833.33 kg/m3
833 kg/m³, which is below water’s 1000, so it floats with about a sixth of its volume above the surface. Floating is decided by density rather than by weight, which is why a steel ship floats and a steel bolt does not.
Common questions
Why is 1 g/cm³ the same as 1000 kg/m³?
A cubic meter contains a million cubic centimeters, and a kilogram is a thousand grams, so the conversion factor is a million divided by a thousand, which is a thousand. Water is 1 g/cm³ and therefore 1000 kg/m³.
What is specific gravity?
Density relative to water, so it is the same number as density in g/cm³ but dimensionless. Anything below 1 floats in water and anything above sinks, which is why the figure is quoted so often for minerals and liquids.