Calculate the pH of a buffer made from a weak acid and its conjugate base, or work backwards to the concentrations needed to hit a target pH. Choose a common buffer pair such as acetic acid and acetate, or enter any pKa. Concentrations can be in mol/L or any consistent unit, since only their ratio matters.
What is a buffer?
A buffer is a solution that resists changes in pH when a little acid or base is added. It contains a weak acid (HA) together with its conjugate base (A⁻) — acetic acid with sodium acetate, for example. Added H⁺ ions are taken up by the base; added OH⁻ ions are neutralised by the acid, so the pH barely moves.
The Henderson–Hasselbalch equation links the buffer’s pH to the acid’s pKa and the ratio of base to acid. It shows that the pH depends on the ratio, not the absolute amounts, and that a buffer works best when the two components are similar: when they are equal, pH = pKa. Once one component falls below about a tenth of the other, the pH is more than one unit from the pKa and the buffer has lost most of its capacity. Blood, for instance, is held near pH 7.4 by the carbonic acid–bicarbonate pair.
Formula
pH = pKa + log₁₀([A⁻] ÷ [HA])
[A⁻] is the concentration of the conjugate base (for example acetate), [HA] the concentration of the weak acid and pKa = −log₁₀ Ka. When the two are equal the log term is zero and pH = pKa.
The equation assumes both components are present in much larger amounts than the H⁺ the acid releases, which holds for typical buffers but not for very dilute solutions.
Worked examples
An acetate buffer
- Calculate
- pH of the buffer
- Acid–base pair
- Acetic acid / acetate (CH₃COOH) — pKa 4.74
- Conjugate base [A⁻]
- 0.15 mol/L
- Weak acid [HA]
- 0.1 mol/L
- Buffer pH
- 4.921
- Base-to-acid ratio [A⁻]/[HA]
- 1.5
- Buffering
- Effective
Acetic acid has Ka = 1.8 × 10⁻⁵, so pKa = 4.745. pH = 4.745 + log₁₀(0.15 ÷ 0.10) = 4.745 + 0.176 = 4.921.
Making a phosphate buffer at pH 7.4
- Calculate
- Conjugate base concentration [A⁻]
- Acid–base pair
- Dihydrogen phosphate / hydrogen phosphate (H₂PO₄⁻, Ka2) — pKa 7.21
- pH
- 7.4
- Weak acid [HA]
- 0.05 mol/L
- Conjugate base [A⁻] needed
- 0.07787 mol/L
- Base-to-acid ratio [A⁻]/[HA]
- 1.5574
- Buffering
- Effective
For H₂PO₄⁻/HPO₄²⁻, pKa = 7.208. The ratio needed is 10^(7.4 − 7.208) = 1.557, so 0.050 mol/L of acid needs 0.0779 mol/L of base.
Weak acids for common buffers (25 °C)
| Acid–base pair | Ka | pKa | Effective pH range |
|---|---|---|---|
| Acetic acid / acetate (CH₃COOH) | 1.8 × 10^-5 | 4.74 | 3.7 – 5.7 |
| Formic acid / formate (HCOOH) | 1.8 × 10^-4 | 3.74 | 2.7 – 4.7 |
| Hydrofluoric acid / fluoride (HF) | 6.4 × 10^-4 | 3.19 | 2.2 – 4.2 |
| Nitrous acid / nitrite (HNO₂) | 4.6 × 10^-4 | 3.34 | 2.3 – 4.3 |
| Carbonic acid / bicarbonate (H₂CO₃, Ka1) | 4.3 × 10^-7 | 6.37 | 5.4 – 7.4 |
| Dihydrogen phosphate / hydrogen phosphate (H₂PO₄⁻, Ka2) | 6.2 × 10^-8 | 7.21 | 6.2 – 8.2 |
| Hypochlorous acid / hypochlorite (HOCl) | 2.9 × 10^-8 | 7.54 | 6.5 – 8.5 |
| Hydrocyanic acid / cyanide (HCN) | 4.9 × 10^-10 | 9.31 | 8.3 – 10.3 |
Making a buffer from one component
You don’t need both salts on the shelf. Start with the weak acid and add a strong base: each mole of NaOH turns a mole of HA into A⁻. Neutralizing half the acid leaves equal amounts of each, so the pH equals the pKa, which is how pKa values are read off titration curves. Starting from the base and adding HCl works the same way in reverse.
In practice, make the buffer close to the calculated recipe, then adjust to the exact pH with a calibrated pH meter. Salt concentration and temperature shift a real buffer’s pH by a few hundredths to a tenth or more from the ideal value.
Common mistakes
- Putting the ratio upside down. It is base over acid, [A⁻] ÷ [HA]; flipping it gives a pH as far below the pKa as it should be above.
- Using Ka instead of pKa. pKa = −log₁₀ Ka; for acetic acid that is 4.74, not 1.8 × 10⁻⁵.
- Choosing an acid whose pKa is far from the target pH. A buffer only works well within about one pH unit of its pKa.
- Applying the equation to very dilute or strong acids. It assumes both components are present in much larger amounts than the H⁺ the acid releases.
Frequently asked questions
What happens when [A⁻] equals [HA]?
The ratio is 1 and log₁₀ 1 = 0, so pH = pKa. This is the point of maximum buffer capacity.
What pH range can a buffer cover?
About pKa ± 1. Beyond that, one component is less than a tenth of the other and the buffer quickly loses its ability to absorb added acid or base.
Can I use moles instead of concentrations?
Yes. Both components are in the same solution volume, so the ratio of moles equals the ratio of concentrations.
Why does my measured pH differ from the calculated one?
The equation uses concentrations, but pH depends on ion activities, which fall below concentration as salt levels rise. Temperature also shifts pKa. Expect a small difference and fine-tune with a pH meter.
Sources
- Chemistry 2e, 14.6: Buffers, OpenStax, Rice University
- Chemistry 2e, Appendix H: Ionization Constants of Weak Acids, OpenStax, Rice University
Last updated · Calculations checked by automated tests· Editorial policy