The equation for volume in chemistry depends on what you are measuring: for solutions, volume is calculated from molarity as V = n / M (volume = moles ÷ molarity); for gases, volume is found from the ideal gas law as V = nRT / P. This page focuses on the solution-volume equation, which is the most common in lab work, and also covers the gas-law version and how to convert between them.
Formula
The core equation for solution volume is derived from the definition of molarity:
Molarity (M) = moles of solute (n) / volume of solution (V in liters)
Rearranged to solve for volume:
V (L) = n (mol) / M (mol/L)
If you start with a mass of solute, you first convert mass to moles using the molar mass:
n = m / MM, where m is mass in grams and MM is molar mass in g/mol.
Combining these gives the equation used in the calculator:
V (L) = (m / MM) / M, or equivalently V (mL) = (m / MM) × (1000 / M).
Variables:
- V – volume of solution in liters (L) or milliliters (mL). 1 L = 1000 mL.
- n – amount of solute in moles (mol).
- M – molarity in moles per liter (mol/L, written as M).
- m – mass of solute in grams (g).
- MM – molar mass of the solute in grams per mole (g/mol). For NaCl, MM = 58.44 g/mol.
For gases, the ideal gas law gives volume as:
V = nRT / P, where n is moles, R is the gas constant (0.0820574 L·atm/(mol·K) when using atm), T is absolute temperature in kelvin, and P is pressure in atm.
Worked Example
Using the calculator defaults: you have 2.922 g of NaCl (molar mass 58.44 g/mol) and want to make 250 mL of solution. What is the molarity?
- Convert mass to moles: n = 2.922 g / 58.44 g/mol = 0.05000 mol.
- Convert volume to liters: V = 250 mL × (1 L / 1000 mL) = 0.250 L.
- Calculate molarity: M = 0.05000 mol / 0.250 L = 0.2000 mol/L.
The calculator gives 0.2000 mol/L (or 200.0 mM). This means you would need 0.05000 mol of NaCl dissolved and then diluted to a total volume of 250 mL to get a 0.2000 M solution.
Assumptions
- The solution volume is the final total volume, not the volume of solvent added. You dissolve the solute in some solvent, then add more solvent to reach the exact final volume.
- The solute is pure and completely dissolves; no volume change upon mixing (an ideal solution).
- Temperature is assumed to be room temperature (about 25 °C) unless stated otherwise; molarity changes slightly with temperature because volume changes.
- For gases, the ideal gas law assumes no intermolecular forces and negligible molecular volume; this is a good approximation at low pressure and high temperature.
How to Choose the Right Equation
Ask yourself: are you dealing with a solution (liquid) or a gas?
- Solution with known molarity and moles: use V = n / M.
- Solution with known mass and desired molarity: first convert mass to moles (n = m/MM), then use V = n / M.
- Gas at known pressure and temperature: use V = nRT / P.
- Dilution problem: use M₁V₁ = M₂V₂ to find the volume of stock solution needed.
- Concentration in percent or ppm: use the definition (e.g., % w/v = mass (g) / volume (mL) × 100%).
Always check units: molarity is mol/L, so volume must be in liters for the formula. If you have mL, divide by 1000 first.
Common Mistakes and Misconceptions
- Using solvent volume instead of solution volume: The final volume includes the solute. If you add 250 mL of water to a solid, the total volume is usually more than 250 mL. Always dilute to the mark in a volumetric flask.
- Unit mix-ups: Forgetting to convert mL to L is the most common error. For example, using 250 in the formula instead of 0.250 gives a molarity 1000 times too large.
- Confusing molarity (mol/L) with molality (mol/kg): Molality uses kilograms of solvent, not liters of solution. They are equal only for dilute aqueous solutions at 25 °C.
- Rounding too early: Keep at least 3-4 significant figures in intermediate steps to avoid rounding errors in the final answer.
- Assuming molar mass is 1 for water: Water has a molar mass of 18.015 g/mol, not 1 g/mol. This matters when converting between mass and moles.
Gas Volume Equation (Ideal Gas Law)
For gases, the volume depends on pressure and temperature. The ideal gas law is:
PV = nRT, so V = nRT / P.
Here, R = 0.0820574 L·atm/(mol·K) if pressure is in atm and volume in liters. If you use pressure in kPa, R = 8.31446261815324 J/(mol·K) but then volume must be in m³ (1 m³ = 1000 L). To avoid unit confusion, always convert pressure to atm and use the first R.
Example: How many liters does 1.00 mol of an ideal gas occupy at 0 °C (273.15 K) and 1.00 atm?
V = (1.00 mol)(0.0820574 L·atm/(mol·K))(273.15 K) / (1.00 atm) = 22.414 L.
This is the molar volume at STP (standard temperature and pressure: 0 °C and 1 atm).
Frequently Asked Questions
How do I find volume from molarity and grams?
First convert grams to moles using molar mass (n = m/MM), then divide moles by the molarity to get volume in liters. For example, to make a 0.5 M solution from 10 g of NaOH (MM = 40.00 g/mol): n = 10/40 = 0.25 mol, V = 0.25/0.5 = 0.5 L (500 mL).
What is the difference between molarity and molality?
Molarity (M) is moles of solute per liter of solution; molality (m) is moles of solute per kilogram of solvent. Molarity changes with temperature because volume expands, while molality does not. For dilute aqueous solutions at room temperature, the numerical values are close but not identical.
How do I calculate the volume of stock solution needed for a dilution?
Use the dilution equation M₁V₁ = M₂V₂. For example, to make 500 mL of 0.1 M HCl from 1.0 M stock: (1.0 M)(V₁) = (0.1 M)(0.5 L), so V₁ = 0.05 L = 50 mL. You take 50 mL of stock and dilute to 500 mL total.
Why do I need to use a volumetric flask instead of a beaker?
Volumetric flasks are calibrated to contain a precise volume at a specific temperature. Beakers are only approximate. For accurate molarity, you must dissolve the solute and then add solvent until the bottom of the meniscus reaches the mark on the flask.
Does temperature affect the volume equation for solutions?
Yes. Molarity is defined per liter of solution, and liquids expand when heated. A 1 M solution at 20 °C becomes slightly less than 1 M at 30 °C because the volume increases. For precise work, control the temperature or use molality.
Can I use the same equation for gases and liquids?
No. The ideal gas law applies to gases, where volume is highly dependent on pressure and temperature. For liquids, volume is nearly incompressible, so molarity is the standard measure. Use V = n/M for solutions and V = nRT/P for gases.
Safety and Practical Tips
When preparing solutions, always add acid to water (not water to acid) to avoid exothermic splashing. Wear appropriate personal protective equipment (gloves, goggles, lab coat) and work in a fume hood if using volatile or toxic substances. Follow your lab method, the safety data sheet (SDS) and your supervisor. For gas volume calculations, ensure pressure and temperature are measured accurately; a small error in temperature (in kelvin) can shift volume significantly.
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
- Within 10 Percent Calculator – How to Use It5.00 %
- W/W Percentage Calculator: Formula & Examples2.92 %
- Percent Equation: Formula & How to Use It
- Percent of a Number Calculator: Find It Instantly20.00 %
- UWW GPA Calculator: How to Compute Your GPA
- PPM to w/w Calculator: Convert Easily5.0000 %