Lab & life science

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.

✅ No login needed100% freeRuns in your browserYour data stays on your device
Buffer Calculator✅ Free · no login📚 Cite this tool
Your data never leaves your PC. Your data is analysed on your own computer or phone, even when you upload a CSV or Excel file. Nothing is uploaded, stored or seen by Codanics, and no login is needed.
  • 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.

Citation · APA 7th edition

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.

🚀 Follow Codanics channel on WhatsApp for more updatesNew free tools, scholarships, PhD positions and research tips, straight to your phone. Free lessons on YouTube too.

How to use the buffer calculator

  1. 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).
  2. Type the target pH, the total buffer concentration (for example 100 mM) and the final volume.
  3. 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.
  4. 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:

pH = pKa + log₁₀ ( [base] / [acid] ) [base] / [acid] = 10^(pH − pKa)

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:

log γ = −A z² ( √I / (1 + √I) − 0.3 I ) A ≈ 0.511 at 25 °C pKa′ = pKa + log γ(base form) − log γ(acid form) I = ½ Σ cᵢ zᵢ² (solved by iteration)

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

BufferpKa (25 °C)Useful pH ranged(pKa)/dT per °C
Citrate3.13, 4.76, 6.403.0–6.2≈ 0
Acetate4.763.8–5.8+0.0002
MES6.275.5–6.7−0.011
Phosphate7.205.8–8.0−0.0028
HEPES7.566.8–8.2−0.014
Tris8.077.0–9.0−0.028
Even the best calculation is a starting point. Electrodes, reagent purity, water content of hydrates and temperature all shift the final pH slightly, so always check it with a calibrated pH meter before making up to volume.

Need the mass of a single compound or a dilution of a stock? Use the molarity calculator or the dilution calculator.

Learn the statistics behind these numbers. Codanics has free statistics, R and Python lessons on YouTube and full courses for researchers.

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

Made by Dr. Muhammad Aammar Tufail, Codanics. First published 17 November 2026, last updated 16 November 2026. Found a bug or have an idea for a new tool? Tell us on the WhatsApp channel or in the comments on YouTube. Results are for learning and planning; check important analyses with a statistician or your supervisor.