Henderson-Hasselbalch Buffer Calculator
Henderson-Hasselbalch Buffer Calculator
Full equilibrium pH solves the same mixture with the acid's own dissociation and water's ions included, still treating concentration as activity. Neither figure corrects for ionic strength, which lowers the apparent pKa of pairs whose two forms carry different charges (phosphate, citrate, carbonate). Finish any real buffer with a calibrated pH meter.
How to use the Henderson-Hasselbalch calculator
Choose what to solve for
Pick "Buffer pH" to find the pH of a mixture you have made up, or "Recipe for a target pH" to get the base/acid ratio for a pH you want and, from a total concentration and a volume, how much of each form to use.
Pick the buffer and the temperature
Choose a buffer from the list to fill in its pKa, or choose "Custom" and type your own. Listed values are for 25 °C; set the temperature you will use the buffer at and the pKa moves with it. Tris goes from 8.07 at 25 °C to 7.75 at 37 °C, which is a common way for a buffer made at the bench to end up wrong in the incubator.
Enter the concentrations or the target
For buffer pH, type the concentrations of the conjugate base and the weak acid in mol/L. For a recipe, type the target pH, the total buffer concentration (acid plus base) and the volume.
Read the result and the warnings
You get the pH or the ratio, how much buffering the pair keeps at that pH, and a second pH solved without the equation's shortcut. Where the two differ by 0.05 or more, or the acid has a neighbouring pKa close by, the page says so. Check the finished buffer with a pH meter.
Henderson-Hasselbalch — the equation behind every buffer
pH from a ratio
A buffer resists changes in pH when small amounts of acid or base are added, and the Henderson-Hasselbalch equation is the simple relationship that describes it. It states that the pH equals the pKa of the weak acid plus the base-ten logarithm of the ratio of conjugate base to weak acid: pH = pKa + log([A⁻]/[HA]). The logic is elegant. When the concentrations of the conjugate base and the weak acid are equal, the ratio is one, its logarithm is zero, and the pH simply equals the pKa — the point of maximum buffering. Add more conjugate base and the logarithm becomes positive, raising the pH; add more acid and it becomes negative, lowering the pH. Because the relationship is logarithmic, it takes a tenfold change in the ratio to move the pH by a single unit, which is exactly why buffers are so stable: large additions of acid or base only shift the ratio modestly, so the pH barely moves.
This makes the equation a practical recipe. To prepare a buffer at a chosen pH, you pick a weak acid whose pKa is close to that pH, then set the ratio of its salt (the conjugate base) to the acid using the rearranged form, ratio = 10^(pH − pKa). A buffer is most effective within about one pH unit of the pKa, where the ratio stays between 1:10 and 10:1. Differentiating the equation shows why: the pair's buffer capacity is proportional to r/(1 + r)², so one unit from the pKa it keeps 33% of its best capacity, and two units out 4%. That is why a buffer is chosen to match the pH it must hold: phosphate's second pKa, about 7.2, sits close to the 7.4 of blood. Blood's main buffer breaks that rule and works anyway. In its clinical form the equation reads pH = 6.1 + log(HCO₃⁻ ÷ (0.03 × PCO₂)), with bicarbonate in mEq/L and PCO₂ in mmHg (Hamm, Nakhoul and Hering-Smith, 2015), and normal values of 24 and 40 give a ratio of 20 and a pH of 7.40. A pKa of 6.1 sits well outside the one-unit window, but the system is open: the lungs set the CO₂ and the kidneys set the bicarbonate, each independently of the other. That 6.1 is a clinical constant for plasma, not the 6.351 listed below for carbonic acid at 25 °C and zero ionic strength, and the two are not interchangeable.
What the simple equation leaves out
Henderson-Hasselbalch is an approximation, and knowing its assumptions keeps you out of trouble. It treats activities as equal to concentrations, which holds well only in dilute solutions; at higher ionic strength, activity coefficients differ and the real pH drifts from the calculated value. The pKa values on this page are for zero ionic strength, the standard state Goldberg and colleagues use, and the tool does not correct them for the salt in your buffer. It also assumes the weak acid is genuinely weak and only partly dissociated, that the buffer components are present in much larger amounts than any added acid or base, and that the system is at a single temperature, since pKa itself shifts with temperature; the calculator moves a listed pKa with the Clarke–Glew equation, from the enthalpy and heat capacity of ionisation in the same review. The equation also ignores the acid's own dissociation and water's, which matter at very dilute concentrations or extreme pH; the "full equilibrium" figure puts both back so you can see when that happens. An acetate buffer at 0.1 mM of each form, for example, comes out at pH 4.87 rather than the 4.76 the equation gives. For these reasons, the calculated pH is an excellent starting point but a real buffer is finalised by measuring its pH with a calibrated meter and adjusting. Use this calculator to design buffers and build intuition for how ratio, pKa, and pH relate, and confirm the actual pH experimentally for any preparation that matters.
pKa of 22 buffer pairs at 25 °C and 37 °C
The 25 °C column is the selected value at zero ionic strength from the NIST review by Goldberg, Kishore and Lennen (2002), §8. The 37 °C column is that value moved with their Eq. 12, using the enthalpy and heat capacity of ionisation they list. Amine buffers such as Tris, ammonia and CAPS drop by about 0.3 between the two temperatures; acetate and the second phosphate step barely move.
| Buffer | Acid / base form | pKa 25 °C | pKa 37 °C |
|---|---|---|---|
| Phosphate, 1st step | H₃PO₄ / H₂PO₄⁻ | 2.148 | 2.21 |
| Citrate, 1st step | H₃Cit / H₂Cit⁻ | 3.128 | 3.11 |
| Acetate | acetic acid / acetate | 4.756 | 4.76 |
| Citrate, 2nd step | H₂Cit⁻ / HCit²⁻ | 4.761 | 4.75 |
| MES | MES / MES⁻ | 6.270 | 6.17 |
| Carbonate, 1st step | H₂CO₃ / HCO₃⁻ | 6.351 | 6.30 |
| Citrate, 3rd step | HCit²⁻ / Cit³⁻ | 6.396 | 6.43 |
| Bis-tris | Bis-trisH⁺ / Bis-tris | 6.484 | 6.29 |
| Imidazole | imidazolium / imidazole | 6.993 | 6.75 |
| PIPES | PIPES / PIPES⁻ | 7.141 | 7.06 |
| MOPS | MOPS / MOPS⁻ | 7.184 | 7.04 |
| Phosphate, 2nd step | H₂PO₄⁻ / HPO₄²⁻ | 7.198 | 7.18 |
| HEPES | HEPES / HEPES⁻ | 7.564 | 7.42 |
| Tris | TrisH⁺ / Tris | 8.072 | 7.75 |
| Tricine | Tricine / Tricine⁻ | 8.135 | 7.92 |
| Bicine | Bicine / Bicine⁻ | 8.334 | 8.16 |
| Ammonia | NH₄⁺ / NH₃ | 9.245 | 8.89 |
| CHES | CHES / CHES⁻ | 9.394 | 9.13 |
| Glycine, 2nd step | glycine / glycinate | 9.780 | 9.48 |
| Carbonate, 2nd step | HCO₃⁻ / CO₃²⁻ | 10.329 | 10.24 |
| CAPS | CAPS / CAPS⁻ | 10.499 | 10.17 |
| Phosphate, 3rd step | HPO₄²⁻ / PO₄³⁻ | 12.35 | 12.25 |
Frequently asked questions
It relates the pH of a buffer to the pKa of its weak acid and the ratio of conjugate base to acid: pH = pKa + log([A⁻]/[HA]). It lets you calculate a buffer's pH from its composition, or work out the ratio of salt to acid needed to reach a target pH. It's the foundational equation for preparing and understanding buffer solutions in chemistry and biology.
When the pH equals the pKa, the conjugate base and the weak acid are present in equal amounts, so the buffer has equal capacity to neutralise added acid or added base. Moving away from the pKa makes one component scarce, so the buffer can absorb less of one kind of addition before its pH shifts. Buffering capacity is therefore greatest at the pKa and falls off as you move away, becoming weak beyond about one pH unit on either side.
Pick a weak acid whose pKa is within about one unit of the pH you want to hold, ideally as close as possible. Then use the equation to set the ratio of conjugate base to acid: ratio = 10^(pH − pKa). For example, for pH 7.4 at 25 °C you might choose phosphate (second pKa 7.198) at a base-to-acid ratio of 1.59; at 37 °C, HEPES (7.42 there) sits almost exactly on its pKa. Matching the pKa to the target pH is the key to good buffering capacity.
A buffer is generally effective within about ±1 pH unit of its pKa, where the base-to-acid ratio stays between 1:10 and 10:1. At the edges of that window the pair still has 33% of its best capacity; two units out it has 4%, so the pH becomes unstable. That's why you select a buffer system whose pKa brackets the pH you need to maintain.
According to the simple equation, only the ratio of base to acid sets the pH, not their absolute concentrations — so a 0.1 M and a 0.01 M buffer at the same ratio give the same calculated pH. What concentration changes is the buffer capacity: a more concentrated buffer can absorb more added acid or base before its pH shifts. In reality, very dilute or very concentrated buffers also deviate from the ideal equation because of activity effects, so measure and adjust.
Because the equation is an approximation. It assumes activities equal concentrations, which only holds in dilute solutions; at higher ionic strength the real pH drifts, most for pairs whose two forms carry different charges, such as phosphate. It also assumes the pKa you used matches your temperature (Tris loses about 0.3 between 25 and 37 °C) and ignores water's own dissociation. Real reagents have impurities and the salt may carry water of hydration. For these reasons a calculated buffer is always finalised by measuring its pH with a calibrated meter and adjusting with small amounts of acid or base.
HA is the weak acid — the protonated form — and A⁻ is its conjugate base, the form that has lost a proton (usually added as a salt). In an acetate buffer, for example, HA is acetic acid and A⁻ is the acetate ion. The equation uses the ratio of these two forms. Adding acid converts some A⁻ to HA; adding base converts some HA to A⁻; the buffer resists pH change by shifting between them.
Yes, but you use the pKa of the specific dissociation step that brackets your target pH. Phosphoric acid, for instance, has three pKa values (2.148, 7.198 and 12.35 at 25 °C); for a buffer near physiological pH you use the second one with the dihydrogen-phosphate and hydrogen-phosphate pair. As long as your pH is near one pKa and far from the others, treating it as a single pair works well. Citric acid is the exception: its three pKa values sit within 3.3 units of each other, so the calculator tells you when more than 5% of the acid is in a third form the equation leaves out.
No. The values you enter are processed entirely in your browser. Nothing is sent to a server, stored, or shared, and no account is required. The calculation runs on your device only.
Method & sources
How it computes
pH = pKa + log10([A-]/[HA]); ratio for a target pH = 10^(pH - pKa); recipe splits a total C as C/(1+r) acid, Cr/(1+r) base. Listed pKa: Goldberg et al. 2002 at 25 °C, I = 0, moved to 0-50 °C by their Eq. 12. Check: same mixture solved by proton balance with Kw (IAPWS R11-24). Concentrations stand in for activities; no ionic-strength correction.
What this tool implements
- pKa values are the selected values of Goldberg, Kishore and Lennen (NIST, 2002), §8, at 298.15 K, 0.1 MPa and zero ionic strength (molality basis), for 22 buffer pairs. One source for every listed value: the page previously mixed a clinical plasma constant (6.1) with 25 °C laboratory values.
- Temperature: pK(T) from the same review's Eq. 12 (Clarke and Glew) with the listed ΔrH° and ΔrC°p, without the ∂ΔrC°p/∂T term the review never selects; limited to 0-50 °C. Example: Tris 8.072 at 25 °C becomes 7.75 at 37 °C. R = 8.314462618 J/(mol·K) (CODATA 2022).
- IUPAC Green Book §2.13.1 (viii) defines pH through the activity of H+; the equation and this tool use concentrations instead, so the result is a design target to confirm with a calibrated meter.
- Full-equilibrium check: the same mixture solved from the proton balance [A-] = C_base + [H+] - [OH-], with pKw from IAPWS R11-24 Table 3 (14.95, 13.99, 13.26 at 0, 25, 50 °C; quadratic between). The page warns when it differs from the equation by 0.05 pH or more (0.1 mM acetate: 4.87 against 4.76).
- Buffer capacity of the pair, β = ln10 · C · r/(1 + r)², from differentiating the equation; shown as a share of its maximum at r = 1 (33% one pH unit from the pKa). For polyprotic acids the page reports the share of the acid outside the chosen pair (citrate at pH 5.5: 10%).
- Corrected 2026-11-05: pKa hint "carbonic 6.10" (the clinical plasma constant, now explained as such beside carbonic acid's 6.351 at 25 °C); phosphate pK2 7.21 to 7.198 and pK values 2.1/7.2/12.4 to 2.148/7.198/12.35; "two units out" capacity stated; ten restated fact cards replaced by a 22-row pKa table generated from the same data as the calculator.
Sources
- Goldberg RN, Kishore N, Lennen RM. Thermodynamic quantities for the ionization reactions of buffers. J Phys Chem Ref Data. 2002;31(2):231-370, §2 Eq. (12) p.233 and §8 pp.359-360. https://srd.nist.gov/JPCRD/jpcrd615.pdf
- International Association for the Properties of Water and Steam. IAPWS R11-24, Revised Release on the Ionization Constant of H2O (2024), Table 3. https://iapws.org/technical-guidance/release/Ionization
- IUPAC. Quantities, Units and Symbols in Physical Chemistry (Green Book), 3rd ed., 2nd printing. RSC Publishing, 2012, §2.13.1 (viii) Definition of pH, p.75. https://iupac.org/wp-content/uploads/2019/05/IUPAC-GB3-2012-2ndPr…
- Hamm LL, Nakhoul N, Hering-Smith KS. Acid-Base Homeostasis. Clin J Am Soc Nephrol. 2015;10(12):2232-2242, Eq. 1. https://doi.org/10.2215/CJN.07400715