A little help goes a long way. Find a tool/

Science & Physics

Ideal Gas Law Calculator

Free ideal gas law calculator (PV = nRT, R = 8.314 J/(mol·K)): enter any three of pressure, volume, amount and temperature in atm, kPa, psi, L, mL, °C, °F or K, and the fourth is solved instantly in your browser.

YOUR WORKSPACEFree to use. No sign-up.
—
Enter any three of P, V, n, T — leave the unknown blank (uses R = 8.314 J/(mol·K)).

Deep dive guides

A LITTLE CONTEXT · 4 MIN READThe Ideal Gas Law: PV = nRT From Molecules to Balloons

How ideal gas law calculator works

The ideal gas law packs four centuries of gas experiments into one equation: PV = nRT. Pressure times volume equals the amount of gas (in moles) times the gas constant R = 8.314 J/(mol·K) times absolute temperature. Each of Boyle’s law (P ∝ 1/V at fixed T), Charles’s law (V ∝ T at fixed P) and Avogadro’s law (V ∝ n at fixed P, T) is the special case where the other variables are held still.

Enter any three of pressure, volume, amount and temperature, leave the unknown blank, and the tool solves for it. Every field has its own unit menu: pressure in kPa, atm, Pa, bar, mmHg/Torr or psi; volume in L, mL, cm³ or m³; amount in mol or mmol; temperature in K, °C or °F. Internally everything is converted to SI (Pa, m³, mol, K) — the only system in which R = 8.314 is valid — and the answer is converted back to the units you chose.

The temperature field deserves one warning: the ideal gas law needs absolute temperature. A reading in °C or °F is converted to kelvin first, so 0 °C becomes 273.15 K, not zero. Doubling a Celsius temperature does not double the pressure — doubling the kelvin temperature does. The tool rejects temperatures at or below absolute zero because no real gas can go there.

Frequently asked questions

Which value of R does this tool use?
R = 8.314 J/(mol·K), which pairs with pressure in pascals and volume in cubic metres. If you prefer R = 0.082057 L·atm/(mol·K), the results agree exactly — they are the same constant in different units, and the tool converts your units to SI before solving.
What is the molar volume at STP?
One mole of ideal gas at 273.15 K and 1 atm occupies V = nRT/P = (1 × 8.314 × 273.15)/101325 ≈ 22.41 litres. Set p = 1 atm, n = 1 mol and t = 273.15 K in the tool and leave volume blank to reproduce it — the classic 22.4 L/mol figure.
Can I mix units, like atm for pressure and °C for temperature?
Yes. Every variable carries its own unit selector and the solver converts each to SI first, so atm, mmHg, °C and °F can all be mixed freely in one calculation. The answer for the solved variable comes back in the unit you selected for it.
When is the ideal gas law accurate?
It is exact for a hypothetical gas of point particles with no intermolecular forces, and it is a good approximation for real gases at low pressure and high temperature — air, nitrogen, helium and the like near room conditions typically agree within a percent or two. It breaks down near condensation, at high pressure, and for very cold temperatures, where van der Waals-type corrections are needed.
Why must temperature be in kelvin (or converted to it)?
Because the law is proportional to absolute temperature: PV = nRT with T measured from absolute zero. 0 °C is 273.15 K, not zero, and using Celsius or Fahrenheit directly would give nonsensical pressures. The tool converts °C and °F input to kelvin automatically and rejects values at or below 0 K.