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

pHClassificationExample
0โ€“2Strongly acidicBattery acid, stomach acid (1โ€“2)
3โ€“4AcidicVinegar (2.4), orange juice (3.5)
5โ€“6Mildly acidicBlack coffee (5), rainwater (5.6)
7NeutralPure water
8โ€“9Mildly basicSeawater (8), baking soda (8.3)
10โ€“12BasicMilk of magnesia (10.5)
13โ€“14Strongly basicBleach (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.