Blucalculator Open Tool

Liters to Moles Calculator

Convert gas volume (liters) to moles using the ideal gas law. Choose STP, SATP, or enter custom pressure and temperature.

L
atm

Used only in Custom mode

K

Used only in Custom mode (Kelvin)

Embed This Calculator

Copy the code and paste it into any webpage to embed this calculator.

WordPress users: add a Custom HTML block (not the Embed block) and paste the code there.

More embed options

Free to use. A small "Powered by Blucalculator" credit is appreciated but not required.

How to Use This Calculator

The calculator has four input fields. Here’s what each one does.

Conditions is a dropdown selector. You pick from three options: STP (Standard Temperature and Pressure: 0°C, 1 atm), SATP (Standard Ambient Temperature and Pressure: 25°C, 100 kPa), or Custom. STP and SATP are preset conditions used in textbooks and lab reports. Custom mode lets you enter your own temperature and pressure values.

Volume (V) is where you enter the gas volume in liters. Type in the volume of gas you’re working with. This is the only field that’s always active regardless of which condition you select.

Pressure (P) accepts values in atm (atmospheres). This field is locked in STP and SATP mode. It only activates when you switch to Custom mode. The default is 1 atm.

Temperature (T) accepts values in Kelvin. Like pressure, it’s locked in STP and SATP mode and only editable in Custom mode. The default is 273.15 K, which is 0°C.

The output is the number of moles (n) of gas. Once you hit Calculate, the calculator applies the ideal gas law using the molar volume for your chosen conditions and gives you the result.

Example: Converting 33.6 L of gas at STP

Conditions selected: STP (Vm = 22.414 L/mol) Volume entered: 33.6 L

n = V / Vm n = 33.6 / 22.414 n = 1.499 mol (approximately 1.5 moles)

At STP, every 22.414 liters of any ideal gas equals exactly 1 mole.

If your gas is at room temperature and not in a lab context, SATP (25°C, 100 kPa) usually gives a more accurate result than STP. The molar volume at SATP is 24.789 L/mol, not 22.414, so the difference matters for precise work.


What Problem This Calculator Solves

Manually converting gas volumes to moles requires you to either memorize the molar volume at a specific condition or work through the full ideal gas equation every single time. For a single calculation, that’s manageable. For a lab session with fifteen samples, it’s a productivity killer.

The bigger issue is condition confusion. Students and even working chemists sometimes apply the STP molar volume (22.414 L/mol) to gases measured at room temperature. That’s an error of about 10%. Not huge, but in stoichiometry problems, that 10% cascades through every subsequent calculation.

This calculator handles the condition selection for you. You pick STP, SATP, or enter your exact conditions, and it does the arithmetic. No constants to look up, no unit conversions to fumble.


The Concept Explained Simply

Gases are weird. Unlike solids or liquids, a gas will expand or compress to fill whatever container it’s in. That makes measuring “how much” gas you have by volume alone kind of meaningless without knowing the conditions.

Think of it like this: a balloon filled with 1 mole of helium at sea level on a cold morning takes up a different volume than the same balloon on a hot afternoon. The amount of helium hasn’t changed. The volume has. So volume alone doesn’t tell you quantity.

Moles are the chemist’s way of counting atoms and molecules. One mole is 6.022 × 10²³ particles. To convert volume to moles for a gas, you need to account for temperature and pressure. The ideal gas law does exactly that.

At any fixed temperature and pressure, one mole of any ideal gas occupies the same volume. That's the whole foundation of this conversion.

The Formula Explained

The simplest version of this conversion uses the molar volume shortcut when conditions are known:

n = V / Vm

Where n is moles, V is volume in liters, and Vm is the molar volume (22.414 L/mol at STP, 24.789 L/mol at SATP).

For custom conditions, the full ideal gas law applies:

n = PV / RT

Where P is pressure in atm, V is volume in liters, R is the ideal gas constant (0.08206 L·atm/mol·K), and T is temperature in Kelvin.

The two formulas are actually the same thing. The molar volume shortcut is just the ideal gas law pre-solved for standard conditions. R × T / P at STP gives you 22.414. The calculator uses whichever version applies based on your selected mode.

