Hydraulics, pneumatics and pressure
Ideal gas law: calculating P, V, n or T
Calculate the absolute pressure, volume, amount of substance or temperature of an ideal gas by choosing the unknown. Enter the other three quantities; pressure must be referenced to vacuum and temperature is converted to kelvins before calculation.
Ideal gas law: calculating P, V, n or T
Initial example : 24 L.
Initial example : 1 mol.
Initial example : 300 K.
Fixed SI value of 8,31446261815324 J/(mol·K). Keep this constant.
Initial values are examples.
Results
Ideal gas model at equilibrium, with strictly positive p, V, n and T.
Applied formulas
Values are substituted in SI units and results are shown in the selected units.
Estimated reading time : 4 min · 614 words
Calculation details
Check the pressure reference and temperature unit in particular. The details use converted values and the fixed molar constant R.
Absolute pressure and temperature in the ideal gas model
The ideal gas model relates the macroscopic state of a gas to its amount of substance while neglecting molecular interactions and the molecules' own volume.
The number of moles measures the amount of substance, independently of molar mass. The molar constant R is in SI. Gauge pressure must be corrected by the reference pressure before entry.
Formulas and symbols
The following relations correspond to the calculated results. Units are converted before calculation.
The result is an absolute pressure, not a gauge overpressure.
Volume is calculated for the entered temperature, absolute pressure and amount of substance.
The result is an amount in moles, distinct from mass in kilograms.
The calculated temperature is absolute; displaying it on another scale requires conversion with an offset.
- p: absolute pressure, in Pa, referenced to vacuum.
- V: volume occupied by the gas, initially displayed in L.
- n: amount of substance, in mol.
- T: absolute temperature, in K for the calculation relation.
- R: molar gas constant, fixed at .
State variables
| Input | Convention |
|---|---|
| p | Absolute pressure, not gauge pressure |
| V | Volume occupied by the gas |
| n | Amount in mol, not mass in kg |
| T | Absolute temperature converted to K |
| R | Molar constant ≈ |
Ideal gas; the law becomes less accurate at high densities or near a phase transition. OpenStax — University Physics 2, 2.1 Molecular Model of an Ideal Gas ; NIST — CODATA 2022: molar gas constant.
Worked examples
Example 1: One mole in 24 liters at 300 K
absolute, or about 1,04 bar.
Example 2: Volume at 1 bar absolute
At 300 K and for 1 mol, , or 24,94 L.
Example 3: Amount in 10 liters at 2 bar
For , and , .
Example 4: Temperature derived from p and V
For 1 mol in 24 L at 100 000 Pa absolute, , or about 15,50 °C.
Assumptions and limitations
Ideal gas model at equilibrium, with strictly positive p, V, n and T. Molecular interactions and volume are neglected; the approximation may be inadequate for a dense gas or near a phase transition.
Common mistakes
Entering gauge pressure or Celsius temperature directly into pV = nRT.
Frequently asked questions
Can temperature be entered in Celsius?
Yes: the calculator adds the offset to kelvins before applying pV = nRT. Zero or negative absolute temperature is excluded from this model.
What does absolute pressure mean?
It is pressure measured relative to a vacuum. For a gauge-pressure reading, add the local reference pressure without automatically assuming one standard atmosphere.
Can mass in kg replace n?
No. You must know the molar mass M and convert using in consistent units. This conversion is not automated here.
Does the law determine heat transfer?
No. It relates state properties without specifying the path. Heat also depends on the process, work and gas energy properties. Add an energy balance and appropriate process assumptions to analyse a change of state.