ScienceChemistry

pH
calculator.

Turn a concentration, a Ka or Kb, or one ion into pH, pOH and both ion levels.

How it's worked out

pH is the negative logarithm of the hydrogen ion concentration in mol/L, and pOH is the same for hydroxide. Water splits into both ions a little, and at 25 °C their product, Kw, is 1.0 × 10⁻¹⁴. So the two always add to 14 at that temperature.

pH\displaystyle \text{pH}=−log10⁡[H+]\displaystyle {}= -\log_{10}[\text{H}^+]
[H+][OH−]\displaystyle [\text{H}^+][\text{OH}^-]=Kw\displaystyle {}= K_w

A strong acid such as HCl gives up all its hydrogen ions, so [H⁺] is its concentration times the ions per formula unit. A weak acid gives up only some, and its Ka, the acid dissociation constant, says how far. The textbook way solves for x, the amount that splits, and ignores water.

x2C−x\displaystyle \frac{x^2}{C - x}=Ka\displaystyle {}= K_a

This tool goes one step further. It solves the full charge balance, which counts the ions water adds as well. At normal strengths the two answers agree to many places. Near 10⁻⁷ M they part ways, and only the full balance keeps an acid below 7 and a base above it.

Worked examples

Grace checks the pH of 0.1 M acetic acid

Acetic acid has a Ka of 1.8 × 10⁻⁵, the value OpenStax uses. At 0.1 M, [H⁺] comes out at 0.001333 M, so the pH is 2.875.

pH\displaystyle \text{pH}=−log10⁡(0.001333)\displaystyle {}= -\log_{10}(0.001333)=2.875\displaystyle {}= 2.875

Only 1.33% of the molecules split. The shortcut that ignores water gives 0.001333 M, the same to four figures. Dilute the acid to 0.001 M and the share that splits rises to 12.5%, while the pH climbs only to 3.90.

Open this example in the tool

Why 10⁻⁸ M hydrochloric acid is not pH 8

Taking −log of 10⁻⁸ gives 8, which would make an acid basic. Water already supplies about 10⁻⁷ M of H⁺, ten times what the acid adds. Counting both, [H⁺] is 1.05 × 10⁻⁷ M and the pH is 6.978.

The same holds for a weak acid. 10⁻⁷ M acetic acid reads pH 6.793, not 7.00 as the shortcut that drops water's ions gives.

Open this example in the tool

Dev compares household ammonia with lime water

Ammonia is a weak base with a Kb of 1.8 × 10⁻⁵. At 0.1 M it gives [OH⁻] = 0.001333 M, a pOH of 2.875 and a pH of 11.125.

Calcium hydroxide is strong and gives two hydroxide ions per unit, so even 0.01 M reaches pH 12.301, higher than ten times as much ammonia.

Open this example in the tool

Reading your result

Below 7 is acidic and above 7 is basic at 25 °C, per OpenStax Table 14.1. Each unit is a factor of ten, so pH 4 holds 1,000 times the hydrogen ions of pure water. Normal rain, about pH 5.6 per the USGS, holds a tenth of the hydrogen ions of rain at pH 4.6.

Small numbers in M. Blood at pH 7.4 holds 4 × 10⁻⁸ M of H⁺, which is 40 nmol/L. Switching the unit to nM makes such values easier to read.

Neutral is not always 7. Kw grows as water warms. OpenStax gives about 5.6 × 10⁻¹³ at 100 °C, which puts neutral at pH 6.13. This tool works at 25 °C, the temperature pH meters and textbooks quote.

Strong solutions. Above about 0.1 M, ions crowd each other and behave as if less concentrated, so a meter reads differently from the sum. 12 M HCl calculates to pH −1.08, a real but rough figure.

Common mistakes

  • Dropping water near 10⁻⁷ M. An acid can never make water basic. If a sum gives pH above 7 for an acid, water was left out.
  • Using Ka for a base. A weak base needs Kb. To get Kb from the Ka of its partner acid, divide Kw by Ka first.
  • Forgetting the second ion. Calcium hydroxide and barium hydroxide give two hydroxide ions per unit. Set ions per unit to 2.
  • Assuming 14 at any temperature. pH + pOH = 14 is the 25 °C value. At body heat or boiling the sum is lower.
  • Treating sulfuric acid as fully two-proton. Its second proton is weak, so a setting of 2 slightly overstates [H⁺] at higher strengths.

Questions people ask

Yes. Any strong acid above 1 M gives a negative pH on paper, and 12 M HCl works out at −1.08. At those strengths the ions behave as if less concentrated and glass electrodes struggle, so the true value is uncertain.

Sources