Combined gas equation

Boyle's Law needs constant temperature. Charles' Law needs constant pressure. But real gases rarely cooperate — heat a gas inside a cylinder and its piston may move too, so pressure, volume, and temperature all shift together. The combined gas equation is the tool that handles exactly this: it fuses Boyle's Law and Charles' Law into one relationship that tracks a fixed mass of gas through any change of state, including the trips examiners love to set — bringing a sample to or from STP. Master this equation and you no longer need to ask which single law applies; you simply plug the six quantities into one formula and solve.

The core insight

For a fixed mass of gas, P1V1/T1=P2V2/T2P_1V_1/T_1 = P_2V_2/T_2 holds through any simultaneous change of pressure, volume, and temperature, because it is Boyle's Law and Charles' Law applied one after another.

The core idea

Boyle's Law (PV=constantPV = \text{constant} at fixed TT) and Charles' Law (V/T=constantV/T = \text{constant} at fixed PP) each freeze one variable to study the other two. The combined gas equation removes that restriction and lets all three — pressure, volume, temperature — change at once, for the same fixed mass of gas:

P1V1T1=P2V2T2\frac{P_1V_1}{T_1} = \frac{P_2V_2}{T_2}

where: P1,V1,T1P_1, V_1, T_1 are the pressure, volume, and temperature of the gas in its initial state, and P2,V2,T2P_2, V_2, T_2 are the same three quantities in its final state. Temperature must always be in kelvin — Celsius values plugged in directly will silently wreck the answer. A few things make this equation easy to use once you see the pattern:

  • It is a ratio equation, not a proportionality between just two quantities. Each side is PV/TPV/T, and the equation says this combination stays the same before and after the change, for a fixed amount of gas.
  • It contains Boyle's and Charles' Laws as special cases. Set T1=T2T_1 = T_2 and the temperatures cancel, leaving P1V1=P2V2P_1V_1 = P_2V_2 — Boyle's Law. Set P1=P2P_1 = P_2 and the pressures cancel, leaving V1/T1=V2/T2V_1/T_1 = V_2/T_2 — Charles' Law. This is a good way to check you have written the equation correctly.
  • STP problems are just a special case of the general method. "Find the volume at STP" simply means one of the two states has P=1 atmP = 1\,\text{atm} and T=273 KT = 273\,\text{K} already filled in — nothing about the method changes.

The picture below shows why the equation must hold: going from state 1 to state 2 can always be imagined as two steps, first a Boyle's-Law step at fixed temperature, then a Charles'-Law step at fixed pressure.

Figure
A gas sample changing state in two imagined steps, first pressure and volume changing at fixed temperature, then volume and temperature changing at fixed pressure, arriving at the same final state as one combined change
Two imaginary steps combine into one equation State 1 P1, V1, T1 Boyle: T fixed Mid state P2, Vmid, T1 Charles: P fixed State 2 P2, V2, T2 Same final state either way — so P1V1/T1 = P2V2/T2
Derivation ADeriving the combined gas equation from Boyle's Law and Charles' Law

The goal is to show, using only Boyle's Law and Charles' Law and one algebraic substitution, that a fixed mass of gas moving from state (P1,V1,T1)(P_1, V_1, T_1) to state (P2,V2,T2)(P_2, V_2, T_2) through any mix of pressure, volume, and temperature changes must satisfy P1V1/T1=P2V2/T2P_1V_1/T_1 = P_2V_2/T_2, and that this single equation quietly contains both separate laws as the special cases where one variable is held fixed.

Step 1. Introduce an imaginary in-between state to break the real change into two steps you already know how to handle. Let the gas go from (P1,V1,T1)(P_1, V_1, T_1) to a mid-state (P2,Vmid,T1)(P_2, V_{\text{mid}}, T_1) by changing only the pressure, keeping temperature fixed at T1T_1 — this is a pure Boyle's Law step.

Step 2. Apply Boyle's Law to that first step. At constant temperature T1T_1, P1V1=P2VmidP_1V_1 = P_2V_{\text{mid}}, so Vmid=P1V1P2V_{\text{mid}} = \dfrac{P_1V_1}{P_2}.

Step 3. Take the gas from the mid-state (P2,Vmid,T1)(P_2, V_{\text{mid}}, T_1) to the final state (P2,V2,T2)(P_2, V_2, T_2) by changing only the temperature, keeping pressure fixed at P2P_2 — this is a pure Charles' Law step, and Charles' Law gives VmidT1=V2T2\dfrac{V_{\text{mid}}}{T_1} = \dfrac{V_2}{T_2}.

