Chemistry & Chemical Engineering Acids, Bases, Buffers & Titration Henderson-Hasselbalch equation (25 °C thermodynamic pKa)

Henderson-Hasselbalch Buffer Calculator

The Henderson-Hasselbalch equation says a buffer's pH depends on only two things: the pKa of the weak acid and the ratio of conjugate base to acid. Give this calculator a pKa and either the two concentrations or a target pH, and it returns the pH, the required [A⁻]/[HA] ratio, the concentration of each component, the grams of each to weigh out for your volume, and the buffer capacity — the number that tells you how much acid or base the buffer can absorb before the pH moves.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
What do you wantChoose the recipe mode before you make the buffer, the pH mode after.A recipe for a target pH
pKa of the weak acidThe pKa of the acidic member of the pair at your working temperature; 4.756 is acetic acid at 25 °C.4.756
Target pHThe pH you want the finished buffer to hold; keep it within one unit of the pKa.5
Total buffer concentrationThe sum [HA] + [A⁻] you want; 0.05-0.20 M is typical for biochemical work.0.1 M
Concentration of weak acid [HA]Molarity of the protonated form already in your solution.0.05 M
Concentration of conjugate base [A⁻]Molarity of the deprotonated form, usually added as its sodium or potassium salt.0.05 M
Buffer volume to makeFinal volume of the made-up buffer; the masses below are for this volume.1 L
Molar mass of the acid formMolar mass of the salt or acid you will actually weigh; 60.052 is glacial acetic acid.60.052 g/mol
Molar mass of the base formInclude waters of hydration: anhydrous sodium acetate is 82.034, the trihydrate is 136.08.82.034 g/mol

It returns

  • Buffer pH — pH = pKa + log₁₀([A⁻]/[HA]) at 25 °C and low ionic strength.
  • Required [A⁻]/[HA] ratio
  • Weak acid [HA]
  • Conjugate base [A⁻]
  • Acid form to weigh
  • Base form to weigh
  • Buffer capacity β — Moles of strong acid or base per litre needed to shift the pH by one unit; peaks at pH = pKa.

The formula

pH=pKa+log10([A][HA])
[A][HA]=10pHpKa
β=2.303Cf(1f)

In plain text: pH = pKa + log₁₀([A⁻] / [HA])

  • pHNegative log of the hydrogen ion activity of the buffer (—)
  • pKaNegative log of the acid dissociation constant of HA (—)
  • [A⁻]Concentration of the conjugate base (mol/L)
  • [HA]Concentration of the undissociated weak acid (mol/L)

Derived from Ka = [H⁺][A⁻]/[HA] by taking negative logarithms. It assumes both species are present in far greater amounts than the H⁺ or OH⁻ they release, and it uses concentrations in place of activities, so it degrades at high ionic strength and at very low buffer concentration.

Updated Category Acids, Bases, Buffers & Titration Verified against published test cases Reading time 12 min

What a buffer does and what the equation tells you

A buffer is a solution that resists pH change. It contains meaningful amounts of both a weak acid and its conjugate base, so it has a reservoir of each: added strong acid is absorbed by the base form, added strong base is absorbed by the acid form, and the pH barely moves. Every enzyme assay, every cell culture medium, every chromatography mobile phase and your own blood plasma depends on one.

The Henderson-Hasselbalch equation gives the pH of that solution from two numbers: the pKa of the acid, which is fixed by chemistry, and the ratio of the two forms, which you control. Notice what is absent. The absolute concentrations do not appear — only their ratio does. A 1 M acetate buffer at a 1:1 ratio and a 0.01 M acetate buffer at a 1:1 ratio have the same pH.

What the absolute concentration does control is capacity: how much acid or base the buffer can swallow before the pH shifts. The 1 M buffer holds a hundred times more of both forms, so it takes a hundred times more insult to move it. Choosing a buffer therefore means two separate decisions — pick the pKa to set the pH, and pick the total concentration to set the capacity.

Because the ratio enters through a logarithm, the pH is remarkably insensitive to it. A tenfold change in ratio moves the pH by exactly one unit; a 10% error in your weighing moves it by about 0.04 units. That is the property that makes buffers practical: small mistakes in preparation produce small errors in pH.

Where the equation comes from, and what it assumes

Start with the dissociation equilibrium HA ⇌ H⁺ + A⁻ and its constant Ka = [H⁺][A⁻]/[HA]. Rearrange for [H⁺]: [H⁺] = Ka × [HA]/[A⁻]. Take the negative base-10 logarithm of both sides. Since pH = −log[H⁺] and pKa = −log Ka, and the reciprocal inside flips the sign of the log, you get pH = pKa + log([A⁻]/[HA]). No approximation has been made yet — the equation is an exact restatement of the equilibrium constant.

