Density Calculator

Find density, mass, or volume from any two known values, in any common unit.

Last updated:

Was this calculator helpful?

★ ★ ★ ★ ★
Embed this calculator

Calculation Examples

Calculation Case Result
Mass 500 g, Volume 250 cm³ Density = 2 g/cm³
Mass 25 kg, Density 200 kg/m³ Volume = 0.125 m³
Water at 4 °C About 999.97 kg/m³ (0.99997 g/cm³)
Gold vs lead reference density 19.3 g/cm³ vs 11.34 g/cm³, gold is about 1.7 times denser
Mihail Doncenco
Mihail Doncenco Site Creator & Calculator Expert

Founder and developer of CalcMate. Builds and maintains every calculator on this site, focusing on formula accuracy and clear, practical results.

Using the Density Calculator: Step by Step

Enter any two of the three values: mass, volume, or density. The calculator solves for the third and converts units automatically, so you only need to pick your units from the dropdown menus.

Density work shows up in materials science, chemistry, engineering, and fluid mechanics: identifying an unknown metal, checking alloy purity, estimating shipping loads, and solving buoyancy and displacement problems.

How Are Density Calculations Performed?

The calculator uses \(\rho = m/V\), where \(\rho\) (rho) is density, \(m\) is mass, and \(V\) is volume. Fill in any two values and it rearranges the formula for the third: \(V = m/\rho\) for volume and \(m = \rho V\) for mass. Units must match: grams with cubic centimeters give g/cm³, kilograms with cubic meters give kg/m³. Two conversions cause most manual errors: \(1\ \text{g/cm}^3 = 1000\ \text{kg/m}^3\) and \(1\ \text{L} = 0.001\ \text{m}^3 = 1000\ \text{cm}^3\). Example: a 2.5 kg block with a volume of 0.0005 m³ has \(\rho = 2.5/0.0005 = 5000\ \text{kg/m}^3\), which is 5 g/cm³.Density Formula Triangle: rho = m divided by V

Useful Tips 💡

  • Keep unit families consistent. Grams pair with cubic centimeters for g/cm³, and kilograms pair with cubic meters for kg/m³. Mixing grams with liters, for example, shifts the result by a factor of 1,000.
  • Always note the temperature. Water reaches its maximum density of about 999.97 kg/m³ at 4 °C and is less dense both above and below that point, which is why ice floats. Reference tables for metals usually assume 20 °C.

📋Steps to Calculate

  1. Enter any two known values: mass, volume, or density.

  2. Select the correct units for each input from the dropdown menus.

  3. Click "Calculate" to find the unknown third value with automatic unit conversion.

Mistakes to Avoid ⚠️

  1. Confusing mass with weight. Mass stays the same in any gravitational field, while weight is a force in newtons. The density formula uses mass.
  2. Converting liters to cubic meters with the wrong factor. One liter is 0.001 m³. Using 0.01 or 0.1 instead makes the volume 10 or 100 times too large and the density 10 or 100 times too small.
  3. Treating water as exactly 1,000 kg/m³ at every temperature. At 20 °C it is about 998.2 kg/m³, and at 100 °C it is about 958.4 kg/m³, which is 4.2% lower than the 4 °C value. That gap matters in thermal engineering.

Applying Density Calculator Results📊

  1. Check an alloy: a metal sample with a mass of 850 g and a volume of 100 cm³ has a density of 8.5 g/cm³. That sits inside the brass range (about 8.4 to 8.7 g/cm³) and clearly below pure copper (8.96 g/cm³).

  2. Predict buoyancy: an object with a density of 0.95 g/cm³ floats in water (about 1.00 g/cm³) but sinks in ethanol (0.789 g/cm³ at 20 °C), because 0.95 is above ethanol's density and below water's.

  3. Estimate shipping volume: a 25 kg package with an average density of 200 kg/m³ occupies 0.125 m³. Carriers compare this kind of low-density load against actual weight when they decide between actual and dimensional weight billing.

  4. Identify an unmarked metal: a block of 8 cm³ with a mass of 71.7 g has a density of 8.96 g/cm³, which matches copper's reference value. Pair it with the Volume Calculator to find a shape's volume and the Mass and Weight Converter to convert mass units.

Questions and Answers

Does the density of a substance change with shape or size?

No, density does not depend on the shape or size of a sample. It depends on the material, its temperature, and its pressure. A gold ring and a gold bar both have a density of 19.3 g/cm³, even though their masses differ by orders of magnitude. That constancy is why density helps identify materials: a measured value far from the reference suggests an impurity, hidden voids, or a measurement error. Temperature and pressure do change density, strongly for gases and slightly for liquids and solids.

