What the Ideal Gas Law Calculator does
The Ideal Gas Law Calculator solves PV = nRT, the equation linking a gas’s pressure, volume, amount and temperature. Choose which quantity to find, enter the other three in the units you have, and it converts everything, applies the gas constant R = 8.314 J/(mol·K), and gives the answer in your chosen unit, with all four values shown together in common units and the number of molecules.
How to use it
- Choose what to find: pressure, volume, moles or temperature.
- Enter the other three values.
- Pick units for pressure, volume and temperature.
- Read the answer and the full set of values.
Example
One mole of gas at 0 °C and 101.325 kPa (1 atm) takes up 1 × 8.314 × 273.15 ÷ 101,325 = 22.41 litres, the molar volume at standard conditions. At 25 °C the same mole fills about 24.47 litres.
When the ideal gas law holds
An ideal gas has molecules that take up no room and do not attract each other. Real gases such as air, nitrogen and oxygen come very close at everyday temperatures and pressures. The law becomes less accurate at very high pressures or near the temperature where the gas would condense; engineers then use corrected equations.
Temperatures must be absolute in the formula, which is why the calculator converts °C and °F to kelvin. Zero kelvin, −273.15 °C, is the lowest possible temperature.
Questions people ask
Is anything I enter sent anywhere?
No. The calculator works entirely in your browser, so what you type stays on your device.
What value of R should I use?
8.314 J/(mol·K) with pascals and cubic metres. The calculator converts other units for you.
What is STP?
Standard temperature and pressure, usually 0 °C and 1 atm (some books use 1 bar). One mole of ideal gas then occupies about 22.4 litres.
Can I solve the combined gas law?
Run the calculator twice, once for each state; with the same moles, P1V1/T1 equals P2V2/T2.