ΔG=−RTlnK where G is the Gibbs free energy of the reaction and K is the equilibrium constant of the reaction.