How do I find the volume of an irregular object using density?

Use water displacement: submerge the object in a graduated container and read the volume of water it pushes aside, which equals the object's volume (Archimedes' principle). Divide the measured mass by that volume to get density with \(\rho = m/V\). If the material is already known, you can go the other way and compute \(V = m/\rho\) from its reference density. Manufacturers use this second route in quality control. For example, a part cast in aluminum (2.70 g/cm³) that weighs 540 g should have a volume of \(540/2.70 = 200\ \text{cm}^3\). A noticeably lower mass points to internal voids.

How does density determine whether an object floats or sinks?

An object floats when its average density is lower than the density of the fluid, and it sinks when its average density is higher. The reason is Archimedes' principle: a submerged object feels an upward buoyant force equal to the weight of the fluid it displaces. In water (about 1 g/cm³), wood (roughly 0.4 to 0.9 g/cm³) and ice (0.917 g/cm³) float. Steel (about 7.85 g/cm³) sinks as a solid block, yet a steel ship floats because its average density, steel plus the air inside the hull, is below that of water. The same logic works in gases: helium (about 0.000179 g/cm³ at 0 °C and 1 atm) rises in air (about 0.00129 g/cm³ at the same conditions).

How does temperature affect density?

Heating usually lowers density, because the mass stays the same while the volume grows. Most solids and liquids expand slightly, but gases change a lot: at constant pressure, ideal-gas density is inversely proportional to absolute temperature, \(\rho = PM/(RT)\), where \(P\) is pressure, \(M\) is molar mass, \(R\) is the gas constant, and \(T\) is temperature in kelvin. Air at 101.325 kPa has a density of about 1.292 kg/m³ at 0 °C and 1.204 kg/m³ at 20 °C. Water is the well-known exception: it is densest at 4 °C and expands as it cools toward freezing, so ice (0.917 g/cm³) floats. For engineering work, use density measured at your operating temperature rather than a room-temperature table value.

What are the reference densities of common materials?

Common reference densities near room temperature are, in g/cm³: water 1.00 (0.99997 at 4 °C), ice 0.917, aluminum 2.70, titanium 4.51, iron 7.87, copper 8.96, lead 11.34, mercury 13.53, and gold 19.30. For gases at 0 °C and 1 atm, approximate values are air 0.00129, oxygen 0.00143, hydrogen 0.0000899, and helium 0.000179. Exact figures vary a little between sources and with alloy composition, purity, and temperature. Compare your measured result against a source such as the CRC Handbook of Chemistry and Physics, and treat a gap of more than a few percent as a sign of impurity, voids, or a measurement error.

What is a density calculator and what problems does it solve?

A density calculator finds the third value of density, mass, or volume when you know the other two, using \(\rho = m/V\). Here \(\rho\) is density in kg/m³ or g/cm³, \(m\) is mass in kg or g, and \(V\) is volume in m³ or cm³. People use it to identify unknown substances by comparing the result with reference values, to check whether an object floats, to verify the purity of metals and alloys, and to work out material quantities in manufacturing. For example, 500 g in 250 cm³ gives \(\rho = 500/250 = 2\ \text{g/cm}^3\).

What is the standard formula for calculating density?

Density equals mass divided by volume: \(\rho = m/V\). Rearranged, \(m = \rho V\) gives mass and \(V = m/\rho\) gives volume. The SI unit is kg/m³, while g/cm³ is common in laboratories, and the two are linked by \(1\ \text{g/cm}^3 = 1000\ \text{kg/m}^3\). Gases are usually quoted in kg/m³ or g/L because g/cm³ values are tiny: air at 20 °C and 101.325 kPa is about 1.204 kg/m³, or 0.001204 g/cm³.

What is the standard unit for measuring density?

The SI unit of density is kilograms per cubic meter (kg/m³). Chemists and materials scientists usually prefer g/cm³ because common materials get convenient numbers: water is about 1 g/cm³, aluminum 2.70, iron 7.87, and gold 19.3. US engineering often uses pounds per cubic foot, and the three units line up as \(1\ \text{g/cm}^3 = 1000\ \text{kg/m}^3 \approx 62.43\ \text{lb/ft}^3\). In the calculator, picking matching mass and volume units gives the matching density unit with no manual conversion.
Disclaimer: This calculator is designed to provide helpful estimates for informational purposes. While we strive for accuracy, financial (or medical) results can vary based on local laws and individual circumstances. We recommend consulting with a professional advisor for critical decisions.