Ideal Gas Law Calculator (PV = nRT)
Solve the ideal gas law for pressure, volume, amount of gas (moles) or temperature from the other three.
This calculator applies an idealised textbook model with SI units. Real systems can differ because of friction, air resistance, temperature, material properties and measurement uncertainty.
How to use this calculator
Choose the quantity you want to find and enter the other three; the value in the field you are solving for is ignored. Pressure is absolute pressure in kilopascals (101.325 kPa = 1 atm), volume is in litres and temperature in degrees Celsius, which the calculator converts to kelvin.
Formula
PV = nRT, with R = 8.314462618 J/(mol⋅K), P in pascals, V in cubic metres and T in kelvin (T = °C + 273.15). Solving: P = nRT ÷ V, V = nRT ÷ P, n = PV ÷ RT, T = PV ÷ nR.
Calculator credits
Calculator developmentJulia Edwards
Editorial supervisionSamad Aslam Khan
Expert reviewHiraMPhil Physics, Computational Physicist
Published byThe Calculatorz
Last updated
Read how we research, test, review and correct our calculators in our editorial policy.
Frequently asked questions
What is an ideal gas?
A model gas whose molecules have no volume and do not attract each other. Real gases behave nearly ideally at low pressure and high temperature.
Why must I use kelvin?
The law needs absolute temperature, which is zero at absolute zero. Using Celsius would give nonsense such as zero volume at 0 °C.
Should I use gauge or absolute pressure?
Absolute. A tyre gauge reading of 220 kPa is about 321 kPa absolute (add atmospheric pressure).
What is the molar volume of a gas?
At 0 °C and 1 atm it is 22.414 L/mol; at 25 °C and 1 atm it is about 24.47 L/mol.
When does the ideal gas law fail?
At high pressures or low temperatures near condensation, where molecular size and attraction matter. The van der Waals equation corrects for these.
How do I find grams from moles?
Multiply moles by the molar mass: 1 mol of oxygen (O₂) is about 32 g.
References & methodology sources
These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.
- Ling, S. J., Moebs, W., & Sanny, J. (2016). University physics volume 2. OpenStax. View source
- Flowers, P., Theopold, K., Langley, R., & Robinson, W. R. (2019). Chemistry 2e. OpenStax. View source
- Mohr, P. J., Newell, D. B., Taylor, B. N., & Tiesinga, E. (2025). CODATA recommended values of the fundamental physical constants: 2022. Journal of Physical and Chemical Reference Data, 54, 033105. View source
- Bureau International des Poids et Mesures. (2019). The International System of Units (SI) (9th ed.). View source