The Henderson-Hasselbalch equation is the workhorse for buffer preparation. Given a weak acid’s pKa and the concentrations of its acid and conjugate-base forms, this calculator returns the buffer pH and tells you whether you are inside the effective buffering window.
How it works
Buffer pH depends on the pKa and the logarithm of the base-to-acid ratio:
pH = pKa + log10( [A-] / [HA] )
where [A-] is the conjugate base concentration and [HA] is the weak acid
concentration. When the two are equal the log term is zero and pH equals pKa.
Rearranged, the ratio you must mix is [A-]/[HA] = 10^(pH − pKa).
Tips and example
For an acetate buffer (pKa 4.76) mixed at 0.1 M acid and 0.1 M acetate, the pH is 4.76 — equal amounts give pH = pKa. To reach pH 5.76 you would need a ten-fold excess of base over acid. Keep both species within roughly a factor of ten of each other so the buffer stays in its strong-capacity range, and always fine-tune the finished buffer on a calibrated pH meter, since the equation ignores ionic strength and temperature.