Ideal Gas Pressure Calculator (PV = nRT)
Enter the number of moles, volume, and temperature of an ideal gas to calculate its pressure instantly using the ideal gas law PV = nRT. Choose from eight pressure units, six volume units, and four temperature scales. The "Show your work" panel traces every step, and the pressure gauge shows where your result sits on a practical pressure scale.
Formula
Worked example
1 mol of an ideal gas at 0 °C (273.15 K) in a 22.414 L container: P = nRT/V = (1 × 8.3145 × 273.15) / 0.022414 = 101 325 Pa = 1.00 atm. This is the definition of STP (Standard Temperature and Pressure).
What is the ideal gas law?
The ideal gas law PV = nRT describes the behaviour of a hypothetical gas whose molecules occupy no volume and experience no intermolecular forces. P is absolute pressure in pascals, V is volume in cubic metres, n is the amount of gas in moles, R is the universal gas constant (8.3145 J mol⁻¹ K⁻¹), and T is absolute temperature in Kelvin. Real gases closely obey this law at moderate pressures (below about 10 atm) and high temperatures, which covers most laboratory and engineering situations. Near a gas's critical point or at very high pressures, corrections such as the van der Waals equation become necessary.
How to use this calculator
Use the "Solve for" selector to choose which of the four variables you want to calculate (P, V, n, or T). Enter the three known values in any unit you prefer: pressure can be in Pa, kPa, MPa, bar, mbar, atm, mmHg (Torr), or psi; volume in litres, millilitres, cubic metres, cubic centimetres, cubic feet, or cubic inches; temperature in Kelvin, Celsius, Fahrenheit, or Rankine. The calculator converts every input to SI units internally, applies PV = nRT, and converts the result back to your chosen output unit. The "Show your work" panel traces each conversion and the final calculation step by step. The pressure gauge shows where your result sits on a practical scale from vacuum to high pressure.
Derived gas laws
The ideal gas law unifies several classic relationships. Boyle's law (constant n and T) states that pressure and volume are inversely proportional: P1V1 = P2V2. Charles's law (constant n and P) states that volume and temperature are directly proportional: V1/T1 = V2/T2. Gay-Lussac's law (constant n and V) states that pressure and temperature are directly proportional: P1/T1 = P2/T2. Avogadro's law (constant P and T) states that equal volumes contain equal numbers of moles. Combining these four gives PV = nRT. To apply any derived law, set two of the four variables constant and solve for a third using this calculator.
Standard conditions and practical examples
At IUPAC standard conditions (0 °C, 100 kPa) one mole of ideal gas occupies 22.711 L. At STP (0 °C, 1 atm = 101.325 kPa) the molar volume is 22.414 L, the figure embedded in most textbooks. A car tyre inflated to 32 psi gauge contains gas at roughly 3.2 atm absolute (adding 1 atm atmospheric pressure). A compressed-gas cylinder at 150 bar holds gas at about 148 atm. Scuba tanks at 200 bar run about 197 atm. In each case, PV = nRT lets you calculate how many moles are present given the volume and temperature, or predict the pressure change when temperature rises in a sealed vessel.
Common pressure unit conversions
| Unit | Symbol | 1 atm equals |
|---|---|---|
| Pascal | Pa | 101 325 |
| Kilopascal | kPa | 101.325 |
| Megapascal | MPa | 0.101325 |
| Bar | bar | 1.01325 |
| Millibar | mbar | 1 013.25 |
| Millimetres Hg | mmHg | 760 |
| Pounds per sq in | psi | 14.6959 |
Exact or high-precision conversion factors relative to 1 standard atmosphere (atm).
Frequently asked questions
What does PV = nRT mean?
P is the absolute pressure of the gas, V is the volume it occupies, n is the number of moles, R is the universal gas constant (8.3145 J mol⁻¹ K⁻¹), and T is the absolute temperature in Kelvin. The equation states that for an ideal gas these four quantities are always in the same fixed ratio, so knowing any three lets you calculate the fourth.
What is the value of the ideal gas constant R?
R = 8.314462618 J mol⁻¹ K⁻¹ (exact, as redefined in the 2019 SI revision). In older units it is 0.082057 L atm mol⁻¹ K⁻¹ or 8.314 Pa m³ mol⁻¹ K⁻¹. The calculator always uses the SI value and handles unit conversions internally.
Why must temperature be in Kelvin?
The ideal gas law requires an absolute temperature scale where zero means no molecular motion. Kelvin starts at absolute zero (-273.15 °C). Using Celsius or Fahrenheit directly would give wrong answers because they have arbitrary zero points. The calculator automatically converts your input to Kelvin before computing.
When does the ideal gas law break down?
At high pressures (above roughly 10 atm for most gases) and at temperatures close to a gas's boiling point, intermolecular forces and molecular volume become significant. The van der Waals equation or other equations of state are more accurate in those ranges. For most room-temperature laboratory work the ideal gas law is an excellent approximation.
What is STP and how does it relate to molar volume?
STP stands for Standard Temperature and Pressure: 0 °C (273.15 K) and 1 atm (101.325 kPa). At STP, one mole of any ideal gas occupies exactly 22.414 L. This is the classic molar volume used in stoichiometry. The newer IUPAC standard (0 °C, 100 kPa) gives a slightly larger molar volume of 22.711 L.
Can I solve for volume, moles, or temperature, not just pressure?
Yes. Use the "Solve for" dropdown to switch between P, V, n, and T. Enter the three known values (in any supported units) and the calculator rearranges PV = nRT to find the missing one. The "Show your work" panel updates to show the relevant algebraic form and substituted values.