Free tool · Unit 8
pH Calculator: Strong and Weak Acids, Bases, Salts
Choose a strong acid, strong base, weak acid, weak base or salt, enter its concentration (and \(K_a\), \(K_b\), \(\mathrm{p}K_a\) or \(\mathrm{p}K_b\)), and the calculator finds the pH. It shows the AP-style method (an ICE table with the small-\(x\) approximation and the 5% check) next to the exact answer from the charge balance, which also counts the \(\ce{H+}\) from water for very dilute solutions.
The method, briefly
Strong acids and bases ionize completely, so \([\ce{H3O+}]\) (or \([\ce{OH-}]\)) equals the concentration times the number of \(\ce{H+}\) (or \(\ce{OH-}\)) per formula unit. Then \(\mathrm{pH} = -\log[\ce{H3O+}]\), and at 25 °C \(\mathrm{pH} + \mathrm{pOH} = 14.00\).
Weak acids only partly ionize. For \(\ce{HA + H2O <=> H3O+ + A-}\) with starting concentration \(C\):
\[ K_a = \frac{[\ce{H3O+}][\ce{A-}]}{[\ce{HA}]} = \frac{x^2}{C - x} \approx \frac{x^2}{C} \quad\Rightarrow\quad x \approx \sqrt{K_a C} \]
The approximation is fine when the percent ionization \(\frac{x}{C}\times 100\%\) is under 5%. Otherwise solve the quadratic. Weak bases work the same way with \(K_b\) and \([\ce{OH-}]\).
Salts are acidic or basic when one of their ions is the conjugate of a weak acid or base. Acetate (from sodium acetate) is a weak base with \(K_b = \frac{K_w}{K_a}\); ammonium (from ammonium chloride) is a weak acid with \(K_a = \frac{K_w}{K_b}\).
What "exact" means here
The exact answer solves the full charge balance, which includes the \(\ce{H3O+}\) and \(\ce{OH-}\) from water itself:
\[ [\ce{H3O+}] = \frac{K_a C}{K_a + [\ce{H3O+}]} + \frac{K_w}{[\ce{H3O+}]} \]
For ordinary AP problems the exact and approximate answers agree to about 0.01 pH units. They differ when the solution is very dilute (water's own ions matter) or when the acid is not very weak (the 5% check fails). AP free-response answers normally use the approximation with the 5% check, or the quadratic. Practise these steps in Unit 8: acids and bases.
Questions and answers
How do you calculate the pH of a weak acid?
Set up an ICE table for \(\ce{HA <=> H+ + A-}\). With \(x = [\ce{H+}]\), \(K_a = \frac{x^2}{C - x}\). If \(x\) is small compared with \(C\), \(x \approx \sqrt{K_a C}\) and \(\mathrm{pH} = -\log x\). For 0.10 M acetic acid (\(K_a = 1.8 \times 10^{-5}\)) this gives pH 2.87.
When can I use the small-x approximation?
When the percent ionization, \(\frac{x}{C} \times 100\%\), comes out below 5%. If it is 5% or more, solve the quadratic instead. The calculator runs this check for you.
Why is the pH of 1.0e-8 M HCl not 8?
An acid can never make water basic. At such a low concentration the \(\ce{H+}\) from water's own ionization (about \(10^{-7}\) M) matters, so the true pH is about 6.98. The exact method on this page includes water.
How do I find the pH of a salt solution?
Find the ion that reacts with water. The conjugate base of a weak acid (such as acetate) is a weak base with \(K_b = \frac{K_w}{K_a}\); the conjugate acid of a weak base (such as ammonium) is a weak acid with \(K_a = \frac{K_w}{K_b}\). Then solve it like any weak base or weak acid.
More free tools
See all tools. Stuck on a problem the tools can't explain? Our tutors work through AP Chemistry one-to-one. Book a session.