A buffer is a solution that maintains a constant pH, regardless of the addition of strong acids or strong bases as long as the amount of acid or base added is within the buffering capacity of the solution.
A buffer must contain the conjugate acid or base pair of a weak acid or weak base.
The common ion effect is when a given ion is added to a mixture at equilibrium that already contains the given ion. This causes the equilibrium to shift away from forming more of that ion.
The Henderson-Hasselbalch equation is used to calculate pH using the pKa and the acid to conjugate base ratio. This equation can be used to calculate the pH of a buffered solution or determine the amount of conjugate acid or base needed to prepare a buffer at a specific pH value.
The buffer capacity is a measure of the buffer's ability to resist changes in pH. If the concentration of acid or base is lower than the concentration of the buffer components, the pH value will resist drastic changes. Once these concentrations are exceeded, the buffer effect of the solution will no longer function, causing drastic changes in the pH.