Ideal Gas Law Calculator
Solve for any variable in the Ideal Gas Law equation (PV = nRT). Enter three known values to calculate the fourth. Temperature must be in Kelvin or can be entered in Celsius for automatic conversion.
What is the Ideal Gas Law?
The Ideal Gas Law (PV = nRT) describes the relationship between pressure (P), volume (V), number of moles (n), and temperature (T) for an ideal gas. R is the universal gas constant.
When does the Ideal Gas Law apply?
The law works best for gases at low pressure and high temperature where intermolecular forces are negligible. It's accurate for most gases at standard conditions but deviates for real gases at high pressure or low temperature.
What are the units for R?
R depends on your units: 8.314 J/(mol·K), 0.0821 L·atm/(mol·K), or 62.36 L·torr/(mol·K). This calculator uses 0.0821 L·atm/(mol·K) with Kelvin temperature, liters, and atmospheres.
How do I convert Celsius to Kelvin?
Add 273.15 to Celsius: K = °C + 273.15. Example: 25°C = 298.15 K. Always use Kelvin in gas law calculations as temperature must be absolute.
What pressure units can I use?
Common units: atm (atmospheres), Pa (pascals), torr, mmHg, psi. Conversions: 1 atm = 101,325 Pa = 760 torr = 760 mmHg = 14.7 psi. This calculator uses atm.
Can I calculate any variable?
Yes! The calculator solves for P, V, n, or T when you provide the other three variables. Simply select what you want to find and enter the known values.
What is STP?
STP (Standard Temperature and Pressure) is 0°C (273.15 K) and 1 atm. At STP, 1 mole of ideal gas occupies 22.4 L. This is useful for quick conversions and reference calculations.
Why do real gases deviate from ideal behavior?
Real gases have molecular volume and intermolecular attractions ignored by the Ideal Gas Law. At high pressure, molecular volume matters; at low temperature, attractions matter. Use van der Waals equation for better accuracy with real gases.