Writing and Calculating Equilibrium Constants

General Chemistry · Chemical Equilibrium Calculations

Dr. Ray’s Learning Center · covers: Writing and Calculating Equilibrium Constants

  • 25–35 min
  • 6 figures
  • 1 simulator
  • 4 worked examples
  • 1 practice type: equilibrium constants

Before this lesson:

Related (optional):

Factories around the world turn nitrogen from the air and hydrogen into ammonia, most of it for fertilizer. Yet if you seal nitrogen and hydrogen in a hot vessel and wait, the reaction never runs to the end. It stops changing while plenty of nitrogen and hydrogen are still there. How much ammonia is in the vessel when it stops is set by one number: the equilibrium constant.

This lesson shows what equilibrium is, how to write the equilibrium constant expression KcK_{\text{c}} for any balanced equation, how to calculate its value from equilibrium concentrations, what to do with pure solids and liquids, and how KcK_{\text{c}} changes when the equation is reversed or scaled (Figure 1).

  1. Balanced equationwith states
  2. leave out(s) and (l)
  3. Expressionproducts over reactants, coefficients as powers
  4. substituteequilibrium M
  5. Value of Kno unit, one value at a fixed temperature

Given moles: divide by the volume first.Equation reversed or scaled: change K with it.

Figure 1. From a balanced equation to the value of its equilibrium constant.

Learning Objectives

After this lesson, you should be able to:

  1. Write the K expression for a balanced reaction, including heterogeneous equilibria.
  2. Calculate K from equilibrium concentrations and adjust K when the equation is reversed or scaled.

Key Ideas

1. Dynamic Equilibrium

Many reactions are reversible: the products can react to form the reactants again. Sulfur dioxide and oxygen form sulfur trioxide, and sulfur trioxide breaks down into sulfur dioxide and oxygen. The double half-arrow shows that both reactions run:

2SO2(g)+O2(g)⇌2SO3(g)2\,\mathrm{SO_2}(\text{g}) + \mathrm{O_2}(\text{g}) \rightleftharpoons 2\,\mathrm{SO_3}(\text{g})

Start with 0.400 M SO2 and 0.200 M O2 at 1500 K. At first only the forward reaction can run, and it is fast. As SO3 builds up, the reverse reaction speeds up and the forward reaction slows down. When the two rates become equal, the concentrations stop changing: 0.344 M SO2, 0.172 M O2 and 0.056 M SO3 in this experiment (Whitten 9e, section 17-1; Figure 2).

This state is chemical equilibrium. It is dynamic: molecules keep reacting in both directions, but each reaction undoes the other at the same rate, so there is no net change.

Reaching equilibriumConcentration against time for 0.400 M sulfur dioxide and 0.200 M oxygen at 1500 K. Sulfur dioxide and oxygen fall and sulfur trioxide rises; after a while all three curves level off at 0.344 M, 0.172 M and 0.056 M. The flat part is marked equilibrium: the rates are equal and the concentrations stay constant.SO₂ and O₂ at 1500 K0.40concentration, MtimeequilibriumSO₂ 0.344 MO₂ 0.172 MSO₃ 0.056 Mrates equal, concentrations constant
Figure 2. Whitten’s experiment 1: the concentrations change quickly at first, then level off. On the flat part the forward and reverse reactions still run, at the same rate.

Key idea: at equilibrium the forward and reverse rates are equal. The concentrations are constant, but they are not equal to each other and not zero.

2. The Equilibrium Constant Expression

For a general balanced equation with coefficients a, b, c and d,

aA+bB⇌cC+dDa\,\mathrm{A} + b\,\mathrm{B} \rightleftharpoons c\,\mathrm{C} + d\,\mathrm{D}

the equilibrium constant expression (the law of mass action) puts the products on top and the reactants underneath, and raises each concentration to the power of its coefficient:

Kc=[C]c[D]d[A]a[B]bK_{\text{c}} = \dfrac{[\mathrm{C}]^{c}[\mathrm{D}]^{d}}{[\mathrm{A}]^{a}[\mathrm{B}]^{b}}

Square brackets mean the molar concentration, in M, at equilibrium. The subscript c in KcK_{\text{c}} says the constant is written with concentrations. KcK_{\text{c}} is written without a unit (strictly, it uses activities, which have no unit; Whitten 9e, section 17-2). For the ammonia reaction, for example:

