MolDraw › Chemistry tools › Henderson–Hasselbalch Calculator

Henderson–Hasselbalch Calculator (Buffer pH)

In short: Henderson–Hasselbalch calculator: find buffer pH, pKa, the base/acid ratio, or how much acid and conjugate base to use for a target pH, with presets for common buffers. It is free, works in your web browser and needs no download.

Pick a common buffer or type a pKa. Solve for pH, pKa or the [A⁻]/[HA] ratio, or let the calculator split a total concentration into acid and base amounts, in moles and grams. A weak-base mode handles pOH = pKb + log([BH⁺]/[B]).

Quick answer: pH = pKa + log([A⁻]/[HA]). 0.10 M acetic acid with 0.15 M sodium acetate (pKa 4.76) gives pH 4.94. Equal amounts give pH = pKa. A buffer works well within pKa ± 1.

Henderson–Hasselbalch equation

pH = pKa + log₁₀([A⁻]/[HA]) [A⁻]/[HA] = 10^(pH − pKa) weak base buffer: pOH = pKb + log₁₀([BH⁺]/[B]) pH = 14.00 − pOH (25 °C) making a buffer of total C: [HA] = C / (1 + r) [A⁻] = C·r / (1 + r) r = 10^(pH − pKa)

Because both species are in the same volume, you can use moles instead of concentrations in the ratio. When [A⁻] = [HA], pH = pKa. For a base buffer the matching acid constant is pKa(BH⁺) = 14.00 − pKb, so NH₃/NH₄⁺ with pKb = 4.75 behaves like an acid buffer with pKa = 9.25.

Buffer capacity

A buffer works best within about pKa ± 1, where the base/acid ratio is between 0.1 and 10. Capacity is highest at pH = pKa and grows with the total concentration. The calculator reports β = 2.303·C·Ka[H⁺]/(Ka + [H⁺])², the moles of strong acid or base per litre needed to shift the pH by one unit (water's own contribution is ignored).

Common buffers and pKa values (25 °C)

BufferAcid / base pairpKaUseful pH range
Acetic acid / acetateCH₃COOH / CH₃COO⁻4.763.76 to 5.76
Formic acid / formateHCOOH / HCOO⁻3.752.75 to 4.75
Citric acid (pKa₁)H₃Cit / H₂Cit⁻3.132.13 to 4.13
Carbonic acid / bicarbonateH₂CO₃ / HCO₃⁻6.355.35 to 7.35
Phosphate (pKa₂)H₂PO₄⁻ / HPO₄²⁻7.216.21 to 8.21
HEPESHEPES / HEPES⁻7.56.5 to 8.5
TrisTrisH⁺ / Tris8.077.07 to 9.07
Ammonium / ammoniaNH₄⁺ / NH₃9.258.25 to 10.25

pKa values are typical literature values at 25 °C and low ionic strength. Phosphate's other pKa values are about 2.15 and 12.3. Citric acid's are 3.13, 4.76 and 6.40. The carbonic acid value is the apparent pKa that includes dissolved CO₂. Tris changes by about −0.03 pH units per °C, so a Tris buffer made at 25 °C is more acidic at 37 °C.

Worked examples

Acetate buffer pH

0.10 M acetic acid and 0.15 M sodium acetate, pKa = 4.76.

pH = 4.76 + log(0.15/0.10) = 4.76 + 0.176

pH = 4.94

Adding strong acid (JEE/NEET style)

A buffer has 0.10 mol CH₃COOH and 0.10 mol CH₃COO⁻. 0.010 mol HCl is added.

H⁺ converts base to acid: base 0.09 mol, acid 0.11 mol. pH = 4.76 + log(0.09/0.11)

pH = 4.67 (only 0.09 units lower)

Ratio for blood-like phosphate

Target pH 7.40 with H₂PO₄⁻/HPO₄²⁻, pKa = 7.21.

[HPO₄²⁻]/[H₂PO₄⁻] = 10^(7.40 − 7.21) = 10^0.19

Ratio = 1.55 : 1

Make 1.0 L of 0.10 M acetate buffer, pH 5.00

r = 10^(5.00 − 4.76) = 1.738. [HA] = 0.10/2.738 = 0.0365 M, [A⁻] = 0.0635 M.

Sodium acetate: 0.0635 mol × 82.03 g/mol. Acetic acid: 0.0365 mol × 60.05 g/mol.

5.21 g CH₃COONa + 2.19 g CH₃COOH

Basic buffer from pKb

0.20 M NH₃ and 0.10 M NH₄Cl, pKb = 4.75.

pOH = 4.75 + log(0.10/0.20) = 4.45

pH = 14.00 − 4.45 = 9.55

Find pKa from a half-neutralisation

At half-neutralisation of a weak acid, the pH meter reads 3.75.

[A⁻] = [HA], so log(1) = 0.

pKa = 3.75 (formic acid)

Common mistakes

Drawing acid–base structures? Sketch buffer species, titration schemes and mechanisms in MolDraw, a free online chemical structure editor.

Open MolDraw editor

Frequently asked questions

What is the Henderson–Hasselbalch equation?

pH = pKa + log₁₀([A⁻]/[HA]). It gives the pH of a buffer made from a weak acid HA and its conjugate base A⁻. It comes from rearranging the Ka expression and taking logs.

How do I calculate the ratio of base to acid for a target pH?

Use [A⁻]/[HA] = 10^(pH − pKa). For an acetate buffer at pH 5.00, the ratio is 10^(5.00 − 4.76) = 1.74.

Can I use moles instead of concentrations?

Yes. Both species share the same volume, so the volume cancels in the ratio. This is why you can work in moles after adding a strong acid or base.

What is the effective range of a buffer?

About pKa ± 1 pH unit, where the base/acid ratio is between 0.1 and 10. Choose a buffer whose pKa is close to the pH you need.

How do I use the equation for a basic buffer like NH₃/NH₄Cl?

Use pOH = pKb + log([BH⁺]/[B]) and then pH = 14 − pOH. Or use pKa = 14 − pKb = 9.25 with pH = pKa + log([NH₃]/[NH₄⁺]). Both give the same pH.

Why does my measured buffer pH differ from the calculated value?

The equation uses concentrations, not activities, so ionic strength shifts the real pH by up to about 0.1 to 0.2 units. Temperature also changes pKa. Adjust the final pH with a meter.

Related chemistry tools

Last updated: