pH Calculator
pH = -log10[H+]. The formula is one line; the work a pH calculator does is in getting [H+], which for a weak acid, a buffer or a very dilute solution is not simply the concentration on the bottle.
pH
- pH pH = -log10[H+] = -log10(4.50 x 10^-4) = 3.35.
- 3.35
- pOH pOH = 14.00 - pH = 14.00 - 3.35.
- 10.65
- [H+] Hydrogen ion concentration, written [H3O+] in texts that track the hydronium ion. They are the same quantity.
- 4.50 x 10^-4 mol/L
- [OH-] Kw / [H+] = 1.0 x 10^-14 / 4.50 x 10^-4.
- 2.22 x 10^-11 mol/L
- Acidic, neutral or basic Neutral means [H+] equals [OH-]. That is pH 7.00 only at 25 C; Kw rises with temperature, so warm neutral water reads below 7 and cold neutral water above it, without being any more acidic.
- acidic
| pH | [H+] (mol/L) | [OH-] (mol/L) | Character |
|---|---|---|---|
| 0.00 | 1.0 | 1.0 x 10^-14 | acidic |
| 2.00 | 1.0 x 10^-2 | 1.0 x 10^-12 | acidic |
| 4.00 | 1.0 x 10^-4 | 1.0 x 10^-10 | acidic |
| 6.00 | 1.0 x 10^-6 | 1.0 x 10^-8 | acidic |
| 7.00 | 1.0 x 10^-7 | 1.0 x 10^-7 | neutral |
| 8.00 | 1.0 x 10^-8 | 1.0 x 10^-6 | basic |
| 10.00 | 1.0 x 10^-10 | 1.0 x 10^-4 | basic |
| 12.00 | 1.0 x 10^-12 | 1.0 x 10^-2 | basic |
| 14.00 | 1.0 x 10^-14 | 1.0 | basic |
- All figures assume 25 C, where Kw = 1.0 x 10^-14 and pH + pOH = 14. Kw depends on temperature, so at any other temperature both the neutral point and the pH + pOH sum move.
- pH is a logarithm, so its significant figures live in the decimal places: a concentration known to two significant figures gives a pH to two decimal places. The digits before the point only locate the power of ten.
How the pH Calculator works
The pH formula is pH = -log10[H+], where [H+] is the hydrogen ion concentration in moles per liter. A solution with [H+] = 4.5 x 10^-4 mol/L has a pH of -log10(4.5 x 10^-4) = 3.35. The reverse is [H+] = 10^-pH, so pH 3.35 means 10^-3.35 = 4.5 x 10^-4 mol/L. Texts that write [H3O+] mean the same quantity: a free proton in water is attached to a water molecule, and the two notations count the same ions.
pOH is the same idea for hydroxide: pOH = -log10[OH-]. Water itself splits slightly into H+ and OH-, and the product of the two is fixed: [H+][OH-] = Kw = 1.0 x 10^-14 at 25 C. Taking logs gives the identity everybody memorizes, pH + pOH = 14. So [OH-] = 2.0 x 10^-3 mol/L is pOH 2.70 and pH 11.30. The 14 is not a law of nature; it is -log10 of Kw at 25 C, and Kw rises with temperature. Warm pure water has a pH below 7 and is still exactly neutral, because neutral means [H+] = [OH-], not pH 7. This calculator assumes 25 C throughout.
Strong acids and bases dissociate completely, so 0.010 mol/L HCl gives [H+] = 0.010 and pH 2.00. The common mistake is with very dilute solutions. The shortcut pH = -log10 C says 10^-8 mol/L HCl has pH 8: an acid making water basic, which is impossible. Water's own 10^-7 mol/L of H+ is no longer negligible at that dilution, and the exact treatment solves [H+] = C + Kw/[H+], a quadratic with the answer [H+] = (C + sqrt(C^2 + 4Kw)) / 2. For 10^-8 mol/L that is pH 6.98: slightly acidic, as it must be. The page does this automatically and shows how far the shortcut would have been off. A base with two hydroxides per formula unit, like Ba(OH)2, supplies twice its molarity in OH-.
Weak acids only partly ionize. For an acid HA at concentration C with dissociation constant Ka, the equilibrium is Ka = x^2 / (C - x), where x = [H+]. Rearranged, x^2 + Ka x - Ka C = 0, which the quadratic formula solves exactly. The classroom shortcut drops the x from C - x, giving x = sqrt(Ka C), and it is acceptable when x comes out under 5% of C (the 5% rule). For 0.10 mol/L of an acid with pKa 4.76, x = 1.3 x 10^-3, about 1.3% of C, so the shortcut holds and pH = 2.88. At 10^-4 mol/L the same acid is over a third ionized and the shortcut is wrong; the table shows where it breaks. pKa is -log10 Ka, so either can be entered.
Buffers are a weak acid mixed with its conjugate base, and the Henderson-Hasselbalch equation gives their pH: pH = pKa + log10([A-]/[HA]). Equal amounts give pH = pKa; ten times as much base gives pKa + 1. It assumes the amounts you mixed are the amounts present at equilibrium, which is close when both are much larger than [H+] and [OH-]. It fails for dilute buffers and for pKa values far from 7, so the page also solves the full equilibrium and tells you when the two disagree. A buffer works best within one pH unit of its pKa, a ratio between 0.1 and 10.
Two limits apply to every mode. Concentration stands in for activity, which is the textbook convention and close for dilute solutions but drifts in concentrated ones, so a pH meter will not agree with a calculated pH of 0 or 14. And the answer carries as many decimal places as the concentration has significant figures: 4.5 x 10^-4 is known to two figures, so its pH is 3.35, not 3.346787. The page computes chemistry; it is not guidance on what pH anything should be.
pH Calculator FAQ
What is the formula for pH?
pH = -log10[H+], with [H+] in moles per liter. The reverse is [H+] = 10^-pH. For hydroxide, pOH = -log10[OH-], and at 25 C pH + pOH = 14 because [H+][OH-] = 1.0 x 10^-14. A solution with [H+] = 1.0 x 10^-3 mol/L has pH 3.00 and pOH 11.00.
How do you calculate pH from a weak acid's Ka?
Set up Ka = x^2 / (C - x), where x is [H+] and C is the acid's concentration, and solve the quadratic x^2 + Ka x - Ka C = 0 for the positive root. The shortcut x = sqrt(Ka C) is fine when x is under 5% of C. Then pH = -log10 x. For 0.10 mol/L at pKa 4.76, pH is 2.88.
Why isn't the pH of 10^-8 M HCl equal to 8?
Because water already contains 10^-7 mol/L of H+, ten times more than the acid adds. The shortcut pH = -log10 C ignores that and calls the solution basic, which adding acid cannot do. Solving [H+] = C + Kw/[H+] gives pH 6.98: just below neutral, as expected.
When does the Henderson-Hasselbalch equation not work?
When the buffer is dilute or its pKa is far from 7, so that [H+] or [OH-] is not small next to [A-] and [HA]; the equation's assumption that the mixed amounts are the equilibrium amounts then breaks down. It is also only a useful buffer within about one pH unit of the pKa, a ratio of 0.1 to 10.
Is pH 7 always neutral?
Only at 25 C. Neutral means [H+] equals [OH-], and Kw, their product, increases with temperature. Hot pure water has a pH below 7 and is still neutral; cold pure water is above 7. This calculator assumes 25 C, where Kw = 1.0 x 10^-14.