Compute precise equilibrium constants (Kc and Kp) from balanced chemical reactions. Derive standard Gibbs free energy (ΔG° = –RT ln K°), reaction quotient (Q), and visualize species concentration profiles.
N₂(g), H₂(g)). Δn and Kp are computed only from (g) species.
The equilibrium constant (K) quantifies the ratio of product activities to reactant activities at equilibrium. For a general reaction aA + bB ⇌ cC + dD, Kc = ([C]ᶜ[D]ᵈ)/([A]ᵃ[B]ᵇ) using molar concentrations. For gas-phase reactions, Kp employs partial pressures, related by Kp = Kc(RT)Δn. This calculator provides both, along with the standard Gibbs free energy change (ΔG° = -RT ln K°), where K° is the dimensionless thermodynamic equilibrium constant (for gases, K° = Kp numerically when standard pressure is 1 atm/bar).
The magnitude of K indicates reaction favorability: K >> 1 favors products; K << 1 favors reactants. The tool also calculates the reaction quotient Q using the same expression but with non-equilibrium concentrations, allowing prediction of net reaction direction (Q < K → forward; Q > K → reverse).
Our algorithm computes Δn (sum of gaseous product coefficients minus sum of gaseous reactant coefficients) by detecting the (g) tag in species names – only these contribute to Δn. Kc is evaluated from user‑supplied equilibrium concentrations and stoichiometric coefficients, excluding pure solids and liquids (activity = 1). Kp is derived using Kp = Kc (R·T)Δn with consistent units (L·atm·mol⁻¹·K⁻¹ or bar). The standard Gibbs free energy is evaluated using ΔG° = –R·T·ln(K°) where K° = Kp (numeric value) if any gas species is present, otherwise K° = Kc. This follows IUPAC recommendations for dimensionless equilibrium constants.
N₂(g) + 3H₂(g) ⇌ 2NH₃(g). At 400 °C (673 K), experimental Kp is ~1.6×10⁻⁴ (atm⁻²). Our calculator replicates this: using equilibrium partial pressures yields Kp, and ΔG° = –RT ln Kp ≈ +73 kJ·mol⁻¹. The positive ΔG° at standard state explains why high pressure is industrially employed to shift equilibrium (Le Chatelier). Students can explore how temperature affects ΔG° via the van 't Hoff equation.