For gas phase of acid and acetate anion I used opt+freq in CBS-QB3 and found the Gibbs free energy(sum of electronic and thermal free energies)
GgasCH3COOH= -229.122052 Hartree/particle
GgasCH3COO- = -228.555849 Hartree/particle
for calculating solvation energies I used opt+freq with HF/6-31G(d) for gas phase and CPCM HF/6-31G(d) for the solvated phase in water and took the difference of respective values for solvation energies.The values are:
GgasCH3COOH= -227.770611 Hartree/particle
GgasCH3COO-= -227.200572 Hartree/particle
GsCH3COOH= -227.779303 Hartree/particle
GsCH3COO-= -227.305984 Hartree/particle
So that the solvation energies becomes
GsolvationCH3COOH= -8.692*10^-3 Hartree or -5.4543 Kcal/mol
GsolvationCH3COO- = -0.105412 Hartree or -66.1470 Kcal/mol
I took values for Ggas(H+)= -6.28 Kcal/mol and Gsolvation(H+)= -264.61 Kcal/mol
Using
ΔG°solv = ΔG°gas + ΔG°s(CH3COO-) + ΔG°s(H+) − ΔG°s(CH3COOH)
and Pka = ΔG°solv / ln (10) RT Here T=298K
I am getting Pka of acetic acid to be 16.0 which is too much away from experimental value of 4.75.
Any help would be appreciated.