Calculate any variable in the equation PV = nRT
About the Ideal Gas Law
PV = nRT relates pressure (P), volume (V), moles (n), and temperature (T). The gas constant R = 0.082057 L·atm·K⁻¹·mol⁻¹. At STP (0°C, 1 atm), one mole of gas occupies 22.4 L.
The Ideal Gas Law is one of the most fundamental equations in chemistry and physics, describing the behavior of gases under varying conditions. Expressed as PV = nRT, it relates four key properties: pressure (P), volume (V), amount of substance in moles (n), and temperature (T), with R being the universal gas constant. This calculator allows you to solve for any one variable when the other three are known, making it an essential tool for students, scientists, engineers, and anyone working with gases.
The Ideal Gas Law combines three historical gas laws into a single equation. Boyle's Law states that pressure and volume are inversely proportional at constant temperature (P₁V₁ = P₂V₂). Charles's Law shows that volume is directly proportional to temperature at constant pressure (V₁/T₁ = V₂/T₂). Avogadro's Law states that volume is proportional to the number of moles at constant temperature and pressure. The Ideal Gas Law unifies these relationships, with the gas constant R = 0.082057 L·atm·K⁻¹·mol⁻¹ serving as the proportionality factor that makes the equation work across different unit systems.
The Ideal Gas Law works best under conditions where gases behave ideally: relatively low pressure and high temperature. At these conditions, intermolecular forces are negligible, and the volume occupied by gas molecules themselves is insignificant compared to the container volume. Common gases like nitrogen, oxygen, hydrogen, and helium behave very close to ideal under normal atmospheric conditions (around 1 atm and room temperature). The law becomes less accurate at extremely high pressures, very low temperatures, or near the condensation point where real gas effects become significant.
Standard Temperature and Pressure (STP) is a reference point where temperature is 273.15 K (0°C) and pressure is exactly 1 atmosphere (101.325 kPa). At STP, one mole of any ideal gas occupies 22.4 liters—a fact that's incredibly useful for converting between moles and volume in chemistry calculations. This standardization allows scientists worldwide to compare experimental results consistently. Our calculator includes a "Load STP" button that automatically fills in these standard values, making it easy to perform calculations under these common reference conditions.
Start by selecting which variable you want to calculate from the dropdown menu: pressure (P), volume (V), number of moles (n), or temperature (T). The calculator will then show input fields for the remaining three variables. Enter your known values and select the appropriate units—the calculator supports multiple unit systems including atmospheres, pascals, liters, cubic meters, Kelvin, Celsius, and Fahrenheit. Temperature values are automatically converted to Kelvin internally (the required unit for gas law calculations), ensuring accurate results regardless of your input format. Click "Calculate" to see the result along with step-by-step solutions and alternative unit conversions.
Always remember that temperature in gas law calculations must be in Kelvin, never Celsius or Fahrenheit, because the equations require an absolute temperature scale starting from absolute zero. Our calculator handles this conversion automatically. Be aware that the Ideal Gas Law assumes no intermolecular forces and zero molecular volume, which isn't perfectly true for real gases. For highly accurate work with gases under extreme conditions, consider using the Van der Waals equation or other real gas equations. Additionally, water vapor and gases with strong polar interactions deviate more significantly from ideal behavior than simple diatomic gases.
Example 1 - Finding Pressure: If you have 2 moles of gas in a 5-liter container at 298 K (25°C), what is the pressure? P = nRT/V = (2 mol)(0.082057)(298 K)/(5 L) = 9.78 atm.
Example 2 - Finding Volume: What volume does 1 mole of gas occupy at STP? V = nRT/P = (1 mol)(0.082057)(273.15 K)/(1 atm) = 22.4 L—the famous molar volume at STP!
Example 3 - Finding Moles: A 10-liter tank contains gas at 5 atm and 300 K. How many moles are present? n = PV/RT = (5 atm)(10 L)/[(0.082057)(300 K)] = 2.03 mol.
💡 Pro Tip:
When solving homework problems or exam questions, always write out the formula you're using, substitute values with units, and show your work step by step. Our calculator provides this format automatically—use the "Show Steps" button to see the complete solution process, perfect for learning and verification!
Yes, Ideal Gas Law Calculator is totally free :)
Yes, you can install the webapp as PWA.
Yes, any data related to Ideal Gas Law Calculator only stored in your browser (if storage required). You can simply clear browser cache to clear all the stored data. We do not store any data on server.
The Ideal Gas Law is an equation that describes the relationship between pressure (P), volume (V), number of moles (n), and temperature (T) of an ideal gas. The equation PV = nRT combines Boyle's, Charles's, and Avogadro's laws, where R is the universal gas constant (0.082057 L·atm·K⁻¹·mol⁻¹). It allows you to calculate any one variable if you know the other three.
The Ideal Gas Law works best for gases at low pressure and high temperature, where intermolecular forces are negligible. It's accurate for most real gases under normal conditions (room temperature and atmospheric pressure). However, it becomes less accurate at very high pressures, very low temperatures, or near the condensation point where gases behave non-ideally.
The units depend on your gas constant (R) value. Common combinations include: R = 0.082057 L·atm·K⁻¹·mol⁻¹ (pressure in atm, volume in L, temperature in K), R = 8.314 J·K⁻¹·mol⁻¹ (pressure in Pa, volume in m³, temperature in K), or R = 62.36 L·torr·K⁻¹·mol⁻¹ (pressure in torr, volume in L, temperature in K). Always convert temperature to Kelvin.
To convert Celsius to Kelvin, add 273.15: K = °C + 273.15. For Fahrenheit to Kelvin, first convert to Celsius using °C = (°F - 32) × 5/9, then add 273.15. For example, 25°C = 298.15 K, and 77°F = 298.15 K. Never use negative Kelvin values—absolute zero (0 K) is the lowest possible temperature.
STP stands for Standard Temperature and Pressure: 273.15 K (0°C) and 1 atm (101.325 kPa). At STP, one mole of any ideal gas occupies 22.4 liters. This standardization allows scientists to compare gas properties consistently. Many chemistry problems reference STP conditions for gas volume calculations.
Yes, but with limitations. The Ideal Gas Law assumes no intermolecular forces and zero molecular volume, which isn't true for real gases. It works well for gases like helium, nitrogen, and oxygen under normal conditions. For gases with strong intermolecular forces (like CO₂ or water vapor) or at high pressures/low temperatures, use the Van der Waals equation or other real gas equations for better accuracy.