Buffer pH Calculator (Henderson–Hasselbalch)

Find the pH of a buffer from its pKa and the amounts of weak acid and conjugate base, or the base-to-acid ratio you need to reach a target pH.

Concentration (mol/L) or amount (mol or mmol) of the base form, e.g. sodium acetate. Use the same unit as for the acid; only the ratio matters.
Same unit as the base, e.g. acetic acid.

Results

Buffer pH (pH = pKa + log₁₀([A⁻]/[HA]))
4.74
pKa used
4.74
Ratio [A⁻] / [HA]
1.00
Good buffer range (pKa ± 1)
pH 3.74 to 5.74: this buffer is inside the range

How it’s calculated

A buffer is a solution of a weak acid (HA) and its conjugate base (A⁻) that resists changes in pH when small amounts of acid or base are added. The Henderson–Hasselbalch equation, a rearranged form of the acid's ionization-constant expression, gives its pH directly from the ratio of the two components.

pH = pKa + log₁₀( [A⁻] / [HA] ) pKa = −log₁₀(Ka) Ratio needed for a target pH: [A⁻] / [HA] = 10^(pH − pKa) Works best for 0.1 ≤ [A⁻]/[HA] ≤ 10, i.e. pH within pKa ± 1

Example (OpenStax Chemistry 2e, Example 14.20): an acetate buffer with 0.10 M acetic acid and 0.10 M sodium acetate has pH = 4.74 + log(1.00) = 4.74 (Ka = 1.8 × 10⁻⁵, pKa = 4.74). After 1.0 mL of 0.10 M NaOH is added to 100 mL, the components become 0.098 M acid and 0.100 M base, giving pH = 4.74 + log(0.100 ÷ 0.098) = 4.75: nearly unchanged.

Because the equation uses a ratio, you can enter concentrations or moles (or mmol) as long as both use the same unit and are in the same final volume. The equation assumes the acid and base are present at reasonable concentrations (much larger than the Ka and the [H₃O⁺] they produce). For very dilute buffers, strong acids or bases, or very high ratios, use the full equilibrium calculation. A buffer works best when the two components are roughly equal and has largely lost its usefulness when one is less than about 10% of the other.

Frequently asked questions

What is the pH of a buffer made of equal amounts of acid and base?

Its pH equals the pKa, because log₁₀(1) = 0. For an acetic acid / acetate buffer that is about 4.74 to 4.76.

How do I choose a buffer for a target pH?

Pick an acid whose pKa is within about 1 unit of the pH you want, then use the "Base-to-acid ratio" mode to see how much of each component to mix. Choose the total concentration based on how much acid or base you expect to add.

Does it matter whether I enter moles or concentrations?

Not as long as both entries use the same unit and refer to the same solution volume, because the volume cancels in the ratio. Mixing different units, such as moles of acid and mol/L of base, gives wrong answers.

Does temperature change a buffer’s pH?

Slightly. The pKa values here are for 25 °C. At other temperatures, look up the pKa for that temperature and enter it using the "I know the pKa" option.

Embed this calculator

Add this free calculator to your own website. Copy the code below into your page’s HTML:

Need this calculator branded, changed or built around your own prices?See custom business solutions →

Sources

Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.

Added · Last updated · How we check our calculators

Spotted a mistake or missing option? Report a problem· Suggest a calculator