Ideal gas equation

Squeeze a bicycle pump shut and the air inside pushes back harder. Heat a sealed can and it may burst. Both are the same physics: pressure, volume, and temperature of a gas are locked together by one compact equation. The ideal gas equation, pV=nRTpV = nRT, is the single relation that lets you predict any one of pressure, volume, amount, or temperature once the other three are known — for a gas that behaves "ideally," with molecules so small and so weakly interacting that only their collisions with the walls matter. This equation is not a theorem proved from first principles; it is an experimental law, built by combining three separately-discovered proportionalities — Boyle's, Charles's, and Avogadro's laws. Kinetic theory later shows that molecular collisions are consistent with it, but pV=nRTpV = nRT itself stands on measurement. Here we build it from its three ingredients, work two numerical problems exactly like the ones you will face in exams, and flag the traps that cost the most marks.

The core insight

For an ideal gas, pressure times volume equals the amount of gas times the universal gas constant times the absolute temperature, pV=nRTpV = nRT, an experimental law obtained by combining Boyle's, Charles's, and Avogadro's laws, never a result derived from kinetic theory.

The core idea

An ideal gas is an idealised model: point-like molecules with negligible volume, no forces between them except during instantaneous elastic collisions. Real gases such as hydrogen or helium approach this behaviour closely at low pressure and moderate-to-high temperature. Three separate experimental laws describe how such a gas behaves when one variable is held fixed.

Boyle's law (constant temperature, constant amount): pressure and volume are inversely proportional,

pV=constant.pV = \text{constant}.

Charles's law (constant pressure, constant amount): volume is directly proportional to absolute temperature,

V∝T.V \propto T.

Avogadro's law (same pp, VV, TT): equal volumes of any gas contain equal numbers of molecules, so at fixed pp and TT, volume is proportional to the amount of gas, V∝nV \propto n. Multiplying these three proportionalities together gives the ideal gas equation, also called the equation of state of a perfect gas:

pV=nRTpV = nRT

where: pp is the pressure (Pa), VV is the volume (m3\text{m}^3), nn is the number of moles of gas, TT is the absolute temperature in kelvin, and R=8.314 J/mol ⋅ KR = 8.314\ \text{J/mol}\,\cdot\,\text{K} is the universal gas constant, the same value for every ideal gas regardless of its identity.

Why absolute temperature. The Kelvin scale is built so that 0 K0\ \text{K} is the point at which an ideal gas would, in principle, reach zero pressure and volume. Boyle's and Charles's laws only hold as clean proportionalities when temperature is measured on this absolute scale, so Celsius values must always be converted first:

T(K)=t(∘C)+273.T(\text{K}) = t(^\circ\text{C}) + 273.

Substituting Celsius directly into pV=nRTpV = nRT silently breaks the proportionality and gives a wrong answer, even though the arithmetic looks fine.

Figure
A diagram showing pressure volume and temperature of a gas connected by the equation pV equals nRT, with Boyle Charles and Avogadro laws feeding into it as the three combined ingredients
Three experimental laws combine into pV = nRT Boyle's law pV = constant T, n fixed Charles's law V is proportional to T p, n fixed Avogadro's law V is proportional to n p, T fixed pV = nRT equation of state of an ideal gas, R = 8.314 J/mol·K An experimental combination, not a derivation from kinetic theory

For a fixed amount of gas (nn constant) taken from one state (p1,V1,T1)(p_1, V_1, T_1) to another (p2,V2,T2)(p_2, V_2, T_2), the quantity nRnR stays constant, so a very useful combined form follows directly from pV=nRTpV = nRT:

p1V1T1=p2V2T2.\frac{p_1 V_1}{T_1} = \frac{p_2 V_2}{T_2}.

This combined gas law is the workhorse for "before and after" problems where the amount of gas does not change.

Building the equation of state

The goal is to combine Boyle's law, Charles's law, and Avogadro's law into the single relation pV=nRTpV = nRT, using only the rule that if a quantity is separately proportional to several variables, it is jointly proportional to their product, and then fixing the proportionality constant by naming it RR.

Step 1. State the three laws as proportionalities with everything else held fixed. Boyle: V∝1/pV \propto 1/p (at fixed TT, nn). Charles: V∝TV \propto T (at fixed pp, nn). Avogadro: V∝nV \propto n (at fixed pp, TT). Each law isolates how VV responds to one variable while the other two are frozen.

Step 2. Combine the three proportionalities into one joint statement. Since VV is separately proportional to 1/p1/p, to TT, and to nn, it must be jointly proportional to their product:

V∝nTp.V \propto \frac{nT}{p}.

This step is the entire physical content of the combination — no new experiment is needed once you accept that independent proportionalities multiply.

Step 3. Turn the proportionality into an equation by inserting a constant of proportionality, call it RR:

V=nRTp  ⟹  pV=nRT.V = \frac{nRT}{p} \implies pV = nRT.

Experiments (comparing gases at known pp, VV, nn, TT) show that RR has the same numerical value, 8.314 J/mol ⋅ K8.314\ \text{J/mol}\,\cdot\,\text{K}, for every gas that behaves ideally — this universality is itself an experimental fact, not something the algebra above guarantees on its own.

Step 4. Note what this derivation does not do: it never appeals to molecular collisions, forces, or velocities. Kinetic theory (studied later, in Unit 9) separately derives an expression for pressure from molecular motion, p=13ρc2‾p = \tfrac{1}{3}\rho\overline{c^2}, and that expression can be shown to be consistent with pV=nRTpV = nRT — but pV=nRTpV = nRT itself was established here purely by combining three experimental gas laws.

Worked example

