Convert equilibrium amounts into mole fractions and partial pressures, then construct an expression with the correct powers and units.
Each gas occupies the whole container
The partial pressure of a gas is the pressure it would exert alone at the same temperature in the volume occupied by the mixture. For an ideal gas mixture, p(A) = x(A)Ptotal, where x(A) = n(A)/ntotal. The mole fraction has no units; a partial pressure has pressure units. Edexcel specifies atmospheres for Topic 11 Kp calculations.
The total amount includes every gas in the vessel, including inert gases, but excludes solids and liquids. The sum of all mole fractions is one and the sum of all partial pressures is the total pressure. These give quick checks before a high power magnifies a numerical error.
For 0.400 mol A, 0.800 mol B and 0.800 mol inert gas at 5.00 atm, x(A) = 0.200 and p(A) = 1.00 atm. Omitting the inert gas would give an incorrect partial pressure even though that inert gas does not appear in the equilibrium expression.
