Ideal Gas Law Calculator (PV = nRT)
Solve for pressure, volume, moles, or temperature using PV = nRT. Includes Combined Gas Law, Boyle's, Charles's, and Gay-Lussac's Law with full unit conversions.
Solve for:
Pressure (P)
Volume (V)
Moles (n)
Temperature (T)
Combined Gas Law: P₁V₁/T₁ = P₂V₂/T₂ — enter any 5 of the 6 values and the calculator will solve for the missing one.
Pressure P₁
Volume V₁
Temperature T₁
Pressure P₂
Volume V₂
Temperature T₂
Select law:
P₁
V₁
T₁
P₂ (or blank)
V₂ (or blank)
T₂ (or blank)
Pressure
Volume
Moles / Result
Temperature
✎ Step-by-Step Solution
The Ideal Gas Law Explained
The ideal gas law PV = nRT is one of the most fundamental equations in chemistry and physics. It combines three earlier empirical laws — Boyle's, Charles's, and Avogadro's — into a single equation relating the four state variables of a gas.
An "ideal" gas is a theoretical model where molecules have no volume and exert no intermolecular forces. Real gases approximate this behaviour well at low pressures and high temperatures.
Choosing the Right Value of R
The gas constant R has different numerical values depending on the unit system you use. Always ensure your units are consistent. This calculator converts everything to SI internally and uses R = 8.314 J/(mol·K).
| R value | Units | When to use |
|---|---|---|
| 8.314 | J/(mol·K) = Pa·m³/(mol·K) | SI units (default) |
| 0.08206 | L·atm/(mol·K) | Volume in litres, pressure in atm |
| 8.314 | L·kPa/(mol·K) ÷ 1000 | Volume in m³, pressure in kPa |
| 62.364 | L·mmHg/(mol·K) | Medical or atmospheric sciences |
Boyle's Law, Charles's Law & Gay-Lussac's Law
Boyle's Law (1662)
P₁V₁ = P₂V₂
At constant temperature, pressure × volume = constant. Doubling pressure halves volume.
Charles's Law (1787)
V₁/T₁ = V₂/T₂
At constant pressure, volume is proportional to absolute temperature. Hot gas expands.
Gay-Lussac's Law (1808)
P₁/T₁ = P₂/T₂
At constant volume, pressure is proportional to absolute temperature. Hot gas pressurises.
The Combined Gas Law
The combined gas law merges Boyle's and Charles's laws: P₁V₁/T₁ = P₂V₂/T₂. It is useful when a fixed amount of gas (same n) moves from one state (P₁, V₁, T₁) to another (P₂, V₂, T₂). This is commonly used to describe gas syringes, balloons at different altitudes, and scuba cylinders at depth.
V₂ = V₁ × T₂ / T₁ = 2 × 600 / 300 = 4 L
Worked Examples
Example 1 — 1 mol at STP (V = ?)
Example 2 — Scuba tank (n = ?)
Example 3 — Helium balloon (V = ?)
Example 4 — Find moles from mass (CO₂, n = ?)
When the Ideal Gas Law Breaks Down
Real gases deviate from ideal behaviour under conditions where intermolecular forces or molecular volume become significant:
High Pressure
Molecules are forced close together; repulsive forces and finite molecular volume matter. Real volume is larger than predicted.
Low Temperature
Attractive forces pull molecules together; gas may condense to liquid. Pressure is lower than ideal predictions.
Polar Molecules
Water vapour (H₂O), ammonia (NH₃), and HCl have strong dipole–dipole interactions that cause significant deviations.
Best Approximation
Noble gases (He, Ar) and H₂, N₂, O₂ at room temperature and moderate pressures (≤ 10 atm) follow the ideal gas law well.