The formula
pH = −log₁₀[H⁺]; pOH = −log₁₀[OH⁻]; pH + pOH = 14 at 25 °C
Strong acid: [H⁺] ≈ acid concentration × protons released
Weak acid: [H⁺] = (−Ka + √(Ka² + 4·Ka·C)) ÷ 2, where Ka = 10^(−pKa)
Buffer (Henderson–Hasselbalch): pH = pKa + log₁₀([A⁻] ÷ [HA])
Worked example
- An acetate buffer with 0.1 M acetic acid (pKa 4.76) and 0.15 M sodium acetate:
- pH = 4.76 + log₁₀(0.15 ÷ 0.1) = 4.76 + 0.176 = 4.94.
- pOH = 14 − 4.94 = 9.06; [H⁺] = 10^−4.94 = 1.16 × 10⁻⁵ mol/L.
- For 0.01 M acetic acid alone: [H⁺] = 4.1 × 10⁻⁴ M, so pH = 3.39.
What pH measures
pH measures how acidic or basic a water-based solution is, on a scale that usually runs from 0 to 14. It's defined as the negative base-10 logarithm of the hydrogen ion concentration in moles per litre. Pure water at 25 °C has [H⁺] = 10⁻⁷ M, so its pH is 7, which is neutral. Lower values are acidic and higher values basic. Because the scale is logarithmic, each whole unit is a tenfold change: a solution at pH 3 has ten times more hydrogen ions than one at pH 4 and a thousand times more than one at pH 6.
pH and pOH
Water always contains a small amount of hydrogen and hydroxide ions, and their concentrations multiply to the ion product of water, Kw = 1.0 × 10⁻¹⁴ at 25 °C. Taking logs gives pH + pOH = 14. So if you know either concentration, you can find the other: a solution with [OH⁻] = 0.001 M has pOH 3 and pH 11. Kw changes with temperature, so at 37 °C neutral water has a pH of about 6.8, even though it's still neutral. The calculator assumes 25 °C.
Strong acids and bases
Strong acids such as hydrochloric, nitric and sulfuric acid, and strong bases such as sodium and potassium hydroxide, dissociate almost completely in water. The hydrogen or hydroxide ion concentration is then simply the concentration of the acid or base times the number of ions each formula unit releases. A 0.01 M HCl solution has pH 2; 0.01 M NaOH has pH 12. For very dilute solutions, below about 10⁻⁶ M, water's own ions matter, and the calculator includes them so 10⁻⁸ M HCl correctly gives a pH just below 7, not 8.
Weak acids and the role of pKa
Weak acids such as acetic acid (vinegar), citric acid and carbonic acid only partly dissociate. How much they dissociate depends on the acid dissociation constant, Ka, usually given as pKa = −log Ka. The lower the pKa, the stronger the acid. The calculator solves the equilibrium exactly with the quadratic formula rather than using the simplified √(Ka·C) shortcut, which fails for fairly strong or very dilute weak acids. It also shows the percentage of acid molecules that have dissociated.
Buffers and the Henderson–Hasselbalch equation
A buffer is a mixture of a weak acid and its conjugate base, or a weak base and its conjugate acid, that resists changes in pH when small amounts of acid or base are added. Its pH follows the Henderson–Hasselbalch equation, pH = pKa + log([A⁻]/[HA]). When the two concentrations are equal, the pH equals the pKa. Buffers work best within about one pH unit of their pKa, which is why biologists choose phosphate for pH 7, Tris for pH 8 and acetate for pH 5. Blood is buffered at pH 7.35–7.45 mainly by the bicarbonate system.
Practical tips
Real solutions differ from ideal calculations because ions interact with each other, especially at higher concentrations, so measured pH can differ by a few tenths. For accurate work, calibrate your pH meter with standard buffers and adjust buffers with acid or base while measuring. To make buffer solutions of a given strength, use our molarity calculator for the mass of each component and the dilution calculator for working concentrations. In the garden, soil pH affects which plants thrive; see our fertilizer calculator.