Skip to content
The Calculatorz
Acids & bases

Buffer pH Calculator (Henderson–Hasselbalch)

Calculate the pH of a buffer from the pKa and the concentrations of acid and conjugate base, or the base-to-acid ratio needed for a target pH.

Calculations use standard textbook models and ideal behaviour. Real solutions, gases and reactions can differ; follow your laboratory's safety data sheets and procedures.

Buffer components

Buffer

How to use this calculator

Enter the acid's pKa and the amounts of the weak acid and its conjugate base, in mol/L or in moles (only their ratio matters). The calculator gives the buffer pH and, for a target pH, the base-to-acid ratio and the share of each component you need.

Formula

Henderson–Hasselbalch equation: pH = pKa + log₁₀([A⁻] ÷ [HA]). For a target pH, [A⁻] ÷ [HA] = 10^(pH − pKa); the base fraction is ratio ÷ (1 + ratio). Buffers work best within about ±1 pH unit of the pKa.

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewAslamResearcher, Chemical Engineer

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

What is a buffer?

A solution of a weak acid and its conjugate base (or a weak base and its conjugate acid) that resists changes in pH when small amounts of acid or base are added.

When is the Henderson–Hasselbalch equation accurate?

When both components are fairly concentrated (above about 0.01 M) and their ratio is between about 0.1 and 10.

What is buffer capacity?

How much acid or base a buffer can absorb before its pH changes sharply. It is greatest when [A⁻] = [HA], at pH = pKa.

Which buffer should I choose?

One whose pKa is within 1 unit of the pH you want: acetate (pKa 4.76), phosphate (7.21) and Tris (about 8.1) are common.

Can I use moles instead of concentrations?

Yes. Both components share the same volume, so the ratio of moles equals the ratio of concentrations.

Does temperature matter?

pKa changes with temperature, notably for Tris. Use a pKa measured at your working temperature.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. Flowers, P., Theopold, K., Langley, R., & Robinson, W. R. (2019). Buffers. In Chemistry 2e (Section 14.6). OpenStax. View source
  2. Flowers, P., Theopold, K., Langley, R., & Robinson, W. R. (2019). pH and pOH. In Chemistry 2e (Section 14.2). OpenStax. View source
  3. Flowers, P., Theopold, K., Langley, R., & Robinson, W. R. (2019). Chemistry 2e. OpenStax. View source
  4. Buck, R. P., Rondinini, S., Covington, A. K., et al. (2002). Measurement of pH. Definition, standards, and procedures (IUPAC Recommendations 2002). Pure and Applied Chemistry, 74(11), 2169–2200. View source