Ideal Gas Calculator
Solve pressure, volume, amount or absolute temperature using the ideal gas law.
Enter a finite value within the formula’s domain and supported numeric range.
PV = nRT, R = 8.31446261815324 J/(mol·K). Choose the unknown and enter the other three positive values, each from 10⁻⁹ to 10¹² in its labelled unit. 1 atm = 101325 Pa; 1 L = 0.001 m³. Temperature is absolute kelvin, not Celsius. The ideal gas model omits molecular size and interactions, and is less accurate near condensation or at high pressure. Results show up to ten significant digits.
NIST · CODATAHow the calculation works
PV = nRT, R = 8.31446261815324 J/(mol·K). Choose the unknown and enter the other three positive values, each from 10⁻⁹ to 10¹² in its labelled unit. 1 atm = 101325 Pa; 1 L = 0.001 m³. Temperature is absolute kelvin, not Celsius. The ideal gas model omits molecular size and interactions, and is less accurate near condensation or at high pressure. Results show up to ten significant digits.
Frequently asked questions
How is the result calculated?
P(Pa) × V(m³) = n(mol) × R × T(K); R = 8.31446261815324 J/(mol·K). P = nRT/V; V = nRT/P; n = PV/(RT); T = PV/(nR).
What assumptions apply?
Temperature is in kelvins, not Celsius. The ideal gas model ignores molecular size and interactions and is less accurate near condensation or at high pressure.
How precise are the displayed results?
Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
How we verified this calculator
The calculator is checked against 6 reference cases computed independently of its code. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Unknown quantity = Solve pressure P
Amount (mol) = 1
Temperature (K) = 300
Volume (L) = 24.94338785445972
Absolute pressure (atm) =
|
Absolute pressure (kPa): 100
Absolute pressure (bar): 1
Absolute pressure (atm): 0.9869232667
Volume (L): 24.94338785
|
| 2 |
Unknown quantity = Solve pressure P
Amount (mol) = 2
Temperature (K) = 273.15
Volume (L) = 50
Absolute pressure (atm) =
|
Absolute pressure (kPa): 90.84381857
Absolute pressure (bar): 0.9084381857
Absolute pressure (atm): 0.8965587818
Volume (L): 50
|
| 3 |
Unknown quantity = Solve volume V
Amount (mol) = 1
Temperature (K) = 300
Volume (L) =
Absolute pressure (atm) = 1
|
Absolute pressure (kPa): 101.325
Absolute pressure (bar): 1.01325
Absolute pressure (atm): 1
Volume (L): 24.61720982
|
| 4 |
Unknown quantity = Solve volume V
Amount (mol) = 2
Temperature (K) = 273.15
Volume (L) =
Absolute pressure (atm) = 2
|
Absolute pressure (kPa): 202.65
Absolute pressure (bar): 2.0265
Absolute pressure (atm): 2
Volume (L): 22.41396955
|
| 5 |
Unknown quantity = Solve amount n
Amount (mol) =
Temperature (K) = 300
Volume (L) = 24.94338785445972
Absolute pressure (atm) = 1
|
Absolute pressure (kPa): 101.325
Absolute pressure (bar): 1.01325
Absolute pressure (atm): 1
Volume (L): 24.94338785
|
| 6 |
Unknown quantity = Solve amount n
Amount (mol) =
Temperature (K) = 273.15
Volume (L) = 50
Absolute pressure (atm) = 2
|
Absolute pressure (kPa): 202.65
Absolute pressure (bar): 2.0265
Absolute pressure (atm): 2
Volume (L): 50
|