molecalculator

Moles & Molar Mass

Equation for Volume: Formulas and How to Use Them

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

Molarity 0.2000 mol/L
Concentration in millimolar
200.00 mM
= Molarity × 1000
Mass of substance
2.922 g
Set in the form below
Molar mass
58.44 g/mol
Set in the form below
You enter
Mass of substance (g), Molar mass (g/mol), Final solution volume (mL)
You get
Molarity (mol/L), Concentration in millimolar (mM)
Rounding
4 dp · 2 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 for volume depends on the shape of the object or the state of matter you are measuring. For a rectangular prism, volume equals length × width × height (V = lwh); for a gas or liquid, volume is often found from density (V = m/ρ) or from the ideal gas law (V = nRT/P). This article explains the most common volume formulas, how to choose the right one, and how to avoid the unit errors that cause most calculation mistakes.

Formula

The calculator above finds the volume of a solution needed to achieve a given molarity, but the general volume equations you will meet most often are:

  • Rectangular prism (box): V = l × w × h, where l = length, w = width, h = height (all in the same unit).
  • Sphere: V = (4/3)πr³, where r = radius.
  • Cylinder: V = πr²h, where r = base radius and h = height.
  • Cone: V = (1/3)πr²h.
  • Density relation: V = m / ρ, where m = mass and ρ = density.
  • Ideal gas: V = nRT / P, where n = amount in moles, R = 8.31446261815324 J/(mol·K), T = absolute temperature in kelvin, P = pressure in pascals.

For the molarity calculator above, the relevant equation is V = m / (M × C), where m = mass of solute (g), M = molar mass (g/mol), C = desired concentration (mol/L). The volume comes out in liters; the calculator converts it to mL by multiplying by 1000.

Worked Example

Using the default values from the calculator: you have 2.922 g of sodium chloride (NaCl, molar mass 58.44 g/mol) and want a 250 mL solution. What is the molarity?

  1. Convert volume to liters: 250 mL = 250 / 1000 = 0.250 L.
  2. Calculate moles of NaCl: moles = mass / molar mass = 2.922 g / 58.44 g/mol = 0.05000 mol (exactly 0.05, rounded to 5 significant figures).
  3. Molarity = moles / volume (L) = 0.05000 mol / 0.250 L = 0.2000 mol/L.
  4. The calculator gives 0.2000 mol/L (displayed as 0.2 with 4 decimals) and 200.00 mM.

So a 2.922 g sample of NaCl in 250 mL of water gives a 0.2 M (200 mM) solution.

Assumptions

  • The molarity formula assumes the solute dissolves completely and the final volume is exactly the stated volume (not the volume of solvent added).
  • Density-based volume assumes a homogeneous substance at the given temperature; density changes with temperature.
  • The ideal gas law assumes low pressure and high temperature (ideal behavior), which is a good approximation for most gases at room conditions.
  • For solutions, the calculator assumes you are measuring the final volume after dissolution, not the solvent volume before mixing.

How to Choose the Right Volume Formula

Ask two questions: What is the shape? and What information do I already have?

  • If you have a regular geometric shape (box, sphere, cylinder, cone), use the corresponding formula with direct measurements.
  • If you have mass and density, use V = m/ρ. This works for liquids, solids, and even irregular objects (by water displacement).
  • If you are dealing with a gas and know pressure, temperature, and moles, use the ideal gas law.
  • If you are preparing a solution of known concentration, use the molarity relation: V = mass / (molar mass × molarity).

For irregular solids, the water displacement method is the practical way: the volume of water displaced equals the object’s volume (1 mL = 1 cm³).

Common Mistakes and Unit Mix-Ups

Most volume errors come from inconsistent units. Here are the frequent pitfalls:

  • Mixing cm and m: If length is in cm, volume is in cm³ (mL); if in m, volume is in m³. 1 m³ = 1000 L, 1 cm³ = 1 mL.
  • Forgetting to convert mL to L in molarity calculations. Always divide mL by 1000.
  • Using diameter instead of radius in sphere/cylinder formulas. Radius = diameter/2.
  • Confusing mass and weight: Density uses mass (g or kg), not weight (N). On Earth, 1 kg weighs about 9.8 N, but density tables give mass per volume.
  • Rounding too early: Keep at least 4 significant figures until the final step. For example, 2.922 / 58.44 = 0.05000, not 0.05 if you need precision.

Always check that your final units make sense: a volume should be in liters, mL, m³, or cm³, not in g or mol.

Real-World Applications of Volume Calculations

Volume formulas are used in countless everyday and scientific contexts:

  • Cooking and baking: Measuring cups use volume (cups, mL) but recipes often assume a certain density for flour or sugar.
  • Medicine and pharmacy: Dosages are often based on volume of solution, but this page does not provide medical dosing advice.
  • Engineering and construction: Concrete volume for a slab is length × width × thickness.
  • Aquariums and pools: Water volume in gallons or liters is calculated from dimensions.
  • Chemistry labs: Preparing solutions of exact molarity requires precise volume measurement.

In each case, the same principles apply: measure accurately, use consistent units, and choose the correct formula for the shape or state.

Limitations of Volume Formulas

All volume formulas have limits. For geometric shapes, they assume perfect regularity—real objects may be slightly irregular. The density formula assumes uniform density; a mixture or porous object will give an average density. The ideal gas law fails at high pressure or low temperature where intermolecular forces become significant; for such conditions, use the van der Waals equation or other real-gas models. For solutions, the final volume is not always the sum of the volumes of solute and solvent (e.g., mixing ethanol and water gives a smaller volume than the sum). Always measure the final volume after mixing, not the sum of components.

Frequently Asked Questions

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. Use the same unit for r and h; the volume will be in cubic units (e.g., cm³ if r and h are in cm).

How do I find volume from density and mass?
Divide mass by density: V = m/ρ. For example, if a substance has a density of 2 g/mL and you have 10 g, the volume is 10 / 2 = 5 mL. Ensure mass and density use compatible units (g with g/mL, kg with kg/m³).

How do I calculate the volume of a gas at STP?
At standard temperature and pressure (0 °C, 1 atm), one mole of an ideal gas occupies 22.414 L. So volume = moles × 22.414 L/mol. For non-STP conditions, use the ideal gas law V = nRT/P.

Why is the volume of a solution not the sum of solute and solvent volumes?
When a solute dissolves, the particles fit into the spaces between solvent molecules, and interactions can change the packing. For example, mixing 50 mL water with 50 mL ethanol gives about 96 mL, not 100 mL. Always measure the final volume after mixing.

What is the difference between volume and capacity?
Volume is the amount of space an object occupies; capacity is the amount of fluid a container can hold. They use the same units (liters, mL, m³), but capacity is often used for containers like cups or tanks.

How do I convert between mL and cm³?
They are exactly equal: 1 mL = 1 cm³. This is because 1 L = 1000 cm³ and 1 mL = 1/1000 L, so 1 mL = 1 cm³.

Related

Formula used
in m | Mass of substance | g | 2.922 | 0
in mm | Molar mass | g/mol | 58.44 | 0.001
in v | Final solution volume | mL | 250 | 0.001
out c | Molarity | mol/L | m / mm / (v / 1000) | 4
out cmm | Concentration in millimolar | mM | c * 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 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 →