Henderson–Hasselbalch Calculator
Find the pH of a buffer from its pKa and the concentrations of the conjugate base and the weak acid.
Buffer pH from pKa and the pair
The page evaluates pH = pKa + log10 of the base concentration divided by the acid concentration. Equal concentrations print the pKa itself, which is the point of the equation: a buffer sits at its pKa when the pair is balanced. The second line shows the substitution so the ratio can be checked.
Both concentrations must be above zero, since the ratio is inside a logarithm. The pKa may be any number. The page uses concentrations rather than activities, so a concentrated buffer will differ from a measured pH, and it says nothing about how much acid or base the buffer can absorb before it fails.
The logarithm is taken once, locally. Nothing is uploaded and the same three numbers give the same pH after a reload.
The page evaluates pH = pKa + log10([A−]/[HA]) from the acid's pKa and the concentrations of the conjugate base and the weak acid, both in mol/L. Equal concentrations print the pKa itself, which is the point of the equation: a buffer sits at its pKa when the pair is balanced.
Concentrations rather than activities are used, so a concentrated buffer's measured pH will differ from this figure. The page also says nothing about capacity: it does not tell you how much acid or base the buffer can absorb before it fails.
How to use it
Enter the pKa, the conjugate base concentration and the weak acid concentration in mol/L and press Run. The second line shows the ratio and its logarithm so the substitution can be checked against the pKa.
- Enter the acid's pKa (not its Ka).
- Enter both concentrations in the same unit, mol/L.
- Read the pH and the ratio line beneath it.
The arithmetic, and where it stops
The calculation is one division, one base-ten logarithm and one addition. A 0.1 to 0.1 ratio has a logarithm of zero, so the pH equals the pKa; a ten-to-one base-to-acid ratio adds exactly 1, which is why a buffer's useful range is usually quoted as pKa ± 1.
Both concentrations must be above zero, because the ratio sits inside a logarithm and a logarithm of zero is not a number; each is refused with the field named. The pKa may be any number, including a negative one for a strong acid.
What to Expect
Best for
- Setting a buffer to a target pH from a tabulated pKa.
What this tool keeps
- The logarithm is taken once in this tab; the buffer recipe is not uploaded or stored. The same figures give the same result after a reload.
Sample input
4.76, 0.1, 0.1
Sample output
pH = 4.76 log10([A-]/[HA]) = 0
Frequently asked questions
How do I use the Henderson–Hasselbalch Calculator?
Enter the pKa, the conjugate base concentration and the weak acid concentration in mol/L and press Run. The second line shows the ratio and its logarithm so the substitution can be checked against the pKa.
Does anything leave my browser?
No. The logarithm is taken once in this tab; the buffer recipe is not uploaded or stored. Reloading the page discards every value you entered.
Which inputs does it refuse?
Both concentrations must be above zero, because the ratio sits inside a logarithm and a logarithm of zero is not a number; each is refused with the field named. The pKa may be any number, including a negative one for a strong acid.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.