Ideal Gas Law Calculator
Solve for pressure, volume, moles or temperature with PV = nRT.
Enter your values and press Calculate to see the result and the working.
Formula used — The ideal gas law
Rearranged forms
Variables
- P Pressure
- Gas pressure in pascals (Pa)
- V Volume
- The volume the gas occupies in cubic metres (m³)
- n Moles
- The amount of gas
- T Temperature
- Absolute temperature in kelvin (K)
What does this calculator do?
Solves the ideal gas law for any of its four variables — pressure, volume, moles or temperature — using the universal gas constant.
When would you use it?
In chemistry and physics coursework, and when estimating how a gas in a tank or cylinder behaves as temperature or volume changes.
How the formula works
This law combines three relationships discovered separately: pressure varies inversely with volume at constant temperature, volume varies directly with temperature at constant pressure, and pressure varies directly with the number of particles.
Combining them gives PV = nRT, where R is a universal constant of 8.314 joules per mole per kelvin — one constant that works for every gas, which is what makes the law so powerful.
The critical point is that temperature must be absolute, in kelvin. Using Celsius does not merely introduce an error of scale but produces a meaningless result, because 0 °C is not zero kinetic energy. Always add 273.15.
"Ideal" means two assumptions: that gas molecules have no volume and do not attract each other. Both are good approximations at low pressure and high temperature, and both weaken as a gas approaches liquefaction.
What does the result mean?
The result describes the gas at these particular values. To see the effect of changing one, change it and recompute: doubling the absolute temperature doubles the pressure if the volume is held constant.
That is exactly why pressurised containers carry heat warnings — in a fixed volume, rising temperature raises pressure directly and proportionally.
Common mistakes
Using Celsius instead of kelvin is the commonest and most damaging error here. The second is mixing pressure and volume units — use the selectors rather than converting by hand.
Important notes
Educational results based on the ideal gas model. Real gases deviate at high pressure or low temperature and need more accurate equations of state.
Worked example
A gas in a vessel
One mole of gas at 0 °C in 22.414 litres — what is its pressure?
About 101,325 Pa — one atmosphere, the familiar standard conditions.
Calculation method
Symbolic solution of the ideal gas law with R = 8.314462618 J/mol·K.
Assumptions
- Ideal gas behaviour — no molecular volume and no intermolecular attraction.
- Temperature is absolute, in kelvin.
Last reviewed: