Ideal Gas Law Calculator
Solve PV = nRT for any variable. Supports multiple units for pressure (atm, kPa, mmHg, bar, psi), volume (L, mL, m³), and temperature (K, °C, °F).
Quick Answer
PV = nRT where R = 0.08206 L·atm/(mol·K). Enter any 3 of pressure, volume, moles, and temperature to solve for the 4th.
Calculate
Select which variable to solve for, then enter the three known values with appropriate units.
Gas Constant R — Common Values
| Value | Units |
|---|---|
| 0.08206 | L·atm/(mol·K) |
| 8.314 | J/(mol·K) |
| 8.314 | kPa·L/(mol·K) |
| 62.36 | L·mmHg/(mol·K) |
| 1.987 | cal/(mol·K) |
| 0.08314 | L·bar/(mol·K) |
About This Tool
The Ideal Gas Law Calculator solves the equation PV = nRT for any one of the four variables: pressure (P), volume (V), amount in moles (n), or temperature (T). It supports multiple unit systems for each variable, handling all conversions internally so you can work in whichever units are most convenient for your problem. The gas constant R = 0.08206 L·atm/(mol·K) is used as the base, with automatic unit conversion for all inputs and outputs.
The Ideal Gas Law Explained
The ideal gas law PV = nRT is one of the most important equations in chemistry and physics. It relates four macroscopic properties of a gas: pressure, volume, amount (in moles), and temperature. The equation assumes the gas is "ideal" meaning molecules are point particles with no volume that experience no intermolecular attractive or repulsive forces. While no real gas is truly ideal, most gases behave ideally enough at moderate temperatures and pressures for this equation to be extremely useful.
Historical Development
The ideal gas law combines three empirical gas laws discovered over two centuries. Boyle's Law (1662) established that pressure and volume are inversely proportional at constant temperature (PV = constant). Charles's Law (1787) showed that volume and temperature are directly proportional at constant pressure (V/T = constant). Avogadro's Law (1811) demonstrated that volume and amount are directly proportional at constant temperature and pressure (V/n = constant). Combining these three proportionalities with the gas constant R yields PV = nRT.
Unit Conversions
One of the most common sources of error in gas law calculations is unit inconsistency. This calculator supports five pressure units (atm, kPa, mmHg, bar, psi), three volume units (L, mL, m³), and three temperature scales (K, °C, °F). All conversions happen automatically. The key requirement is that temperature must ultimately be in Kelvin for the equation to work, since Kelvin is the only absolute temperature scale. Using Celsius or Fahrenheit directly would produce incorrect results.
STP and Molar Volume
At Standard Temperature and Pressure (STP: 273.15 K, 1 atm), one mole of an ideal gas occupies 22.414 liters. This molar volume is a fundamental constant in gas chemistry and is used extensively in stoichiometric calculations involving gases. At room temperature (25°C, 298.15 K) and 1 atm, the molar volume increases to about 24.47 liters. The preset buttons in this calculator load these standard conditions for quick reference and verification.
Real Gases and Limitations
The ideal gas law works well for gases like nitrogen, oxygen, hydrogen, and noble gases at ordinary conditions. It becomes inaccurate at high pressures (where molecular volume becomes significant compared to the container), low temperatures (near the boiling point, where intermolecular forces cause deviations), and for polar molecules like water vapor or ammonia. For more accurate calculations under non-ideal conditions, the van der Waals equation, Redlich-Kwong equation, or Peng-Robinson equation of state should be used instead.
Practical Applications
Engineers use the ideal gas law to design gas storage systems, calculate fill pressures for cylinders, and predict gas behavior in engines and turbines. Chemists use it to determine gas volumes in reactions, calculate molar masses from gas density measurements, and design gas-phase synthesis procedures. In meteorology, it helps explain atmospheric pressure, weather patterns, and balloon behavior. In medicine, it underlies the physics of ventilation, anesthesia delivery, and hyperbaric oxygen therapy.
Frequently Asked Questions
What is the ideal gas law?
What is the value of the gas constant R?
What is STP and what volume does one mole of gas occupy?
When does the ideal gas law not work well?
How do I convert between temperature units for this calculator?
What are the common applications of the ideal gas law?
Was this tool helpful?