Guide
Henderson-Hasselbalch Equation Explained: pH, pKa and Ionisation
The Henderson-Hasselbalch equation connects pH, pKa and the balance between an acid and its conjugate base. With it you can work out how much of a drug is ionised at any pH, and that tells you how much is in the form that crosses membranes. This guide works through the equation with aspirin, ibuprofen, morphine and lidocaine.
The equation
pH = pKa + log([A-]/[HA])
On the left is the pH of the solution. On the right is the pKa of the acid, plus the logarithm of the ratio of conjugate base to acid. Turn it round and the ratio follows from pH and pKa:
[A-]/[HA] = 10^(pH - pKa)
If the pH is 1 unit above the pKa, the ratio is 10 to 1. If the pH equals the pKa, the ratio is 1 to 1. If the pH is 1 unit below the pKa, the ratio is 1 to 10.
Percent ionised
Percentages are easier to read than ratios, so the tool reports percent ionised. For a weak acid:
% ionised (acid) = 100 / (1 + 10^(pKa - pH))
For a weak base the sign flips:
% ionised (base) = 100 / (1 + 10^(pH - pKa))
The rest is unionised, and that is the form that crosses membranes. A high percent ionised means little can cross. A low percent ionised means most can cross.
Worked example: aspirin in the stomach and in blood
Aspirin is a weak acid with pKa 3.5. In the stomach the pH is about 1.5:
% ionised = 100 / (1 + 10^(3.5 - 1.5)) = 100 / (1 + 100) = 100/101 = 0.99%
Only 0.99% is ionised, so 99.01% is unionised and crosses membranes easily. In blood the pH is 7.4:
% ionised = 100 / (1 + 10^(3.5 - 7.4)) = 100 / (1 + 10^-3.9) = 100 / 1.000126 = 99.99%
Now 99.99% is ionised, so it is trapped in blood. The same drug behaves in opposite ways in the two places, and the only thing that changed is the pH.
The tool uses typical compartment values, not a measurement for any individual: stomach pH 1.5, duodenum pH 6.0, blood pH 7.4, urine pH 5.0 or 8.0.
Weak bases: morphine and lidocaine
For a weak base the pattern reverses: a higher pH means less ionised. Morphine is a weak base with pKa 8.0. In blood at pH 7.4:
% ionised = 100 / (1 + 10^(7.4 - 8.0)) = 100 / (1 + 0.251) = 100 / 1.251 = 79.9%
Lidocaine is a weak base with pKa 7.9. In blood at pH 7.4:
% ionised = 100 / (1 + 10^(7.4 - 7.9)) = 100 / (1 + 0.316) = 100 / 1.316 = 76.0%
Both are mostly ionised in blood, and the rest is unionised.
How to find Ka using pH
If you know the pH and the ratio of base to acid, the equation gives you the pKa, and the pKa gives you Ka. Take aspirin at pH 4.5. The tool reports 90.91% ionised, so the ratio [A-]/[HA] is 90.91 / 9.09, which is 10.0. Then:
pKa = pH - log([A-]/[HA]) = 4.5 - log(10) = 4.5 - 1 = 3.5
And Ka follows:
Ka = 10^-pKa = 10^-3.5 = 3.16 x 10^-4
Used this way, the tool works as a pH to pKa calculator: set the pH, read the ionised fraction, and the pKa follows from the ratio. The same steps work for any weak acid or base in the tool.
Ampholytes and diprotic acids
An ampholyte can act as an acid and as a base. Its isoelectric point, the pH where its net charge is zero, is the average of its two pKa values:
pI = (pKa,acid + pKa,base) / 2
The tool preset has acid pKa 3.5 and base pKa 9.0, so pI = (3.5 + 9.0) / 2 = 6.25.
A diprotic acid, H2A, has two pKa values and three forms: H2A, HA-, and A2-. The fractions are:
alpha0 = 1/D, alpha1 = 10^(pH - pKa1)/D, alpha2 = 10^(2pH - pKa1 - pKa2)/D, where D is the sum of the three terms
For the tool preset, pKa1 3.0 and pKa2 6.0, at pH 4.5 the middle form dominates: alpha0 = 2.97%, alpha1 = 94.05%, alpha2 = 2.97%. The three fractions always add to 100%.
Solubility and pH
Ionised drug dissolves more easily than unionised drug. For a weak acid the total solubility S follows the intrinsic solubility S0, the solubility of the unionised form alone:
S = S0 x (1 + 10^(pH - pKa))
Take aspirin with S0 0.10 mg/mL at pH 7.4:
S = 0.10 x (1 + 10^(7.4 - 3.5)) = 0.10 x 7944 = 794 mg/mL
That number is far above what is seen in practice, which shows the limit of this simple model. Only the unionised form has a fixed intrinsic solubility S0, and the equation breaks down at very high pH for acids.
What the equation assumes
Common mistakes
Using the acid formula for a base, or the base formula for an acid. The sign of the exponent flips, and the answer comes out backwards.
Reading percent ionised as percent absorbed. Ionisation is only one step. Transporters, surface area and gut transit matter too.
Forgetting the model limits. The solubility equation breaks down at very high pH for acids, and the numbers are guides, not measurements for any individual.
Try it yourself
Open the Henderson-Hasselbalch Ionisation Chart, pick the Aspirin preset, and set the pH to 1.5, then to 7.4. Read the percent ionised each time and check it against 0.99% and 99.99%. Then pick the Morphine preset in blood, pH 7.4, and check 79.9% ionised. Once those match, try the Ampholyte preset and find its isoelectric point.
Last reviewed 17 November 2026 by Masood Ur Rehman, PharmD.