What each variable means in practice: P is usually 1 atm unless you’re working at altitude or in a pressurized system. T must be in Kelvin, not Celsius. This is the variable that causes the most errors. If your temperature is 25°C, you must enter 298.15 K, not 25.

Never plug Celsius directly into the ideal gas law formula. Temperature must be in Kelvin. Divide by 25 K when you mean 298.15 K and you’ll get a result that’s off by a factor of 12. The conversion is simple: K = °C + 273.15.


Reference Table: Molar Volume at Common Conditions

ConditionTemperaturePressureMolar Volume (Vm)
STP (IUPAC pre-1982)0°C / 273.15 K1 atm22.414 L/mol
STP (IUPAC post-1982)0°C / 273.15 K100 kPa22.711 L/mol
SATP25°C / 298.15 K100 kPa24.789 L/mol
Room temperature (approx.)20°C / 293.15 K1 atm24.055 L/mol
Body temperature37°C / 310.15 K1 atm25.447 L/mol

Most general chemistry courses still use the pre-1982 STP definition (22.414 L/mol). Check which definition your textbook uses before submitting lab reports.


Real-World Examples

The stoichiometry problem

A combustion reaction produces 11.2 liters of CO₂ gas at STP. How many moles of CO₂ is that?

Example: CO₂ from combustion at STP

Condition: STP (Vm = 22.414 L/mol) Volume: 11.2 L

n = V / Vm n = 11.2 / 22.414 n = 0.4997 mol (approximately 0.5 moles)

Half a mole of CO₂. Now you can use that number in a mole ratio to find how much fuel was burned.

The lab sample at room temperature

A student collects 500 mL of hydrogen gas over water in a lab at 22°C and 760 mmHg. How many moles of H₂ were produced?

Example: Hydrogen gas collected at room conditions

Temperature: 22°C = 295.15 K Pressure: 760 mmHg = 1 atm Volume: 500 mL = 0.5 L R = 0.08206 L·atm/mol·K

n = PV / RT n = (1 × 0.5) / (0.08206 × 295.15) n = 0.5 / 24.21 n = 0.02065 mol (about 0.021 moles)

That’s roughly 20.6 millimoles of hydrogen gas. Small number, but that’s what 500 mL gives you.

The industrial gas tank scenario

An engineer needs to know how many moles of nitrogen gas are in a 200-liter tank at 25°C and 5 atm pressure.

Example: Nitrogen in a pressurized tank

Temperature: 25°C = 298.15 K Pressure: 5 atm Volume: 200 L R = 0.08206 L·atm/mol·K

n = PV / RT n = (5 × 200) / (0.08206 × 298.15) n = 1000 / 24.46 n = 40.9 moles of N₂

At 28 g/mol, that’s about 1.14 kg of nitrogen. Useful when planning a gas supply for a process that requires a specific molar quantity.


Common Mistakes People Make

Using Celsius instead of Kelvin. This is mistake number one, and it’s not even close. Every introductory chemistry student learns the ideal gas law, and at least half of them plug in Celsius at some point. The result is wildly wrong. 25°C and 298.15 K look close-ish numerically, but 25 K is -248°C. Using 25 instead of 298.15 means you’re calculating for conditions near absolute zero.

Applying STP molar volume to room temperature gas. The 22.414 L/mol constant only works at 0°C, 1 atm. If you collected a gas sample at 25°C in your lab and divide by 22.414, you’re off by about 10.6%. For a rough estimate, fine. For a graded lab report or a process calculation, that error matters.

Forgetting to convert units. Pressure has multiple common units: atm, mmHg, kPa, Pa, bar. The ideal gas law using R = 0.08206 requires pressure in atm. If your manometer reads in mmHg, divide by 760. If it reads kPa, divide by 101.325. Mixing units here produces nonsense results with no obvious error signal.

Treating real gases as ideal at high pressure. The ideal gas law is an approximation. It works well at low to moderate pressures and high temperatures. Above roughly 10 atm, real gases deviate meaningfully from ideal behavior due to intermolecular forces and molecular volume. For those situations, equations like Van der Waals give more accurate results.

