Free tool

pH Calculator

Convert between [H3O+], [OH-], pH and pOH, or find the pH of a strong acid, a strong base, a weak acid or a weak base. Weak acids are solved with the exact quadratic, and the tool tells you whether the 5% shortcut would have held.

Built for General Chemistry II

The solution

Scientific notation works: type 1.8e-5 for 1.8 x 10^-5.

All results assume 25 °C, where Kw = 1.0 x 10^-14 and pH + pOH = 14.00.

Result

Enter a value to see the pH.

pH problems get fast once the setup is automatic. Encodr keeps Ka, Kw and the ICE setup on a spaced-repetition schedule so they stick through the final.

Get started free

The formulas

pH = -log[H3O+], pOH = -log[OH-], and at 25 °C [H3O+][OH-] = Kw = 1.0 x 10^-14, so pH + pOH = 14.00.

Strong acids and bases ionize completely, so [H3O+] is the acid concentration and [OH-] is the base concentration times the number of OH- per formula unit. 0.010 M HCl has pH 2.00.

Weak acids ionize only partly. With x = [H3O+], the ICE table gives Ka = x^2 / (C - x). The exact answer is x = (-Ka + sqrt(Ka^2 + 4 Ka C)) / 2. The shortcut drops the x in C - x, giving x = sqrt(Ka C), and is accepted when x is under 5% of C.

Worked example: 0.10 M acetic acid, Ka = 1.8 x 10^-5. The shortcut gives x = sqrt(1.8 x 10^-6) = 1.34 x 10^-3 M, pH 2.87, which is 1.3% of 0.10 M, so the shortcut holds. The exact quadratic gives x = 1.33 x 10^-3 M and pH 2.88. For 0.10 M H3PO4 (Ka1 = 7.5 x 10^-3) the shortcut would be 27% of C, so only the quadratic answer, pH 1.62, is acceptable. The full walkthrough is in how to calculate pH for strong and weak acids, and the whole course is in the free General Chemistry II deck.

Limits: this tool treats every acid as monoprotic. For weak acids and bases it ignores water's own H3O+ and OH-, as the course does. For very dilute strong acids and bases (below about 10^-6 M) it includes them, which is why 1.0 x 10^-8 M HCl comes out slightly acidic (pH 6.98), not pH 8.

From the blog

How to calculate pH for strong and weak acids

Strong acid, strong base and weak acid pH step by step, including the 5% approximation, when it fails, and the exact quadratic answer.

Read →

The Henderson-Hasselbalch equation and buffers

How buffers resist pH change, the Henderson-Hasselbalch equation with worked examples, adding strong acid or base, and the 1:10 to 10:1 buffer range.

Read →

ICE tables for equilibrium, step by step

How to set up and solve an ICE table: finding K from data, finding equilibrium concentrations, the 5% approximation and when you need the quadratic.

Read →

What's in General Chemistry II: the 12 units, in order

A unit-by-unit map of General Chemistry II, from solutions and kinetics to equilibrium, acids and bases, thermodynamics, electrochemistry and nuclear.

Read →

First-year biology, chemistry and physics, compared

What General Biology I and II, General Chemistry I and II, and College Physics I and II each cover, how they fit together, and free flashcards for each.

Read →

Related tools

C1V1 = C2V2 Dilution Calculator

Solve C1V1 = C2V2 for any one value in M or mM and L or mL, and see how much solvent to add to reach the final volume.

Open tool →

Half-Life Calculator

First-order decay: find the amount remaining, the time elapsed or the half-life, plus the rate constant k, with the working shown.

Open tool →

Henderson-Hasselbalch Calculator

Find a buffer's pH from pKa (or Ka) and the base-to-acid ratio, or the ratio you need for a target pH, with a buffer-range check.

Open tool →

Ideal Gas Law Calculator

Solve PV = nRT for pressure, volume, moles or temperature in atm, kPa, mmHg, L, mL, K or degrees C, with the steps shown.

Open tool →

Molar Mass Calculator

Molar mass of any formula, including parentheses and hydrates, with each element's count, mass contribution and mass percent.

Open tool →

All free tools