The approximation enters when you substitute the amounts you weighed out for the equilibrium concentrations. Strictly, [HA] is the acid remaining after some has dissociated, and [A⁻] is the salt you added plus what the acid released. Provided both amounts are large compared with the H⁺ and OH⁻ concentrations — which holds comfortably for buffers above about 1 mM in the pH 3–11 window — the correction is negligible. Outside that window, or at very low concentration, use an exact treatment such as the weak acid pH calculator.

The second approximation is that concentrations replace activities. Real ions in a salty solution are shielded by their neighbours and behave as though they were less concentrated. The consequence is that the apparent pKa shifts with ionic strength: for a monoprotic acid the shift is modest, but for phosphate — where the charge changes from −1 to −2 across the second dissociation — the apparent pKa₂ drops from about 7.20 at zero ionic strength to about 6.8 at 0.1 M ionic strength. If your protocol specifies a precise pH, prepare from the calculation and then adjust with a meter.

Third, pKa depends on temperature, and some buffers care a great deal. Tris changes by roughly −0.028 pH units per Celsius degree, so a Tris buffer adjusted to pH 8.0 on the bench at 25 °C reads near pH 8.6 in a 4 °C cold room. Phosphate and acetate are far less temperature-sensitive. Always adjust the pH at the temperature the buffer will be used at, and record which.

The buffer capacity reported above comes from differentiating the equation: β = 2.303 · C · f · (1 − f), where C is the total concentration and f is the fraction in the base form. It is maximised at f = 0.5 — that is, at pH = pKa — where it equals 0.576 × C. That single result is the reason for the rule that follows.

Worked example: 1.00 L of 0.100 M acetate buffer at pH 5.00

You need a litre of 0.100 M acetate buffer at pH 5.00, made from glacial acetic acid (M = 60.052 g/mol) and anhydrous sodium acetate (M = 82.034 g/mol). Acetic acid has pKa = 4.756 at 25 °C.

  1. Find the required ratio. pH − pKa = 5.00 − 4.756 = 0.244. So [A⁻]/[HA] = 10^0.244 = 1.7539.
  2. Convert the ratio to a fraction. The fraction in the base form is 1.7539 ÷ (1 + 1.7539) = 0.6369. The remaining 0.3631 is the acid form.
  3. Split the total concentration. [A⁻] = 0.100 × 0.6369 = 0.06369 M; [HA] = 0.100 × 0.3631 = 0.03631 M. They sum to 0.100 M, as required.
  4. Convert to moles for 1.00 L. 0.06369 mol of sodium acetate and 0.03631 mol of acetic acid.
  5. Convert to masses. Sodium acetate: 0.06369 × 82.034 = 5.225 g. Acetic acid: 0.03631 × 60.052 = 2.181 g, which is 2.08 mL of the glacial liquid at 1.049 g/mL.
  6. Check the capacity. f = 0.6369, so β = 2.303 × 0.100 × 0.6369 × 0.3631 = 0.0533 mol/(L·pH). Adding 5 mmol of strong acid to a litre would move the pH by roughly 5 ÷ 53.3 ≈ 0.09 units.

Dissolve both in about 900 mL of water, check the pH with a calibrated meter, adjust with a little concentrated acid or base if it is off, then make up to exactly 1.00 L. The final volume adjustment must come last, because adding acid or base changes the volume.

Working the other direction, suppose you already made a buffer with 0.050 M of each form. The ratio is 1.000, its logarithm is zero, and the pH is exactly the pKa, 4.756. That is the half-equivalence point of an acetic acid titration, which is precisely how pKa values are measured in the first place.

Choosing a buffer: the pKa ± 1 rule and what it costs to break it

Select a buffer whose pKa is within one pH unit of your working pH, and as close to it as you can manage. The reason is the capacity curve plotted above, which is a symmetric hump centred on the pKa.

At pH = pKa, the two forms are equal and β = 0.576 × C — its largest possible value. One unit away, the ratio is 10:1, the minor form makes up 9.1% of the total, and β falls to 2.303 × C × 0.0909 × 0.9091 = 0.190 × C, about a third of the peak. Two units away, the minor form is 0.99% of the total and β is 0.0226 × C, a twenty-fifth of the peak. Push further and the solution stops buffering in any useful sense: it has almost nothing left of one form to absorb an insult.

