How to Calculate pH — And When the Weak-Acid Shortcut Stops Working
Published 5/15/2026 · 7 min read · Everyday calculators
pH is defined as the negative base-10 logarithm of the hydrogen ion concentration, pH = -log10[H+], and which formula you use depends on what kind of solute you have. A strong acid dissociates completely, so [H+] equals the concentration: 0.01 mol/L HCl gives pH = -log10(0.01) = 2.00. A strong base is handled through pOH: 0.1 mol/L NaOH has [OH-] = 0.1, so pOH = 1.00 and pH = 14.00 - 1.00 = 13.00 at 25 degrees Celsius. A weak acid needs its acid dissociation constant: [H+] is approximately the square root of Ka times the concentration, so 0.1 mol/L acetic acid with Ka = 1.8 × 10^-5 gives [H+] = 1.34 × 10^-3 and pH = 2.87. That square-root shortcut is only valid while less than about 5 percent of the acid has dissociated, which in practice means while the concentration is at least about 400 times Ka; below that you must solve the quadratic instead.
Four routes for four kinds of solution, each worked with real numbers. Including the part most pages leave out: the square-root formula for a weak acid is an approximation with a validity limit, and it fails quietly.
Strong and weak say nothing about concentration
Strong means fully dissociated, weak means partly dissociated. Concentrated and dilute are separate axes entirely, and confusing them is the most common conceptual error on this topic. A 0.001 mol/L solution of hydrochloric acid, a strong acid, sits at pH 3.00. A 0.1 mol/L solution of acetic acid, a weak acid, sits at pH 2.87 — more acidic, despite the acid itself being the weaker of the two, because there is a hundred times more of it.
What the strength constant actually tells you is the fraction that ionises. In that 0.1 mol/L acetic acid solution only 1.3 percent of the molecules have given up their proton at any instant; the other 98.7 percent are sitting there intact. That is why you cannot read [H+] straight off the label for a weak acid, and why the acid dissociation constant has to enter the calculation at all.
The weak-acid shortcut, and the point where it breaks
The exact statement is that x squared divided by (C minus x) equals Ka, where x is [H+] and C is the starting concentration. The shortcut simply assumes x is small enough that C minus x is still C, which turns the equation into x equals the square root of Ka times C. That assumption is excellent when little dissociates and worthless when a lot does — and how much dissociates depends on the concentration, not only on the acid.
Watch acetic acid get diluted and the failure appears. At 0.1 mol/L, 1.3 percent dissociates and the shortcut gives pH 2.87 against an exact 2.88 — indistinguishable. At 0.01 mol/L, 4.2 percent dissociates and the two agree to within 0.01. At 0.001 mol/L, 12.5 percent dissociates and the shortcut says 3.87 while the exact answer is 3.90. The conventional test is the 5 percent rule: the approximation is safe while the ionised fraction stays under 5 percent, which happens whenever the concentration is at least roughly 400 times Ka. For acetic acid that boundary falls at about 0.007 mol/L. Below it, solve the quadratic; below about 10^-6 mol/L, water's own ionisation starts to matter too and no acid, however dilute, can push the pH past 7.
The 14 in pH plus pOH is a temperature, not a law
Water ionises to a tiny extent, and the product of the two ion concentrations is the ionic product Kw. At 25 degrees Celsius Kw is 1.0 × 10^-14, so its negative logarithm is 14.00 and pH plus pOH sums to 14.00. That is a measured value at one temperature, not an identity, and every textbook that prints the 14 without the temperature has quietly dropped a condition.
Raise the temperature and Kw rises with it, because the ionisation absorbs heat. At body temperature, 37 degrees Celsius, Kw is about 2.4 × 10^-14, so the sum is 13.62 and neutral water sits at pH 6.81 rather than 7.00. At 100 degrees Celsius the sum falls to roughly 12.3 and neutral is near 6.1. The water has not become acidic — neutral simply means equal amounts of the two ions, and that point moves. This is why a blood pH quoted as 7.4 is more alkaline relative to neutral than the number alone suggests.
| Solution | Type | Concentration | Route to the ion | pH at 25 °C |
|---|---|---|---|---|
| HCl | Strong acid | 1.0 mol/L | [H+] = 1.0 | 0.00 |
| HCl | Strong acid | 0.01 mol/L | [H+] = 0.01 | 2.00 |
| Acetic acid CH3COOH | Weak acid, Ka = 1.8 × 10^-5 | 0.1 mol/L | [H+] = sqrt(Ka × C) = 1.34 × 10^-3 | 2.87 |
| Pure water | Neutral | — | [H+] = 1.0 × 10^-7 | 7.00 |
| Ammonia NH3 | Weak base, Kb = 1.8 × 10^-5 | 0.01 mol/L | [OH-] = 4.24 × 10^-4, pOH = 3.37 | 10.63 |
| NaOH | Strong base | 0.1 mol/L | [OH-] = 0.1, pOH = 1.00 | 13.00 |
Worked with our own calculator
pH calculator
Given
- [H⁺] concentration (mol/L)
- 0
Result
- pH
- 4
- pOH
- 10
These figures are produced by the calculator below, not typed in by hand — they are recomputed whenever the tool changes.
Run it on your own figures →Frequently asked questions
- Can pH be negative or greater than 14?
- Yes. The 0 to 14 range is a convenience covering ordinary dilute solutions, not a boundary. A 12 mol/L hydrochloric acid solution has a hydrogen ion concentration well above 1, and the logarithm of a number greater than 1 is positive, so its pH is negative. At those concentrations the measured value depends on ionic activity rather than concentration and drifts away from the simple formula, but the sign is real.
- Should I use concentration or activity?
- IUPAC defines pH in terms of the activity of the hydrogen ion, not its concentration, because ions in solution interact with one another and behave as though they were slightly fewer than they are. In dilute solutions, meaning roughly below 0.1 mol/L, the two agree closely enough that every school and most laboratory calculations use concentration. The gap widens with concentration and with the presence of other salts, which is why a pH meter is calibrated against buffers rather than trusted as an absolute instrument.
- How do I get the pH of a buffer?
- Not with the square-root formula, which assumes the conjugate base starts at zero. A buffer contains both the weak acid and its salt from the start, so the right tool is the Henderson-Hasselbalch relation: pH equals pKa plus the base-10 logarithm of the ratio of conjugate base to acid. For acetic acid, pKa is 4.74, so an equimolar acetate buffer sits at pH 4.74 and the ratio moves it from there — one logarithm unit per tenfold change in the ratio.
Articles you may find interesting
All guides →Related tools
Sources
Spotted a mistake in this article?