← Back to ElementVault
Chemistry · Calculator

pH & Buffer Calculator

Strong & weak acids · Henderson-Hasselbalch · buffer ratio finder
Calculation type
Strong acid / base
pH
Need to weigh out a buffer or dilute a stock?
ElementVault's full workbench includes Make-a-Solution (target M + volume → grams), Dilute-a-Stock (M₁V₁ = M₂V₂), 11 other chemistry calculators, and the periodic table.
Open full workbench →

What this calculator does

Four related calculations, all about hydrogen-ion concentration in aqueous solution:

The equations

Strong acid:   pH = −log₁₀(C), where C is the molar concentration of H⁺ (equal to the formal concentration of the acid for fully-dissociated strong acids).

Strong base:   pOH = −log₁₀(C), then pH = 14 − pOH at 25°C.

Weak acid:   Ka = x²/(C − x), solved as a quadratic to find x = [H⁺], then pH = −log(x). The textbook approximation x ≈ √(Ka · C) only holds when x ≪ C (Ka·C ≪ 1) — this calculator always solves the full quadratic so the answer is correct even when the shortcut breaks.

Henderson-Hasselbalch:   pH = pKa + log₁₀([A⁻]/[HA]). Valid for buffers where the ratio is between roughly 0.1 and 10 (pKa ± 1).

Target ratio:   Rearranging H-H gives [A⁻]/[HA] = 10^(pH − pKa). Useful when you've picked a buffer system and need to know how much conjugate base to mix with how much weak acid to hit your target pH.

Reference: Ka and pKa for common acids

Acid / BaseKapKaUse
Acetic acid1.8 × 10⁻⁵4.74vinegar; pH 4–6 buffer
Formic acid1.77 × 10⁻⁴3.75pH 3–5
Benzoic acid6.3 × 10⁻⁵4.20preservatives
Carbonic acid (H₂CO₃)4.3 × 10⁻⁷6.37blood buffer (1st)
Bicarbonate (HCO₃⁻)4.7 × 10⁻¹¹10.33blood buffer (2nd)
Phosphoric (H₃PO₄)7.1 × 10⁻³2.15pH 2 buffer
H₂PO₄⁻6.3 × 10⁻⁸7.20physiological pH
HPO₄²⁻4.2 × 10⁻¹³12.38high-pH
Ammonium (NH₄⁺)5.6 × 10⁻¹⁰9.25pH 9 buffer
Boric acid5.8 × 10⁻¹⁰9.24pH 9 buffer
HEPES3.2 × 10⁻⁸7.48cell-culture buffer
TRIS8.3 × 10⁻⁹8.08biochem buffer
MES8.9 × 10⁻⁷6.05pH 6 biochem

A buffer works best in the pH range pKa ± 1. To buffer at pH 7.4 (physiological), pick a system with pKa near 7.4 — that's why HEPES, phosphate, and TRIS dominate cell biology.

Common errors to avoid

Forgetting the 5% rule. The x ≪ C approximation for weak acids requires Ka·C ≪ 1 and x < 5% of C. For dilute weak acids (≤0.001 M) or stronger weak acids (Ka > 10⁻³), the approximation fails. Always use the full quadratic — that's what this calculator does.

Confusing Ka with Kb. If you have ammonia (a weak base) with Kb = 1.8 × 10⁻⁵, do NOT put 1.8 × 10⁻⁵ into the Ka field. Either convert (Ka of NH₄⁺ = Kw/Kb = 5.6 × 10⁻¹⁰), or use the Kb value in the weak-base form. For conjugate pairs at 25°C, Ka × Kb = 10⁻¹⁴.

Using H-H outside its valid range. Henderson-Hasselbalch assumes that the formal concentrations of HA and A⁻ are approximately equal to their equilibrium concentrations. That breaks down when the [A⁻]/[HA] ratio is far from 1 (more than ~10:1 or less than ~1:10) or when concentrations are very low. Outside that range you need the full Ka expression.

Forgetting temperature. Kw, Ka, and Kb are all temperature-dependent. At 37°C (body temperature), Kw = 2.4 × 10⁻¹⁴, so neutral pH is 6.81, not 7.00. The values in this calculator are 25°C standard.

Frequently asked questions

What's the difference between Ka and pKa?

pKa is just −log₁₀(Ka). It restates the same equilibrium constant on a logarithmic scale so the values are easier to compare. Smaller pKa means a stronger acid; smaller Ka means a weaker acid. Acetic acid has Ka = 1.8 × 10⁻⁵ and pKa = 4.74 — both describe the same equilibrium.

When can I use the Henderson-Hasselbalch equation?

Use H-H when you have appreciable amounts of both the weak acid (HA) and its conjugate base (A⁻) — a buffer. It's accurate when the [A⁻]/[HA] ratio is between roughly 0.1 and 10, which corresponds to a useful buffering range of pKa ± 1. Outside that range, the assumption that initial concentrations equal equilibrium concentrations breaks down.

Why does the weak-acid calculation use a quadratic?

Because the simple approximation Ka ≈ x²/C only holds when x is much less than C (typically when Ka × C ≪ 1). For dilute solutions, strong-ish weak acids, or anywhere x is more than ~5% of C, you must solve the full quadratic Ka = x²/(C − x). This calculator always solves the full quadratic so the answer is correct across the whole range.

What's the difference between Ka and Kb?

Ka is the acid dissociation constant; Kb is the base dissociation constant. For a conjugate acid-base pair in water at 25°C, Ka × Kb = Kw = 1.0 × 10⁻¹⁴, so pKa + pKb = 14. Knowing either one gives you the other.

How do I pick a buffer for my target pH?

Pick a conjugate pair whose pKa is within ±1 of your target pH. For pH 7 work, HEPES (pKa 7.48), phosphate (pKa 7.20), or TRIS (pKa 8.08) all work. For pH 4–5, acetate (pKa 4.74). For pH 9, ammonia/ammonium (pKa 9.25) or borate (pKa 9.24). Then use the Find Buffer Ratio mode to get the exact [A⁻]/[HA] ratio for your target pH.

Why are biological buffers different from acetate and phosphate?

Good's buffers (HEPES, MES, TRIS, MOPS, Tricine, etc.) were specifically designed for biological work because acetate and phosphate interfere with enzymes and chelate metal ions. Good's buffers don't permeate membranes, don't bind metals strongly, and have low UV absorbance. They cost more, but cell biology and enzymology need them.

Where do these Ka/pKa values come from?

Values are from standard physical-chemistry references (CRC Handbook, Lange's Handbook) at 25°C in aqueous solution. Real Ka values are temperature-dependent and ionic-strength-dependent — for precision lab work, consult the primary literature for your specific conditions.