ScienceChemistry

Henderson-Hasselbalch
calculator.

Find the pH of a buffer from its acid and base, or the recipe for a target pH.

How it's worked out

A buffer is a weak acid, HA, mixed with its conjugate base, A⁻. Added acid turns some base into acid, and added base does the reverse, so the pH moves only a little. The Henderson-Hasselbalch equation gives the pH from the ratio of the two forms.

pH\displaystyle \text{pH}=pKa+log10⁡[A−][HA]\displaystyle {}=\;\text{p}K_a + \log_{10} \frac{[\text{A}^-]}{[\text{HA}]}

The pKa is the pH at which the two forms are equal, so the log term is zero. Each tenfold change in the ratio moves the pH by one unit. Both forms sit in the same volume, so a ratio of moles gives the same answer as a ratio of concentrations. Mixing the two kinds in one ratio does not work, so the tool asks for the same kind in both boxes.

Recipe mode runs the equation backwards. Raise 10 to the power of the pH minus the pKa for the ratio, then split the total amount between the two forms.

[A−][HA]\displaystyle \frac{[\text{A}^-]}{[\text{HA}]}=10pH−pKa\displaystyle {}= 10^{\,\text{pH} - \text{p}K_a}
acid\displaystyle \text{acid}=total1+ratio\displaystyle {}= \frac{\text{total}}{1 + \text{ratio}}

Adding strong acid or base. A strong base turns the same number of moles of acid into base, one for one. The tool moves both amounts and runs the equation again. If the addition uses up one form, the equation no longer applies and the tool says so.

Temperature. pKa changes with temperature, a lot for some buffers. The tool shifts each listed pKa using the reaction enthalpy and heat capacity that Goldberg and co-workers at NIST selected. Tris moves about −0.028 per degree near 25 °C. Phosphate moves far less.

Worked examples

Nia checks an acetate buffer, then adds base

Nia mixes 0.15 M sodium acetate with 0.10 M acetic acid. The ratio is 1.5, and the log of that is about 0.176. Added to the pKa of 4.76, the pH is 4.936.

pH\displaystyle \text{pH}=4.76+log10⁡0.150.10\displaystyle {}= 4.76 + \log_{10} \frac{0.15}{0.10}=4.936\displaystyle {}= 4.936

She then adds 5 mmol of NaOH per liter. Base rises to 155 mM and acid falls to 95 mM, so the pH goes up by only 0.037, to 4.973. The same amount of HCl would take it down to 4.9.

Open this example in the tool

Omar makes 1 L of phosphate buffer at pH 7.4

Omar wants 0.1 M phosphate at pH 7.4, using NaH₂PO₄ (119.98 g/mol) as the acid form and Na₂HPO₄ (141.96 g/mol) as the base form. With a pKa of 7.2, the ratio is 1.585.

That means 38.686 mmol of NaH₂PO₄, or 4.642 g, and 61.314 mmol of Na₂HPO₄, or 8.704 g. He dissolves both in about 800 mL, checks the pH with a meter, adjusts it, and then makes up to 1 L.

His meter will likely read lower than 7.4 before he adjusts. The reason is in the next section.

Open this example in the tool

Why blood sits at pH 7.4

In blood, bicarbonate is the base and dissolved CO₂ acts as the acid. A review in BJA Education gives a pKa of 6.1, 24 mmol/L of bicarbonate and 1.2 mmol/L of CO₂. The ratio is 20 to 1, and the pH is 7.401.

That is 1.3 units above the pKa, outside the usual buffer range, and the tool flags it. Blood still holds its pH because the lungs remove CO₂ and the kidneys adjust bicarbonate.

Open this example in the tool

Reading your result

The buffer range. OpenStax notes that a buffer loses most of its use once one form is under about 10% of the other. One pH unit from the pKa, the ratio is 10 to 1 and the base share is 90.9%. The tool calls a pH within that unit "Within" and flags anything further out. Capacity, how much acid or base the buffer can take, peaks at the pKa.

Expect the meter to differ. The equation uses concentrations, but a pH meter responds to activity, which falls as the salt content rises. Hippler and Metcalfe found the plain equation reads up to 0.4 too high for a typical phosphate buffer. At the salt level of body fluids, they give a working pKa near 6.8 rather than 7.20. With 6.8, the ratio for pH 7.4 would be 3.98, not 1.58. That is why every recipe ends at the meter.

Temperature changes the answer. A Tris pKa of 8.1 at 25 °C becomes 8.738 at 4 °C and 7.781 at 37 °C. A Tris buffer set to pH 8.0 at room temperature is noticeably more basic in a cold room. Phosphate only moves to 7.185 at 37 °C. Set the pH at the temperature you will use.

Recipe sizes. For 500 mL of 50 mM Tris at pH 8.0, the ratio is 0.794. That is 13.93 mmol of Tris-HCl (2.196 g) and 11.07 mmol of Tris base (1.341 g).

Common mistakes

  • Putting the acid on top. The base form goes on top of the ratio. Swap them and a pH above the pKa comes out below it by the same amount.
  • Using the wrong pKa for a polyprotic acid. Phosphate has three. Near pH 7 the pair is H₂PO₄⁻ and HPO₄²⁻, with a pKa near 7.2. Citrate in this list uses its second pKa.
  • Mixing a concentration and a mole count. 0.1 M and 5 mmol only make a ratio once you know the volume. Put both in M or both in mol.
  • Weighing the wrong salt form. A hydrate weighs more per mole than the dry salt. Use the molar mass printed on your bottle.
  • Using the equation on very dilute or lopsided mixtures. OpenStax notes that the equation relies on the acid's own reaction with water being small. With tiny amounts, or one form far larger than the other, that stops being true and the simple ratio drifts.

Questions people ask

Yes, as long as both forms are in the same solution. The volume divides both amounts equally, so it cancels out of the ratio. Enter both boxes in mol or mmol.

Sources