molecalculator

Moles & Molar Mass

Equation to Get Volume: Formulas & Examples

Calculator No. 01-7453 · Updated · Formula and assumptions shown below

Volume 2.922 mL
Volume in liters
0.002922 L
= Volume ÷ 1000
Mass of substance
2.922 g
Set in the form below
Density
1 g/mL
Set in the form below
You enter
Mass of substance (g), Density (g/mL)
You get
Volume (mL), Volume in liters (L)
Rounding
3 dp · 4 dp

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

The equation to get volume depends on the shape or substance you are measuring. For a rectangular box, volume = length × width × height; for a cylinder, volume = π × radius² × height. This article covers the standard formulas for common shapes, how to use them, and how to handle irregular objects and liquids.

Formula

The most general equation for volume when you know mass and density is:

V = m / ρ

where:

  • V = volume (in mL, L, cm³, m³, etc.)
  • m = mass of the substance (in g or kg)
  • ρ (rho) = density (in g/mL, g/cm³, kg/m³, etc.)

For geometric shapes, volume is a function of dimensions. The most common ones are:

  • Rectangular prism (box): V = l × w × h (length, width, height)
  • Cube: V = a³ (a = edge length)
  • Cylinder: V = π r² h (r = radius, h = height)
  • Sphere: V = (4/3) π r³
  • Cone: V = (1/3) π r² h
  • Pyramid: V = (1/3) × base area × height

Worked Example

Using the calculator defaults: you have 2.922 g of sodium chloride (NaCl) and its density is 1.00 g/mL (this is the density of a dilute salt solution, not pure solid NaCl which is about 2.16 g/mL). To find the volume:

  1. Write the formula: V = m / ρ
  2. Plug in the numbers: V = 2.922 g / 1.00 g/mL
  3. Calculate: V = 2.922 mL
  4. Convert to liters: 2.922 mL ÷ 1000 = 0.002922 L

The calculator shows 2.922 mL and 0.0029 L (rounded to 4 decimal places). This matches.

Assumptions

  • Density is constant and uniform throughout the substance.
  • The substance is not compressible (true for most liquids and solids at normal pressures).
  • For the geometric formulas, the shape is perfect and dimensions are measured accurately.

When to Use Which Formula

Choose the volume equation based on what you know and what you are measuring.

  • If you have a regularly shaped object (box, cylinder, sphere), measure its dimensions and apply the corresponding geometric formula. This is exact for ideal shapes.
  • If you have an irregular solid (a rock, a key), use water displacement: fill a graduated cylinder with a known volume of water, submerge the object, and read the new volume. The difference is the object’s volume.
  • If you know the mass and density of a liquid or solid, use V = m/ρ. This is common in chemistry when preparing solutions or converting between mass and volume.
  • For gases, volume depends on temperature and pressure. The ideal gas law (PV = nRT) gives volume when you know moles, temperature, and pressure.

Common Mistakes and How to Avoid Them

  • Mixing up radius and diameter: For cylinders and spheres, always use the radius (half the diameter). If you are given the diameter, divide by 2 first.
  • Unit inconsistencies: If you measure length in cm, volume comes out in cm³ (which equals mL). If you measure in meters, volume is in m³. Never mix cm and m in the same formula without converting.
  • Density units: Density is often given in g/mL or g/cm³. If you have mass in kg and density in g/mL, convert mass to grams first (1 kg = 1000 g).
  • Forgetting π: The constant π (≈3.14159) is part of cylinder, sphere, and cone formulas. Omitting it changes the result by a factor of about 3.
  • Rounding too early: Round only at the final step. If you round π to 3.14 early, you may introduce a small error in multi-step calculations.

Volume of Liquids and Solutions

In a lab, liquid volume is typically measured with a graduated cylinder, pipette, or volumetric flask. These tools are calibrated at a specific temperature (often 20 °C) because liquids expand and contract with temperature. The equation V = m/ρ is useful when you need to prepare a solution of a given concentration: if you know the mass of solute and the desired molarity, you can calculate the required volume of solvent.

For example, to make 0.5 M NaCl solution, you need 0.5 moles per liter. If you have 2.922 g of NaCl (molar mass 58.44 g/mol), that is 0.05 moles. To get 0.5 M, you need 0.1 L (100 mL) of final solution. The calculator above gives you the volume if you know mass and density, but for solutions, the final volume is often set by the flask, not calculated from density.

Volume in Real Life: Examples

  • Aquarium: A tank 60 cm long, 30 cm wide, and 40 cm high has volume = 60 × 30 × 40 = 72,000 cm³ = 72 liters. This tells you how much water it holds (ignoring the glass thickness).
  • Concrete for a slab: A slab 3 m × 2 m × 0.1 m has volume = 0.6 m³. Concrete is sold by cubic yard or cubic meter, so this tells you how much to order.
  • Sphere of a ball: A basketball with radius 12 cm has volume = (4/3)π(12)³ ≈ 7,238 cm³ ≈ 7.24 liters. This is the volume of air inside.
  • Medicine dosing: (Not for clinical use) If a liquid medicine has a density of 1.1 g/mL and you need 550 mg of the active ingredient, you would need 0.5 mL of the liquid if the concentration is 1.1 g/mL. Always follow the prescription, never self-calculate.

Frequently Asked Questions

How do I find volume from density and mass?

Use the formula V = m/ρ. For example, if you have 10 g of water (density 1 g/mL), the volume is 10 mL. Make sure your mass and density units match (e.g., grams with g/mL).

What is the formula for volume of a cylinder?

V = π r² h, where r is the radius of the circular base and h is the height. If you have a cylinder with radius 5 cm and height 10 cm, V = π × 25 × 10 ≈ 785.4 cm³.

How do I measure the volume of an irregular object?

Use water displacement. Fill a graduated cylinder with a known volume of water, record it, then gently submerge the object. The water level rises; the difference between the final and initial readings is the object’s volume. This works because the object displaces its own volume of water.

Is volume the same as capacity?

Capacity usually refers to the maximum volume a container can hold, while volume is the space an object occupies. For a container, the internal volume is its capacity. For example, a bottle may have a capacity of 1 liter, meaning it can hold 1 liter of liquid.

What is the difference between volume and surface area?

Volume measures the space inside a 3D object (in cubic units), while surface area measures the total area of all its faces (in square units). For a cube with side 2 cm, volume is 8 cm³ and surface area is 24 cm². They are different quantities and cannot be converted directly.

Why does the volume of a gas depend on temperature and pressure?

Gases are compressible. According to the ideal gas law (PV = nRT), if temperature increases, volume increases (at constant pressure); if pressure increases, volume decreases. This is why gas volumes are usually reported at standard temperature and pressure (STP).

Related

Formula used
in m | Mass of substance | g | 2.922 | 0
in d | Density | g/mL | 1.00 | 0
out v | Volume | mL | m / d | 3
out vl | Volume in liters | L | v / 1000 | 4

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 with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.

More in this section

The whole Moles & Molar Mass section →