Henderson-Hasselbalch Calculator

Buffer pH from the acid and base ratio, or a recipe for any target pH

Calculate buffer pH with the Henderson-Hasselbalch equation, or get a recipe of acid and base forms in millimoles and grams for a target pH, concentration and volume, with pKa values for 11 common buffers and buffer capacity.

ChemistryUpdated October 21, 2026Checked against 6 reference values

What this calculator does

A buffer holds its pH steady when small amounts of acid or base are added, and the Henderson-Hasselbalch equation predicts that pH from the ratio of its two forms. This calculator works in both directions. Give the concentrations or moles of a weak acid and its conjugate base and it returns the pH. Or give a target pH, total concentration and volume and it tells you how much of each form to use, in millimoles and, with molar masses, in grams.

It includes pKa values for eleven common buffers, from acetate and phosphate to the Good's buffers MES, PIPES, MOPS and HEPES, plus Tris, ammonia and borate, or you can enter any pKa. It also gives the buffer capacity and warns when the pH is outside the useful range.

The formulas

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

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

Buffer capacity β = 2.303·C·Ka[H⁺] ÷ (Ka + [H⁺])²

[A⁻] is the conjugate base, [HA] the weak acid and pKa = −log₁₀ Ka. Because only the ratio matters, you can enter molar concentrations or moles in the same flask. The equation comes from rearranging the acid dissociation expression and assumes the amounts added are much larger than the amounts that react with water, which holds for typical buffers between about pH 3 and 11. β measures how many moles of strong acid or base per liter shift the pH by one unit; it peaks at pH = pKa.

Worked examples

An acetate buffer. 0.15 M acetate with 0.10 M acetic acid gives pH 4.94.

Blood. With 24 mM bicarbonate and 1.2 mM dissolved carbon dioxide, and an apparent pKa of 6.1, the pH is 7.4, the normal arterial value. The 20 : 1 ratio is far from the ideal 1 : 1, but the lungs and kidneys keep adjusting both sides.

A phosphate buffer at pH 7.4. For 1 L of 0.1 M buffer, use 38.7 mmol NaH₂PO₄ (4.64 g) and 61.3 mmol Na₂HPO₄ (8.7 g).

Tris at pH 8.0. For 500 mL of 50 mM, the ratio is 0.794: 13.9 mmol Tris-HCl and 11.1 mmol Tris base.

Common buffers and their ranges

BufferpKa at 25 °CUseful pH range
Acetic acid / acetate4.763.76 to 5.76
Citrate (second pKa)4.763.76 to 5.76
MES6.15.1 to 7.1
Carbonic acid / bicarbonate6.355.35 to 7.35
PIPES6.85.8 to 7.8
Phosphate (H₂PO₄⁻ / HPO₄²⁻)7.26.2 to 8.2
MOPS7.26.2 to 8.2
HEPES7.56.5 to 8.5
Tris8.17.1 to 9.1
Ammonium / ammonia9.258.25 to 10.3
Boric acid / borate9.248.24 to 10.2

pKa depends on temperature and ionic strength. Tris falls by about 0.03 per °C, so a Tris buffer made at room temperature is noticeably more basic in a cold room.

Choosing a buffer

Pick a buffer whose pKa is within about half a unit of the pH you need, so there is plenty of both forms to absorb added acid or base. Then choose a concentration high enough to handle the acid or base your experiment will produce, usually 10 to 100 mM. Check compatibility too: phosphate precipitates calcium and inhibits some enzymes, Tris reacts with aldehydes, and some Good's buffers bind metal ions. Always confirm the final pH with a calibrated meter, because activity effects mean the real pH can differ from the calculated value by 0.1 or more.

Two ways to make a buffer

You can weigh out both forms, as in the recipe mode, or start with one form and titrate with a strong acid or base until the meter reads your target. For example, dissolve Tris base and add hydrochloric acid, or dissolve sodium dihydrogen phosphate and add sodium hydroxide. Titrating is often easier when only one form is on the shelf, and it automatically corrects for temperature and ionic strength. In either case, make up to the final volume only after adjusting the pH.

Henderson-Hasselbalch Calculator: common questions

When can I use the Henderson-Hasselbalch equation?

For buffers made of a weak acid and its conjugate base at reasonable concentrations, usually above about 1 mM each, and pH between roughly 3 and 11. Outside that, water's own ionization and the acid's reaction with water change the result.

What is the best pH for a buffer?

The buffer resists pH change best at pH = pKa, where acid and base are equal. Within one unit either side it still works well; beyond that its capacity drops sharply.

Can I enter moles instead of concentrations?

Yes. Both forms are in the same volume, so the ratio of moles equals the ratio of concentrations.

Why does my measured pH differ from the calculation?

The equation uses concentrations, while pH meters respond to activities, which are lower at high ionic strength. Temperature also shifts pKa. Differences of 0.1 to 0.2 units are common, so adjust with a meter.

How do I make a phosphate buffer at pH 7.4?

With pKa 7.2, use about 1.58 parts Na₂HPO₄ to 1 part NaH₂PO₄. For 1 L at 0.1 M that is about 38.7 mmol NaH₂PO₄ and 61.3 mmol Na₂HPO₄, then check and adjust the pH.

Sources

  • OpenStax Chemistry 2e, Section 14.6: Buffers
  • Good, N. E. et al. (1966). Hydrogen ion buffers for biological research. Biochemistry 5, 467-477
  • CRC Handbook of Chemistry and Physics, Dissociation constants of organic and inorganic acids