The generalized acid dissociation reaction in water is;
#HA + H_2O rightleftharpoons H_3O^+ + A^-#.
And #K_a# #=# #([H_3O^+][A^-])/([HA])#.
This is an arithmetic equation, that we can multiply, divide, subtract, AS LONG AS we do it to both sides of the equation. We can also take logarithms to the base 10 of both sides:
#log_10K_a# #=# #log_10[H_3O^+] + log_10([[A^-]]/[[HA]])#
On rearrangement:
#-log_10[H_3O^+]# #=# # -log_10K_a+ log_10([[A^-]]/[[HA]])#
But by definition, #-log_10[H_3O^+]# #=# #pH#; and #-log_10K_a# #=# #pK_a#.
(The #p# function just means take the negative logarithm to the base 10.)
Thus #pH = pK_a + log_10([[A^-]]/[[HA]])#
When #[A^-] = [HA]#, #log_10([[A^-]]/[[HA]])# #=# #0#, because #log_(10)1=0# i.e.#10^0=1#). So during an acid base titration, at the point of half equivalence, #pH# #=# #pK_a#.
For stronger acids, i.e. #HCl, HClO_4, H_2SO_4#, the #pK_a# values will tend to be negative, because the equilibrium lies strongly to the right in the equation as given. In water, their dissociation would be almost complete. If a more acidic solvent were used (e.g. acetic acid or hydrogen fluoride), the #pK_a# values could be quantitatively measured.
Look up the #pK_a# values of acetic acid, phenol, #HF#, and phosphoric acid, #H_3PO_4#, and arrange them in order of acid strength.