Chemistry · Introductory

Buffer titration curve

Written by SignalsLab

Early edition: these lessons are being reviewed.

Content

Summary

A buffer titration curve plots pH against the amount of strong base (or acid) added to a weak acid. The curve has a flat buffer region centered at pH = pKa, where the acid and its conjugate base are present in comparable amounts, and a steep jump at the equivalence point. The Henderson-Hasselbalch equation describes the buffer region.

Intuition

A weak acid HA only partly dissociates. When we add hydroxide, it converts HA into A-, one for one. While both HA and A- are present in sizable amounts, any extra base is soaked up by HA and any extra acid is soaked up by A-, so pH changes slowly. This is the buffering plateau. At half-equivalence, exactly half of HA has become A-, so the two are equal and pH equals pKa. Once nearly all HA is used up, there is nothing left to absorb hydroxide, so pH rises steeply at the equivalence point. At equivalence the solution contains only A-, a weak base, so pH is above 7. Beyond equivalence, pH is set by excess hydroxide.

Key equations

pH=pKa+log10⁡[A−][HA]
(1)

Henderson-Hasselbalch equation, valid in the buffer region

HA+OH−→A−+H2O
(2)

Neutralization reaction that goes essentially to completion

pH=pKa when Vbase=12Veq
(3)

Half-equivalence point: [A-] = [HA]

nOH−=nHA,initial
(4)

Condition for the equivalence point

Derivation

  1. Start with the acid equilibrium: Ka = [H+][A-]/[HA].
  2. Solve for [H+]: [H+] = Ka [HA]/[A-].
  3. Take the negative log10 of both sides: pH = pKa - log([HA]/[A-]).
  4. Flip the ratio to change the sign: pH = pKa + log([A-]/[HA]).
  5. During titration, moles of A- formed equal moles of OH- added, and moles of HA remaining equal initial moles minus moles OH- added. The volume cancels in the ratio, so use moles.
  6. At half-equivalence the ratio is 1, log 1 = 0, so pH = pKa.

Worked example

Problem

25.0 mL of 0.100 M acetic acid (pKa = 4.76) is titrated with 0.100 M NaOH. Find the pH after adding 10.0 mL of NaOH.

  1. Moles HA initially = 0.0250 L x 0.100 M = 2.50 mmol.
  2. Moles OH- added = 10.0 mL x 0.100 M = 1.00 mmol.
  3. After reaction: A- = 1.00 mmol, HA = 2.50 - 1.00 = 1.50 mmol.
  4. Apply Henderson-Hasselbalch: pH = 4.76 + log(1.00/1.50).
  5. log(0.667) = -0.176, so pH = 4.76 - 0.18 = 4.58.

Answer pH ≈ 4.58

Common mistakes

  • Using Henderson-Hasselbalch at the equivalence point or beyond, where HA or A- is essentially absent.
  • Assuming the equivalence point is at pH 7 for a weak acid; it is above 7.
  • Using concentrations of the stock solutions instead of moles after mixing (the ratio of moles is what matters).
  • Confusing half-equivalence volume with equivalence volume.
  • Thinking a buffer works equally well at any pH; it is effective only about pKa ± 1.

Animation

Animation coming soon

The animated version of this lesson is being prepared for the web. In the Signals AI app, lessons are drawn step by step.

Code

scene.py(96 lines)
import sys
import numpy as np
from manim import *
from blocks import *

# Henderson-Hasselbalch: pH = pKa + log10([A-]/[HA])
# Let pKa = 4.76 (Acetic acid)
PKA = 4.76

def ph_from_ratio(ratio):
    """Calculate pH given ratio [A-]/[HA]."""
    if ratio <= 0:
        return -np.inf
    return PKA + np.log10(ratio)

def ratio_from_ph(target_ph):
    """Calculate ratio [A-]/[HA] for a given pH."""
    return 10**(target_ph - PKA)

