ThisCalculator

Everyday

Density Mass Volume Calculator: Formula & Examples

Updated · Standard formula, shown below

Density 2.00 g/cm³
Mass
100 g
You entered
Volume
50 cm³
You entered

Density Mass Volume Calculator: Formula & Examples

This calculator works out density, mass, or volume when you provide the other two values. You enter two known quantities (with units), and it returns the missing one, using the standard density formula. The result is given with the correct derived unit, such as g/cm³, kg/m³, or L.

Formula

The relationship between density, mass, and volume is expressed as:

Density = Mass ÷ Volume

In symbols: � = m / V

  • Ï� (rho) – density, typically in grams per cubic centimeter (g/cm³) or kilograms per cubic meter (kg/m³)
  • m – mass, typically in grams (g) or kilograms (kg)
  • V – volume, typically in cubic centimeters (cm³) or cubic meters (m³)

You can rearrange the formula to solve for mass or volume:

  • Mass = Density × Volume
  • Volume = Mass ÷ Density

Worked Example

Using the default values from the calculator above (mass = 100 g, volume = 50 cm³):

  1. Write the formula: � = m / V
  2. Substitute the values: � = 100 g / 50 cm³
  3. Divide: � = 2 g/cm³

The calculator returns 2.00 g/cm³, which matches the manual calculation.

When to Use This Calculation

You’ll need this formula in many everyday and scientific situations:

  • Identifying a material: Pure substances have characteristic densities. For example, gold is about 19.3 g/cm³, while aluminum is about 2.7 g/cm³. Measuring density can help you identify an unknown solid.
  • Checking if an object floats: An object floats if its density is less than the fluid it’s placed in. For water, that’s about 1 g/cm³.
  • Converting between mass and volume: When you know a material’s density, you can convert a measured mass to a volume (or vice versa) without measuring both.
  • Quality control: In manufacturing, density can reveal impurities or structural flaws.
  • Recipe scaling: In cooking, if you know the density of an ingredient, you can convert between weight and volume.

How to Read the Result

The density value tells you how much mass is packed into a given volume. A higher number means the material is more dense. For example:

  • Water: 1.0 g/cm³
  • Iron: 7.9 g/cm³
  • Air at sea level: about 0.0012 g/cm³

If you’re working with liquids, you may see density in g/mL – numerically the same as g/cm³. For gases, densities are much lower and often expressed in kg/m³ (e.g., air ≈ 1.2 kg/m³).

Remember that density changes with temperature and pressure. Most solids and liquids expand slightly when heated, so their density decreases. Gases are especially sensitive to pressure changes.

Common Mistakes and Unit Mix-Ups

The most frequent error is mixing units without converting. For example, if you enter mass in kilograms and volume in cubic centimeters, you’ll get a density that’s off by a factor of 1,000. Always convert to a consistent unit system first.

  • Metric: Use kg/m³ or g/cm³. 1 g/cm³ = 1,000 kg/m³.
  • Imperial: Density is sometimes given in pounds per cubic foot (lb/ft³) or pounds per gallon (lb/gal).

Another common mistake is using volume in milliliters (mL) when the mass is in grams – that’s fine because 1 mL = 1 cm³. But if you use liters, you must convert to cm³ (1 L = 1,000 cm³) or use kg/L (which equals g/cm³).

Rounding too early can also cause errors. Keep extra digits during intermediate steps, and only round the final answer.

Limits of the Formula

The simple formula assumes a uniform, homogeneous material. It does not work for:

  • Mixtures with air gaps – like foam or porous rock, where the bulk density differs from the material density.
  • Solutions – the density of a mixture is not simply the average of the components’ densities; it depends on how the molecules interact.
  • Temperature-dependent measurements – if you need high precision, you must control and record temperature.

For irregular objects, you can measure volume by water displacement (Archimedes’ principle) instead of calculating from dimensions.

Alternatives and Related Calculations

If you need to find volume of a regular shape (cube, sphere, cylinder), you can calculate it from dimensions first, then use the density formula. For irregular shapes, use water displacement.

Related concepts include:

  • Specific gravity – the ratio of a material’s density to the density of water. It is dimensionless.
  • Bulk density – mass of a powder or soil divided by its total volume, including pores.
  • Molecular weight and molar volume – for gases, density can be related to molar mass via the ideal gas law.

Frequently Asked Questions

How do I find volume if I know density and mass?

Rearrange the formula: Volume = Mass ÷ Density. For example, if you have 200 g of a substance with density 2 g/cm³, the volume is 200 ÷ 2 = 100 cm³.

What is the density of water?

At 4°C, pure water has a density of exactly 1 g/cm³ (or 1,000 kg/m³). This is the standard reference for specific gravity.

Can density be negative?

No. Mass and volume are always positive, so density is always positive. A negative value would indicate an error in measurement or calculation.

Why does ice float on water?

Ice is less dense than liquid water because water expands when it freezes. Ice has a density of about 0.92 g/cm³, so it floats.

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

Multiply g/cm³ by 1,000 to get kg/m³. For example, 2 g/cm³ = 2,000 kg/m³. Conversely, divide kg/m³ by 1,000 to get g/cm³.

What if I have the volume in liters?

Convert liters to cubic centimeters first: 1 L = 1,000 cm³. Then use the formula normally. Or use the equivalent unit g/L for density, but note that 1 g/L = 0.001 g/cm³.

Related

Formula used
in m | Mass | g | 100 | 0
in v | Volume | cm³ | 50 | 0
out d | Density | g/cm³ | m / v | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.