Henderson-Hasselbalch equation is used to determine the pH of a buffer system and can be derived from the Ka of a weak acid. Let us assume a weak acid and its conjugate base. In water the following dissociation occurs-