molecalculator

Gas Laws

Gas Volume Calculator: Calculate Volume With PV = nRT

Calculator No. 04-0787 · Updated · Formula and assumptions shown below

Gas volume 24.465 L
Molar volume
24.465 L/mol
= Gas volume ÷ Amount of gas
Amount of gas
1 mol
Set in the form below
Temperature
298.15 K
Set in the form below
Section
Gas Laws
You enter
Amount of gas (mol), Temperature (K), Pressure (kPa)
You get
Gas volume (L), Molar volume (L/mol)
Rounding
3 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.

Calculate the volume of an ideal gas from its amount, temperature, and pressure using the gas law PV = nRT. Enter moles, kelvin temperature, and pressure in kilopascals to get volume in liters; the result assumes ideal-gas behavior.

Formula

The ideal gas law is PV = nRT. Rearranging for volume gives V = nRT / P.

  • V is gas volume in liters (L).
  • n is amount of gas in moles (mol).
  • R is the gas constant, 8.31446261815324 L·kPa/(mol·K). This is the SI value 8.31446261815324 J/(mol·K), expressed using 1 J = 1 kPa·L.
  • T is absolute temperature in kelvin (K).
  • P is absolute pressure in kilopascals (kPa).

Use absolute pressure, not gauge pressure. If pressure is given in atmospheres, convert it to kPa by multiplying by 101.325 kPa per atm. If temperature is given in degrees Celsius, convert it to kelvin by adding 273.15. The calculator inputs are already in mol, K, and kPa, so no further unit conversion is built into its expression.

Worked Example

Using the calculator’s defaults: n = 1 mol, T = 298.15 K, and P = 101.325 kPa.

  1. Start with V = nRT / P.
  2. Substitute the values: V = (1 mol × 8.31446261815324 L·kPa/(mol·K) × 298.15 K) / 101.325 kPa.
  3. Multiply the numerator: 8.31446261815324 × 298.15 = 2478.957030.
  4. Divide by pressure: V = 2478.957030 / 101.325 = 24.465403 L.
  5. Rounded to the calculator’s three decimal places, the gas volume is 24.465 L. The corresponding molar volume is 24.465403 L/mol, or 24.465 L/mol to three decimal places.

Assumptions

  • The gas behaves ideally at the stated temperature and pressure.
  • Pressure is absolute, and temperature is on the kelvin scale.
  • The entered amount represents the gas whose volume is being calculated; no reaction or mixture correction is included.

What You’ll Need

  • The amount of gas in moles. For a mass, first calculate moles using n = mass / molar mass, with mass and molar mass in compatible units.
  • The gas temperature in kelvin. Convert Celsius to kelvin with T(K) = T(°C) + 273.15.
  • The absolute pressure in kPa. Convert atmospheres using 1 atm = 101.325 kPa; convert bar using 1 bar = 100 kPa.
  • A calculator, or the calculator fields above. For a lab context, follow your lab method, the safety data sheet (SDS), and your supervisor.

Step-by-Step

  1. Identify what volume you need. Decide whether you want the volume of a known amount of gas at specified conditions, or need to infer an unknown amount. This calculation finds volume when moles, temperature, and pressure are known.
  2. Find the amount in moles. Use the stated amount if it is already in mol. If you have mass, divide by the substance’s molar mass: n = m / M. For example, grams divided by grams per mole gives moles. For a gas mixture, use the amount of the component whose volume you want, or the total amount if calculating the mixture’s total volume.
  3. Convert temperature to kelvin. Add 273.15 to a Celsius temperature. For example, 25 °C is 298.15 K. Do not put a Celsius number directly into PV = nRT: the gas law requires absolute temperature.
  4. Use absolute pressure. Enter the pressure of the gas relative to a vacuum. If a reading is gauge pressure, add the surrounding atmospheric pressure to get absolute pressure. For a sealed container, use the gas’s actual absolute pressure, not automatically 1 atm.
  5. Make the units consistent. This calculator uses mol, K, and kPa, with R = 8.31446261815324 L·kPa/(mol·K). Convert other pressure units before entering them. The matching units cancel to leave liters.
  6. Apply the equation. Calculate V = n × R × T ÷ P, or enter the three values in the calculator. Check that pressure and temperature refer to the same gas conditions and state whether they are measured or specified.
  7. Read and report the answer. The first result is volume in liters, rounded to three decimal places. The second is the volume per mole under those conditions. Keep extra digits during working, then round the final result to sensible precision based on the input data.