A cylinder contains 2.0 mol2.0\ \text{mol} of an ideal gas at a pressure of 3.0×105 Pa3.0 \times 10^5\ \text{Pa} and a temperature of 27∘C27^\circ\text{C}. Find the volume of the gas, then find the new pressure if the gas is compressed to half this volume while its temperature is raised to 77∘C77^\circ\text{C}.

Step 1. Convert temperature to kelvin: T1=27+273=300 KT_1 = 27 + 273 = 300\ \text{K}.

Step 2. Apply the ideal gas equation to find the initial volume:

pV=nRT  ⟹  V1=nRT1p1=(2.0)(8.314)(300)3.0×105=4988.43.0×105=1.66×10−2 m3.pV = nRT \implies V_1 = \frac{nRT_1}{p_1} = \frac{(2.0)(8.314)(300)}{3.0\times10^5} = \frac{4988.4}{3.0\times10^5} = 1.66\times10^{-2}\ \text{m}^3.

That is 16.616.6 litres, using 1 m3=10001\ \text{m}^3 = 1000 litres.

Step 3. Now compress the same amount of gas to V2=V1/2=8.3×10−3 m3V_2 = V_1/2 = 8.3\times10^{-3}\ \text{m}^3 and heat it to T2=77+273=350 KT_2 = 77 + 273 = 350\ \text{K}. Since nn is unchanged, use the combined gas law:

p1V1T1=p2V2T2  ⟹  p2=p1V1T2T1V2.\frac{p_1V_1}{T_1} = \frac{p_2V_2}{T_2} \implies p_2 = \frac{p_1V_1T_2}{T_1V_2}.

Step 4. Substitute, noting V1/V2=2V_1/V_2 = 2:

p2=(3.0×105)×2×350300=6.0×105×1.167=7.0×105 Pa.p_2 = (3.0\times10^5)\times 2 \times \frac{350}{300} = 6.0\times10^5 \times 1.167 = 7.0\times10^5\ \text{Pa}.

Final answer: the initial volume is 1.66×10−2 m3=16.6 litres\mathbf{1.66\times10^{-2}\ \text{m}^3 = 16.6\ \text{litres}}, and after halving the volume and heating to 350 K350\ \text{K} the pressure rises to 7.0×105 Pa\mathbf{7.0\times10^5\ \text{Pa}} — more than double, because compression and heating both push pressure up together.

Competitive stretch

If instead the gas were allowed to expand until pressure returned to its original 3.0×105 Pa3.0\times10^5\ \text{Pa} while temperature stayed at 350 K350\ \text{K}, the new volume follows from pV=nRTpV = nRT directly: V=nRT/p=(2.0)(8.314)(350)/(3.0×105)=1.94×10−2 m3V = nRT/p = (2.0)(8.314)(350)/(3.0\times10^5) = 1.94\times10^{-2}\ \text{m}^3, about 17%17\% larger than the original 16.616.6 litres — consistent with Charles's law, since only temperature rose at constant pressure.

Common traps

  • Forgetting to convert to kelvin. Plugging Celsius values directly into pV=nRTpV = nRT or the combined gas law is the single most common numerical error — always add 273273 first.
  • Mixing pressure and volume units. With R=8.314 J/mol ⋅ KR = 8.314\ \text{J/mol}\,\cdot\,\text{K}, pressure must be in pascals and volume in m3\text{m}^3. Litres are fine only in the combined form, where volumes appear as a ratio and cancel.
  • Treating pV=nRTpV = nRT as derived from kinetic theory. It is the reverse: the equation is experimental, built from Boyle's, Charles's, and Avogadro's laws; kinetic theory is later shown to be consistent with it.
  • Confusing moles with mass. If a problem gives mass and molar mass, convert to moles, n=m/Mn = m/M, before substituting.

Ask the tutor: Want to practice picking between pV=nRTpV = nRT and the combined gas law across a mix of problems, or see how this equation connects to the kinetic theory of gases covered next?

Why is the ideal gas equation called "experimental" if it can be written as a neat formula?

Because the formula itself was assembled from three separately measured relationships — Boyle's, Charles's, and Avogadro's laws — each discovered by doing experiments on real gases, not by starting from a theoretical model of molecules. The algebra that combines them into pV=nRTpV = nRT is straightforward, but the physical content, that VV really is proportional to 1/p1/p, to TT, and to nn, comes from measurement. Kinetic theory later gives a molecular picture consistent with the equation, but that came afterward, as a explanation, not as the origin of the law.

Why can't I just use Celsius temperatures if I am careful with signs?

Because the proportionalities in Boyle's and Charles's laws are proportionalities to absolute temperature, not to whatever number the Celsius scale happens to assign. Doubling the Celsius reading from 10∘C10^\circ\text{C} to 20∘C20^\circ\text{C} does not double the gas's volume at constant pressure, but doubling the kelvin temperature from, say, 283 K283\ \text{K} to 566 K566\ \text{K} does. Kelvin is the scale on which "zero" genuinely means the gas laws' zero, so it is the only scale that makes V∝TV \propto T literally true.

When should I use pV equals nRT directly versus the combined gas law?

Use pV=nRTpV = nRT whenever you know, or need to find, the actual amount of gas nn — for instance, finding volume given moles, pressure, and temperature. Use the combined form p1V1/T1=p2V2/T2p_1V_1/T_1 = p_2V_2/T_2 whenever the amount of gas is fixed and you are comparing two states of the same sample, because nn and RR cancel out and you never need to know nn at all. Reading the question for "the same gas is compressed/heated" versus "how much gas is present" tells you which form to reach for.

Before this

Where this leads