pKa is constant for any given functional group, the ratio of acid to conjugate base (or conjugate acid to base) will determine the pH of the solution.
Henderson Hasselbach