Henderson–Hasselbalch calculator

Buffer pH from the pKa and the base to acid ratio, and the ratio for a target pH.

Buffer

pH

At another temperature

pH there

Amounts for a batch

Base form
Acid form

The Henderson-Hasselbalch equation

pH = pKa + log₁₀( [A⁻] ÷ [HA] )

[A⁻] is the conjugate base, the deprotonated form, and [HA] the acid, the protonated form. Only their ratio matters for the pH; the total concentration sets how much acid or base the buffer can absorb before the pH moves, not where the pH sits. When the two forms are equal the logarithm is zero and the pH equals the pKa, which is the centre of the buffer's working range.

[A⁻] ÷ [HA] = 10^(pH − pKa)

Turned around, that is the recipe: pick the pH you want, look up the pKa and the ratio falls out. A pH one unit above the pKa needs ten parts base to one part acid; one unit below needs one to ten.

Worked example

Tris has a pKa of 8.06 at 25 °C. Mixing 60 mM of the free base with40 mM of the protonated form gives pH = 8.06 + log₁₀(60 ÷ 40) = 8.06 + 0.176 = 8.24. Warm the same solution to 37 °C and the pKa falls by 0.028 × 12 = 0.336 to 7.724, so the pH becomes 7.90: the buffer has moved a third of a unit without anything being added to it.

The other direction: to hit pH 8.00 with Tris, the ratio must be 10^(8.00 − 8.06) = 0.871, which is 46.6 % of the buffer as the free base. For 500 mL of a 50 mM buffer that is 25 mmol in total, 11.64 mmol as the base and13.36 mmol as the acid.

pKa values and how they move with temperature

BufferpKa (25 °C)ΔpKa per °CUseful range
Acetate4.760.0003.8–5.8
MES6.15−0.0115.2–7.2
Bis-Tris6.46−0.0175.5–7.5
PIPES6.76−0.0095.8–7.8
MOPS7.20−0.0156.2–8.2
Phosphate pK27.20−0.0036.2–8.2
HEPES7.48−0.0146.5–8.5
Tris8.06−0.0287.1–9.1
Bicine8.26−0.0187.3–9.3
CHES9.30−0.0298.3–10.3
CAPS10.40−0.0329.4–11.4

The temperature coefficient is the reason two labs following the same recipe can end up a quarter of a unit apart: one titrated warm, the other cold. Phosphate is nearly flat, which is why it is the buffer of choice when a solution is autoclaved or moved between a cold room and an incubator. Tris is the worst of the common ones. The calculator applies the coefficient of the buffer you pick, not one blanket figure.

Buffer capacity

β = 2.303 × C × fbase × (1 − fbase)

β is how many moles of strong acid or base one litre absorbs per unit of pH change. It is largest when the two forms are equal, which is at the pKa, and it falls off quickly on either side: at one pH unit away it is down to about a third of the maximum, at two units to a thirtieth. That is the whole reason to choose a buffer whose pKa is close to the pH you want. Capacity is shown under Details for the composition you enter.

Making the buffer at the bench

  • From two salts. Weigh the millimoles of each form the calculator gives, dissolve and make up to volume. Phosphate buffers are usually made this way, and thephosphate buffer calculator does the two-salt arithmetic for you.
  • By titration. Weigh the whole amount as one form and add HCl or NaOH until the meter reads the target pH. For Tris and imidazole you start from the free base and add HCl; for acetate, MES and HEPES you start from the acid and add NaOH.
  • Titrate at the working temperature, and make up to volume after titrating, not before.
  • Ready-made recipes for PBS, TAE, TBE and the rest are inbuffer recipes; themolarity calculator turns millimoles into grams.

Frequently asked questions

What is the Henderson-Hasselbalch equation used for?

It links the pH of a buffer to the pKa of the weak acid in it and the ratio of the conjugate base to the acid. Given the ratio it gives the pH; given a target pH it gives the ratio you have to mix. It is the equation behind every buffer recipe, and it is also how you tell in advance whether a buffer will hold the pH you need.

Why does Tris drift when the solution warms up?

Because its pKa falls by about 0.028 units for every degree Celsius. A Tris buffer titrated to pH 8.0 on the bench at 25 degrees is close to pH 7.7 in a 37 degree incubator and about pH 8.5 in a cold room at 4 degrees. Titrate Tris at the temperature it will be used at, or pick HEPES, which moves less than half as much, or phosphate, which barely moves at all.

How far from the pKa can a buffer work?

About one pH unit either side. At pKa plus or minus 1 the mixture is ten parts to one, nine tenths of the capacity is gone, and a small addition of acid or base moves the pH a long way. The calculator warns you when the target pH is more than a unit from the pKa; the answer is to choose a different buffer rather than to push this one.

Does the equation account for ionic strength?

No, and neither do the tabulated pKa values, which are thermodynamic values at zero ionic strength or at a stated one. At the 50 to 200 mM concentrations used in the lab the real pH can sit a tenth of a unit or so from the calculated one, and more for a buffer whose acid and base forms differ in charge, such as phosphate. Use the calculation to get close, then check with a meter and titrate.

How do I turn the ratio into a recipe?

Enter the total buffer concentration and the volume under the result and it gives the millimoles of each form. Multiply by the formula weight on the bottle for grams. In practice most people weigh out the whole amount as one form and titrate to the target pH with HCl or NaOH, which is the same thing done with a meter watching.