01
pH formulas
pH = −log₁₀[H⁺] · [H⁺] = 10^(−pH)
pOH = −log₁₀[OH⁻] · [OH⁻] = 10^(−pOH)
pH + pOH = pKw = 14.00 at 25 °C
Concentrations are in mol/L. Because the scale is logarithmic, one pH unit is a tenfold change in [H⁺]: pH 4 is ten times more acidic than pH 5.
02
Worked example
A solution has [H⁺] = 2.5 × 10⁻⁵ mol/L.
pH = −log₁₀(2.5 × 10⁻⁵) = 4.60
pOH = 14.00 − 4.60 = 9.40
[OH⁻] = 10^(−9.40) = 4.0 × 10⁻¹⁰ mol/L
The pH is below 7, so the solution is acidic.
03
pH and concentration
| pH | [H⁺] (mol/L) | [OH⁻] (mol/L) | |
|---|---|---|---|
| 1 | 1 × 10⁻¹ | 1 × 10⁻¹³ | strongly acidic |
| 4 | 1 × 10⁻⁴ | 1 × 10⁻¹⁰ | acidic |
| 7 | 1 × 10⁻⁷ | 1 × 10⁻⁷ | neutral at 25 °C |
| 10 | 1 × 10⁻¹⁰ | 1 × 10⁻⁴ | basic |
| 13 | 1 × 10⁻¹³ | 1 × 10⁻¹ | strongly basic |
04
pH of strong acids and bases
A strong acid such as HCl dissociates completely, so [H⁺] equals the acid concentration: 0.01 M HCl has [H⁺] = 0.01 mol/L and pH 2. For a strong base such as NaOH, [OH⁻] equals the base concentration: 0.01 M NaOH has pOH 2 and pH 12. Choose [H⁺] or [OH⁻] in the calculator and enter the concentration.
Weak acids and bases ionise only partly, so their pH also depends on Ka or Kb. Choose “Weak acid” or “Weak base”, enter the concentration and the pKa (or pKb), and the calculator solves x² + Kx − Kc = 0 for the ionised amount. Example: 0.1 M acetic acid with pKa 4.76 has pH 2.88 and is 1.31% ionised. For a mixture of a weak acid and its salt, use the Henderson-Hasselbalch calculator.
05
Temperature and pKw
The relation pH + pOH = 14 holds at 25 °C. Water ionises more as it warms, so pKw falls: it is roughly 13.6 at body temperature, where neutral is about pH 6.8, not 7. Enter the pKw for your temperature to keep pOH and [OH⁻] correct; “neutral” is always pKw ÷ 2.
06
Limits of the simple formula
- pH is defined with the activity of H⁺, not its concentration. In dilute solutions the two are close; in concentrated or salty solutions a measured pH differs from the calculated one.
- Below about 10⁻⁶ M, an acid’s own H⁺ is comparable to that from water, so the pH of 10⁻⁸ M HCl is just under 7, not 8.
- pH can be below 0 or above 14 for very concentrated solutions.
07
Common pH calculation mistakes
- Treating a weak acid as strong. 0.1 M acetic acid taken as fully dissociated gives pH 1.00; with its pKa of 4.756 it is pH 2.88.
- Averaging pH values. Equal volumes of pH 2 and pH 4 strong acid do not give pH 3: the mixed [H⁺] is (0.01 + 0.0001) ÷ 2 mol/L, pH 2.30.
- Using the natural log. −ln(2.5 × 10⁻⁵) is 10.60; the pH uses log base 10 and is 4.60.
- Assuming pKw is 14 at every temperature. At 37 °C, with pKw about 13.6, neutral water is about pH 6.8; enter the pKw for your temperature.
Trust
How this page is checked
- The calculation runs on code with automated tests against worked reference values. Every number in the examples on this page was produced by that same code, not typed by hand.
- The formulas and conventions used are stated on the page, so you can reproduce the result yourself or compare it with your own software.
- Sources: LibreTexts, E1: Acid Dissociation Constants at 25 °C; LibreTexts, E2: Base Dissociation Constants at 25 °C.
- Last reviewed by the Sciloom team, Zebra Nine Studio Inc. It is a tool for research and teaching, not a substitute for a statistician, a validated lab method or medical advice.
Cite this page
Sciloom. (2026). pH calculator. Zebra Nine Studio Inc. https://sciloom.si/ph-calculator
Frequently asked questions
How do I calculate pH from H+ concentration?
Take the negative base-10 logarithm of the concentration in mol/L. For [H⁺] = 1 × 10⁻³, pH = 3.
How do I find [H+] from pH?
Raise 10 to the power of minus the pH. For pH 4.60, [H⁺] = 10⁻⁴·⁶⁰ = 2.5 × 10⁻⁵ mol/L.
What is the relationship between pH and pOH?
They add up to pKw, which is 14.00 at 25 °C. A solution with pH 9.5 has pOH 4.5.
Is pH 7 always neutral?
Only at 25 °C. Neutral means [H⁺] equals [OH⁻], which is pH = pKw ÷ 2; at 37 °C that is about 6.8.