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

Source: R. N. Goldberg, N. Kishore, R. M. Lennen, "Thermodynamic quantities for the ionization reactions of buffers", J. Phys. Chem. Ref. Data 2002, 31, 231.

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.

Derivation of the Henderson–Hasselbalch equation

The Henderson-Hasselbalch equation is the acid-dissociation constant written in logarithmic form. For a weak acid HA ⇌ H⁺ + A⁻:

  1. Start from the equilibrium constant: Ka = [H⁺][A⁻] / [HA].
  2. Take −log of both sides: −log Ka = −log[H⁺] − log([A⁻]/[HA]).
  3. Use pKa = −log Ka and pH = −log[H⁺], then rearrange:

pH = pKa + log([A⁻] / [HA])

For a weak base B with its conjugate acid BH⁺, use the pKa of BH⁺: pH = pKa(BH⁺) + log([B] / [BH⁺]), or equivalently pOH = pKb + log([BH⁺] / [B]) with pKa + pKb = 14 at 25 °C.

Ratio and percent ionised at a glance

pH − pKa[A⁻] / [HA]Deprotonated (A⁻)Buffer quality
−20.011 %Outside the buffer range
−10.19 %Edge of the useful range
−0.50.3224 %Good
0150 %Best: maximum buffer capacity
+0.53.276 %Good
+11091 %Edge of the useful range
+210099 %Outside the buffer range

Rule of thumb: a buffer works within pKa ± 1, and every pH unit away from the pKa changes the ratio tenfold.

Henderson–Hasselbalch in physiology and pharmacology

Blood pH from bicarbonate and CO₂

pH = 6.1 + log([HCO₃⁻] / (0.03 × PCO₂))

With [HCO₃⁻] in mmol/L and PCO₂ in mmHg (0.03 mmol L⁻¹ mmHg⁻¹ is the CO₂ solubility). Normal values, [HCO₃⁻] = 24 mmol/L and PCO₂ = 40 mmHg, give 24 / 1.2 = 20, log 20 = 1.30, so pH = 7.40. A rise in PCO₂ lowers the ratio and the pH (respiratory acidosis); a fall in bicarbonate does the same (metabolic acidosis).

How much of a drug is ionised

For a weak acid, fraction ionised = 1 / (1 + 10pKa − pH); for a weak base, 1 / (1 + 10pH − pKa). Aspirin (pKa ≈ 3.5) is about 3 % ionised in the stomach (pH 2) but more than 99.9 % ionised in blood (pH 7.4), which is why it is absorbed mainly as the neutral acid.

Assumptions: when the equation is not accurate

Related chemistry tools

Last updated: