Works on this device
pH Calculator
Find the pH of a solution from its hydrogen ion concentration, or from the concentration of an acid or a base. Weak acids and bases are solved exactly, and the usual square-root shortcut is shown beside the exact answer.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use this calculator
- Choose what you know: a concentration of H⁺ or OH⁻, a strong acid or base, a weak acid or base, or a measured pH.
- Enter the concentration in mol/L (M) or choose mM, µM or nM. You can type
2.5e-4for 2.5 × 10⁻⁴. - For a weak acid or base, type its Ka, Kb or pKa from your textbook or data table. The examples menu fills in common values for trying the tool.
- Choose Calculate. The result shows pH, pOH, [H⁺] and [OH⁻], and the working.
The formulas
- pH = −log10[H⁺] and pOH = −log10[OH⁻], with concentrations in mol/L.
- Water at 25 °C: [H⁺] × [OH⁻] = Kw = 1.0 × 10⁻¹⁴, so pH + pOH = 14.00 (pKw = 14.00).
- Strong acid: it gives all its H⁺. With the H⁺ from water counted too, [H⁺] = (C + √(C² + 4Kw)) ÷ 2, where C is the acid concentration times the H⁺ per formula unit. A strong base works the same way for OH⁻.
- Weak acid: the charge balance [H⁺] = [A⁻] + [OH⁻] with [A⁻] = C × Ka ÷ (Ka + [H⁺]). This gives [H⁺]³ + Ka[H⁺]² − (Ka C + Kw)[H⁺] − Ka Kw = 0, which the tool solves exactly.
- Square-root shortcut: [H⁺] ≈ √(Ka × C), so pH ≈ ½ (pKa − log10 C). It is good when the acid ionises only a little; the tool shows how far it is off.
- Weak base: the same with Kb: [OH⁻] ≈ √(Kb × C) as the shortcut, and the full charge balance for the exact value.
- Constants: pKa = −log10 Ka, and Ka × Kb = Kw for an acid and its conjugate base, so pKa + pKb = 14.00.
Worked examples
From [H⁺]. [H⁺] = 2.5 × 10⁻⁴ mol/L gives pH = −log10(0.00025) = 3.602, and pOH = 14.00 − 3.602 = 10.398.
Strong base. 0.01 M sodium hydroxide gives [OH⁻] = 0.01 mol/L, so pOH = 2.000 and pH = 12.000.
Weak acid. 0.1 M acetic acid with pKa 4.76: the exact pH is 2.883. The shortcut gives ½ × (4.76 + 1) = 2.880, off by 0.003, and 1.3% of the acid is ionised.
Very dilute acid. 10⁻⁸ M HCl does not have pH 8. Water gives more H⁺ than the acid does, and the exact pH is 6.978.
Weak base. 0.1 M ammonia with pKb 4.75 has pH 11.122 (the shortcut gives 11.125).
Mixing. 50 mL of 0.1 M HCl and 25 mL of 0.1 M NaOH: 5 mmol of H⁺ and 2.5 mmol of OH⁻ leave 2.5 mmol of H⁺ in 75 mL, so [H⁺] = 0.0333 mol/L and pH = 1.477.
Limits you should know
- The tool works at 25 °C with pKw = 14.00. At other temperatures pKw changes (it is about 13.6 at 40 °C), and so do Ka values. Neutral water has pH 7 only at about 25 °C.
- Concentrations stand in for activities. Above about 0.1 mol/L, and in salty solutions, a pH meter can read a tenth of a unit or more away from these values.
- Ka and pKa values are typed by you. The example values are rounded values at about 25 °C for trying the tool; check them in your own data table.
- Polyprotic acids (phosphoric, citric, carbonic) are treated by one Ka at a time. Amphoteric salts such as sodium bicarbonate need two constants and are not handled.
- For buffers and the Henderson-Hasselbalch equation use the Buffer Calculator. For titration curves use the Titration Calculator.