Buffer pH Calculator — Henderson–Hasselbalch Equation

Use this guided Henderson–Hasselbalch calculator to find a buffer solution pH, dissociation constant, component ratio, missing concentration, or buffer recipe. It supports acid and base buffers and runs locally in your browser.

Calculator inputs

Buffer type
Calculation goal
Buffer system (optional preset)
A preset fills editable reference values; it does not choose a reagent form or purity.

No preset selected. Enter a measured pK or K value for your conditions.

Known values
Editable after choosing a preset.
Used to estimate pKw in base mode; preset pK remains referenced to its stated temperature.
Optional: pH after adding strong acid or base

Enter the initial total concentration and volume so component moles can be updated before applying the buffer equation.

Result

Ready to calculate

Choose a goal, enter the shown values, and select Calculate.

Advertisement

Equations and calculation guidance

An acid buffer uses weak acid HA and conjugate base A⁻:

pH=pKa+log10[A][HA]

Plain text: pH = pKa + log10([A−]/[HA])

A base buffer uses weak base B and conjugate acid BH⁺. The calculator finds pOH, then converts it with temperature-dependent pKw:

pOH=pKb+log10[BH+][B];pH=pKwpOH

Plain text: pOH = pKb + log10([BH+]/[B]); pH = pKw − pOH

  1. Choose the conjugate pair with its pK near the target; the usual effective range is approximately one pH unit either side of the buffer center.
  2. Use R to split total concentration: numerator fraction = R/(1 + R), denominator fraction = 1/(1 + R).
  3. For a recipe, convert concentration and volume to moles, then moles to stock volume or mass using the actual reagent form.

Common buffer reference

Preset values are approximate references, mostly at 25 °C. They stay editable because ionic strength, concentration, solvent, and temperature can shift them.

SystemPair usedReference valueApprox. range
AcetateCH₃COOH / CH₃COO⁻pKa 4.76 at 25 °C3.76–5.76
PhosphateH₂PO₄⁻ / HPO₄²⁻pKa₂ 7.21 at 25 °C6.21–8.21
CitrateH₂Cit⁻ / HCit²⁻pKa₂ 4.76 at 25 °C3.76–5.76
MESMES-H / MES⁻pKa 6.10 at 25 °C5.10–7.10
PIPESPIPES-H / PIPES⁻pKa 6.76 at 25 °C5.76–7.76
HEPESHEPES-H / HEPES⁻pKa 7.48 at 25 °C6.48–8.48
TrisTris-H⁺ / TrispKa 8.06 at 25 °C7.06–9.06
BorateB(OH)₃ / B(OH)₄⁻pKa 9.24 at 25 °C8.24–10.24
Ammonia/ammoniumNH₃ / NH₄⁺pKb 4.751 at 25 °CpH ≈ 8.25–10.25
BicarbonateH₂CO₃ / HCO₃⁻pKa₁ 6.35 at 25 °C5.35–7.35

Methodology, limitations, and references

This tool applies the concentration form of Henderson–Hasselbalch. In base mode, pKw is estimated for pure liquid water at ambient pressure from 0–100 °C with a compact temperature correlation; high-accuracy or non-ambient work should use the full IAPWS formulation. Strong-acid/base stress uses complete 1:1 stoichiometric conversion before reapplying the buffer equation.

  • Concentrations approximate activities, so high ionic strength and very dilute solutions can differ materially.
  • The pK ± 1 convention is a useful composition range, not a guarantee of capacity or accuracy.
  • For polyprotic systems, select the dissociation pair bracketing the target pH.
  • Presets are lookup aids, not certificates for a lot, formulation, solvent, or temperature.

References

No reviewed-by attribution is shown because this page does not document an identifiable qualified reviewer and review process.

Frequently asked questions

How do I calculate the pH of a buffer?

For an acid buffer, use pH = pKa + log10([A−]/[HA]). For a base buffer, first calculate pOH = pKb + log10([BH+]/[B]), then use pH = pKw − pOH at the selected temperature.

How do I find pKa or the required buffer ratio?

Rearrange the same equation: pKa = pH − log10([A−]/[HA]), or [A−]/[HA] = 10^(pH − pKa). The base-buffer forms use pOH, pKb, and [BH+]/[B].

Why does pH equal pKa at a 1:1 ratio?

The base-10 logarithm of 1 is zero, so equal conjugate-base and acid concentrations make the Henderson–Hasselbalch equation reduce to pH = pKa.

What is the difference between acid and base buffers?

An acid buffer contains a weak acid and its conjugate base. A base buffer contains a weak base and its conjugate acid; its equation is commonly written for pOH and converted to pH with pKw.

Does dilution change buffer pH?

Ideal dilution leaves the component ratio unchanged, so the calculated pH is unchanged, but buffer capacity falls. Real solutions can shift because activities and ionic strength change.

How does temperature affect a buffer?

Temperature can change pKa, pKb, pKw, and activity coefficients. Use dissociation data measured near the working temperature and verify the prepared solution at that temperature.

How do I handle a polyprotic buffer such as phosphate or citrate?

Choose the conjugate pair whose pKa brackets the target pH and treat that dissociation step as the buffer pair. Other equilibria may matter near overlapping pKa values.

Why can a calculated buffer recipe differ from measured pH?

Henderson–Hasselbalch uses concentrations as activity approximations. Temperature, ionic strength, reagent purity, hydrate form, carbon dioxide uptake, calibration, and volume adjustment can all change the measured pH.

Explore more tools