Free to Use

Gas Law Calculator

Apply ideal gas law (PV = nRT) and combined gas law (P₁V₁/T₁ = P₂V₂/T₂) calculations. Solve for any variable with step-by-step physics solutions and unit conversion.

Gas Constant R = 8.314462618 J/(mol·K)

Leave the variable you want to solve for empty.

Real-World Gas Law Examples

🧪 Molar Volume of an Ideal Gas at STP

Problem: What is the volume occupied by 1 mole of an ideal gas at standard temperature and pressure (STP: 273.15 K, 101325 Pa)?

Solution: Using PV = nRT, solve for V:

V = nRT / P = (1 mol)(8.314 J/mol·K)(273.15 K) / 101325 Pa

= 22.414 L (0.022414 m³)

This is the well-known molar volume of an ideal gas at STP — a fundamental constant in chemistry.

🔬 Pressure in a SCUBA Tank

Problem: A 12 L SCUBA tank contains 3.0 moles of air at 25°C. What is the pressure inside the tank?

Solution: Using PV = nRT with T = 25°C = 298.15 K, V = 12 L = 0.012 m³

P = nRT / V = (3.0)(8.314)(298.15) / 0.012

= 6.20 × 10⁵ Pa (6.12 atm, ~90 psi)

Standard SCUBA tanks are typically filled to about 200-300 bar for diving.

🔄 Balloon Volume Change with Temperature

Problem: A balloon contains 2 L of air at 20°C. What will its volume be if heated to 80°C at constant pressure?

Solution: Using Charles's Law (V₁/T₁ = V₂/T₂ at constant P):

V₂ = V₁ × T₂ / T₁ = 2 L × (80 + 273.15) K / (20 + 273.15) K

= 2 × 353.15 / 293.15 = 2.41 L

The volume increases as temperature rises, exactly as Charles's Law predicts for constant pressure.

⛰️ Weather Balloon Expanding at Altitude

Problem: A weather balloon has a volume of 5.0 m³ at sea level (1 atm, 15°C). At 10 km altitude, the pressure drops to 0.265 atm and temperature to -50°C. What is the new volume?

Solution: Using P₁V₁/T₁ = P₂V₂/T₂, solve for V₂:

V₂ = P₁V₁T₂ / (P₂T₁) = (1 atm)(5.0 m³)(223.15 K) / (0.265 atm)(288.15 K)

= 14.6 m³

The balloon expands nearly threefold at altitude due to the much lower atmospheric pressure.

Gas Law Formulas & Guide

PV = nRT
Ideal Gas Law

Where P is pressure (Pa), V is volume (m³), n is the amount of substance (mol), R = 8.314462618 J/(mol·K) is the universal gas constant, and T is absolute temperature (K).

P₁V₁ / T₁ = P₂V₂ / T₂
Combined Gas Law (constant n)

Combines Boyle's Law, Charles's Law, and Gay-Lussac's Law into one expression for a fixed amount of gas.

Special Cases of the Combined Gas Law

📌 Boyle's Law (T const)

P₁V₁ = P₂V₂

At constant temperature, the pressure and volume of a gas are inversely proportional. If the volume doubles, the pressure is halved, and vice versa.

📌 Charles's Law (P const)

V₁/T₁ = V₂/T₂

At constant pressure, the volume of a gas is directly proportional to its absolute temperature (in Kelvin). Heating a gas causes it to expand.

📌 Gay-Lussac's Law (V const)

P₁/T₁ = P₂/T₂

At constant volume, the pressure of a gas is directly proportional to its absolute temperature. Heating a gas in a rigid container raises the pressure.

📌 Avogadro's Law (P,T const)

V₁/n₁ = V₂/n₂

At constant pressure and temperature, the volume of a gas is directly proportional to the number of moles. Equal volumes of gases at the same T and P contain equal numbers of molecules.

Key Concepts

💡 What is an Ideal Gas?