Step 4. Substitute the expression for VmidV_{\text{mid}} from Step 2 into the Charles' Law relation from Step 3. This gives 1T1⋅P1V1P2=V2T2\dfrac{1}{T_1}\cdot\dfrac{P_1V_1}{P_2} = \dfrac{V_2}{T_2}, and multiplying both sides by P2P_2 gives P1V1T1=P2V2T2\dfrac{P_1V_1}{T_1} = \dfrac{P_2V_2}{T_2} — the combined gas equation, built entirely from the two laws you already trust, with no new physics assumed.

Worked example

A fixed mass of gas occupies 200 cm³ at a pressure of 2 atm and temperature 47 °C. What volume will it occupy at a pressure of 1 atm and temperature 0 °C?

Step 1. Convert both temperatures to kelvin and list the known values. P1=2 atmP_1 = 2\,\text{atm}, V1=200 cm3V_1 = 200\,\text{cm}^3, T1=47+273=320 KT_1 = 47 + 273 = 320\,\text{K}; and P2=1 atmP_2 = 1\,\text{atm}, T2=0+273=273 KT_2 = 0 + 273 = 273\,\text{K}, with V2V_2 unknown.

Step 2. Write the combined gas equation and substitute. P1V1T1=P2V2T2\dfrac{P_1V_1}{T_1} = \dfrac{P_2V_2}{T_2} becomes 2×200320=1×V2273\dfrac{2 \times 200}{320} = \dfrac{1 \times V_2}{273}.

Step 3. Simplify the left-hand side first, since it contains no unknowns. 400320=1.25\dfrac{400}{320} = 1.25.

Step 4. Solve for V2V_2 by multiplying both sides by 273. V2=1.25×273=341.25 cm3V_2 = 1.25 \times 273 = 341.25\,\text{cm}^3. Notice both effects fought each other here: dropping the pressure alone would have increased the volume, while dropping the temperature alone would have decreased it. The combined equation weighs both correctly and gives V2=341.25 cm3V_2 = 341.25\,\text{cm}^3, meaning the net effect was a modest increase from the starting 200 cm³.

Competitive stretch

If the same 200 cm³ sample at 2 atm and 320 K were instead cooled to STP (1 atm, 273 K) directly, the same four steps apply — only the target state changes, and the method never needs to change with it. This is the habit worth building: always identify which six quantities you know, write them in two neat rows (P1,V1,T1P_1, V_1, T_1 and P2,V2,T2P_2, V_2, T_2), and only then substitute — this is also how ICSE examiners expect the working to be laid out.

Common traps

  • Using Celsius instead of kelvin. The single most common error — always convert with T(K)=T(°C)+273T(\text{K}) = T(°\text{C}) + 273 before substituting.
  • Writing STP temperature as 0 K instead of 273 K. STP means P=1 atmP = 1\,\text{atm} and T=273 KT = 273\,\text{K}, not T=0 KT = 0\,\text{K}.
  • Mixing units of pressure or volume between the two states. P1P_1 and P2P_2 must share one unit, and V1V_1 and V2V_2 must share one unit, or the numeric answer will be wrong even with correct method.
  • Reaching for the combined equation when only one variable changes. It still gives the right answer, but Boyle's or Charles' Law alone is simpler and safer when only two of the three quantities are actually varying.

Ask the tutor: Want to try a three-variable gas problem of your own, or see the Boyle's-Law-then-Charles'-Law derivation worked through with actual numbers instead of symbols?

Why can I not just use Boyle's Law or Charles' Law when both pressure and temperature change together

Boyle's Law is only valid when temperature stays fixed, and Charles' Law is only valid when pressure stays fixed. If both change at once, neither law alone accounts for everything happening to the gas. The combined gas equation is built precisely to handle this — it is derived by applying Boyle's Law and then Charles' Law in two imagined steps, so it correctly balances both effects together, as seen in the worked example where a pressure drop and a temperature drop partly cancelled.

Do I always need to convert to STP, or only when the question mentions it

Only convert to STP when the question actually asks for the volume, pressure, or temperature at STP, or gives you STP as one of the two states. STP is simply a fixed reference state, P=1 atmP = 1\,\text{atm} and T=273 KT = 273\,\text{K}; if the question instead gives you two arbitrary states with their own pressures and temperatures, you use those values directly in the combined gas equation and STP never enters the calculation.

What happens if I forget to convert Celsius to kelvin before substituting

The equation will still produce a number, but it will be physically wrong, because the ratio V/TV/T only behaves correctly when TT is measured from absolute zero. Using Celsius directly can even give a negative or wildly oversized volume for some inputs. This is why examiners specifically check that the kelvin conversion is shown as a separate step, before any substitution into the equation — always write T(K)=T(°C)+273T(\text{K}) = T(°\text{C}) + 273 as its own line.

Before this

Where this leads