Not accounting for water vapor. When gas is collected over water in a lab, the total pressure includes water vapor pressure. If the manometer reads 760 mmHg but the experiment is at 25°C, the vapor pressure of water is about 23.8 mmHg. The partial pressure of your collected gas is actually 760 - 23.8 = 736.2 mmHg. Skipping this step inflates your mole count.

Confusing molar volume with molar mass. Molar volume (22.414 L/mol) tells you the volume of one mole of gas at STP. Molar mass (g/mol) tells you the mass. These are different constants. Using one where you need the other gives you a result in completely wrong units. If your final answer for moles is suspiciously close to the molar mass of the gas, you’ve made this swap.

The Celsius vs. Kelvin error produces results that are 10-20x off from the correct answer and can completely change downstream calculations in stoichiometry problems. Double-check your temperature input before hitting Calculate.


Hidden Factors Most People Ignore

Gas purity affects the result. The ideal gas law assumes you’re working with a pure gas. In practice, most gas samples contain at least trace amounts of other gases. If you’re working with a gas mixture, the total volume represents all components combined. To find moles of a specific gas, you need its partial pressure, not the total pressure of the mixture.

Real gas behavior diverges from ideal at extremes. The ideal gas law works because molecules at normal conditions are far apart and interact weakly. Cool a gas close to its condensation point, and intermolecular attractions become significant. Compress it hard enough, and the actual volume of the molecules themselves starts mattering. Neither effect is captured by PV = nRT.

Altitude changes the pressure reference. If you’re working in Denver (about 5,280 feet elevation), atmospheric pressure is roughly 0.83 atm, not 1 atm. For a calculation using “ambient pressure,” that difference changes your result by about 17%. Lab calculations in high-altitude locations should use the actual measured pressure, not the assumed sea-level value.

The choice of gas constant matters. R has multiple values depending on your unit system: 0.08206 L·atm/mol·K, 8.314 J/mol·K, 62.36 L·mmHg/mol·K. They’re all the same constant, just in different units. Using the wrong version of R with the right pressure and temperature units gives you a number that looks plausible but is wrong by a scaling factor.

The ideal gas law gives you the right answer for the right gas in the right conditions. Knowing when those conditions don't apply is what separates a useful calculation from a confident mistake.

What to Do With the Result

For stoichiometry problems, the mole value you get here is your starting point for mole ratios. Once you have moles of a gas, multiply by the relevant coefficient ratio from your balanced equation to find moles of another reactant or product. From moles, you can convert to grams using molar mass.

For lab reports, the moles calculated from your gas volume is typically compared against the theoretical yield from your reaction. The ratio of actual to theoretical gives percent yield. Make sure your conditions match what was actually in the lab, not just the assumed STP values from the back of the textbook.

For process engineering, moles of gas feed into calculations for reactor sizing, flow rates, and mass balances. If you’re specifying gas volumes for a process, translate your mole requirements back to volume at your actual operating conditions using the same formula in reverse: V = nRT/P.

For everyday science curiosity, the mole conversion tells you how many molecules you’re actually dealing with. Multiply your mole result by 6.022 × 10²³ to get the raw particle count. 0.5 moles of any gas contains about 3 × 10²³ molecules. That’s 300,000,000,000,000,000,000,000 molecules in roughly 11 liters of air.

You’re good to use your result when: you’ve confirmed the temperature is in Kelvin, the pressure matches the actual conditions (not assumed sea-level), and you’re working with a gas that behaves approximately ideally (low pressure, well above condensation point).


Limitations and Misconceptions

The biggest misconception about this calculator is that it works for all gases in all situations. It doesn’t. The ideal gas law is a model, and like all models, it breaks down at the edges. Gases near their boiling point, gases at very high pressure, and gas mixtures where one component is condensing all deviate in ways the ideal gas law can’t capture. For those cases, you need real gas equations or experimental data.

The calculator also can’t account for dissolved gases. If you’re asking how many moles of CO₂ are present in a carbonated beverage, volumetric gas calculations don’t apply because the CO₂ is dissolved in solution. Henry’s Law governs gas solubility, not the ideal gas law.

