pH expresses how acidic or basic a water solution is, on a logarithmic scale built from the concentration of hydrogen ions. Each unit is a factor of ten: a solution at pH 3 contains ten times more H⁺ than one at pH 4 and a thousand times more than one at pH 6. Pure water at 25 °C sits at 7; lower is acidic, higher is basic.
This pH calculator works in every direction. Give it a hydrogen ion concentration [H⁺], a pH, an [OH⁻] or a pOH and it returns the other three. Or start from the chemistry itself: the concentration of a strong acid or strong base, of a weak acid with its Ka or a weak base with its Kb, or the composition of a buffer. Weak acids and bases are solved with the exact quadratic equation, and the usual √(K·C) shortcut is shown beside it together with the percent ionization, so you can see when the shortcut is good enough.
Because the ion product of water changes with temperature, the value of pKw can be adjusted; neutrality then moves away from 7, as it does in hot water.
How to use this calculator
- In Start from, pick what you know: a concentration, pH or pOH, an acid or base, or a buffer.
- Enter the values in mol/L. Very small numbers can be typed in scientific notation, e.g. 3.2e-9.
- For a strong acid or base, choose how many H⁺ or OH⁻ each formula unit releases (2 for Ca(OH)₂).
- For a weak acid or base, type Ka or Kb (e.g. 1.8e-5). For a buffer, enter the pKa and the amounts of conjugate base and acid.
- Leave pKw at 14 for 25 °C, or change it for another temperature. Read pH, pOH, [H⁺], [OH⁻] and the steps.
The formula
The definitions (concentrations in mol/L):
Strong acid of concentration (water’s own ions included):
Weak acid HA: with , , whose positive root is
A weak base uses the same equation with and gives . Buffer (Henderson–Hasselbalch):
Worked example
Stomach acid. Gastric juice with mol/L has pH = 2.92.
Blood. At pH 7.3, ≈ 5 × 10⁻⁸ mol/L.
Acetic acid. For 0.10 mol/L acetic acid with , the quadratic gives = 0.001333 mol/L and pH = 2.875; the shortcut gives 2.872. Only 1.33 % of the molecules are ionised.
Ammonia. 0.10 mol/L NH₃ with : = 0.001333 mol/L, pOH = 2.875, so pH = 11.125.
Acetate buffer. 0.15 mol/L acetate with 0.10 mol/L acetic acid (pKa 4.76): pH = = 4.936.
A trap. Diluting HCl to mol/L does not give pH 8: with water’s ions counted, pH = 6.978, just on the acidic side.
Hydrogen ion concentration and the pH scale
| pH | [H⁺] (mol/L) | Everyday example |
|---|---|---|
| 1 | 10⁻¹ | 0.1 mol/L hydrochloric acid |
| 2–3 | 10⁻² to 10⁻³ | Gastric juice, lemon juice |
| 4–5 | 10⁻⁴ to 10⁻⁵ | Tomato juice, black coffee |
| 7 | 10⁻⁷ | Pure water at 25 °C |
| 7.35–7.45 | about 4 × 10⁻⁸ | Human blood |
| 8–9 | 10⁻⁸ to 10⁻⁹ | Seawater, baking soda solution |
| 11–12 | 10⁻¹¹ to 10⁻¹² | Household ammonia |
| 13–14 | 10⁻¹³ to 10⁻¹⁴ | Sodium hydroxide solutions |
Strictly, IUPAC defines pH through the activity of hydrogen ions, and in water H⁺ exists as hydronium H₃O⁺. In dilute solutions activity and concentration are almost equal, so −log[H⁺] works well; above roughly 0.1 mol/L of ions a measured pH can differ by a tenth of a unit or more.
Why pKw depends on temperature
The self-ionisation of water, , absorbs heat, so it goes further in warm water. Reference values of pKw at atmospheric pressure are about 14.95 at 0 °C, 14.00 at 25 °C, 13.26 at 50 °C, 12.70 at 75 °C and 12.25 at 100 °C. Pure water stays neutral — [H⁺] still equals [OH⁻] — but its pH falls: at 80 °C, with pKw ≈ 12.62, neutral water has a pH of about 6.31. That is why pH meters compensate for temperature and why tables of pH values always quote one.
Frequently asked questions
How do I calculate pH from hydrogen ion concentration?
Take the negative base-10 logarithm: pH = −log[H⁺]. For [H⁺] = 1.2 × 10⁻³ mol/L, pH = 2.92. A rule of thumb: when [H⁺] is exactly 10⁻ⁿ, the pH is n.
How do I find [H⁺] from the pH?
Raise 10 to the power of minus the pH: [H⁺] = 10^(−pH). A pH of 7.3 corresponds to 5.0 × 10⁻⁸ mol/L. Choose “pH” in Start from and the calculator gives both ion concentrations.
When can I use the √(Ka·C) approximation?
When the acid is less than about 5 % ionised, which usually means C/Ka above a few hundred. The calculator always solves the quadratic exactly and shows the shortcut and the percent ionization next to it, so you can check the 5 % rule.
Is pH + pOH always 14?
Only at 25 °C. The sum equals pKw, which is about 14.95 at 0 °C and 12.25 at 100 °C. Change pKw in the calculator for other temperatures.
Can pH be negative or above 14?
Yes. A strong acid above 1 mol/L gives a pH below zero, and a concentrated strong base can exceed 14. In such solutions activities differ a lot from concentrations, so the values are indicative.
How does the Henderson–Hasselbalch equation work?
For a mixture of a weak acid and its conjugate base, pH = pKa + log([A⁻]/[HA]). Equal amounts give pH = pKa; ten times more base adds one unit. It works best for ratios between 0.1 and 10.
Sources
- Buck et al. (2002), Measurement of pH: definition, standards and procedures — IUPAC Recommendations, Pure Appl. Chem. 74(11)
- OpenStax Chemistry 2e — 14.2 pH and pOH
- OpenStax Chemistry 2e — 14.3 Relative Strengths of Acids and Bases
- OpenStax Chemistry 2e — 14.6 Buffers
- Bandura & Lvov (2006), The ionization constant of water over wide ranges of temperature and density, J. Phys. Chem. Ref. Data 35(1)
Last updated: