Xerobit

Density Calculator: Find Mass, Volume or Density

This density calculator finds the missing value when you know any two of density, mass and volume. Enter two numbers, leave the third blank, and the result appears immediately. The formula used is density equals mass divided by volume, and everything runs in your browser without uploading data.

Result

  • Density
    5 kg/m³

How to use the density calculator

  1. Enter any two of the three values: density, mass or volume.
  2. Leave the field you want to find completely blank.
  3. The density calculator computes the missing value instantly as you type.
  4. Check the result row for your answer in standard SI units.

How the density formula works

Density is defined as mass per unit volume. The relationship between these three quantities is expressed as:

density = mass / volume

Depending on which value you need, the formula rearranges to mass = density * volume or volume = mass / density. For example, if you have a block of aluminium with a mass of 5.4 kg and you know aluminium has a density of 2,700 kg/m³, the volume is 5.4 / 2700 = 0.002 m³, which equals 2 litres.

Common material densities

This reference table lists approximate densities of everyday materials at room temperature and standard pressure. Use these values as inputs for the density calculator when you know the mass or volume of an object.

MaterialDensity (kg/m³)
Air (sea level, 15 °C)1.225
Pine wood500
Water (4 °C)1,000
Concrete2,400
Aluminium2,700
Iron7,874
Copper8,960
Lead11,340
Gold19,320

Unit conversions for density calculations

The density calculator uses SI units: kilograms for mass, cubic metres for volume and kilograms per cubic metre for density. If your measurements are in other units, convert them first.

  • Grams to kilograms: divide by 1,000. A mass of 250 g becomes 0.25 kg.
  • Cubic centimetres to cubic metres: divide by 1,000,000. A volume of 500 cm³ becomes 0.0005 m³.
  • Litres to cubic metres: divide by 1,000. A volume of 3 L becomes 0.003 m³.
  • g/cm³ to kg/m³: multiply by 1,000. Water at 1 g/cm³ equals 1,000 kg/m³.

After converting, enter the SI values into the appropriate fields and leave the unknown blank.

Practical uses of density

Determining density is useful across many fields. In engineering, knowing the density of a material lets you calculate how heavy a structural component will be before manufacturing it. In shipping and logistics, freight carriers charge based on volumetric weight, which depends directly on the density of the cargo.

In chemistry, density helps identify unknown substances or verify purity. A jeweller can test whether a ring is solid gold by measuring its mass and volume displacement, then comparing the calculated density against the known value of 19,320 kg/m³. Buoyancy also relies on density: objects less dense than the surrounding fluid float, while denser objects sink.

Common mistakes to avoid

The most frequent error when using a density calculator is mixing unit systems. Entering mass in pounds alongside volume in cubic metres produces a meaningless number. Always convert to consistent SI units before calculating.

Another mistake is confusing mass with weight. Mass is the amount of matter in an object and stays constant regardless of location. Weight is the gravitational force acting on that mass and changes depending on where you are. Density depends on mass, not weight.

Finally, remember that density changes with temperature and pressure, especially for gases. The reference values in the table above assume standard conditions. If precision matters, use the density measured at your specific temperature and pressure.

Worked examples

Each result below was produced by the same code the tool runs, so you can check your own numbers against them.

ExampleInputResult
Density of waterMass (kg): 1; Volume (m³): 0.001Density: 1,000 kg/m³
Mass of an iron blockDensity (kg/m³): 7874; Volume (m³): 0.5Mass: 3,937 kg
Volume of a gold barDensity (kg/m³): 19320; Mass (kg): 12.4Volume: 0.000641821946 m³
Air at sea levelMass (kg): 1.225; Volume (m³): 1Density: 1.225 kg/m³

FAQ

What is the formula for density?

Density equals mass divided by volume, written as ρ = m / V. The standard SI unit is kilograms per cubic metre (kg/m³).

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

Multiply density by volume. For example, 2 cubic metres of a material with a density of 1,500 kg/m³ gives a mass of 3,000 kg.

Why does the calculator require exactly two values?

The relationship between density, mass and volume has three variables. Knowing any two uniquely determines the third through algebraic rearrangement.

Can I use grams and millilitres instead of kilograms and cubic metres?

This density calculator expects SI units. Convert grams to kilograms by dividing by 1,000, and millilitres to cubic metres by dividing by 1,000,000 before entering your values.

Does temperature affect density?

Yes. Most materials expand when heated, increasing their volume while mass stays constant, which lowers density. This effect is small for solids but significant for liquids and gases.

Is my data sent to a server?

No. All calculations happen locally in your browser. Nothing you type is uploaded anywhere.