1618.dev

small tools, one committed a day

pH / acid-base calculator

Convert between pH, pOH, [H+] and [OH-], or compute the pH of a strong or weak acid or base from its concentration. Uses Kw = 1.0 × 10-14 at 25 °C.

Formulas

pH = -log10([H+])
pOH = -log10([OH-])
[H+] × [OH-] = Kw = 10-14  →  pH + pOH = 14

Strong acid / base. A strong acid fully dissociates, so [H+] equals its concentration — except in very dilute solutions, where water's own contribution matters. The solver uses [H+]2 - c[H+] - Kw = 0 so the answer stays correct down to ~10-8 M.

Weak acid. For HA ⇌ H+ + A-, the equilibrium x2 + Kax - KaC = 0 is solved exactly — no “x « C” approximation. Weak base mode uses the same shape with Kb and [OH-] in place of Ka and [H+].

Common reference values at 25 °C: acetic acid Ka = 1.8 × 10-5, ammonia Kb = 1.8 × 10-5, formic acid Ka = 1.8 × 10-4, hydrofluoric acid Ka = 6.6 × 10-4.