pH is the measure of how acidic or basic a solution is. Understanding how to calculate it from first principles is fundamental to chemistry, biology, medicine, and environmental science.
The pH Formula
pH is defined as the negative base-10 logarithm of the hydrogen ion concentration:
pH = โlogโโ[Hโบ]
Where [Hโบ] is the concentration of hydrogen ions in moles per litre (mol/L or M).
Example 1: [Hโบ] = 0.001 M (10โปยณ M):
- pH = โlog(0.001) = โ(โ3) = 3 (acidic)
Example 2: [Hโบ] = 1 ร 10โปโท M (pure water):
- pH = โlog(10โปโท) = 7 (neutral)
Example 3: [Hโบ] = 1 ร 10โปยนยน M:
- pH = 11 (basic/alkaline)
The pH Scale
| pH | Classification | Example |
|---|---|---|
| 0โ2 | Strongly acidic | Battery acid, stomach acid (1โ2) |
| 3โ4 | Acidic | Vinegar (2.4), orange juice (3.5) |
| 5โ6 | Mildly acidic | Black coffee (5), rainwater (5.6) |
| 7 | Neutral | Pure water |
| 8โ9 | Mildly basic | Seawater (8), baking soda (8.3) |
| 10โ12 | Basic | Milk of magnesia (10.5) |
| 13โ14 | Strongly basic | Bleach (12.5), drain cleaner (14) |
Calculating [Hโบ] from pH
The reverse calculation โ finding ion concentration from pH:
[Hโบ] = 10^(โpH)
Example: pH = 4.5:
- [Hโบ] = 10^(โ4.5) = 3.16 ร 10โปโต mol/L
The Relationship Between pH and pOH
In aqueous solutions at 25ยฐC:
pH + pOH = 14
pOH = โlogโโ[OHโป]
If you know the hydroxide ion concentration instead of hydrogen ions:
Example: [OHโป] = 1 ร 10โปยณ M:
- pOH = โlog(10โปยณ) = 3
- pH = 14 โ 3 = 11 (basic)
Calculating pH of Strong Acids
Strong acids (HCl, HNOโ, HโSOโ) dissociate completely in water:
[Hโบ] = Concentration of acid (for monoprotic acids)
pH = โlog[acid concentration]
Example: 0.05 M HCl:
- [Hโบ] = 0.05 M
- pH = โlog(0.05) = 1.30
For HโSOโ (diprotic): [Hโบ] = 2 ร [HโSOโ]
Calculating pH of Weak Acids (Using Ka)
Weak acids partially dissociate. Use the acid dissociation constant Ka:
[Hโบ] = โ(Ka ร C)
pH = โlog(โ(Ka ร C)) = ยฝ ร (pKa โ log C)
Where C = initial acid concentration, Ka = dissociation constant.
Example: 0.1 M acetic acid (Ka = 1.8 ร 10โปโต):
- [Hโบ] = โ(1.8 ร 10โปโต ร 0.1) = โ(1.8 ร 10โปโถ) = 1.34 ร 10โปยณ
- pH = โlog(1.34 ร 10โปยณ) = 2.87
(Compared to strong acid: 0.1 M HCl would have pH = 1.0 โ much more acidic)
Calculating pH of Strong Bases
Strong bases (NaOH, KOH) dissociate completely:
[OHโป] = concentration of base
pOH = โlog[OHโป]
pH = 14 โ pOH
Example: 0.02 M NaOH:
- pOH = โlog(0.02) = 1.70
- pH = 14 โ 1.70 = 12.30
Buffer Solutions
A buffer resists pH change. The Henderson-Hasselbalch equation calculates buffer pH:
pH = pKa + log([Aโป]/[HA])
Where [Aโป] = conjugate base concentration, [HA] = weak acid concentration.
Example: Acetic acid/acetate buffer, pKa = 4.74, equal concentrations:
- pH = 4.74 + log(1) = 4.74 + 0 = 4.74
Buffers work best within ยฑ1 pH unit of the pKa.
Practical Applications
Blood pH: Maintained at 7.35โ7.45 by bicarbonate buffering. Below 7.35 = acidosis; above 7.45 = alkalosis.
Swimming pools: Optimal pH 7.2โ7.8. Below 7.0 irritates eyes and corrodes equipment; above 7.8 reduces chlorine effectiveness.
Soil pH: Affects nutrient availability. Most plants thrive at 6.0โ7.0; blueberries prefer 4.5โ5.5.
Use our logarithm calculator to quickly compute โlog values for pH and pOH calculations.