pH buffer calculator
pH = pKa + log₁₀([base] / [acid])
Choose a buffer system, then enter the pH, the concentration and the final volume. Switch on temperature correction to use the pKa at your working temperature.
Results
Enter the target pH, concentration and volume
About this calculation
Runs in your browser
The calculation runs in your browser. Your inputs are kept in this browser's storage on this device so they are still here when you come back; Clear removes them.
Checked
Checked against: Henderson-Hasselbalch worked by hand for phosphate and acetate, Gomori's citrate table at pH 4 and 5 (with the deviation at pH 6 recorded), the TRIS temperature shift and accepted values of pKw.
Calculation version 088929cdc6c2, shared with the Android app.
Worked example
One litre of 50 mmol/L phosphate buffer, pH 7.4, at 25 °C, from KH₂PO₄ and Na₂HPO₄·2H₂O (pKa 7.198).
[base] / [acid] = 10^(7.4 − 7.198) = 1.59
So about 61 % of the 50 mmol is the base form: 30.7 mmol of Na₂HPO₄·2H₂O (5.47 g) and 19.3 mmol of KH₂PO₄ (2.63 g). The calculator, which solves the full proton balance, gives 5.466 g and 2.625 g.
The Load example button fills in these values.
Formula
pH = pKa + log₁₀([base] / [acid])
For one conjugate pair in the middle of its range this Henderson-Hasselbalch relation gives the recipe. The calculator solves the full proton balance instead: every stepwise pKa of the acid, plus the free H⁺ and OH⁻ of water.
pKa(T) = pKa(25 °C) + dpKa/dT · (T − 25)
The amounts follow from the total: n = c · V, split between the two components by the base fraction. Buffers supplied as one substance (borate, Good's buffers) are weighed to the full concentration and titrated with the calculated NaOH.
Assumptions and limits
- Ideal solution: activity coefficients are taken as 1, so ionic strength is ignored and the three pKa values of citric acid are the thermodynamic ones (3.13, 4.76, 6.40 at 25 °C). The calculation itself is exact for that model: at pH 6.0 it gives 74.5 % of the citrate as trisodium salt, which can be checked by hand from the three pKa values. Gomori's measured table (1955) needs 81 % at pH 6.0, because at the ionic strength of the real buffer the apparent pKa values are lower. Read the other way, the recipe for pH 6.0 gives a buffer about 0.3 pH below the target, as Gomori's rows for pH 5.6 and 5.8 (73 % and 76 % trisodium citrate) show. At pH 4 the two agree. Other buffers with multiply charged ions can be expected to deviate in the same way. Treat the amounts as a starting point and always finish with a calibrated pH meter.
- The recipe is for 25 °C unless you switch on temperature correction and enter a working temperature. Buffers such as TRIS change by about −0.03 pH per °C, so one made at 25 °C reads differently at 4 °C or 37 °C.
- Masses are for the exact forms named, including water of crystallisation. If your salt is a different hydrate, convert with its molar mass.
- Phosphoric acid is taken as the 85 % reagent (1.685 g/mL) and acetic acid as glacial (1.049 g/mL). Check the label of your bottle.
- A target more than one pH unit from the pKa is flagged, and a pH the two components cannot reach is refused.
References
- D. D. Perrin and B. Dempsey, Buffers for pH and Metal Ion Control, Appendix III: pKa of phosphoric acid and the temperature coefficients.
- CRC Handbook of Chemistry and Physics, “Dissociation Constants of Organic Acids and Bases”: citric and acetic acid.
- Sigma/Merck, Biological Buffers Selection Guide: pKa and temperature coefficients of the Good's buffers.
- Harned and Robinson (1940): the ion product of water as a function of temperature.
- G. Gomori (1955), Preparation of Buffers for Use in Enzyme Studies: the citrate buffer table the citrate recipe is compared with.
The calculation and the buffer table are those of the pH Buffer Prep calculator in the LabTools Android app.