Works on this device
Equilibrium Constant Calculator
Type a balanced equation as rows of species with their coefficients. The tool writes the equilibrium expression and works out Kc or Kp from the amounts at equilibrium, or the amounts at equilibrium from the starting amounts and K. It also links K with ΔG°, ΔH° and ΔS°, and E°cell.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose what you want to work out, for example K from the amounts at equilibrium (Kc or Kp).
- Enter one row for each species: reactant or product, its coefficient in the balanced equation, its formula (such as
HI,Ag+orCu^2+) and its state: aq for dissolved, g for gas, s for a pure solid, l for a pure liquid. - Choose how the amounts are given: concentrations in mol/L, moles in a volume, or partial pressures. Then type the amounts.
- Choose Calculate. The result shows the expression, K, the working, and which side is favoured. The tool checks that the equation is balanced; untick the check to type names instead of formulas.
The formulas
- Equilibrium expression: for aA + bB ⇌ cC + dD, Kc = [C]^c × [D]^d ÷ ([A]^a × [B]^b). Pure solids and pure liquids are left out, because their activity is 1.
- Kp uses partial pressures divided by the standard pressure p°: Kp = (P(C) ÷ p°)^c × (P(D) ÷ p°)^d ÷ ((P(A) ÷ p°)^a × (P(B) ÷ p°)^b).
- Kc and Kp: Kp = Kc × (RT)^Δn, where Δn is the moles of gas of the products minus those of the reactants, R = 0.0831446 L·bar/(mol·K) for p° = 1 bar (0.0820574 L·atm/(mol·K) for 1 atm) and T is in kelvin.
- K and ΔG°: ΔG° = −RT ln K, so K = e^(−ΔG° ÷ RT). With ΔG° = ΔH° − TΔS° this gives K at a temperature. With ΔG° = −nFE°cell it gives K from a cell potential.
- Amounts at equilibrium (ICE table): each amount is its start plus ν × x, where ν is its coefficient (minus for reactants). Putting these into the expression gives one equation in x. Of its roots, only one leaves every amount at zero or above; the tool finds that root to full precision.
Constants and standard states
- R = 8.31446261815324 J/(mol·K) and F = 96,485.33212 C/mol. Both are exact since the SI was redefined in 2019.
- Concentrations are divided by 1 mol/L and pressures by p°. You choose p° = 1 bar (the IUPAC standard since 1982) or 1 atm (older tables). A Kp for 1 atm differs from one for 1 bar by a factor of 1.01325^Δn.
- Activities are taken equal to these ratios (activity coefficients of 1). That is close for dilute solutions and for gases at low pressure.
Worked examples
Kc from concentrations. For H2 + I2 ⇌ 2HI with [H2] = [I2] = 0.11 M and [HI] = 0.78 M: Kc = 0.78² ÷ (0.11 × 0.11) = 0.6084 ÷ 0.0121 = 50.281.
ICE table. Start with 0.5 M of H2 and of I2 and no HI, with K = 50. Then 50 = (2x)² ÷ (0.5 − x)², so 2x ÷ (0.5 − x) = √50 and x = 0.389759 M. At equilibrium [HI] = 0.779519 M and [H2] = [I2] = 0.110241 M.
K from ΔG°. ΔG° = −10 kJ/mol at 25 °C (298.15 K): ln K = 10,000 ÷ (8.31446 × 298.15) = 4.03395, so K = 56.4838.
K from a cell potential. For Cu + 2Ag⁺ ⇌ Cu²⁺ + 2Ag with E° = 0.80 V for Ag⁺/Ag and 0.34 V for Cu²⁺/Cu (rounded table values): E°cell = 0.46 V and n = 2, so ln K = 2 × 96,485.33 × 0.46 ÷ (8.31446 × 298.15) = 35.808 and K = 3.55811 × 10^15.
Kc to Kp. For N2 + 3H2 ⇌ 2NH3, Δn = 2 − 4 = −2. With Kc = 0.5 at 25 °C and p° = 1 bar: RT = 24.7896 L/mol, so Kp = 0.5 × 24.7896⁻² = 0.000813639.
Limits you should know
- Every K, ΔG°, ΔH°, ΔS° and E° is typed by you. The example values in the menus are for trying the tool, not data for your reaction; check them in your own data table.
- K depends on temperature and on the equation as written: the reverse equation has 1 ÷ K, and the equation times 2 has K².
- The ICE table takes pure solids and liquids as present in enough amount, and it does not count the H⁺ and OH⁻ that water gives. For the exact pH of a weak acid use the pH Calculator.
- To compare a mixture with K and see which way it shifts, use the Reaction Quotient Calculator. For K at a second temperature from a known K, use the Van T Hoff Calculator. For solubility products, use the Solubility Product Calculator.