Another limitation: the calculator assumes you know the conditions accurately. Temperature and pressure values from memory or assumption introduce error. A 5°C error in temperature causes about a 1.7% error in mole count. In most classroom contexts, that’s fine. In analytical chemistry or industrial process control, measure what you’re actually working with.

The Kelvin-only temperature requirement trips up more people than any other input error, but the fix is permanent once you internalize it. Celsius is for human comfort. Kelvin is for chemistry.

There are two common definitions of STP still in use. The older IUPAC definition (pre-1982) uses 1 atm as the standard pressure, giving Vm = 22.414 L/mol. The current IUPAC definition uses 100 kPa, giving Vm = 22.711 L/mol. Most general chemistry courses use the older definition, but check your course materials to be sure which one applies to your work.


The Bottom Line

Converting liters to moles comes down to one core question: what are the conditions? At STP, divide by 22.414. At SATP, divide by 24.789. At anything else, use PV = nRT with temperature in Kelvin.

The calculator handles the arithmetic. What it can’t do is choose the right conditions for you. That’s the judgment call. Pick STP if your problem specifies it. Pick SATP if you’re working at 25°C with modern IUPAC standards. Use Custom mode for any real-world lab measurement that doesn’t match a preset.

Temperature in Kelvin. Pressure in atm for custom calculations. Those two rules cover most of the errors people make.

Get the conditions right and the rest of the calculation is just division.

Frequently Asked Questions

What is molar volume?

Molar volume (Vm) is the volume occupied by exactly 1 mole of an ideal gas at given P and T. At STP it is 22.414 L/mol; at SATP it is 24.789 L/mol.

Does this work for non-ideal gases?

This calculator assumes ideal gas behaviour. For real gases at very high pressure or low temperature, corrections via the van der Waals equation give more accurate results.

Can I use kPa or bar for pressure?

This calculator uses atm. Convert: 1 atm = 101.325 kPa = 1.01325 bar. Divide your kPa value by 101.325 before entering.

How many moles are in 22.4 litres of gas at STP?

Exactly 1 mole. The molar volume at STP (0 °C, 1 atm) is 22.414 L/mol for an ideal gas. This is one of the most important numbers in introductory chemistry. At SATP (25 °C, 1 bar), the molar volume is 24.789 L/mol.

How do I convert moles back to litres of gas?

At STP: litres = moles × 22.414. At SATP: litres = moles × 24.789. For custom conditions using PV = nRT: V = nRT/P. Use R = 0.082057 L·atm/(mol·K), T in Kelvin, P in atm.

How do I convert litres of CO₂ to grams?

Step 1 — find moles: at STP, moles = litres / 22.414. Step 2 — convert to grams: grams = moles × molar mass of CO₂ (44.009 g/mol). Example: 5 L of CO₂ at STP → 5/22.414 = 0.2231 mol → 0.2231 × 44.009 = 9.82 g.

What happens to molar volume at high pressure?

At high pressure, real gas molecules occupy significant volume and experience intermolecular attractions, causing deviation from ideal behaviour. At 100 atm, CO₂ occupies about 30% less volume than the ideal gas law predicts. For pressures above ~10 atm or near the critical point, use the van der Waals equation or a real-gas equation of state.

What is the difference between STP and standard state?

STP (Standard Temperature and Pressure) = 0 °C (273.15 K) and 1 atm — used for gas volume calculations. Standard state (thermodynamic) = 25 °C (298.15 K) and 1 bar — used for thermodynamic quantities like ΔG° and ΔH°. These are different standards. STP gives Vm = 22.414 L/mol; standard state gives Vm ≈ 24.465 L/mol.

How do I calculate moles from gas volume collected over water?

When gas is collected by water displacement, water vapour contributes to total pressure. Corrected gas pressure = atmospheric pressure − vapour pressure of water at that temperature. Look up water vapour pressure (e.g. 2.338 kPa at 20 °C), subtract from measured P, then apply PV = nRT with the corrected pressure.

Does this calculator work for gas mixtures?

It calculates total moles from total volume. For a pure gas, that gives direct moles of that substance. For a mixture, you get total moles of all gases combined. To find moles of a specific component, multiply total moles by the mole fraction of that component. Dalton's Law states that partial pressure = mole fraction × total pressure.

Related Calculators