So the practical readings of the outputs above are these. If the reported ratio is between 0.1 and 10, you have a sound buffer. If it is outside that, either pick a different buffer system or raise the total concentration to compensate — though raising concentration has its own costs in ionic strength, enzyme inhibition and cost of reagent.

The buffer capacity figure is directly usable. It tells you the millimoles of strong acid or strong base per litre that shift the pH by one unit, so dividing your expected acid load by β gives the expected pH drift. A reaction that liberates 2 mmol of protons per litre into a buffer with β = 0.053 will move the pH by about 0.038 units — negligible. The same reaction in a buffer with β = 0.002 moves it a full pH unit.

One more consideration that the equation cannot show you: chemical compatibility. Phosphate precipitates calcium, magnesium and many transition metals, and it inhibits several enzymes. Tris has a free amine that reacts with aldehydes and interferes with protein assays. Carbonate buffers lose CO₂ to the air and drift upward. Choose on pKa first, then screen for interference.

pKa values of common laboratory buffers at 25 °C

Useful range is pKa ± 1. Values are for dilute aqueous solution; the apparent pKa shifts with ionic strength, particularly for the polyprotic species.
Buffer systempKaUseful pH rangeNotes
Phosphoric acid / H₂PO₄⁻2.151.1–3.1pKa₁
Citric acid (first)3.132.1–4.1Triprotic; chelates metals
Formic acid / formate3.752.8–4.8Volatile, MS-compatible
Acetic acid / acetate4.763.8–5.8Volatile, cheap
MES6.155.2–7.2Zwitterionic, low metal binding
Carbonic acid / bicarbonate6.355.4–7.4Loses CO₂ to air
PIPES6.805.8–7.8Zwitterionic
H₂PO₄⁻ / HPO₄²⁻7.206.2–8.2pKa₂; precipitates Ca²⁺ and Mg²⁺
HEPES7.56.5–8.5Standard for cell culture
Tris8.067.1–9.1Strongly temperature-dependent
Boric acid / borate9.248.2–10.2Complexes cis-diols
Ammonium / ammonia9.258.3–10.3Volatile
Glycine (amine)9.788.8–10.8Second pKa; first is 2.35
HCO₃⁻ / CO₃²⁻10.339.3–11.3pKa₂ of carbonic acid

HEPES and other Good's buffers are usually quoted between 7.4 and 7.6 depending on temperature and source; use the value supplied with your reagent for precise work.

Mistakes that produce a buffer at the wrong pH

  • Using a pKa from a different temperature. Tris shifts by about −0.028 pH units per Celsius degree, so a buffer adjusted at 25 °C and used at 4 °C is roughly 0.6 units higher than intended.
  • Ignoring waters of hydration in the molar mass. Sodium acetate trihydrate is 136.08 g/mol against 82.03 for the anhydrous salt. Weighing the trihydrate against the anhydrous number gives 40% less buffer than you planned.
  • Picking the wrong pKa of a polyprotic acid. Phosphate has three; the one that governs a pH 7 buffer is pKa₂ = 7.20, not pKa₁ = 2.15. Match the pKa to the dissociation step that is active at your pH.
  • Adjusting the volume before adjusting the pH. Titrating to the final pH adds liquid. Make up to a little under the target volume, adjust the pH, then top up.
  • Assuming concentration sets the pH. Diluting a buffer twofold leaves the pH nearly unchanged, because both concentrations fall together and only the ratio matters. What halves is the capacity.
  • Trusting the equation at high ionic strength. Above roughly 0.1 M supporting electrolyte the activity corrections are real, and they are largest for the multiply-charged phosphate and citrate systems. Verify with a calibrated meter.
  • Buffering outside the pKa ± 1 window. At two units away, 99% of the buffer sits in one form and the capacity is about 4% of its peak — an expensive way to make a solution that does not buffer.

Related calculations and when to use something else

The Henderson-Hasselbalch equation applies only when both members of a conjugate pair are present in substantial amounts. For a solution of a weak acid alone, use the weak acid pH calculator, which solves the full quadratic; for a weak base alone, the weak base pH calculator. For a strong acid or base, the concentration itself gives the pH directly through the pH calculator.

The buffer region is also the middle of a titration curve, and the pKa is read off exactly at the half-equivalence volume — where half the acid has been converted to its conjugate base, so the ratio is 1. The acid-base titration calculator handles the equivalence-point stoichiometry and shows where that half-way point falls.

Two related equilibrium tools sit alongside. The equilibrium constant calculator handles the general K expression that Ka is a special case of, and the solubility product calculator covers the case where a buffer component precipitates — which is exactly the failure mode of a phosphate buffer in the presence of calcium.