N2(g)+3H2(g)⇌2NH3(g)\mathrm{N_2}(\text{g}) + 3\,\mathrm{H_2}(\text{g}) \rightleftharpoons 2\,\mathrm{NH_3}(\text{g})
Kc=[NH3]2[N2][H2]3K_{\text{c}} = \dfrac{[\mathrm{NH_3}]^2}{[\mathrm{N_2}][\mathrm{H_2}]^3}

At a given temperature, KcK_{\text{c}} has one value, whatever amounts you start with. Whitten ran the SO3 reaction twice at 1500 K, once from SO2 and O2 and once from SO3 alone. The two equilibrium mixtures are different, yet both give KcK_{\text{c}} of about 0.15 (Whitten 9e, sections 17-1 and 17-2). A large KcK_{\text{c}} (much more than 1) means mostly products at equilibrium; a small KcK_{\text{c}} (much less than 1) means mostly reactants.

Building the equilibrium constant expressionThe ammonia equation, nitrogen plus three hydrogen in equilibrium with two ammonia. Below it the expression: the concentration of ammonia squared on top, the concentration of nitrogen times the concentration of hydrogen cubed underneath. Notes: products on top, reactants underneath; each coefficient becomes a power; square brackets mean molar concentration at equilibrium.N₂(g) + 3H₂(g) ⇌ 2NH₃(g)reactantsproduct[NH₃]2​[N₂][H₂]3​products on top, reactants underneatheach coefficient becomes a power:2 for NH₃, 3 for H₂, 1 for N₂square brackets: molar concentrationat equilibrium
Figure 3. The equilibrium constant expression for the ammonia reaction, built from the balanced equation.

A related constant written with partial pressures, KpK_{\text{p}}, comes in a later lesson. This lesson uses KcK_{\text{c}} only.

Key idea: products over reactants, each concentration raised to the power of its coefficient in the balanced equation.

3. Heterogeneous Equilibria: Leave Out Pure Solids and Liquids

An equilibrium with substances in more than one phase is heterogeneous. When mercury(II) oxide is heated in a closed container, a solid, a liquid and a gas are all present at equilibrium:

2HgO(s)⇌2Hg(l)+O2(g)2\,\mathrm{HgO}(\text{s}) \rightleftharpoons 2\,\mathrm{Hg}(\text{l}) + \mathrm{O_2}(\text{g})

The activity of a pure solid or a pure liquid is 1, so it does not appear in KcK_{\text{c}} (Whitten 9e, section 17-11). How much solid or liquid is there does not matter, as long as some is present. Gases and dissolved substances (aq) stay in the expression:

Kc=[O2]K_{\text{c}} = [\mathrm{O_2}]
A heterogeneous equilibriumA closed flask for the reaction of Worked Example 3. A block of solid A and a pool of liquid D sit at the bottom; gas particles B and C fill the space above. Notes: in K, the gases B and C; left out, the solid A and the liquid D, which have activity 1. How much A or D is there does not change K.A(s) + 2B(g) ⇌ C(g) + D(l)A(s)D(l)BBCCCBBCCCBBCCCBBCIn K:gases B, CLeft out:solid A,liquid D(activity 1)how much A or D is theredoes not change K
Figure 4. In a heterogeneous equilibrium only the gases (and any dissolved substances) enter K. The pure solid and the pure liquid are left out.

Key idea: leave out every pure solid (s) and pure liquid (l). Keep gases (g) and solutes (aq).

4. Changing the Equation Changes K

The value of KcK_{\text{c}} belongs to the equation as written (Whitten 9e, section 17-3). If you write the equation in reverse, products and reactants swap places, so the new constant Kc′K_{\text{c}}^{\prime} is the reciprocal:

Kc′=1KcK_{\text{c}}^{\prime} = \dfrac{1}{K_{\text{c}}}

If you multiply every coefficient by a factor n, every power in the expression is multiplied by n, so KcK_{\text{c}} is raised to the power n. Multiplying by one half takes the square root:

Kc′=(Kc)nK_{\text{c}}^{\prime} = \left(K_{\text{c}}\right)^{n}
Kc′=KcK_{\text{c}}^{\prime} = \sqrt{K_{\text{c}}}

For the SO3 reaction at 1500 K, KcK_{\text{c}} is about 0.15; written in reverse it is about 6.7, and with every coefficient halved it is about 0.39 (Figure 5 shows the same rules for ammonia).

