Buffer Calculator: Phosphate, Tris, Acetate, Citrate, HEPES and MES Recipes
Choose a buffer, type the pH, concentration and volume, and get the grams of each salt to weigh (or the acid or base to add), a recipe for your lab notebook and a pH table. Unlike a plain Henderson–Hasselbalch calculator, it corrects for ionic strength and temperature, so the recipe is much closer to the pH your meter will read.
- PriceFree, no login or sign-up needed
- Your dataProcessed in your browser, never uploaded
- Works onPhone, tablet or computer, any modern browser
- Made byDr. Muhammad Aammar Tufail, Codanics
- Published17 November 2026
- Last updated16 November 2026
📚 How to cite this tool
This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.
Tufail, M. A. (2026). Buffer calculator: phosphate, Tris, acetate, citrate, HEPES and MES recipes [Online tool]. Codanics. Retrieved 16 November 2026, from https://codanics.com/tools/buffer-calculator/
In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)
The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 17 November 2026.
How to use the buffer calculator
- Pick the buffer system. Choose one whose pKa is within 1 pH unit of the pH you need (phosphate for pH 6–8, Tris for 7–9, acetate for 4–5.5, citrate for 3–6).
- Type the target pH, the total buffer concentration (for example 100 mM) and the final volume.
- Set the temperature you will use the buffer at, and any NaCl or KCl you add (for example 150 mM for TBS). Pick the hydrate form printed on your bottles.
- Weigh the amounts shown, dissolve in about 80% of the volume, check and fine-tune the pH with a calibrated meter, and make up to volume. Copy the recipe into your notebook.
Henderson–Hasselbalch and why this calculator goes further
The Henderson–Hasselbalch equation links pH to the ratio of the base and acid forms of a buffer:
It is exact only at zero ionic strength. Real buffers contain ions, which lower the activity of charged species and shift the apparent pKa. For phosphate (H₂PO₄⁻ → HPO₄²⁻) the shift is large: at 0.1 M the apparent pKa is about 6.8, not 7.2. A plain Henderson–Hasselbalch recipe for 0.1 M phosphate at pH 7.4 therefore gives a pH that is several tenths too high, which is why many people end up adding lots of acid at the bench.
This calculator solves the full charge balance of the solution, including H⁺, OH⁻, every form of the buffer and the counter-ions (Na⁺, K⁺ or Cl⁻), and corrects each pKa with the Davies equation:
Untick the ionic-strength box to see the plain Henderson–Hasselbalch result. The pKa values (25 °C, zero ionic strength) are from Goldberg, Kishore and Lennen (2002) and are shifted with temperature using each buffer’s d(pKa)/dT.
Worked example: 1 L of 0.1 M sodium phosphate, pH 7.4
With the ionic-strength correction the base : acid ratio is about 3.9, giving roughly 0.080 M Na₂HPO₄ and 0.020 M NaH₂PO₄: about 11.3 g Na₂HPO₄ (anhydrous) and 2.8 g NaH₂PO₄·H₂O per litre. This is close to the classic Cold Spring Harbor table (77.4 mL of 1 M Na₂HPO₄ + 22.6 mL of 1 M NaH₂PO₄ per litre). A plain Henderson–Hasselbalch calculation would suggest a ratio of only about 1.6, which gives a buffer near pH 7.0 instead of 7.4.
Common buffers and their pKa
| Buffer | pKa (25 °C) | Useful pH range | d(pKa)/dT per °C |
|---|---|---|---|
| Citrate | 3.13, 4.76, 6.40 | 3.0–6.2 | ≈ 0 |
| Acetate | 4.76 | 3.8–5.8 | +0.0002 |
| MES | 6.27 | 5.5–6.7 | −0.011 |
| Phosphate | 7.20 | 5.8–8.0 | −0.0028 |
| HEPES | 7.56 | 6.8–8.2 | −0.014 |
| Tris | 8.07 | 7.0–9.0 | −0.028 |
Need the mass of a single compound or a dilution of a stock? Use the molarity calculator or the dilution calculator.
Frequently asked questions
How do I make 0.1 M phosphate buffer pH 7.4?
For 1 L, dissolve about 11.3 g anhydrous Na₂HPO₄ and 2.8 g NaH₂PO₄·H₂O in 800 mL of water, check the pH, adjust if needed and make up to 1 L. The calculator gives exact amounts for other hydrates, volumes and temperatures.
Why does my buffer pH differ from the Henderson–Hasselbalch calculation?
Henderson–Hasselbalch ignores ionic strength. In real solutions charged ions are less active, which shifts the apparent pKa (by about 0.3–0.4 units for 0.1 M phosphate). This calculator corrects for that with the Davies equation, so its recipes are closer to what your meter reads.
Why does Tris buffer pH change with temperature?
The pKa of Tris falls by about 0.028 units per °C. A Tris buffer set to pH 8.0 at 25 °C is about pH 8.6 at 4 °C and 7.7 at 37 °C, so set the pH at the temperature you will use it.
What is buffer capacity?
Buffer capacity (β) is the amount of strong acid or base, in mol per litre, needed to change the pH by one unit. It is highest when pH = pKa and falls quickly beyond pKa ± 1, which is why each buffer has a useful range.
Should I use the sodium or potassium phosphate buffer?
Both have the same pKa. Use potassium phosphate when sodium interferes (or for some enzyme assays) and avoid potassium with SDS, which precipitates as potassium dodecyl sulfate.
Is my data sent anywhere?
No. Every calculation runs in your browser and nothing is uploaded or stored.
Do I need to log in or create an account to use the buffer calculator?
No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.
How do I cite this tool in my thesis or paper?
Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). Buffer calculator: phosphate, Tris, acetate, citrate, HEPES and MES recipes [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/buffer-calculator/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.
Free guides and courses from Codanics
More free tools
See all free Codanics tools → · Codanics on YouTube · WhatsApp channel