Ferrum
PackagesBooksPeriodic Table
3D Tools
About Us
Dashboard
Dashboard
Chemistry Tools

Gas Laws
Calculator

PV=nRT, Boyle, Charles and Avogadro — unit conversion and step-by-step solutions.

PV = nRT
R = 8.314472 J/(mol·K) = 0.082057 L·atm/(mol·K)
P unit:
V unit:
T unit:
atm
L
mol
K
Leave the field you want to calculate empty.

Enter three values — the fourth is calculated automatically

What Are Gas Laws?

Gas laws describe how pressure (P), volume (V), temperature (T) and amount (n) of a gas are related. Boyle's law gives the inverse relationship between pressure and volume at constant temperature; Charles's law relates volume and absolute temperature at constant pressure; Avogadro's law relates volume and amount at constant pressure and temperature.

Combining these three laws yields the ideal gas law PV = nRT. This equation is among the most frequently tested formulas in high-school chemistry.

Gas Law Formulas

Ideal Gas Law

PV = nRT

General relationship among pressure, volume, amount and temperature. Combines Boyle, Charles and Avogadro laws.

R = 8.314 J/(mol·K) | R = 0.082 L·atm/(mol·K)

Boyle's Law

P₁V₁ = P₂V₂

At constant temperature, pressure and volume are inversely proportional. Higher pressure → lower volume.

Condition: T constant, n constant

Charles's Law

V₁/T₁ = V₂/T₂

At constant pressure, volume is directly proportional to absolute temperature. Higher T → higher V.

Condition: P constant, n constant | T must be in Kelvin

Avogadro's Law

V₁/n₁ = V₂/n₂

At constant P and T, volume is directly proportional to amount. 1 mol ideal gas occupies 22.4 L at STP.

Condition: P constant, T constant

Example Problems

Ideal Gas Law

2 mol of N₂ at 300 K in a 5 L container. What is the pressure in atm?

PV = nRT → P = nRT/V
P = 2 mol × 0.082057 L·atm/(mol·K) × 300 K / 5 L
P = 9.847 atm
Boyle's Law

A gas at 3 atm and 8 L expands to 12 L at constant temperature. What is the new pressure?

P₁V₁ = P₂V₂ → P₂ = P₁V₁/V₂
P₂ = 3 atm × 8 L / 12 L
P₂ = 2 atm
Charles's Law

A gas with 5 L at 273 K is heated to 546 K at constant pressure. What is the new volume?

V₁/T₁ = V₂/T₂ → V₂ = V₁ × T₂/T₁
V₂ = 5 L × 546 K / 273 K
V₂ = 10 L
Avogadro's Law

At STP, 1 mol of gas occupies 22.4 L. What volume does 3 mol occupy under the same conditions?

V₁/n₁ = V₂/n₂ → V₂ = V₁ × n₂/n₁
V₂ = 22.4 L × 3 mol / 1 mol
V₂ = 67.2 L

Frequently Asked Questions

The ideal gas law relates pressure (P), volume (V), amount (n) and temperature (T): PV = nRT, where R is the universal gas constant. It combines Boyle, Charles and Avogadro laws and is the most used gas equation in high-school chemistry.

Boyle's law states that at constant temperature, pressure and volume are inversely proportional: P₁V₁ = P₂V₂. For example, if a gas at 2 atm and 5 L is compressed to 4 atm at constant temperature, the volume becomes 2.5 L.

Charles's law states that at constant pressure, volume is directly proportional to absolute temperature (Kelvin): V₁/T₁ = V₂/T₂. Celsius cannot be used in the ratio because T cannot be zero. Higher temperature means larger volume.

Avogadro's law states that at constant pressure and temperature, volume is directly proportional to amount: V₁/n₁ = V₂/n₂. At STP (0°C, 1 atm), 1 mol of any ideal gas occupies 22.4 L.

R depends on units. In SI (Pa, m³): R = 8.314 J/(mol·K). With pressure in atm and volume in L: R = 0.082057 L·atm/(mol·K). This calculator converts automatically between unit systems.

In Charles's law and the ideal gas equation, temperature appears in the denominator, so T cannot be zero. Proportional relationships require an absolute scale: T(K) = T(°C) + 273.15. This tool converts °C input to Kelvin automatically.

STP (Standard Temperature and Pressure) is 0°C (273.15 K) and 1 atm (101,325 Pa). In many curricula, 1 mol of ideal gas occupies 22.4 L at STP. Use the STP button in the calculator to fill these values quickly.

An ideal gas ignores intermolecular forces and molecular volume. Real gases deviate at high pressure and low temperature; the van der Waals equation is then used. In high-school chemistry, gases are usually treated as ideal.

About the Gas Laws Calculator

Boyle's law describes the inverse relationship between pressure and volume (P₁V₁ = P₂V₂). Charles's law relates temperature and volume (V₁/T₁ = V₂/T₂). Avogadro's law states that volume increases with amount (V₁/n₁ = V₂/n₂). Together they form the ideal gas law PV = nRT, which solves most introductory gas problems. This tool supports atm, Pa, kPa, mmHg, bar, L, mL, m³, Kelvin and Celsius for exam preparation.

Ferrum

Free chemistry tools, simulations and personalized study tracking for exam prep.

Core Tools
BooksPeriodic TableElement Quiz

© 2026 Ferrum. All rights reserved.
About UsPrivacy Policy
Free Chemistry Platform · ferrumone.com