Simuveliq

Chemical equilibrium calculator

Type the reaction with its phases and the calculator reads it, checks that it is balanced, writes the expression of K and solves the equilibrium with the ICE table, in concentrations, partial pressures or moles in a volume. It finds the exact extent even when K is huge or tiny, gives the percent conversion, checks that Q = K and explains every step.

Theory and worked examples: Chemical equilibrium: K, Q, ICE tables and Le Châtelier.

What you can do

Guide: chemical equilibrium

A reversible reaction does not stop when the reactants «run out»: it goes on until the forward and reverse reactions run at the same rate. At that point the amounts no longer change and their ratio equals a constant, K. This guide explains how to write K, how to find the equilibrium with an ICE table, how to go from Kc to Kp, what Q and Le Chatelier's principle tell you, and how K changes with temperature, with worked examples.

The equilibrium constant

For a A + b B ⇌ c C + d D, the law of mass action gives

Kc = [C]c[D]d / ([A]a[B]b)     Kp = PCcPDd / (PAaPBb)

with concentrations in mol/L or partial pressures. Pure solids and liquids do not appear (their activity is 1): for CaCO3(s) ⇌ CaO(s) + CO2(g), Kp = PCO2, and in an aqueous solution liquid water does not enter either. That is why the calculator asks for the reaction with its phases: (g), (aq), (l), (s).

The ICE table: a single extent x

All the amounts change at once and in proportion to their coefficients, so one unknown is enough, the extent x: each species ends at «initial + coefficient · x» (with a minus sign for reactants). Substitute into K and look for the x that leaves no amount negative. In that interval Q(x) always increases, so there is exactly one physical solution.

Worked example: H2 + I2 ⇌ 2 HI

1.00 mol of H2 and 1.00 mol of I2 are placed in a 10.0 L vessel at 448 °C, where Kc = 50.5.

  1. Initial concentrations: [H2]0 = [I2]0 = 1.00 / 10.0 = 0.1 mol/L; [HI]0 = 0.
  2. ICE table: [H2] = [I2] = 0.1 − x and [HI] = 2x.
  3. Equation: 50.5 = (2x)² / ((0.1 − x)(0.1 − x)). Clearing the denominator gives −46.5x² + 10.1x − 0.505 = 0, whose roots are 0.07804 and 0.1392. Only the first satisfies 0 < x < 0.1.
  4. Equilibrium: [H2] = [I2] = 0.02196 mol/L and [HI] = 0.1561 mol/L (1.561 mol in the 10 L). 78.04 % of the H2 reacts.
  5. Check: 0.1561² / (0.02196 × 0.02196) = 50.5 = Kc.

The other way around, K comes from an equilibrium datum: if 0.100 M CO and H2O reach [CO2] = 0.0665 M in CO + H2O ⇌ CO2 + H2, then x = 0.0665, 0.0335 M of CO and of H2O remain and Kc = 0.0665² / 0.0335² = 3.941. The percent conversion or dissociation works too.

From Kc to Kp

For an ideal gas, P = cRT. Substituting into Kp, each RT factor comes out with the exponent of its gas:

Kp = Kc (RT)Δn,   Δn = moles of gaseous products − moles of gaseous reactants

R goes in the pressure units: 0.08206 L·atm/(mol·K) for atm and 0.08314 L·bar/(mol·K) for bar. For N2 + 3 H2 ⇌ 2 NH3 with Kc = 0.105 at 472 °C (745.15 K): Δn = 2 − 4 = −2, RT = 61.15 and Kp = 0.105 × 61.15−2 = 2.808×10−5. If Δn = 0 (as in H2 + I2 ⇌ 2 HI), Kp = Kc.

Q and Le Chatelier's principle

The reaction quotient Q has the form of K but uses the current amounts. If Q < K, the reaction goes forward, towards the products; if Q > K, it goes back; if Q = K, it is at equilibrium. Le Chatelier is the same comparison after a change:

K at another temperature

The thermodynamic constant K° is tied to the Gibbs energy: ΔG° = −RT ln K° = ΔH° − TΔS°. With ΔH° and ΔS° nearly constant this gives the van 't Hoff equation:

ln(K2/K1) = −(ΔH°/R)(1/T2 − 1/T1)

For N2O4 ⇌ 2 NO2 (endothermic, ΔH° = 57.2 kJ/mol), Kp = 0.148 at 25 °C becomes 15.29 at 100 °C. The same equation gives ΔH° from two constants, or the temperature at which K reaches a given value. In the calculator, the «NASA CEA» option takes the thermodynamic polynomials of each species (gases and pure solids or liquids) from the «Data» base and gives the exact ΔH°, ΔS°, ΔG° and K° at each temperature: for ammonia synthesis, ΔG° = −32.81 kJ/mol and K° = 5.604×105 at 298.15 K, but K° = 8.84×10−5 at 700 K; van 't Hoff with the ΔH° at 298 K would give 3.221×10−4, because ΔH° changes with temperature.

How to use the calculator

  1. At the top, choose what you want to compute: ICE table, Kc ↔ Kp, Q and Le Chatelier, or K at another temperature.
  2. Type the balanced reaction with its phases (= or -> becomes ⇌). If it is not balanced, the calculator says so and suggests the coefficients.
  3. Choose Kc or Kp, type its value and the temperature, and the amounts as concentrations, partial pressures or moles in a volume. Leave empty what you want to find.
  4. Read the result, the figure and the step by step, and download the detailed solution as a PDF.

Common mistakes

More tools

Versión en español

© 2026 Simuveliq. All rights reserved.