In this lesson
- Video lesson (coming soon)
- Lesson notes
- Worked examples
- Big ideas
- AP alignment
Take it with you
- Lesson slides (PDF)
- Practice worksheet (PDF)
- Answer key (PDF)
- pH & Buffer Lab (activity)
- AP Chemistry Unit 8 Practice (activity)
Essential Question
How can we calculate a buffer’s pH?
By the end of this lesson, you should be able to use the Henderson-Hasselbalch equation to calculate the pH of a buffer from pKa and the amounts of weak acid and conjugate base, and to find the base-to-acid ratio needed for a target pH. It builds directly on the buffers from Topic 8.8.
Video lesson coming soon. In the meantime, read through the lesson below.
The Equation
pH = pKa + log([A−]/[HA])
- pH: the buffer’s pH
- pKa: −log Ka of the weak acid, HA
- [A−]: concentration of the conjugate base (M)
- [HA]: concentration of the weak acid (M)
- Use it for buffers only: HA mixed with A−
![Four cards defining the terms of the Henderson-Hasselbalch equation: pH, the buffer's pH; pKa, negative log Ka of HA; [A minus], conjugate base in M; and [HA], weak acid in M.](https://i0.wp.com/zornscience.org/wp-content/uploads/2026/10/apchem-8-9-equation-terms.png?resize=1200%2C178&ssl=1)
The Henderson-Hasselbalch equation is on the AP equation sheet. It says pH equals pKa plus the log of [A−] over [HA]. You will not be asked to derive it; what matters is using it correctly. The pKa comes from the weak acid. A−, the conjugate base, goes on top, and HA, the weak acid, goes on the bottom. A good way to remember it: base over acid. One warning: this equation only works for a buffer, where there is a real amount of both the weak acid and its conjugate base. For a weak acid by itself, go back to the ICE table method from Topic 8.3.
Start with pKa
- pKa = −log Ka
- A stronger acid has a smaller pKa.
- A buffer’s pH lands near its pKa.
| Weak acid | Ka | pKa |
|---|---|---|
| HF | 6.8 × 10−4 | 3.17 |
| CH3COOH | 1.8 × 10−5 | 4.74 |
| HCN | 6.2 × 10−10 | 9.21 |
Before using Henderson-Hasselbalch, you need pKa. It is the negative log of Ka, the same way pH is the negative log of [H3O+], so if a problem gives Ka, the first move is to take the negative log. In the table, hydrofluoric acid has the biggest Ka, so it is the strongest of these three weak acids, and it has the smallest pKa. Hydrocyanic acid has a tiny Ka and the largest pKa. So a smaller Ka means a bigger pKa, and a smaller pKa means a stronger acid. Most importantly, a buffer’s pH always lands close to the pKa of its weak acid: an acetic acid buffer will have a pH somewhere around 4.74, which gives you a quick check on every buffer problem.
Which Is HA? Which Is A−?
- HA is the weak acid.
- A− is its conjugate base.
- Salts supply the A−.

The most common mistake with this equation is putting the wrong species on top. HA is always the weak acid, the one that can give away an H+. A− is its conjugate base, the same thing with one less H+. In the lab, the conjugate base is usually added as a salt, like sodium acetate or sodium fluoride. The salt dissolves completely, so the concentration of the salt equals the concentration of A−, and the Na+ is just a spectator. Watch the ammonia row: ammonia, NH3, is the base, so it goes on top, and ammonium, NH4+, is the acid, so it goes on the bottom, and you use the pKa of ammonium. The conjugate base does not need a negative charge; it just needs one less H+ than its acid.
What the Ratio Tells You
- Equal amounts: pH = pKa
- More base: pH above pKa
- More acid: pH below pKa

The ratio of base to acid tells you which side of pKa you are on. When the amounts are equal, the ratio is 1, and since log 1 = 0, the pH is exactly equal to pKa. The AP exam loves that one. With more base than acid, the ratio is bigger than 1, its log is positive, and the pH is above pKa. With more acid than base, the ratio is less than 1, its log is negative, and the pH is below pKa. Use this as a quick check: before calculating anything, decide whether the answer should be above or below pKa. If the calculator disagrees, you probably flipped the ratio.
Quick Log Values
- A ratio of 10 adds 1 pH unit.
- A ratio of 0.1 subtracts 1 pH unit.
- Good buffers stay within pKa ± 1.
| [A−]/[HA] | log | pH |
|---|---|---|
| 10 | +1 | pKa + 1 |
| 1 | 0 | pKa |
| 0.1 | −1 | pKa − 1 |
Three log values are worth memorizing, because the multiple-choice section has no calculator: log 10 = 1, log 1 = 0, and log 0.1 = −1. So with ten times more base than acid, the pH is pKa + 1, and with ten times more acid than base, the pH is pKa − 1. A good buffer keeps its ratio between 0.1 and 10, so its pH stays within one unit of pKa. Outside that range, one of the two buffer partners is running really low, and the buffer stops working well. AP tip: if a multiple-choice question gives a 1 to 1 ratio, the answer is just pKa; if it is 10 to 1, add 1.
Moles Work Too
- The acid and base are in the same flask, with the same volume.
- The volume cancels in the ratio.
- Plug in moles directly.
![A yellow panel showing [A minus] over [HA] equals mol A minus over mol HA, above one beaker holding a mix of HA and A minus particles, labeled one flask, one volume.](https://i0.wp.com/zornscience.org/wp-content/uploads/2026/10/apchem-8-9-moles-ratio-same-flask.png?resize=951%2C830&ssl=1)
Molarity is moles divided by volume. The acid and its conjugate base are in the same flask, so they have the same volume, and when one is divided by the other, the volume cancels: ([A−]/[HA]) = (mol A− ÷ V)/(mol HA ÷ V) = mol A−/mol HA. That means the ratio of concentrations is the same as the ratio of moles. If a problem gives moles and a volume, there is no need to convert to molarity; plug the moles right into the equation. Sometimes the exam gives a volume just to see if you will waste time with it. As long as both species are in the same solution, the volume does not change the pH.
Small Additions, Small Change
- A little added acid barely shifts the ratio.
- So the pH barely changes.
- Without a buffer, the pH changes a lot.

When a little strong acid is added to a buffer, the conjugate base grabs the hydronium ions and turns into HA (A− + H3O+ → HA + H2O). A little A− becomes a little HA, so the ratio changes just a tiny bit, and since the pH depends on the log of that ratio, the pH barely moves. Add the same amount of acid to plain water and nothing is there to absorb it, so [H3O+] jumps and the pH drops a lot. On the AP exam you need to explain this idea, but you will not be asked to calculate the exact new pH after adding acid or base to a buffer. Focus on the reasoning: small change to the ratio, small change to the pH.
Worked Examples
Try each problem on your own first, then open the solution to check your work.
Example 1: Acetate Buffer pH
A buffer contains 0.20 M CH3COOH and 0.30 M NaCH3COO. Ka of acetic acid is 1.8 × 10−5. Calculate the pH of the buffer.
Show the solution
- Equation: A weak acid and its conjugate base are together, so this is a buffer: pH = pKa + log([A−]/[HA])
- Calculate: pKa = −log(1.8 × 10−5) = 4.74 (Ka has two sig figs, so pKa gets two decimal places.)
- Known: [HA] = [CH3COOH] = 0.20 M. Sodium acetate dissolves completely, so [A−] = [CH3COO−] = 0.30 M. Na+ is a spectator.
- Plug in: pH = 4.74 + log(0.30/0.20) = 4.74 + log(1.5)
- Calculate: log(1.5) = 0.176, so pH = 4.74 + 0.176 = 4.916
- Check: There is more base than acid, so the pH should be a little above pKa, and 4.92 is a little above 4.74.
- Answer: pH = 4.92 (two sig figs in the concentrations, so two decimal places)
Common trap: flipping the ratio gives 4.56, which is below pKa.
Example 2: Ammonia Buffer pH
A buffer contains 0.20 M NH3 and 0.30 M NH4Cl. The pKa of NH4+ is 9.26. Calculate the pH of the buffer.
Show the solution
- Equation: A weak base plus its conjugate acid is still a buffer: pH = pKa + log([A−]/[HA])
- Known: HA = NH4+ = 0.30 M (from NH4Cl, which dissolves completely), and A− = NH3 = 0.20 M. NH4+ is the acid because it can give away an H+.
- Known: pKa = 9.26 (given for NH4+, so there is nothing to convert).
- Plug in: pH = 9.26 + log(0.20/0.30) = 9.26 + log(0.667)
- Calculate: log(0.667) = −0.176, so pH = 9.26 − 0.176 = 9.084
- Check: There is more acid than base, so the pH should be a little below 9.26, and it is.
- Answer: pH = 9.08
Common trap: using the pKb of ammonia, 4.74, instead of the pKa of ammonium. If you got 4.56, you used pKb. If you got 9.44, you flipped the ratio.
Example 3: Target pH
A student wants an acetic acid/sodium acetate buffer with a pH of 5.00. Ka of acetic acid is 1.8 × 10−5. What [A−]/[HA] ratio is needed?
Show the solution
- Equation: pH = pKa + log([A−]/[HA]). This time the pH is known and the ratio is the unknown.
- Calculate: pKa = −log(1.8 × 10−5) = 4.74
- Plug in: 5.00 = 4.74 + log(ratio)
- Calculate: log(ratio) = 5.00 − 4.74 = 0.26
- Calculate: To undo a log, raise 10 to that power: ratio = 100.26 = 1.82
- Check: The target pH is above pKa, so the buffer needs more base than acid, a ratio bigger than 1.
- Answer: [A−]/[HA] = 1.8 (0.26 has two decimal places, so the ratio gets two sig figs; about 1.8 times as much acetate as acetic acid)
Common trap: forgetting to undo the log and reporting 0.26 as the ratio.
Example 4: HF Buffer from Moles
A buffer is made by dissolving 0.050 mol HF and 0.080 mol NaF in enough water to make 500. mL of solution. Ka of HF is 6.8 × 10−4. Calculate the pH.
Show the solution
- Equation: Both species are in the same 500. mL, so moles can be used directly: pH = pKa + log([A−]/[HA]) = pKa + log(mol A−/mol HA)
- Calculate: pKa = −log(6.8 × 10−4) = 3.17
- Known: HA = HF = 0.050 mol. NaF dissolves completely, so A− = F− = 0.080 mol.
- Check: The shortcut works: [HF] = 0.050 mol ÷ 0.500 L = 0.10 M and [F−] = 0.080 mol ÷ 0.500 L = 0.16 M. 0.16/0.10 = 1.6, the same as 0.080/0.050. The volume cancels.
- Plug in: pH = 3.17 + log(0.080/0.050) = 3.17 + log(1.6)
- Calculate: log(1.6) = 0.204, so pH = 3.17 + 0.204 = 3.374
- Answer: pH = 3.37 (two sig figs in the moles, so two decimal places; a bit above 3.17 because there is more fluoride than HF)
Common trap: thinking the 500. mL changes the answer. It does not.
Practice
- 8.9 Henderson-Hasselbalch Equation Practice Worksheet (PDF)
- 8.9 Henderson-Hasselbalch Equation Practice Answer Key (PDF)
Run the pH & Buffer Lab
The lab opens in Buffer Builder mode with a phosphate buffer. Set the amounts of acid and conjugate base, calculate the pH with Henderson-Hasselbalch, and check your answer against the meter. No login needed.
Practice with instant feedback
Answer original AP-style questions for Unit 8 and see an explanation right after each one. Choose Topic 8.9 or mix topics. No login needed.
Lesson Slides
Big Ideas
- Base over acid, inside the log: pH = pKa + log([A−]/[HA]).
- Equal amounts: pH = pKa. More base pushes the pH above pKa; more acid pulls it below.
- Concentrations or moles both work, since the volume cancels.
- Small additions of acid or base barely shift the ratio, so the pH barely changes.
Exam tip: Before you calculate, predict whether the pH should be above or below pKa from which species is in excess. If your answer lands on the wrong side, you flipped the ratio.
Back to the essential question: To calculate a buffer’s pH, find the pKa of the weak acid, then add the log of the ratio of conjugate base to weak acid. Next up, Topic 8.10 looks at buffer capacity, how much acid or base a buffer can actually handle before it gives up.
AP Alignment
This lesson covers Topic 8.9, Henderson-Hasselbalch Equation, in Unit 8 (Acids and Bases) of the College Board AP Chemistry Course and Exam Description (CED). Learning objective:
- 8.9.A: Identify the pH of a buffer solution based on the identity and concentrations of the conjugate acid-base pair used to create the buffer.
Essential knowledge: 8.9.A.1
Suggested skill: 5.F Mathematical Routines. Calculate, estimate, or predict an unknown quantity from known quantities by selecting and following a logical computational pathway and attending to precision (e.g., performing dimensional analysis and attending to significant figures).