One reaction, four ways of writing itFour cards for the ammonia reaction at 500 °C. As written, K is 0.286. Reversed, the constant is 1 over K, about 3.50. Every coefficient doubled, K squared, about 0.0818. Every coefficient halved, the square root of K, about 0.535.Ammonia at 500 °CN₂ + 3H₂ ⇌ 2NH₃as written: K0.2862NH₃ ⇌ N₂ + 3H₂reversed: 1 over Kabout 3.502N₂ + 6H₂ ⇌ 4NH₃doubled: K squaredabout 0.0818½N₂ + ³⁄₂H₂ ⇌ NH₃halved: square root of Kabout 0.535
Figure 5. The value of K belongs to the equation as written. Reversing or scaling the equation changes K in a fixed way.

Key idea: always give the balanced equation with a value of K. Reverse: take 1 over K. Multiply by n: raise K to the power n.

Try it: watch a reaction reach equilibrium

Set starting concentrations, press Let it react, and watch the forward and reverse rates meet. The readout computes the expression from the concentrations at every moment; when the mixture stops changing it equals the equilibrium constant. Load the presets for Worked Examples 1 to 4, or start from pure SO3 and see that the same constant comes out.

Open the equilibrium constant simulator full screen

Strategy: write the balanced equation, leave out pure solids and liquids, put products over reactants with each coefficient as a power, change moles to molar concentrations if needed, then substitute and divide.

Worked Example 1: K from Equilibrium Concentrations

Problem: For the reaction below at 500 °C, an equilibrium mixture has [N2] = 0.250 M, [H2] = 0.500 M and [NH3] = 0.0945 M. Calculate KcK_{\text{c}}.

N2(g)+3H2(g)⇌2NH3(g)\mathrm{N_2}(\text{g}) + 3\,\mathrm{H_2}(\text{g}) \rightleftharpoons 2\,\mathrm{NH_3}(\text{g})

Step 1. Write the expression. Products on top, reactants underneath; the coefficients 2 and 3 become powers:

Kc=[NH3]2[N2][H2]3K_{\text{c}} = \dfrac{[\mathrm{NH_3}]^2}{[\mathrm{N_2}][\mathrm{H_2}]^3}

Step 2. Substitute the equilibrium concentrations (in M; the unit is not carried, so K has no unit):

Kc=(0.0945)2(0.250)(0.500)3K_{\text{c}} = \dfrac{(0.0945)^2}{(0.250)(0.500)^3}

Step 3. Work out the top and the bottom of the fraction.

(0.0945)2≈0.008930(0.0945)^2 \approx 0.008930
(0.250)(0.500)3=0.03125(0.250)(0.500)^3 = 0.03125

Step 4. Divide the top by the bottom.

Kc=0.0089300.03125≈0.2858≈0.286K_{\text{c}} = \dfrac{0.008930}{0.03125} \approx 0.2858 \approx 0.286

Final Answer: Kc≈0.286K_{\text{c}} \approx 0.286

Check: Whitten 9e, Example 17-1, finds the same value, 0.286, at 500 °C from a different equilibrium mixture. Different concentrations, same temperature, same constant. The value is less than 1, so at this temperature the mixture holds more reactants than product.

  1. Expression[NH3]2[N2][H2]3\dfrac{[\mathrm{NH_3}]^2}{[\mathrm{N_2}][\mathrm{H_2}]^3}products over reactants
  2. substituteequilibrium concentrations
  3. Numbers in(0.0945)2(0.250)(0.500)3\dfrac{(0.0945)^2}{(0.250)(0.500)^3}in M, no unit carried
  4. work outtop and bottom
  5. Top over bottom0.0089300.03125\dfrac{0.008930}{0.03125}4 significant figures
  6. dividethen round
  7. Kc0.2860.286Final answer to 3 significant figures
Figure 6. Worked Example 1 one step at a time: build the expression, substitute, then divide.

Your turn: K from equilibrium concentrations

Same steps as Worked Example 1: write the expression, substitute, work out the top and the bottom, then divide.

Loading the practice problem…

Worked Example 2: K from Moles in a Flask

Problem: A 4.00 L flask at 1500 K holds an equilibrium mixture of 1.20 mol of SO2, 0.500 mol of O2 and 0.164 mol of SO3. Calculate KcK_{\text{c}} for the reaction below.

