Buffer calculator: Henderson-Hasselbalch and recipes
Get the base-to-acid ratio for any pH, the grams to weigh and the acid or base to add for Tris, HEPES, MES, MOPS, PIPES, phosphate, acetate, citrate and five more buffers, how far the pH moves with temperature, and how to dilute a 10X stock.
The base:acid ratio for a target pH, or the pH of a ratio you already have, with the percentage in each form and the buffer capacity.
1Enter your values
Values at 25 °C and zero ionic strength (Goldberg et al. 2002).
Solve for
2Your result
[A⁻] : [HA]
1.754: 1
63.7 % base form, 36.3 % acid form
Base form63.7 %
Acid form36.3 %
Capacity β26.6 mM/pH92 % of maximum
Show the calculation
Henderson-Hasselbalch:pH = pKa + log10([A⁻]/[HA])
Ratio for your pH:[A⁻]/[HA] = 10^(5.000 − 4.756) = 1.754
Fraction in the base form:f = r / (1 + r) = 1.754 / 2.754 = 0.6369
Buffer capacity (Van Slyke), C in mol/L:β = 2.303 × (C·Ka·[H⁺]/(Ka + [H⁺])² + [H⁺] + Kw/[H⁺]) = 0.02665 mol/L per pH
Fraction in the base form against pH (pKa 4.756)
2
Buffer recipe
Buffer recipe calculator
Grams to weigh and acid or base to add for a buffer of any concentration, volume, pH and temperature, or the two salts to mix. Default: 1 L of 50 mM Tris-HCl, pH 8.0 at 25 °C.
1Enter your values
°C
The temperature you will use it at.
M
Ionic-strength correction (Davies)
mM
e.g. 150 for 150 mM NaCl added to the buffer. 0 if none.
2Your result
Weigh Tris base
6.057 g
50 mmol at 121.14 g/mol
Add HCl29.04 mL29.04 mmol of 1 M
Working pK at 25 °C8.142I = 29 mM
Base form41.9 %useful pH 7.1–9.1
Or mix two forms (no titration): 4.577 g of Tris-HCl (29.04 mmol) and 2.539 g of Tris base (20.96 mmol), made up to 1 L.
Tris pK falls by about 0.028 per °C: set the pH at the temperature you will use it.
Dissolve in about 80 % of the final volume, add most of the HCl, finish to pH 8.00 with a calibrated meter at 25 °C, then make up to volume. The calculation gets you close; the meter decides.
Show the calculation
Moles of buffer = concentration × volume:n = 0.05 mol/L × 1 L = 0.05 mol
Mass of the weighed form:m = 0.05 mol × 121.14 g/mol = 6.057 g
pK at 25 °C (van 't Hoff, then Davies at the buffer’s ionic strength):8.142
Mean protons bound per molecule at pH 8.00:n̄ = 0.5808 (the weighed form carries 0)
A buffer keeps its base:acid ratio when it warms or cools, so its pH follows its pK. See how far it moves between where you set it and where you use it.
1Enter your values
°C
°C
2Your result
pH at 4 °C
8.63
+0.63 from pH 8.00 at 25 °C
d(pK)/dT-0.0279 /°CΔrH° 47.45 kJ/mol
pK at 4 °C8.7028.072 at 25 °C
A shift of 0.63 pH units. Set the pH at 4 °C, or aim for pH 7.37 at 25 °C so it reads 8.00 when used.
Show the calculation
van 't Hoff with constant ΔrH°:pK(T) = pK(25 °C) + ΔrH° / (R ln10) × (1/T − 1/298.15 K)
With your temperatures:pK(25 °C) = 8.072; pK(4 °C) = 8.702
The ratio is fixed, so pH moves by the same amount:pH = 8.00 + (8.702 − 8.072) = 8.630
Temperature
pK
pH of this buffer
4 °C
8.702
8.63
20 °C
8.214
8.14
25 °C
8.072
8.00
30 °C
7.935
7.86
37 °C
7.750
7.68
pH of this Tris buffer from 0 to 40 °C
4
Stock dilution
10X buffer to 1X
Volume of a concentrated stock (10X, 20X, 50X…) and water for any final volume and strength. Default: 500 mL of 1X from a 10X stock.
1Enter your values
X
X
2Your result
Stock to take
50 mL
plus 450 mL water
Dilution1:10
Water450 mL
Concentrated phosphate and PBS stocks read a lower pH than the 1X buffer and can precipitate in the cold. Warm to dissolve, dilute, then check the pH of the 1X buffer.
Show the calculation
C1V1 = C2V2 with strengths in X:V_stock = V_final × X_final ÷ X_stock
With your numbers:500 mL × 1 ÷ 10 = 50 mL
How it's calculated
The maths behind every result
Each equation below is exactly what the calculator runs. Open “Show the calculation” under any result to see it with your own numbers.
Henderson-Hasselbalch and buffer capacity
A weak acid HA and its conjugate base A⁻ are in equilibrium, Ka=[H+][A−]/[HA]. Taking −log₁₀ of both sides gives the pH in terms of the ratio of the two forms:
total buffer concentration (acid + base forms), mol/L
fA−
fraction of the buffer in the base (deprotonated) form
Kw
ion product of water, 1.0 × 10⁻¹⁴ at 25 °C
One pH unit from the pK the capacity is a third of its maximum, which is where the usual pKa ± 1 working range comes from.
Recipes: proton balance over every pK
The recipe tool does not stop at one Henderson-Hasselbalch ratio. It counts protons. For a buffer with steps pK1<⋯<pKm, the fraction carrying j protons and the mean number of bound protons are
αj∝KmKm−1⋯Km−j+1[H+]j,nˉ=j∑jαj
If you weigh a form that carries h protons per molecule, the strong base (or, if negative, strong acid) to add follows from the proton balance:
nNaOH−nHCl=CV(h−nˉ)−([H+]−[OH−])V
This handles citrate (three overlapping pKs), glycine on either side, and PIPES free acid, whose first proton is strong and takes one full equivalent of NaOH before buffering starts. Mixing two forms (e.g. NaH₂PO₄ and Na₂HPO₄) is the same balance solved for the mole fraction of the second form.
Ionic strength (Davies correction)
Tabulated pK values are thermodynamic: zero ionic strength. A pH meter reads hydrogen-ion activity, while you weigh concentrations, so in a real buffer the working pK is shifted by the activity coefficients. With the Davies equation:
A=0.509 at 25 °C and zHA is the charge of the acid form. The calculator iterates I from the buffer species and their monovalent counter-ions. The shift is small for Tris and Good’s buffers and large for phosphate (H₂PO₄⁻ → HPO₄²⁻): in 0.1 M phosphate pK 7.198 becomes about 6.81, so a recipe calculated with a pK of 7.2 uses far too little Na₂HPO₄. The Davies equation is reliable up to an ionic strength of about 0.1 to 0.5 M; above that, and with added salt you have not entered, measure.
Temperature
The pK of a buffer moves with temperature according to its enthalpy of ionisation (van ’t Hoff, with ΔrH∘ constant):
A buffer moved from one temperature to another keeps its base-to-acid ratio, so its pH moves with its pK. Leaving out the heat-capacity term changes pK by under 0.03 between 4 and 37 °C for every buffer here; for Tris the equation reproduces Bates and Hetzer’s measured pK at 5, 30 and 40 °C to within 0.01.
Buffer table
pK and ΔrH∘ at 25 °C and zero ionic strength from Goldberg, Kishore and Lennen (2002), the NIST review of buffer thermodynamics. d(pK)/dT is calculated from ΔrH∘.
Buffer
pK (25 °C)
Useful pH
ΔrH° (kJ/mol)
d(pK)/dT (per °C)
Acetate
4.756
3.8–5.8
-0.41
0.0002
Citrate (pK1)
3.128
2.1–4.1
4.07
-0.0024
Citrate (pK2)
4.761
3.8–5.8
2.23
-0.0013
Citrate (pK3)
6.396
5.4–7.4
-3.38
0.0020
MES
6.270
5.3–7.3
14.8
-0.0087
PIPES
7.141
6.1–8.1
11.2
-0.0066
Imidazole
6.993
6.0–8.0
36.64
-0.0215
MOPS
7.184
6.2–8.2
21.1
-0.0124
Sodium phosphate (pK2)
7.198
6.2–8.2
3.6
-0.0021
HEPES
7.564
6.6–8.6
20.4
-0.0120
Tris
8.072
7.1–9.1
47.45
-0.0279
Tricine
8.135
7.1–9.1
31.37
-0.0184
Bicine
8.334
7.3–9.3
26.34
-0.0155
Borate
9.237
8.2–10.2
13.8
-0.0081
Glycine-NaOH (pK2)
9.780
8.8–10.8
44.2
-0.0260
Traps and assumptions
Set the pH at the temperature of use. Tris made to pH 8.0 at room temperature is about pH 8.6 in the cold room.
Counter-ions change the buffer. Titrating Tris with HCl adds chloride; titrating HEPES with KOH instead of NaOH gives a potassium buffer. Ionic strength from salt you add later (e.g. 150 mM NaCl) lowers the working pK further; enter it as extra ionic strength if you know it.
Hydrates. Weigh with the molecular weight on your bottle. Na₂HPO₄·7H₂O is 268.07 g/mol, not 141.96.
Dilution moves the pH. A 10X phosphate or PBS stock has a higher ionic strength than the 1X buffer, so its pH reads lower and rises on dilution.
The calculation is a starting point. Electrode calibration, junction potentials and reagent purity all shift the result. Add most of the titrant as calculated, then finish with a calibrated pH meter before making up to volume.
References
References. Goldberg RN, Kishore N, Lennen RM (2002) Thermodynamic quantities for the ionization reactions of buffers. J. Phys. Chem. Ref. Data 31:231–370. Van Slyke DD (1922) On the measurement of buffer values. J. Biol. Chem. 52:525–570. Davies CW (1962) Ion Association. Butterworths, London. Bates RG, Hetzer HB (1961) Dissociation constant of the protonated acid form of 2-amino-2-(hydroxymethyl)-1,3-propanediol. J. Phys. Chem. 65:667–671.
FAQ
Buffer calculator: common questions
How do I make 1 L of 50 mM Tris buffer at pH 8.0?
Dissolve 0.05 mol of Tris base (121.14 g/mol × 0.05 = 6.057 g) in about 800 mL of water, then add HCl to protonate the right fraction. Tris has pK 8.072 at 25 °C, so at pH 8.0 about 54 % must be Tris-H⁺: 27.1 mmol of HCl by Henderson-Hasselbalch, or 29.0 mmol once the pK is corrected for ionic strength. Add most of it as 1 M HCl, finish with a pH meter at the temperature you will use the buffer, then make up to 1 L.
What is the Henderson-Hasselbalch equation?
pH = pKa + log10([A⁻]/[HA]): the pH of a buffer depends on the ratio of its base form to its acid form, not on the total concentration. Rearranged, the ratio is 10^(pH − pKa). For acetate (pK 4.756) at pH 5.0 the ratio is 10^0.244 = 1.754, so 63.7 % is acetate and 36.3 % acetic acid. At pH = pKa the two forms are equal.
What is the useful pH range of a buffer?
About pKa ± 1. Buffer capacity, the strong acid or base needed to move the pH by one unit, peaks at pH = pKa at 2.303 × C / 4 (Van Slyke, 1922): 28.8 mM per pH unit for a 50 mM buffer. One unit away it has fallen to a third of that (33 %), and two units away to under 4 %. Choose a buffer whose pK is within about 0.5 of your working pH and use enough of it.
Why does the pH of Tris change with temperature?
Its ionisation has a large enthalpy (47.45 kJ/mol, Goldberg et al. 2002), so its pK falls by about 0.028 per °C. A Tris buffer set to pH 8.0 at 25 °C reads about 8.63 at 4 °C and 7.68 at 37 °C. Phosphate (3.6 kJ/mol) and acetate barely move, and Good’s buffers such as MES, MOPS and HEPES move about 0.009 to 0.012 per °C. Set the pH at the temperature you will use the buffer.
How do I make 0.1 M sodium phosphate buffer at pH 7.4?
Mix the dibasic and monobasic salts. For 100 mL: 1.134 g of Na₂HPO₄ (7.99 mmol) and 0.278 g of NaH₂PO₄·H₂O (2.01 mmol), about 80 % dibasic. The calculator corrects the phosphate pK (7.198 at zero ionic strength) to the buffer’s own ionic strength, which brings it to about 6.8. These amounts are calculated, not taken from a published table: check the pH with a meter and adjust with NaOH or H₃PO₄.
Why do I get a different phosphate recipe from a pKa of 7.2?
Because phosphate ions are doubly charged, ionic strength lowers the working pK a lot. For 0.1 M phosphate at pH 7.0, Henderson-Hasselbalch with pK 7.198 says 38.8 % dibasic; corrected with the Davies equation the working pK is 6.81 and the recipe is 60.7 % dibasic. Made the uncorrected way, the buffer would read about 0.4 pH units low. Both are calculations; the pH meter is the final check.
How do I dilute a 10X buffer to 1X?
Use C1V1 = C2V2 with the strengths in X: stock volume = final volume × 1 / 10. For 500 mL of 1X from a 10X stock, take 50 mL of stock and add 450 mL of water. For 1 L of 1X TAE from 50X, take 20 mL. Concentrated phosphate stocks often read a different pH from the 1X buffer because ionic strength changes on dilution, so check the pH after diluting.
LabTools is a free desktop app for Windows, macOS and Linux. Write the buffer recipe into a versioned protocol or a notebook entry, link it to the study that uses it, and keep the data, statistics and plots from that study in the same place.