Ideal Gas Law
The ideal gas law connects pressure, volume, temperature, and the amount of gas in a single equation. It lets you predict how a gas responds when any of those variables change, and it's the foundation for several named gas laws you'll encounter in this unit.
Ideal Gas Law Representations
There are two ways to write the ideal gas law, depending on whether you're counting individual molecules or moles.
Molecular form:
- = pressure of the gas (in pascals, Pa)
- = volume of the gas (in cubic meters, m³)
- = total number of gas molecules
- = Boltzmann constant = J/K
- = absolute temperature (in Kelvin, K)
Molar form:
- = number of moles of gas
- = universal gas constant = J/(mol·K)
- , , and mean the same thing as above
Both forms describe the same physics. You pick whichever matches the information you're given. If a problem tells you the number of molecules, use the molecular form. If it gives you moles, use the molar form.

Applications of the Ideal Gas Law
The ideal gas law contains several simpler laws as special cases. Each one holds a different set of variables constant.
- Boyle's law (constant and ): . If you double the volume, pressure drops to half.
- Charles's law (constant and ): . If you double the Kelvin temperature, the volume doubles.
- Gay-Lussac's law (constant and ): . Heating a rigid container raises the pressure.
- Combined gas law (constant , but , , and all change):
The subscripts 1 and 2 refer to the initial and final states of the gas.
How to use these in a problem:
- Identify which variables stay constant and which change.
- Pick the law that matches (or use the full ideal gas law if nothing simplifies).
- Plug in your known values, making sure temperature is in Kelvin.
- Solve for the unknown.
When multiple variables change at once, you can reason directly from . For example, if both pressure and volume double (and stays fixed), then the left side has quadrupled, so must also quadruple. Or if pressure triples and volume is cut in half, the product is multiplied by , so temperature must increase by a factor of .
Dalton's law of partial pressures also follows from the ideal gas law: in a mixture of gases, the total pressure equals the sum of the pressures each gas would exert on its own. Each gas contributes a partial pressure proportional to its number of moles.

Molecule–Mole Conversions in Gas Laws
Avogadro's number ( molecules/mol) bridges the two forms of the ideal gas law.
- Molecules to moles:
- Moles to molecules:
Example 1: You have molecules of helium. How many moles is that?
Example 2: You have 2.7 moles of nitrogen. How many molecules?
If a problem gives you molecules but you want to use , just convert first: substitute to get . The same idea works in reverse if you need to go from moles to the molecular form.
Theoretical Foundations and Limitations
The ideal gas law assumes gas molecules are tiny point particles that don't attract or repel each other and don't take up any space themselves. The kinetic theory of gases provides the microscopic justification for this: it models gas molecules as randomly moving particles whose collisions with container walls produce pressure.
Real gases follow the ideal gas law closely at high temperatures and low pressures, where molecules are far apart and moving fast. They deviate when:
- Pressure is very high (molecules are squeezed close together, so their actual volume matters)
- Temperature is very low (molecules slow down enough for attractive forces between them to matter)
The van der Waals equation corrects for both of these effects, but for most problems in an introductory course, the ideal gas law works well.