ThisCalculator

Everyday

Volume Calculator from Density and Mass

Updated · Standard formula, shown below

Volume 0.0003 m³
Volume in liters
0.32 L
Result
Mass
2.5 kg
You entered
Density
7850 kg/m³
You entered

Volume Calculator from Density and Mass

This calculator finds the volume of an object or substance when you enter its mass and density. It uses the standard formula volume = mass ÷ density, and returns the volume in the unit you choose. You can work in metric or imperial units, and the calculator handles the conversion for you.

Formula

The relationship between mass, density, and volume is one of the most fundamental in physics and engineering. It is usually written as:

Volume = Mass ÷ Density

In symbols: V = m / �

  • V = volume (cubic meters, m³; liters, L; cubic feet, ft³; etc.)
  • m = mass (kilograms, kg; grams, g; pounds, lb; etc.)
  • Ï� (rho) = density (kg/m³, g/cm³, lb/ft³, etc.)

Density itself is defined as mass per unit volume, so this formula is just a rearrangement of the definition. The key is that the units of mass and density must be compatible. For example, if mass is in kilograms, density should be in kilograms per cubic meter (kg/m³) to get volume in cubic meters. If you mix grams with kg/m³, the answer will be off by a factor of 1000.

Worked Example

Using the default values in the calculator: mass = 2.5 kg, density = 7850 kg/m³ (which is the density of carbon steel).

  1. Write down the formula: V = m / �
  2. Plug in the numbers: V = 2.5 kg ÷ 7850 kg/m³
  3. Do the division: V = 0.00031847… m³
  4. Round to 4 decimal places: V ≈ 0.0003 m³

The calculator shows 0.0003 m³ as the main result. The second output converts that to liters: 0.0003 m³ × 1000 = 0.32 L (rounded to 2 decimals). This matches what you would get if you did the conversion manually.

How to Use the Calculator

Using the calculator is straightforward, but getting the right inputs matters:

  1. Enter the mass – Use the unit that is easiest for you (kg, g, lb, etc.). The calculator assumes you enter the number in the unit shown next to the field.
  2. Enter the density – This is the tricky part. Density values are often given in g/cm³ (for solids and liquids) or kg/m³ (for gases and engineering). Make sure you use the unit that matches your mass unit, or convert first.
  3. Read the volume – The main output is in cubic meters (m³) if you used kg and kg/m³. The second output gives liters, which is handy for liquids.

If you have a mass in grams and a density in g/cm³, the volume will come out in cubic centimeters (cm³). To convert that to liters, divide by 1000 (since 1 L = 1000 cm³). The calculator does not do this automatically for you, so you may need to do that conversion yourself.

Common Unit Mix-Ups

The most frequent mistake is using inconsistent units. For example, if you have a mass of 500 g and a density of 7850 kg/m³, you cannot simply divide 500 by 7850. You must first convert grams to kilograms (0.5 kg) or convert the density to g/cm³ (7.85 g/cm³).

Here are some common density units and their conversions (approximate):

  • Water: 1000 kg/m³ = 1 g/cm³ = 1 kg/L
  • Iron/steel: ~7850 kg/m³ = 7.85 g/cm³
  • Aluminum: ~2700 kg/m³ = 2.7 g/cm³
  • Air at sea level: ~1.225 kg/m³

Another common error is confusing mass and weight. Mass is the amount of matter (in kg or lb), while weight is the force of gravity on that mass (in newtons or pounds-force). The formula uses mass, not weight. If you only know the weight, you must divide by the acceleration due to gravity (9.81 m/s²) to get mass first.

When to Use This Formula

This formula is used in countless real-world situations:

  • Shipping and logistics – Calculating the volume of a package from its weight and material density to estimate shipping costs or space.
  • Mixing liquids – If you need a certain volume of a solution but only have the mass and density, this formula tells you how much space it will occupy.
  • Engineering design – Determining the volume of a metal part from its mass (weighed) and the known density of the alloy.
  • Chemistry lab – Measuring the volume of a liquid by weighing it and using its known density.
  • Geology – Estimating the volume of a rock sample from its mass and average density.

It is also the basis for buoyancy calculations and for determining whether an object floats. If the object’s density is less than the fluid’s density, it will float; otherwise it sinks. The volume you calculate here is the total volume, which is what matters for buoyancy.

Limitations and Accuracy

This formula assumes the material is uniform – that the density is the same throughout. Many real materials are not perfectly uniform (e.g., wood, concrete, or composite materials). For those, you get an average density, and the volume you calculate is an approximation.

Also, density changes with temperature and pressure. For most solids and liquids, the change is small, but for gases it is significant. If you need high accuracy, use the density at the actual temperature and pressure of your substance. The calculator uses the density you enter, so it is up to you to provide the correct value for your conditions.

Rounding can also introduce small errors, especially if you round intermediate values. It is best to keep as many decimal places as possible until the final step.

Alternatives and Related Calculations

If you know the volume and density but need the mass, you simply rearrange the formula: mass = density × volume. This is just as common. Similarly, if you know mass and volume, you can find density: density = mass ÷ volume.

For irregularly shaped objects, you can measure volume directly by water displacement (Archimedes’ principle) and then use that to find density. The formula you are using here is the reverse – you are finding volume from mass and density.

If you are working with a mixture of substances, you need the average density of the mixture, which depends on the proportions and densities of the components. That is a more complex calculation, but this basic formula still applies once you have the average density.

Frequently Asked Questions

What units should I use for density?

Use any units, as long as they are consistent with your mass units. The calculator will give the volume in the corresponding cubic unit. For example, kg and kg/m³ give m³; g and g/cm³ give cm³. If you mix units, convert first.

How do I convert volume from cubic meters to liters?

Multiply by 1000. One cubic meter equals 1000 liters. The calculator does this for you in the second output, but you can also do it manually.

Can I use this for gases?

Yes, but remember that gas density changes a lot with temperature and pressure. Use the density at the conditions you care about. For example, air at room temperature has a density of about 1.2 kg/m³.

What if my object is hollow?

The formula gives the volume of the material itself, not the total volume including the hollow space. If you want the total volume (for shipping, for example), you need to measure the external dimensions or use water displacement.

Why is my answer so small/large?

Check your units. A common mistake is entering density in g/cm³ but mass in kg. For example, 2.5 kg of water (density 1 g/cm³) should be 2.5 liters, but if you divide 2.5 by 1 you get 2.5 cm³, which is wrong. Convert the density to kg/m³ (1000) and you get 0.0025 m³ = 2.5 L.

Does this work for liquids and solids the same way?

Yes, the formula is universal. For liquids, you often know the density from tables, and you can weigh a sample to find its volume. For solids, you can weigh the object and look up the density of the material.

Related

Formula used
in m | Mass | kg | 2.5 | 0
in d | Density | kg/m³ | 7850 | 0
out v | Volume | m³ | m / d | 4
out v_l | Volume in liters | L | (m / d) * 1000 | 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.