An ideal gas is a theoretical model where gas molecules have negligible volume, no intermolecular forces, and perfectly elastic collisions. Real gases approximate ideal behavior at low pressures and high temperatures. The ideal gas law works well for most gases under ordinary conditions.

💡 The Gas Constant R

The universal gas constant R = 8.314462618 J/(mol·K) in SI units. In other common units, R = 0.082057 L·atm/(mol·K) or R = 1.987 cal/(mol·K). Our calculator handles all unit conversions internally so you can work in any convenient units.

💡 Absolute Temperature

All gas law calculations require absolute temperature in Kelvin (K). Convert using: K = °C + 273.15, or K = (°F + 459.67) × 5/9. Never use Celsius or Fahrenheit directly in gas law formulas — the proportionality breaks without absolute zero as the reference point.

💡 When Real Gases Deviate

Real gases deviate from ideal behavior at high pressure (molecules are close together, their finite volume matters) and low temperature (molecules slow down, intermolecular attractive forces become significant). For better accuracy under these conditions, use the van der Waals equation: (P + a(n/V)²)(V - nb) = nRT.

🧪
Ideal Gas Law Mode
Solve PV = nRT for any variable — pressure, volume, amount of substance, or temperature. Select which variable to solve for via radio buttons and enter the other three values with your choice of units.
🔄
Combined Gas Law Mode
Apply P₁V₁/T₁ = P₂V₂/T₂ to relate initial and final states of a gas. Leave the unknown variable empty and enter the other five values — the calculator solves for whatever is missing.
📏
Multi-Unit Conversion
Full unit support: Pressure (Pa, atm, mmHg, bar, psi, kPa), Volume (L, mL, m³, ft³), Temperature (K, °C, °F), and Amount (mol). All conversions are handled automatically.
📝
Step-by-Step Solutions
Every calculation comes with a detailed step-by-step breakdown showing the formula used, unit conversions, substitution of values, intermediate calculations, and the final result with correct units.

⚠️ Important Note: This calculator applies the ideal gas law (PV = nRT), which assumes ideal gas behavior. Real gases may deviate from ideal behavior at high pressures (where molecular volume matters) and low temperatures (where intermolecular attractive forces become significant). For precise work under non-ideal conditions, consider using more advanced equations of state such as van der Waals, Redlich-Kwong, or Peng-Robinson.

Frequently Asked Questions

What is the ideal gas law?
The ideal gas law is PV = nRT, relating pressure, volume, amount, and temperature. R = 8.314 J/(mol·K). It assumes negligible molecular volume and no intermolecular forces, accurate for most gases at ordinary conditions.
How is the combined gas law different?

The combined gas law (P₁V₁/T₁ = P₂V₂/T₂) relates the initial and final states of a fixed amount of gas (n is constant) without needing the gas constant R. It combines Boyle's Law (P₁V₁ = P₂V₂ at constant T), Charles's Law (V₁/T₁ = V₂/T₂ at constant P), and Gay-Lussac's Law (P₁/T₁ = P₂/T₂ at constant V) into a single expression. The ideal gas law (PV = nRT) is more general — it can handle changes in the amount of gas (n) and can solve for any single variable when the other three are known, making it suitable for a wider range of chemistry and physics problems.

What units should I use?
The ideal gas law requires SI units: Pa, m³, mol, K. Our calculator handles all conversions internally — enter in any supported unit and it converts automatically.
Why must temperature be in Kelvin?
Gas laws describe direct proportionality relative to absolute zero. Doubling Kelvin doubles the volume, but doubling Celsius does not. K = °C + 273.15.
What are STP and NTP?
STP (Standard Temperature and Pressure): 0°C, 1 atm → 1 mol ideal gas = 22.414 L. NTP (Normal): 20°C, 1 atm → ~24.055 L/mol.
When does the ideal gas law fail?
At high pressure (molecular volume matters) and low temperature (intermolecular forces matter). Use van der Waals equation for better accuracy: (P + a(n/V)²)(V - nb) = nRT.