Online Science Tools

Phosphate Buffer Calculator

Phosphate buffer calculator and citrate–phosphate (McIlvaine) mixer, plus HEPES, MES, acetate, Tris, and more—grams from target pH, concentration, and volume.

Phosphate & citrate–phosphate buffer calculator

pH = pKa + log([A⁻]/[HA]) · McIlvaine citrate–phosphate table

Monobasic/dibasic sodium phosphates. pKa₂ ≈ 7.20. PBS is this same pair plus NaCl (and often KCl)—this calculator gives the phosphate recipe, not the saline. Useful pH ≈ 6.2–8.2.

pH = pKa + log₁₀([A⁻]/[HA]) · pKa = 7.2

[A⁻]/[HA]
1.585
HH check pH
7.4
Acid NaH2PO4
0.03869 M · 4.641 g
Base Na2HPO4
0.06131 M · 8.704 g

Dissolve the calculated masses and dilute to 1000 mL. Adjust ionic strength / activity as needed for research-grade work.

Phosphate buffer calculator and citrate–phosphate (McIlvaine) mixer

Preparing a buffer solution with a pipette and volumetric flask

A buffer is a mixture of a weak acid (HA) and its conjugate base (A⁻) that resists pH change when small amounts of strong acid or base are added. Laboratory recipes specify a named system (phosphate, potassium phosphate, HEPES, MES, borate, acetate, Tris, citrate, ammonia, bicarbonate, carbonate, histidine, imidazole), a target pH, a total buffer concentration C = [HA] + [A⁻], and a final volume. The Henderson–Hasselbalch equation sets the ratio [A⁻]/[HA] from pH and pKa; together with C it fixes both concentrations, then masses follow from molar mass and volume.

Useful buffering is typically within about ±1 pH unit of the system pKa. Outside that window the ratio becomes extreme and capacity collapses. Real polyprotic systems (citrate, carbonate) have multiple pKa values; this calculator uses a single effective pKa per named recipe as a teaching and planning aid—not a substitute for validated lab SOPs for critical biology or clinical work. Citrate–phosphate (McIlvaine) is two stocks mixed from a published table, not a new pKa: choose the McIlvaine chip for 0.2 M Na₂HPO₄ + 0.1 M citric acid.

The Phosphate Buffer Calculator on Online Science Tools returns acid and base molarities, moles, and grams for common named buffers, plus McIlvaine mixing volumes. Cross-check the target pH with the pH Calculator’s buffer mode, and dilute stock solutions with the Dilution Calculator when needed.

  • pH = pKa + log₁₀([A⁻]/[HA]) (Henderson–Hasselbalch)
  • C = [HA] + [A⁻]; solve for each concentration from the ratio and C
  • mass = moles × molar mass; moles = molarity × volume (L)
  • Stay near the system pKa for practical buffer capacity

Formulas you will actually use

Recipe from target pH, total molarity C, and volume V:

pH = pKa + log₁₀([A⁻]/[HA])
r = [A⁻]/[HA] = 10^(pH − pKa)

[HA] = C / (1 + r)
[A⁻] = C − [HA] = C · r / (1 + r)

n_HA = [HA] · V
n_A  = [A⁻] · V
m = n · M (molar mass of the acid or base reagent)
  • Reagent formulas are the usual lab salts/acids (e.g. NaH₂PO₄ / Na₂HPO₄ for phosphate).
  • Ionic strength, temperature, and activity corrections are omitted.
  • Tris and citrate recipes are approximate single-pKa models.

Step-by-step example: 0.10 M phosphate buffer, pH 7.40, 1.00 L

Prepare 1.00 L of 0.10 M phosphate buffer at pH 7.40 using NaH₂PO₄ / Na₂HPO₄ (pKa₂ ≈ 7.20).

  1. r = 10^(7.40 − 7.20) = 10^0.20 ≈ 1.585.
  2. [HA] = 0.10 / (1 + 1.585) ≈ 0.0387 M; [A⁻] ≈ 0.0613 M.
  3. moles: n_HA ≈ 0.0387 mol; n_A ≈ 0.0613 mol.
  4. Masses ≈ 4.64 g NaH₂PO₄ and 8.70 g Na₂HPO₄ (anhydrous formulas).

Select Phosphate, pH 7.40, 0.10 M, 1000 mL in the Phosphate Buffer Calculator and compare the gram amounts.

Step-by-step example: McIlvaine citrate–phosphate, pH 7.0, 20 mL

Prepare 20 mL of McIlvaine citrate–phosphate buffer at pH 7.0 from 0.2 M Na₂HPO₄ and 0.1 M citric acid.

  1. McIlvaine is a mixing table, not a new pKa.
  2. At pH 7.0 the 20 mL table is 16.47 mL Na₂HPO₄ + 3.53 mL citric acid.
  3. Scale both volumes if you need a different final volume (100 mL → ×5).

Choose Citrate–phosphate (McIlvaine), pH 7.00, 20 mL and read the two stock volumes.