Common Mistakes

  • Using Celsius instead of kelvin: this can produce a badly wrong answer, or even a physically meaningless one. Convert first.
  • Mixing gas constants and units: R = 0.0820574 L·atm/(mol·K) pairs with pressure in atm, while the calculator uses 8.31446261815324 L·kPa/(mol·K) and kPa. Do not mix the constants and pressure units.
  • Entering gauge pressure: gauge pressure excludes atmospheric pressure. Convert it to absolute pressure before using the equation.
  • Confusing mass with amount: PV = nRT requires moles, not grams. Convert mass to moles using the correct molar mass.
  • Rounding too early: keep unrounded values through intermediate calculations. Round the final volume to match the quality of the supplied measurements.
  • Assuming all gases are ideal: real-gas effects become more important at high pressure and low temperature, especially near condensation.

Tips

  • Write down each value with its unit before substituting it. This makes unit errors easier to spot.
  • Check the direction of the result: at fixed amount and temperature, increasing pressure decreases volume; at fixed amount and pressure, increasing temperature increases volume.
  • Use absolute temperature and pressure consistently when comparing two gas states. For a fixed amount, P₁V₁/T₁ = P₂V₂/T₂.
  • If you know the gas density and molar mass, you can estimate the molar amount from mass = density × volume, then use n = mass / molar mass.
  • State the conditions beside the answer. A gas volume is not complete information without its temperature and pressure.

Troubleshooting

The result is unexpectedly huge or tiny: check that moles are not entered as millimoles, pressure is not entered in atm while labeled kPa, and temperature is in kelvin. For example, 1 mmol is 0.001 mol.

The calculator rejects an input: each input must be zero or greater, but a physical gas-law calculation needs positive moles, temperature, and pressure. Check for a missing value or an incorrect decimal separator. A zero denominator cannot give a meaningful volume.

Your measured volume differs from the prediction: confirm the actual gas temperature and absolute pressure, and check whether the gas is sufficiently dilute for the ideal-gas approximation. Also account for water vapor if the gas was collected over water, and verify that the measured volume refers to the same conditions as the calculation.

The gas is at high pressure or near its condensation point: the ideal-gas estimate may not be reliable. Use an appropriate real-gas equation or validated property data for the substance and conditions; do not treat a correction as universal.

Frequently Asked Questions

What is the formula for gas volume?
For an ideal gas, V = nRT/P. Use moles, kelvin, absolute pressure, and a gas constant with matching units.

How do I calculate gas volume from mass?
First calculate moles as mass divided by molar mass, then substitute that amount into V = nRT/P. Ensure the mass and molar mass use compatible units.

Can I use Celsius in the ideal gas law?
No. Convert Celsius to kelvin by adding 273.15 before calculating.

Should I use gauge or absolute pressure?
Use absolute pressure. Add local atmospheric pressure to gauge pressure when that is how the measurement is reported.

Does this calculate the volume of a real gas exactly?
No. It uses the ideal-gas approximation. Real gases can deviate, particularly at high pressure or low temperature.

What does the molar-volume result mean?
It is the calculated gas volume divided by the amount in moles, in L/mol, at the entered temperature and pressure. It changes when those conditions change.

Related

Formula used
in n | Amount of gas | mol | 1 | 0
in t | Temperature | K | 298.15 | 0
in p | Pressure | kPa | 101.325 | 0
out v | Gas volume | L | n * 8.31446261815324 * t / p | 3
out vm | Molar volume | L/mol | v / n | 3

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 Gas Laws section →