Ideal gas law calculator

This ideal gas law calculator solves PV = nRT for whichever quantity you leave empty: pressure, volume, amount of gas or temperature. Enter the other three in the units you have and it converts them, including degrees Celsius to kelvin.

Calculated in your browser. Nothing you type is sent or stored.

Ideal gas law calculatorOr describe it in Studio →
Pressure (P)
Volume (V) · calculated
Temperature (T)

Fill in three values and leave the one you want empty. Units are converted for you; the temperature is turned into kelvin.

Volume

22.414 L

In SI units
101325 Pa · 0.022414 m³ · 1 mol · 273.15 K
Molar volume
22.414 L/mol

To report

P = 1 atm, V = 22.414 L, n = 1 mol, T = 0 °C (PV = nRT, R = 8.314 J·mol⁻¹·K⁻¹)

Check your result: PV ÷ nT should come back to R. For 1 mol at 1 atm and 0 °C, 101,325 Pa × 0.022414 m³ ÷ 273.15 K = 8.314 J/(mol·K). At fixed pressure the volume should scale with the temperature in kelvin.
1 mol at 1 atm and 0 °C
22.414 L
1 mol at 1 atm and 0 °C
1 mol at 1 bar and 25 °C
24.790 L
1 mol at 1 bar and 25 °C
pressure units, atm to Pa
7
pressure units, atm to Pa
J/(mol·K), the SI gas constant to six figures
8.31446
J/(mol·K), the SI gas constant to six figures
  • Solves for P, V, n or T
  • atm, kPa, bar, mmHg, psi, hPa, Pa
  • L, mL, m³ · °C, K or °F
  • Exact SI gas constant
  • Runs in your browser, free

01

The ideal gas law

P × V = n × R × T

SymbolQuantitySI unit
PPressurepascal (Pa)
VVolumecubic metre (m³)
nAmount of gasmole (mol)
TAbsolute temperaturekelvin (K)
RMolar gas constant8.314462618 J·mol⁻¹·K⁻¹

In litres and atmospheres, R = 0.082057 L·atm·mol⁻¹·K⁻¹. The calculator works in SI units internally, so you never need to pick a value of R.

02

Worked examples

AmountPressureTemperatureVolume
1 mol1 atm0 °C (273.15 K)22.414 L
1 mol1 bar25 °C (298.15 K)24.790 L
0.5 mol2 atm25 °C6.116 L

03

Solving for each quantity

To findFormula
PressureP = nRT ÷ V
VolumeV = nRT ÷ P
Amountn = PV ÷ RT
TemperatureT = PV ÷ nR

04

Temperature must be in kelvin

T (K) = t (°C) + 273.15

The most common mistake is using degrees Celsius in the formula. The calculator converts for you, but if you work by hand, convert first: 25 °C is 298.15 K. A gas at 20 °C does not have twice the volume of the same gas at 10 °C; the ratio is 293.15 ÷ 283.15.

05

Pressure units

UnitIn pascals
1 atm101,325 Pa (exact)
1 bar100,000 Pa (exact)
1 kPa1,000 Pa
1 mmHg (torr)133.322 Pa (101,325 ÷ 760)
1 psi6,894.76 Pa
1 hPa (mbar)100 Pa

06

When gases are not ideal

The law treats gas molecules as points that do not attract each other. That is a good approximation near room temperature and atmospheric pressure. It fails at high pressure, at low temperature and near the point where a gas condenses; there, use the van der Waals equation or tabulated data. To turn a mass of gas into moles, divide by the molar mass from the molecular weight calculator.

07

Common mistakes with the ideal gas law

  • Putting the temperature in degrees Celsius into PV = nRT. 1 mol at 1 atm and “25” gives 2.05 L instead of 24.47 L at 298.15 K.
  • Doubling the temperature in degrees Celsius and expecting the volume to double. Going from 20 °C to 40 °C raises the volume by 6.8%, the ratio 313.15 ÷ 293.15.
  • Using 22.4 L for every “standard” condition. At 0 °C, 1 mol is 22.414 L at 1 atm but 22.711 L at 1 bar, 1.3% more; at 25 °C and 1 bar it is 24.790 L.
  • Entering millilitres as litres. The volume unit sets the scale, so a 1,000-fold mistake in V becomes a 1,000-fold mistake in n or P.

Trust

How this page is checked

  • The calculation runs on code with automated tests against worked reference values. Every number in the examples on this page was produced by that same code, not typed by hand.
  • The formulas and conventions used are stated on the page, so you can reproduce the result yourself or compare it with your own software.
  • Last reviewed by the Sciloom team, Zebra Nine Studio Inc. It is a tool for research and teaching, not a substitute for a statistician, a validated lab method or medical advice.

Cite this page

Sciloom. (2026). Ideal gas law calculator. Zebra Nine Studio Inc. https://sciloom.si/ideal-gas-law-calculator

Read the full methodology · Who makes Sciloom

Frequently asked questions

What is the ideal gas law formula?

PV = nRT: pressure times volume equals the amount in moles times the gas constant times the absolute temperature.

What value of R should I use?

8.314 J·mol⁻¹·K⁻¹ with pascals and cubic metres, or 0.08206 L·atm·mol⁻¹·K⁻¹ with litres and atmospheres. The calculator handles this for you.

What is the volume of one mole of gas?

22.414 L at 0 °C and 1 atm, or 24.790 L at 25 °C and 1 bar, for an ideal gas.

Can I use Celsius in the ideal gas law?

Not in the formula itself: it needs kelvin. Add 273.15 to the Celsius value, or select °C in the calculator and it converts.

Need moles from a mass? Get the molar mass with the molecular weight calculator.
Free to start, no sign-up.
Back to the tool ↑

More research tools