molecalculator

Moles & Molar Mass

Equation for Volume in Science: Formulas & Examples

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

Molarity 0.2000 mol/L
Concentration in millimolar
200.00 mM
= Molarity × 1000
Mass of solute
2.922 g
Set in the form below
Molar mass
58.44 g/mol
Set in the form below
You enter
Mass of solute (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 in science depends on the shape or state of the object: for a regular solid, volume is length × width × height (V = l × w × h); for a liquid, it is measured directly in a graduated cylinder; for a gas, it is the space the gas occupies, often found from the ideal gas law (V = nRT/P). This article explains the main volume formulas, how to choose the right one, and how to avoid common mistakes.

Formula

The calculator above uses the molarity formula, which relates volume to the amount of solute in a solution:

Molarity (M) = moles of solute / volume of solution in liters

Rearranged to solve for volume: V = n / M, where V is in liters (L), n is the amount of substance in moles (mol), and M is the molarity in moles per liter (mol/L). In the calculator, you enter the mass of solute (m, in grams), its molar mass (mm, in g/mol), and the final solution volume (v, in mL). The number of moles is m / mm, and the volume in liters is v / 1000. The first output, molarity, is the ratio of those two quantities.

Worked Example

Using the default values from the calculator: mass of solute = 2.922 g, molar mass = 58.44 g/mol (sodium chloride, NaCl), final volume = 250 mL.

  1. Convert volume to liters: 250 mL = 250 / 1000 = 0.250 L.
  2. Calculate moles of NaCl: 2.922 g / 58.44 g/mol = 0.05000 mol.
  3. Calculate molarity: 0.05000 mol / 0.250 L = 0.2000 mol/L.
  4. Convert to millimolar: 0.2000 mol/L × 1000 = 200.0 mM.

The calculator gives 0.2000 mol/L and 200.0 mM, matching the hand calculation.

Assumptions

  • The solute is pure and fully dissolves without changing the final volume.
  • The final volume is the total solution volume, not the volume of solvent added.
  • Temperature and pressure effects on volume are ignored (relevant mainly for gases).

Volume Formulas for Different Shapes

For regular solid objects, volume is calculated from geometric dimensions. Common formulas include:

  • Cube: V = a³, where a is the edge length.
  • Rectangular prism: V = l × w × h (length × width × height).
  • Sphere: V = (4/3)πr³, where r is the radius.
  • Cylinder: V = πr²h, where r is the radius of the base and h is the height.
  • Cone: V = (1/3)πr²h.

For irregular solids, volume is often found by water displacement: the volume of water displaced equals the object’s volume.

Volume in Chemistry: Gases and Solutions

In chemistry, volume is central to gas laws and solution concentration. For gases, the ideal gas law gives V = nRT/P, where n is moles, R is the gas constant (8.314 J/(mol·K) or 0.08206 L·atm/(mol·K)), T is absolute temperature in kelvin, and P is pressure. At standard temperature and pressure (STP, 0 °C and 1 atm), one mole of an ideal gas occupies 22.414 L. For solutions, molarity (mol/L) is the most common way to express concentration, and volume appears in dilution calculations (M₁V₁ = M₂V₂).

How to Choose the Right Volume Formula

Choosing the correct formula depends on what you know and what state of matter you’re dealing with:

  • If you have a regular solid and its dimensions, use the geometric formula.
  • If you have an irregular solid, use water displacement.
  • If you have a liquid, measure its volume directly with a graduated cylinder or pipette.
  • If you have a gas, use the ideal gas law or measure with a gas syringe.
  • If you need the volume of a solution from mass and concentration, use the molarity formula (as in the calculator above).

Common Mistakes and Misconceptions

  • Confusing volume with mass: Volume is a measure of space, not amount of matter. A kilogram of feathers has a much larger volume than a kilogram of iron.
  • Forgetting to convert units: Always convert mL to L (divide by 1000) and cm³ to mL (1 cm³ = 1 mL) before using formulas.
  • Using the wrong gas constant: The ideal gas constant R has different values depending on pressure units (0.08206 L·atm/(mol·K) vs 8.314 J/(mol·K)).
  • Assuming 1 mL = 1 g for all substances: That’s only true for water at 4 °C. Density varies.

Practical Applications and Limits

Volume calculations are used in cooking (measuring ingredients), construction (concrete volume), medicine (though not for dosing here), and countless lab procedures. The formulas have limits: geometric formulas assume perfect shapes, the ideal gas law assumes low pressure and high temperature, and molarity assumes the solute doesn’t change the solution volume significantly (true for dilute solutions). For precise work, always use calibrated glassware and account for temperature, as liquids expand and contract.

Frequently Asked Questions

What is the formula for volume of a rectangular prism?

The volume is length × width × height (V = l × w × h). All three dimensions must be in the same unit (e.g., all in cm) to get volume in cubic centimeters (cm³).

How do I find the volume of an irregular object?

Use water displacement: fill a graduated cylinder with a known volume of water, submerge the object, and record the new volume. The difference is the object’s volume. This works because the object displaces its own volume of water.

What is the difference between volume and capacity?

Volume is the amount of space an object occupies, while capacity is the amount of fluid a container can hold. They are often used interchangeably, but capacity is typically measured in liters or gallons, while volume can be in cubic meters or cubic feet.

How do I convert mL to L?

Divide the number of milliliters by 1000. For example, 250 mL = 0.250 L. Conversely, multiply liters by 1000 to get milliliters.

Why does the ideal gas law require temperature in kelvin?

Kelvin is an absolute temperature scale starting at absolute zero, where gas volume would theoretically be zero. Using Celsius or Fahrenheit would give incorrect proportional relationships because they have arbitrary zero points.

Can I use the molarity formula for any solute?

Yes, but the solute must dissolve completely and not react or change volume significantly. For ionic compounds like NaCl, you need the molar mass of the whole formula unit. For acids or bases that dissociate, molarity refers to the concentration of the solute as added, not the ions produced.

Related

Formula used
in m | Mass of solute | 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 →