2SO2(g)+O2(g)⇌2SO3(g)2\,\mathrm{SO_2}(\text{g}) + \mathrm{O_2}(\text{g}) \rightleftharpoons 2\,\mathrm{SO_3}(\text{g})

Step 1. Change each amount to a molar concentration. K uses molar concentrations (M), so divide each amount by the volume:

[SO2]=1.20mol4.00L=0.300M[\mathrm{SO_2}] = \dfrac{1.20\,\text{mol}}{4.00\,\text{L}} = 0.300\,\text{M}
[O2]=0.500mol4.00L=0.125M[\mathrm{O_2}] = \dfrac{0.500\,\text{mol}}{4.00\,\text{L}} = 0.125\,\text{M}
[SO3]=0.164mol4.00L=0.0410M[\mathrm{SO_3}] = \dfrac{0.164\,\text{mol}}{4.00\,\text{L}} = 0.0410\,\text{M}

Step 2. Write the expression and substitute.

Kc=[SO3]2[SO2]2[O2]K_{\text{c}} = \dfrac{[\mathrm{SO_3}]^2}{[\mathrm{SO_2}]^2[\mathrm{O_2}]}
Kc=(0.0410)2(0.300)2(0.125)K_{\text{c}} = \dfrac{(0.0410)^2}{(0.300)^2(0.125)}

Step 3. Work out the top and the bottom, then divide.

(0.0410)2=0.001681(0.0410)^2 = 0.001681
(0.300)2(0.125)=0.01125(0.300)^2(0.125) = 0.01125
Kc=0.0016810.01125≈0.1494≈0.149K_{\text{c}} = \dfrac{0.001681}{0.01125} \approx 0.1494 \approx 0.149

Final Answer: Kc≈0.149K_{\text{c}} \approx 0.149

The sim’s table rounds this to 0.15.

Check: Whitten 9e, section 17-2, gives 0.15 for this reaction at 1500 K, and 0.149 rounds to 0.15.

Your turn: K from moles and a volume

Same steps as Worked Example 2: divide each amount by the volume first, then build and evaluate the expression.

Loading the practice problem…

Worked Example 3: A Heterogeneous Equilibrium

Problem: A 2.00 L flask holds the hypothetical reaction below at equilibrium at a fixed temperature. It contains 0.250 mol of A(s), 0.700 mol of B(g), 0.980 mol of C(g) and 0.150 mol of D(l). Calculate KcK_{\text{c}}.

A(s)+2B(g)⇌C(g)+D(l)\mathrm{A}(\text{s}) + 2\,\mathrm{B}(\text{g}) \rightleftharpoons \mathrm{C}(\text{g}) + \mathrm{D}(\text{l})

Step 1. Leave out the pure solid and the pure liquid. A(s) and D(l) have activity 1, so only the gases B and C appear:

Kc=[C][B]2K_{\text{c}} = \dfrac{[\mathrm{C}]}{[\mathrm{B}]^2}

Step 2. Change the gas amounts to molar concentrations. The amounts of A and D are not needed.

[B]=0.700mol2.00L=0.350M[\mathrm{B}] = \dfrac{0.700\,\text{mol}}{2.00\,\text{L}} = 0.350\,\text{M}
[C]=0.980mol2.00L=0.490M[\mathrm{C}] = \dfrac{0.980\,\text{mol}}{2.00\,\text{L}} = 0.490\,\text{M}

Step 3. Substitute and divide.

Kc=0.490(0.350)2=0.4900.1225=4.00K_{\text{c}} = \dfrac{0.490}{(0.350)^2} = \dfrac{0.490}{0.1225} = 4.00

Final Answer: Kc=4.00K_{\text{c}} = 4.00

The division is exact here, so the answer carries an equals sign rather than ≈.

Your turn: a heterogeneous equilibrium

Same steps as Worked Example 3: cross out every (s) and (l) first, then use only the gases.

Loading the practice problem…

Worked Example 4: Reversing or Scaling the Equation

Problem: At 500 °C, Kc=0.286K_{\text{c}} = 0.286 for the reaction below. Find the equilibrium constant at the same temperature for (a) the reverse reaction and (b) the equation with every coefficient halved.

N2(g)+3H2(g)⇌2NH3(g)\mathrm{N_2}(\text{g}) + 3\,\mathrm{H_2}(\text{g}) \rightleftharpoons 2\,\mathrm{NH_3}(\text{g})

