Ideal gas law calculator
The ideal gas law, PV = nRT, links the pressure, volume, amount, and temperature of an ideal gas through the universal gas constant R. It is one of the cornerstone equations of chemistry and physics, used by students, lab technicians and engineers to predict how a gas responds when one variable changes. This calculator solves for any single unknown when you supply the other three values.
How it works
Pick which quantity is unknown, then enter the remaining three. The calculator rearranges PV = nRT to isolate your unknown:
- Pressure: P = nRT / V
- Volume: V = nRT / P
- Amount of gas: n = PV / (RT)
- Temperature: T = PV / (nR)
It uses R = 0.0820573 L·atm·mol⁻¹·K⁻¹, so pressure must be in atmospheres, volume in litres, amount in moles, and temperature in kelvin. Pressure results also display kilopascals (× 101.325) and temperature results display Celsius (− 273.15).
Example
Find the pressure of 1 mol of gas in a 22.414 L container at 273.15 K (standard temperature and pressure):
P = (n × R × T) / V = (1 × 0.0820573 × 273.15) / 22.414 ≈ 1 atm (101.325 kPa)
| Quantity | Symbol | Unit | Example |
|---|---|---|---|
| Pressure | P | atm | 1 |
| Volume | V | L | 22.414 |
| Amount | n | mol | 1 |
| Temperature | T | K | 273.15 |
Everything runs locally in your browser — no values are uploaded.