Frequently asked questions

Is this a phosphate buffer calculator?

Yes. Choose the Phosphate system for the H₂PO₄⁻ / HPO₄²⁻ pair (sodium salts), or K-phosphate for KH₂PO₄ / K₂HPO₄. Set target pH, total molarity, and volume, and read off the grams of each salt. HEPES, MES, borate, acetate, citrate, Tris, ammonia, bicarbonate, carbonate, histidine, and imidazole systems are also available.

Why warn when pH is far from pKa?

Buffer capacity is highest near pKa. Far away, almost all of the buffer is in one form, so small additions of strong acid or base shift pH sharply. Pick a system whose pKa is close to your target.

Can I use this for biological Tris or PBS recipes?

It gives a useful first estimate from Henderson–Hasselbalch. PBS is phosphate-buffered saline: choose Phosphate for the H₂PO₄⁻/HPO₄²⁻ salts, then add NaCl (and KCl if required) from your protocol—this tool does not add the saline. For published SOPs (hydrates, ionic strength, temperature), follow the lab recipe and verify pH with a calibrated meter.

Does this include HEPES, MES, or borate buffer?

Yes. HEPES (pKa ≈ 7.48) and MES (pKa ≈ 6.15) are Good’s buffers; borate uses boric acid / borate (pKa ≈ 9.24). Select the chip, enter target pH, total C, and volume, and read acid/base grams. These are single-pKa teaching recipes—confirm temperature and hydrates against your SOP.

Is this a citrate phosphate buffer calculator?

Yes. Choose Citrate–phosphate (McIlvaine): it interpolates the classic 0.2 M Na₂HPO₄ + 0.1 M citric acid table for pH 2.2–8.0 and scales the mix to your final volume. That is two stocks mixed, not a new pKa. Verify with a meter. For a single-pKa recipe, calculate citrate or phosphate separately instead.

Does this include histidine or imidazole buffer?

Yes. Histidine uses the imidazole side-chain pKa ≈ 6.04 (His·HCl / His). Imidazole uses pKa ≈ 7.00 (imidazole·HCl / free base). Both are single-pKa teaching recipes—confirm temperature and hydrates against your SOP.

How does this relate to the pH Calculator?

The pH Calculator estimates pH from known [HA] and [A⁻]. This tool inverts the problem: given target pH and total C, it finds the recipe amounts. Use both to cross-check homework and lab prep.

Keep learning with chemistry calculators, the math tools, and study guides on Online Science Tools.

Practice problems & worked examples

Practice alongside the phosphate buffer calculator above. Each problem includes a full worked solution so you can check your reasoning step by step.

Practice problem 1

Equal concentrations

A phosphate buffer has pKa = 7.20 and [H₂PO₄⁻] = [HPO₄²⁻]. What is pH?

Show solution

Worked solution

  1. pH = pKa + log([A⁻]/[HA]) = 7.20 + log(1) = 7.20.

Answer: pH = 7.20

Practice problem 2

Ratio from target pH

For acetate buffer (pKa = 4.76) at pH 5.00, what is [A⁻]/[HA]?

Show solution

Worked solution

  1. r = 10^(pH − pKa) = 10^(0.24) ≈ 1.74.

Answer: [A⁻]/[HA] ≈ 1.74

Practice problem 3

Split total concentration

C = 0.10 M and r = [A⁻]/[HA] = 1.585. Find [HA] and [A⁻].

Show solution

Worked solution

  1. [HA] = C/(1+r) ≈ 0.0387 M.
  2. [A⁻] = C − [HA] ≈ 0.0613 M.

Answer: [HA] ≈ 0.0387 M; [A⁻] ≈ 0.0613 M

Practice problem 4

Mass from moles

You need 0.0613 mol of Na₂HPO₄ (M ≈ 142 g/mol). What mass?

Show solution

Worked solution

  1. m = n × M ≈ 0.0613 × 142 ≈ 8.70 g.

Answer: ≈ 8.70 g

Practice problem 5

Choosing a buffer system

Target pH is 7.4. Is acetate (pKa ≈ 4.8) a good primary choice?

Show solution

Worked solution

  1. Useful range is roughly pKa ± 1.
  2. 7.4 is far from 4.8; prefer phosphate (pKa₂ ≈ 7.2) or Tris (~8.1).

Answer: No — choose a system with pKa near 7.4 (e.g. phosphate)

Practice problem 6

McIlvaine mix at a table pH

You need 20 mL of McIlvaine buffer at pH 7.0. How much 0.2 M Na₂HPO₄ and 0.1 M citric acid?

Show solution

Worked solution

  1. The published 20 mL table at pH 7.0 is 16.47 mL Na₂HPO₄ + 3.53 mL citric acid.
  2. Scale linearly if the final volume is not 20 mL.

Answer: 16.47 mL 0.2 M Na₂HPO₄ + 3.53 mL 0.1 M citric acid

Related tools