Study and Productivity

Calculating pH Correctly: Strong and Weak Acids and Bases

How to calculate pH for strong and weak acids and bases, when the square-root shortcut fails, why 10⁻⁸ M HCl is not basic, and how temperature matters.

Saizul Amin
Saizul Amin30 Oct 2026 · 3 min read
Calculating pH Correctly: Strong and Weak Acids and Bases

Calculating pH Correctly: Strong and Weak Acids and Bases

pH is one of the first quantitative ideas in chemistry, and also one of the easiest to get subtly wrong. Shortcuts work most of the time, but not always. This guide explains how pH is calculated properly, when the shortcuts fail, and what temperature does. You can check any case with the pH calculator.

Definitions

  • pH = −log₁₀[H⁺]
  • pOH = −log₁₀[OH⁻]
  • [H⁺][OH⁻] = Kw, with Kw = 1.0 × 10⁻¹⁴ at 25 °C, so pH + pOH = 14.00 at that temperature.

Strong acids

Strong acids such as hydrochloric acid dissociate completely, so usually [H⁺] = C. 0.01 M HCl has pH 2.00.

But water also ionises. For very dilute acids, the exact result is:

[H⁺] = C/2 + √(C²/4 + Kw).

For 10⁻⁸ M HCl, the shortcut gives pH 8, a basic solution from adding acid, which is impossible. The exact answer is pH 6.98.

Weak acids

A weak acid HA dissociates only partly: Ka = [H⁺][A⁻] / [HA]. The usual shortcut is:

[H⁺] ≈ √(Ka C).

For 0.1 M acetic acid (pKa 4.756), it gives pH 2.88, very close to the exact value. The shortcut fails when:

  • the acid is very dilute (water's ions matter),
  • the acid is relatively strong or dilute enough that more than about 5 percent dissociates.

The calculator solves the full charge balance, [H⁺] = [A⁻] + [OH⁻], numerically, so it is exact in all cases.

Weak bases

For a weak base B with Kb, the same reasoning applies to [OH⁻]. 0.1 M ammonia (pKb 4.75) has pH 11.12. Remember that pKa + pKb = pKw for a conjugate pair: ammonium has pKa 9.25.

Degree of dissociation

The fraction of a weak acid that has dissociated is α = Ka / (Ka + [H⁺]). For 0.1 M acetic acid it is only 1.3 percent. Diluting a weak acid increases α, the effect described by Ostwald's dilution law.

Temperature and neutral pH

Water ionises more at higher temperature:

TemperaturepKwNeutral pH
0 °C14.947.47
25 °C14.007.00
50 °C13.266.63
60 °C13.026.51

Pure water at 50 °C has pH 6.63 but is still neutral, because [H⁺] = [OH⁻]. Neutral means equal ion concentrations, not pH 7.

Typical pH values

Stomach acid is about 1.5 to 3.5, lemon juice about 2, vinegar about 2.5 to 3, coffee about 5, blood 7.35 to 7.45, seawater about 8.1, baking soda solution about 8.3, household ammonia about 11 to 12.

Using the calculator

  1. Choose strong or weak, acid or base.
  2. Enter the concentration in mol/L.
  3. Choose a substance or enter a pKa or pKb.
  4. Set the temperature.
  5. Read pH, pOH, ion concentrations, dissociation and the shortcut estimate.

pH indicators

Indicators change colour over about two pH units around their own pKa: methyl orange from 3.1 to 4.4, bromothymol blue from 6.0 to 7.6, phenolphthalein from 8.2 to 10. Universal indicator mixes several to show a colour scale across the whole range.

Measuring pH

Glass-electrode pH meters must be calibrated with at least two buffers that bracket the expected value, at the temperature of measurement.

Logarithmic scale

Each pH unit is a tenfold change in hydrogen ion concentration, so pH 3 is ten times more acidic than pH 4.

Limits

The calculator handles monoprotic acids and bases in dilute solution. Concentrated solutions need activity coefficients, and buffers and titrations have their own calculators. For measurements, use a calibrated pH meter.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages