How to calculate Gibbs free energy from pKa?
To find the change in Gibbs free energy $\Delta G$ for the reaction of an acid, you can simply use $K_\mathrm{a}$ in the formula you gave in place of $K_\mathrm{eq}$ ($K_\mathrm{a}$ is an equilibrium constant).