Finally, remember the biological reason this equation is taught in every physiology course. Blood plasma is buffered by the bicarbonate system at pKa 6.1, well outside the pKa ± 1 rule for plasma pH 7.4. It works anyway because it is an open system: the lungs continuously remove CO₂, so the acid form is regenerated or discarded on demand and the effective capacity is far higher than a closed-system calculation predicts. That is a good reminder that this equation describes a sealed beaker, and a real system with mass transfer can behave better than it says.

Frequently asked questions

Why does buffer pH not depend on concentration?

Because only the ratio of conjugate base to acid appears in the equation, and diluting a buffer scales both concentrations equally so the ratio does not change. A 1 M and a 0.01 M acetate buffer at a 1:1 ratio share the same pH of 4.76. What concentration controls is capacity: the dilute one is overwhelmed a hundred times more easily by added acid or base.

How close to the pKa should my target pH be?

Within one pH unit, and as close as you can get. Capacity is maximal at pH = pKa, where β = 0.576 × C. One unit away it falls to about a third of that; two units away to about 4%. If your target is more than a unit from every available pKa, switch buffer systems rather than compensating with a higher concentration.

How many grams of each component do I weigh out?

Multiply each computed concentration by the volume in litres to get moles, then by that component's molar mass. For 1 L of 0.100 M acetate at pH 5.00, that is 0.0637 mol of sodium acetate (5.23 g anhydrous) and 0.0363 mol of acetic acid (2.18 g). Enter both molar masses above and the calculator does this for you — include waters of hydration.

What is buffer capacity and how do I use the number?

Buffer capacity β is the moles of strong acid or base per litre needed to move the pH by one unit, computed as 2.303 · C · f · (1 − f). Divide your expected acid or base load by β to predict the pH drift. A process releasing 2 mmol of H⁺ per litre into a buffer with β = 0.053 shifts the pH by about 0.04 units.

Does the Henderson-Hasselbalch equation account for temperature?

Not directly — you supply the pKa, and pKa is temperature-dependent. Tris changes by roughly −0.028 pH units per degree Celsius, so a Tris buffer set to 8.0 at 25 °C reads near 8.6 at 4 °C. Phosphate and acetate shift far less. Use the pKa for your working temperature and adjust the pH at that temperature with a meter.

When does the equation stop being accurate?

At very low buffer concentration, at extreme pH, and at high ionic strength. Below about 1 mM the H⁺ and OH⁻ that the water itself supplies are no longer negligible against the buffer components. Outside pH 3–11 the same problem appears from the other direction. Above roughly 0.1 M ionic strength, activity coefficients depart from unity and the apparent pKa shifts — most visibly for phosphate and citrate.

Can I make a buffer from just the acid and sodium hydroxide?

Yes, and it is often the cleanest route. Dissolve the full amount of weak acid, then add strong base until the meter reads your target pH; every mole of hydroxide converts one mole of HA into A⁻. The total concentration is set by the acid you weighed, and the ratio by the base you titrated in. The calculator's [A⁻] figure is exactly the moles of NaOH per litre you need.

Which pKa do I use for a phosphate buffer at pH 7?

Use pKa₂ = 7.20, the H₂PO₄⁻ ⇌ HPO₄²⁻ step, and treat sodium dihydrogen phosphate as the acid and disodium hydrogen phosphate as the base. Phosphoric acid has three dissociation steps at roughly 2.15, 7.20 and 12.35, and only the one that is partly dissociated at your working pH buffers there. At 0.1 M ionic strength the apparent value drops to around 6.8, so verify with a meter.

Why does my measured pH differ from the calculated one?

Most often because of ionic strength, temperature or a mis-specified molar mass. Activity effects lower the apparent pKa of multiply-charged systems, temperature moves the pKa of amine buffers strongly, and weighing a hydrate against an anhydrous molar mass changes the ratio. Treat the calculation as the starting recipe and the calibrated meter as the authority; adjust before making up to final volume.

References

  • Fundamentals of Analytical Chemistry, 9th ed. (Skoog, West, Holler & Crouch), Chapter 9: Aqueous solutions and buffers — Cengage Learning
  • Data for Biochemical Research, 3rd ed. (Dawson, Elliott, Elliott & Jones) — buffer pKa tables — Oxford University Press
  • Good, N. E. et al., 'Hydrogen ion buffers for biological research', Biochemistry 5(2), 467-477 — American Chemical Society
  • IUPAC Compendium of Chemical Terminology (the Gold Book) — buffer, buffer capacity, pKaInternational Union of Pure and Applied Chemistry