Mathwords logoMathwords

Ideal Gas Equation — Definition, Formula & Example

The ideal gas equation is another name for the ideal gas law, PV=nRTPV = nRT. It is a single formula that tells you how the pressure, volume, amount, and temperature of a gas depend on one another.

The ideal gas equation is the equation of state for a hypothetical ideal gas: PV=nRTPV = nRT, where RR is the universal gas constant and TT is absolute (Kelvin) temperature. An ideal gas is a model in which the molecules have negligible volume and exert no forces on each other except during elastic collisions. The equation combines Boyle's law, Charles's law, and Avogadro's law. Real gases follow it closely at low pressure and high temperature.

Key Formula

PV=nRTPV = nRT
Where:
  • PP = Pressure of the gas (atm or pascals)
  • VV = Volume of the container (liters or cubic meters)
  • nn = Amount of gas in moles (mol)
  • RR = Universal gas constant: 0.08206 L·atm/(mol·K), or 8.314 J/(mol·K) in SI units
  • TT = Absolute temperature in kelvins (K)

Worked Example

Problem: A 20.0 L tank holds 4.00 mol of gas at a pressure of 5.00 atm. Find the temperature of the gas. This uses chemistry's standard units (liters, atmospheres, kelvins), with R = 0.08206 L·atm/(mol·K).
Step 1: Rearrange the equation to isolate T by dividing both sides by nR.
T=PVnRT = \frac{PV}{nR}
Step 2: Substitute the given values. The units L·atm and mol cancel, which leaves kelvins.
T=(5.00)(20.0)(4.00)(0.08206)=1000.32824≈305 KT = \frac{(5.00)(20.0)}{(4.00)(0.08206)} = \frac{100}{0.32824} \approx 305 \text{ K}
Step 3: Convert to Fahrenheit for a familiar reading. Subtract 273.15 to get Celsius, then use F = 1.8C + 32.
304.66−273.15≈31.5∘C,1.8(31.5)+32≈88.7∘F304.66 - 273.15 \approx 31.5^\circ\text{C}, \qquad 1.8(31.5) + 32 \approx 88.7^\circ\text{F}
Answer: The gas is at about 305 K, which is roughly 88.7 °F.

Why It Matters

In high school chemistry you use PV=nRTPV = nRT to find how many moles of gas a reaction produces, or what volume a gas fills. It is also a clean algebra exercise: if you hold nn and TT fixed, P=nRTVP = \frac{nRT}{V} is an inverse variation, and its graph is a hyperbola. Engineers use the same relationship to size scuba tanks, airbags, and tire pressures.

Common Mistakes

Mistake: Plugging in temperature in Celsius or Fahrenheit, for example using T = 25 for a room at 25 °C.
Correction: The equation only works with absolute temperature. Convert to kelvins first (K = °C + 273.15). Otherwise a gas at 0 °C would give zero pressure, which is physically wrong.

Related Terms

  • Algebraic Equation — The equation type you rearrange to isolate one variable
  • Algebra — Supplies the rearranging skills used to solve for T
  • Boyle's Law — Special case when temperature and amount stay fixed
  • Kelvin — Temperature unit required in the equation
  • Inverse Variation — Describes pressure and volume at fixed temperature