J.R. S. answered 04/04/25
Ph.D. University Professor with 10+ years Tutoring Experience
I'm adding to the answer provided by @Robin D. since the formatting of the ICE tables is a bit misleading and difficult to follow/understand. My answer will not provide specific examples as done in the other answer, but will try to explain how a buffer works.
A buffer is a solution that will resist minor changes in pH when an acid or a base is added to it.
The composition of a buffer will be either a weak acid and the conjugate base of that weak acid, or a weak base and the conjugate acid of that weak base. NOTE: the acid or the base must be WEAK, not strong.
The way a buffer functions is as follows:
when an acid (H+) is added, it will react with the base to form the weak acid, and since the acid is weak, it will not ionize appreciably, thus essentially removing the added acid (H+) from solution and resisting any large change in pH
when a base (OH-) is added, it will react with the weak acid to form H2O and the conjugate base, thus essentially removing the added base (OH-) from solution and resisting any large change in pH
This can be seen in the following generic example, where the weak acid is HA, and conjugate base in A-
If acid (H+) is added: A- + H+ ==> HA (weak acid, not ionized much, essentially removes added H+)
If base (OH-) is added: HA + OH- ==> H2O + A- (essentially removes OH- and A- is a weak base)