This pH calculator finds pH, pOH, [H⁺] and [OH⁻] for strong acids and bases, weak acids and bases from Ka or Kb, or any one known value. It shows the ICE-table steps, checks the 5% rule, and reports pH with the right number of decimal places.
Loading the ph calculator…
How to use the pH calculator
- Pick what you know: a strong acid or base, a weak acid or base, or a known [H⁺], [OH⁻], pH or pOH.
- Type the concentration in mol/L. Scientific notation works as
1.0e-3,1.0 × 10^-3or1.0x10-3. - For a weak acid or base, enter Ka or Kb, or switch to pK and enter pKa or pKb. For a strong acid or base, choose how many H⁺ or OH⁻ each formula unit releases.
- Read the pH at the top and the steps below it. Type trailing zeros (0.010, not 0.01) if they’re significant; they set the decimal places in the answer.
Worked example: 0.10 M acetic acid
Acetic acid is a weak acid with Ka = 1.8 × 10⁻⁵. What is the pH of a 0.10 M solution?
| CH₃COOH | H⁺ | CH₃COO⁻ | |
|---|---|---|---|
| Initial | 0.10 | 0 | 0 |
| Change | −x | +x | +x |
| Equilibrium | 0.10 − x | x | x |
- Write the Ka expression: 1.8 × 10⁻⁵ = x² ÷ (0.10 − x).
- Assume x is small compared with 0.10: x² ≈ 1.8 × 10⁻⁶, so x ≈ 1.34 × 10⁻³ M.
- Check the 5% rule: 1.34 × 10⁻³ ÷ 0.10 = 1.3%. Under 5%, so the shortcut holds.
- pH = −log(1.34 × 10⁻³) = 2.87 with the shortcut. Solving the quadratic exactly gives x = 1.33 × 10⁻³ and pH = 2.88, which is what the calculator shows.
pH, pOH and Kw
pH is a log scale for the hydrogen ion concentration:
pH = −log[H⁺] and pOH = −log[OH⁻]
In water at 25 °C, [H⁺] × [OH⁻] = Kw = 1.0 × 10⁻¹⁴, which means pH + pOH = 14. Know any one of the four values and you can find the other three.
| pH | [H⁺] (M) | Solution |
|---|---|---|
| 1 | 1 × 10⁻¹ | Strongly acidic (stomach acid) |
| 4 | 1 × 10⁻⁴ | Acidic (tomato juice) |
| 7 | 1 × 10⁻⁷ | Neutral (pure water) |
| 10 | 1 × 10⁻¹⁰ | Basic (milk of magnesia) |
| 13 | 1 × 10⁻¹³ | Strongly basic (oven cleaner) |
Each step of 1 pH unit is a factor of 10 in [H⁺]. A pH 3 solution has 100 times more H⁺ than a pH 5 solution.
Strong vs. weak acids and bases
Strong acids (HCl, HBr, HI, HNO₃, HClO₄ and H₂SO₄’s first proton) ionize completely, so [H⁺] equals the acid concentration. Strong bases are the group 1 hydroxides and the heavier group 2 hydroxides. Ba(OH)₂ releases two OH⁻ per formula unit, so 0.025 M Ba(OH)₂ gives [OH⁻] = 0.050 M.
Weak acids and bases ionize only partly, so you need the equilibrium constant. The smaller Ka or Kb is, the weaker the acid or base and the less it ionizes. pKa = −log Ka works the same way as pH: a lower pKa means a stronger acid.
The 5% rule
The shortcut x ≈ √(K × C) assumes so little of the acid ionizes that C − x ≈ C. If x turns out to be more than 5% of C, the assumption is off by too much, and you should solve the quadratic. Dilute solutions and larger K values are where it fails. 0.010 M HF (Ka = 6.8 × 10⁻⁴) ionizes about 23%, so the shortcut gives pH 2.58 when the real answer is 2.64.
Significant figures in pH
In a pH, only the digits after the decimal point are significant. The number before the point just tells you the power of ten. So the number of decimal places in a pH equals the number of significant figures in [H⁺]:
- [H⁺] = 0.010 M (2 sig figs) → pH = 2.00
- [H⁺] = 2.50 × 10⁻⁴ M (3 sig figs) → pH = 3.602
- pH = 3.50 (2 decimal places) → [H⁺] = 3.2 × 10⁻⁴ M
Keep practicing
- pH and pOH of Strong Acids and Bases: AP® Chemistry Review
- Weak Acid and Base Equilibria: AP® Chemistry Review
- Acid-Base Reactions and Buffers: AP® Chemistry Review
- Significant Figures Calculator
- AP® Chemistry Cheat Sheets
pH calculator FAQ
How do you calculate pH?
pH = −log[H⁺]. For a strong acid like 0.010 M HCl, [H⁺] = 0.010 M, so pH = 2.00. For a base, find pOH = −log[OH⁻] first, then pH = 14 − pOH at 25 °C.
How do you find the pH of a weak acid?
Set up an ICE table and solve Ka = x² ÷ (C − x) for x = [H⁺]. If x is less than 5% of C, the shortcut x ≈ √(Ka × C) is close enough. For 0.10 M acetic acid (Ka 1.8 × 10⁻⁵), pH = 2.88.
How many decimal places should a pH have?
As many as the concentration has significant figures. [H⁺] = 1.0 × 10⁻³ M has 2 sig figs, so pH = 3.00. The digits before the decimal point only show the power of ten.
Can pH be negative?
Yes. A strong acid stronger than 1 M has [H⁺] above 1, so its pH is below 0. 2.0 M HCl has a pH of about −0.30.