Henderson-Hasselbalch calculator explained
The Henderson-Hasselbalch equation links pH to p and the ratio of conjugate base to acid: . This calculator takes your acid concentration {acid}, conjugate base concentration {conjugate_base}, and acid dissociation constant {k_a} to output {ph}, {logk}, and the log ratio {logba}.
Use it to design buffer recipes, anticipate how dilution or dilution of one component will shift pH, or teach why buffers work best near their values.
How the conversion works
Starting from the acid dissociation equilibrium , taking log and rearranging gives:
The calculator computes then adds the base-to-acid log term to get . Solving for ratios is straightforward:
Units and conversions
| Quantity | Units | Notes |
|---|---|---|
| , | mol/L or any consistent concentration | Ratios, not absolute units, drive the math. |
| unitless (activity-based) | Enter the acid dissociation constant; the tool converts to . | |
| dimensionless | Output of the calculator. | |
| dimensionless | Negative log of . |
Worked examples
- Acetate buffer at pH 5.0
Acetic acid has . Solve for the required ratio:
Therefore 1.74 moles of acetate for every mole of acetic acid yields pH 5.0.
- Physiological phosphate buffer
Second dissociation of phosphoric acid: . Target pH 7.40.
Mixing 1.55 parts dibasic sodium phosphate with 1 part monobasic salt delivers a pH 7.4 buffer at room temperature.
Tips and pitfalls
- The equation assumes and greatly exceed ; buffers more than 1 pH unit away from violate that assumption.
- Ionic strength and temperature shift , so adjust for the actual operating conditions.
- For polyprotic systems, choose the that corresponds to the relevant equilibrium (e.g., for phosphate near neutral pH).
- Combine this calculator with the buffer capacity tool to ensure the final formulation resists acid or base additions.