(a) Reverse the equation. Ammonia is now the reactant, so the new constant is the reciprocal:

2NH3(g)⇌N2(g)+3H2(g)2\,\mathrm{NH_3}(\text{g}) \rightleftharpoons \mathrm{N_2}(\text{g}) + 3\,\mathrm{H_2}(\text{g})
Kc′=1Kc=10.286≈3.497≈3.50K_{\text{c}}^{\prime} = \dfrac{1}{K_{\text{c}}} = \dfrac{1}{0.286} \approx 3.497 \approx 3.50

(b) Halve every coefficient. Every power is halved, so take the square root:

12N2(g)+32H2(g)⇌NH3(g)\dfrac{1}{2}\,\mathrm{N_2}(\text{g}) + \dfrac{3}{2}\,\mathrm{H_2}(\text{g}) \rightleftharpoons \mathrm{NH_3}(\text{g})
Kc′=Kc=0.286≈0.5348≈0.535K_{\text{c}}^{\prime} = \sqrt{K_{\text{c}}} = \sqrt{0.286} \approx 0.5348 \approx 0.535

Final Answer: (a) Kc′≈3.50K_{\text{c}}^{\prime} \approx 3.50; (b) Kc′≈0.535K_{\text{c}}^{\prime} \approx 0.535

Check: a constant less than 1 becomes more than 1 when reversed. Its square root lies between the constant and 1.

Your turn: reverse or scale an equation

Same idea as Worked Example 4: reverse means 1 over K, doubling every coefficient squares K, and halving every coefficient takes the square root.

Loading the practice problem…

Common Mistakes

Common mistake: Putting the reactants on top. In Worked Example 1 the upside-down fraction gives about 3.50, which is the constant of the reverse reaction. Products always go on top.

Common mistake: Forgetting the powers. Dropping the coefficients in Worked Example 1 gives 0.0945 over (0.250)(0.500), which is 0.756, not 0.286. Each coefficient is a power.

Common mistake: Using moles instead of molar concentrations. Putting the amounts of Worked Example 2 straight into the expression gives about 0.0374, not 0.149. Divide by the volume first.

Common mistake: Including a pure solid or liquid. Putting [A] and [D] into Worked Example 3 gives 2.40 instead of 4.00. Pure solids and liquids are left out.

Common mistake: Multiplying K by the factor. Halving the equation in Worked Example 4 does not halve K: 0.286 divided by 2 is 0.143, but the right answer is the square root, about 0.535.

Exam tip: before you calculate, check the expression: products on top, coefficients as powers, no (s) or (l). After you calculate, a constant for the reverse reaction is the reciprocal of the forward one.

Key Takeaway

At equilibrium the forward and reverse reactions run at the same rate, so the concentrations stay constant. The equilibrium constant expression puts products over reactants, each raised to the power of its coefficient, and leaves out pure solids and liquids. At a given temperature it has one value for the equation as written: reversing the equation inverts K, and multiplying every coefficient by n raises K to the power n.

The relations to keep at hand:

Kc=[C]c[D]d[A]a[B]bK_{\text{c}} = \dfrac{[\mathrm{C}]^{c}[\mathrm{D}]^{d}}{[\mathrm{A}]^{a}[\mathrm{B}]^{b}}
Kc′=1KcK_{\text{c}}^{\prime} = \dfrac{1}{K_{\text{c}}}
Kc′=(Kc)nK_{\text{c}}^{\prime} = \left(K_{\text{c}}\right)^{n}

Practice: randomized problems

Each problem below uses fresh numbers every time: work it out, check your answer, then open the worked solution to compare your steps.

Loading the practice problem…

Your results

This summary collects every practice problem you try on this page and suggests what to review next.

Loading your results…

Figures and simulator: original work by Dr. Ray’s Learning Center, licensed CC BY 4.0. Dynamic equilibrium and the SO2, O2 and SO3 experiments: K. Whitten, R. Davis, M. Peck and G. Stanley, Chemistry, 9th ed., sections 17-1 and 17-2. The equilibrium constant expression and K for ammonia at 500 °C (Example 17-1): section 17-2. Reversing and scaling an equation: section 17-3. Heterogeneous equilibria: section 17-11. See also J. Moore and C. Stanitski, Chemistry: The Molecular Science, 5th ed., chapter 12. The simulator and the practice problems are audited; see the lesson audit log.