Skip to main content
🧪 Gas Laws

Ideal Gas Law Calculator

Enter any three of pressure, volume, moles and temperature and find the fourth with PV = nRT. Uses R = 0.08206 L·atm/(mol·K); temperature in kelvin.

PV = nRT
Solve P, V, n or T
STP molar volume
atm · L · K
100% Free
🧪 Open Full Chemical Calculator 📖 Read the Guide

Ideal gas law — Quick answer

Pressure × volume equals moles × R × absolute temperature. Rearrange for whichever quantity you need.

P·V = n·R·T · R = 0.08206 L·atm/(mol·K)
V = nRT/P · n = PV/RT · T = PV/(nR) · T in kelvin

Worked example: n = 1 mol at T = 273.15 K and P = 1 atm. V = (1×0.08206×273.15)/1 ≈ 22.41 L — the molar volume at STP.

Volume of 1 mol of gas (1 atm)

TemperatureVolumeNote
273.15 K (0 °C)22.41 LSTP
298.15 K (25 °C)24.47 Lroom temp
373.15 K (100 °C)30.62 Lboiling

Used for: gas stoichiometry, balloons, scuba, chemistry labs.

🧪 Ideal Gas Law Calculator

Enter any three — leave the one you want blank. Use atm, litres, moles and kelvin.

Pressure
Volume
Moles
Temperature

⚠️ Temperature must be in kelvin (K = °C + 273.15). R = 0.08206 L·atm/(mol·K) here, so use atm and litres. Real gases deviate at high pressure / low temperature.

The ideal gas law, PV = nRT, ties together everything about a gas in one equation: its pressure, volume, amount in moles and absolute temperature, linked by the universal gas constant R. Squeeze a gas and the pressure rises; warm it and it expands; add more gas and it pushes harder. Because the four quantities are locked together, knowing any three fixes the fourth — which is why this single relation handles balloons, scuba tanks, engine cylinders and lab gas measurements alike.

Reviewed: June 19, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: the ideal gas law PV = nRT.

The ideal-gas equations

Ideal gas law
P × V = n × R × T
Solve for any variable
P = nRT/V · V = nRT/P · n = PV/RT · T = PV/(nR)
Gas constant
R = 0.08206 L·atm/(mol·K) = 8.314 J/(mol·K)

The catch is units: this calculator uses atmospheres, litres, moles and kelvin so that R = 0.08206 L·atm/(mol·K). Temperature must always be absolute — convert Celsius by adding 273.15 — because the law assumes that doubling the kelvin temperature doubles the gas's tendency to expand or push. Choose the R whose units match your pressure and volume, and the rest is straightforward algebra.

Worked example — molar volume at STP

Scenario: What volume does 1 mole of an ideal gas occupy at standard temperature and pressure (0 °C = 273.15 K, 1 atm)?

Volume
V = nRT / P = (1 × 0.08206 × 273.15) / 1 ≈ 22.41 L
At room temperature (25 °C)
V = (1 × 0.08206 × 298.15) / 1 ≈ 24.47 L

One mole of any ideal gas fills about 22.4 litres at STP — the famous molar volume, the same whether it is hydrogen, oxygen or carbon dioxide. Warm it to room temperature (25 °C) and it expands to ~24.5 L, because volume rises in proportion to absolute temperature at fixed pressure. Double the gas to 2 moles at STP and you need 44.8 L; halve the pressure to 0.5 atm and the same mole expands to ~44.8 L as well.

Frequently Asked Questions

How do you use the ideal gas law?

PV = nRT, solve for the unknown. 1 mol at 273.15 K, 1 atm → V ≈ 22.4 L. T in kelvin, R = 0.0821 L·atm/(mol·K).

What is the value of R?

8.314 J/(mol·K) in SI, or 0.08206 L·atm/(mol·K) with atm and litres. Same constant, different units.

Why kelvin?

The law uses absolute temperature (zero = no thermal energy). K = °C + 273.15. Celsius gives wrong answers.

What is STP molar volume?

At 0 °C and 1 atm, 1 mole of any ideal gas ≈ 22.4 L. Handy for mole↔volume conversions.

When do real gases deviate?

At high pressure / low temperature (near liquefaction). Use van der Waals there; PV=nRT is great otherwise.

Ready to perform complete calculations?

Use the full AI Calculator suite for gas laws and chemistry with a professional PDF report.

🧪 Open Full Calculator — Free

No registration required · 350+ engineering calculators · PDF report export