# We will plot pH vs log10(Ratio)
# x-axis: log10([A-]/[HA])
# y-axis: pH
# The relationship is linear: y = x + pKa

class Main(Scene):
    def construct(self):
        TitleCard(self, "Henderson-Hasselbalch", "Buffer pH vs log ratio")

        # Equation
        eq = MathTex(r"\text{pH} = \text{p}K_a + \log_{10}\left(\frac{[\text{A}^-]}{[\text{HA}]}\right)", font_size=36)
        eq.to_edge(UP, buff=0.5)
        self.play(Write(eq), run_time=1.5)

        # Plot: pH vs log10(Ratio)
        # x_range: log10(ratio) from -2 to 2 (ratio 0.01 to 100)
        # y_range: pH from 2 to 7 (approx)
        plot = CurvePlot(
            lambda x: float(PKA + x),
            x_range=(-2.0, 2.0, 0.5),
            y_range=(2.0, 7.0, 1.0),
            x_label="log10([A-]/[HA])",
            y_label="pH",
            color=C_MAIN,
            x_length=8.0,
            y_length=4.5
        )
        plot.move_to(ORIGIN)
        
        self.play(Create(plot.axes), FadeIn(plot.labels), run_time=1.5)
        self.play(Create(plot.curve), run_time=2)

        # Highlight key points
        # 1. Ratio = 1 (log ratio = 0), pH = pKa
        dot_mid = plot.dot_at(0.0, color=C_ACCENT)
        self.play(FadeIn(dot_mid), run_time=0.5)
        label_mid = Text(f"pH = pKa = {PKA}", font_size=24, color=C_ACCENT)
        label_mid.next_to(dot_mid, UP, buff=0.1)
        self.play(FadeIn(label_mid), run_time=0.5)

        # 2. Ratio = 10 (log ratio = 1), pH = pKa + 1
        dot_high = plot.dot_at(1.0, color=C_GOOD)
        self.play(FadeIn(dot_high), run_time=0.5)
        label_high = Text("pH = pKa + 1", font_size=24, color=C_GOOD)
        label_high.next_to(dot_high, UR, buff=0.1)
        self.play(FadeIn(label_high), run_time=0.5)

        # 3. Ratio = 0.1 (log ratio = -1), pH = pKa - 1
        dot_low = plot.dot_at(-1.0, color=C_BAD)
        self.play(FadeIn(dot_low), run_time=0.5)
        label_low = Text("pH = pKa - 1", font_size=24, color=C_BAD)
        label_low.next_to(dot_low, UL, buff=0.1)
        self.play(FadeIn(label_low), run_time=0.5)

        StepCaption(self, "Buffer capacity is best near pKa where pH changes slowly.")
        self.wait(1.5)


if __name__ == "__main__" and "--selftest" in sys.argv:
    # Test 1: At log ratio 0, pH should be pKa
    assert abs(ph_from_ratio(1.0) - PKA) < 1e-9
    
    # Test 2: At log ratio 1, pH should be pKa + 1
    assert abs(ph_from_ratio(10.0) - (PKA + 1)) < 1e-9
    
    # Test 3: At log ratio -1, pH should be pKa - 1
    assert abs(ph_from_ratio(0.1) - (PKA - 1)) < 1e-9
    
    # Test 4: Linearity check
    x_vals = np.linspace(-2, 2, 10)
    y_vals = np.array([ph_from_ratio(10**x) for x in x_vals])
    # Slope should be 1, intercept should be pKa
    slope, intercept = np.polyfit(x_vals, y_vals, 1)
    assert abs(slope - 1.0) < 1e-9
    assert abs(intercept - PKA) < 1e-9
    
    print("selftest ok")

The Manim scene code that draws this lesson's animation in the Signals AI app (Python, Manim Community).

ccBYNC© 2026 SignalsLab. Lesson text shared as is under CC BY-NC 4.0.