Ideal Gas Law

The ideal gas law (PV = nRT) is the fundamental equation relating pressure, volume, temperature, and amount of gas. It combines Boyle's, Charles's, and Avogadro's laws into one powerful formula.

The Ideal Gas Law

PV = nRT

Pressure × Volume = Moles × Gas Constant × Temperature

Variable Definitions

P = Pressure

Units: atm, Pa, kPa, mmHg, torr

Standard: 1 atm = 101.325 kPa = 760 mmHg

V = Volume

Units: L (liters), m³, mL

Standard: 22.4 L at STP for 1 mole of gas

n = Moles of Gas

Units: mol

Find from: n = mass / molar mass

R = Gas Constant

Values depend on units:

  • 0.08206 L·atm/(mol·K) — most common
  • 8.314 J/(mol·K) — SI units
  • 62.36 L·mmHg/(mol·K)

T = Temperature

Units: Kelvin (K) — MUST use Kelvin!

Conversion: K = °C + 273.15

⚠️ Never use Celsius or Fahrenheit in this formula

Rearranged Forms

Find Pressure

P = nRT / V

Find Volume

V = nRT / P

Find Moles

n = PV / RT

Find Temperature

T = PV / nR

Step-by-Step Example

Problem: What volume does 2.0 moles of N₂ gas occupy at 25°C and 1.0 atm?

Given:

  • n = 2.0 mol
  • T = 25°C = 298 K
  • P = 1.0 atm
  • R = 0.08206 L·atm/(mol·K)

Step 1: Rearrange for V

PV = nRT → V = nRT / P

Step 2: Substitute values

V = (2.0 mol × 0.08206 L·atm/(mol·K) × 298 K) / 1.0 atm

Step 3: Calculate

V = 48.9 L

Answer: 48.9 L

Common Mistakes

❌ Using °C instead of Kelvin

ALWAYS convert to Kelvin! K = °C + 273.15. This is the #1 mistake.

❌ Mismatching R value and units

If P is in atm and V in L, use R = 0.08206 L·atm/(mol·K). Match your R to your units!

❌ Forgetting to convert mass to moles

n is moles, not grams. Use n = mass / molar mass first.

Related Calculators

Frequently Asked Questions

What is the ideal gas law?

PV = nRT relates pressure, volume, moles, and temperature for ideal gases. It assumes gas particles don't interact and have no volume.

When can I use the ideal gas law?

Works best at low pressure and high temperature. Real gases deviate at high pressure or low temperature.

What is R and what value should I use?

R = 0.08206 L·atm/(mol·K) for atm and liters. Use R = 8.314 J/(mol·K) for SI units. Match R to your pressure and volume units.

What is STP in the ideal gas law?

STP = Standard Temperature and Pressure = 0°C (273 K) and 1 atm. At STP, 1 mole of gas = 22.4 L.

MZ

Reviewed for accuracy by Muhammad Zohaib, MSc Chemistry

All formulas verified against academic standards • Editorial Policy