| THEORY & FORMULAE |
Chemical equilibrium applies to reactions that can occur in both directions, such as:
     CH4(g) + H2O(g) <==> CO(g) + 3H2(g);
     AgBr(s) <==> Ag+(aq) + Br-(aq);
     HNO2 <==> H+ + NO2-.
After some of the products are created, the products begin to react to form the reactants. The reactants are then constantly forming products and vice-versa.
Chemical equilibrium is the state in which the concentrations of the reactants and products have no net change over time. Usually, this state results when the forward chemical reactions proceed at the same rate as their reverse reactions.
For a reversible chemical reaction:
     aA + bB <==> cC + dD ,      {e.g. for N2 + 3H2 <==> 2NH3, a=1, b=3, c=2, d=0}
the Equilbrium constant is given by the equation:
     Keq = [C]c[D]d/([A]a[B]b)
There are some special cases of Keq (e.g., Ka for the ionization constant of an acid, Kb for the ionization constant of a base, Kd for the dissociation constant).
Also, the free energy changes in the chemical reaction at equilibrium is given by:
     ΔG° = -RTln(Keq)
where
     Keq = equilibrium constant
     ΔG° = Gibbs standard free energy change
     [A] = concentration of reactant A
     a = stochiometric coefficient of reactant A
     [C] = concentration of reactant C
     c = stoichiometric coefficient of reactant C
     R = universal gas constant = 8.3145 J.K-1.mol-1
     T = Temperature in °K
◊ Use link
EXAMPLE Of Input/Output
to demo data entry expectations and results; you may edit & use it as starting point