Skip to content
The Calculatorz
Acids & bases

pH Calculator (pH, pOH, Strong and Weak Acids and Bases)

Calculate pH, pOH, [H⁺] and [OH⁻] from any one of them, or from the concentration of a strong or weak acid or base with its Ka or Kb.

Calculations use standard textbook models and ideal behaviour. Real solutions, gases and reactions can differ; follow your laboratory's safety data sheets and procedures.

Known quantity

Solution

How to use this calculator

Choose what you know and enter the value. For strong acids and bases, enter how many H⁺ or OH⁻ ions each formula unit releases (1 for HCl or NaOH, 2 for Ca(OH)₂). For weak acids and bases, enter the pKa or pKb from a data table; the calculator solves the equilibrium exactly rather than with the small-x shortcut. Results assume water at 25 °C (pKw = 14.00).

Formula

pH = −log₁₀[H⁺]; pOH = −log₁₀[OH⁻]; pH + pOH = 14.00 at 25 °C. Strong acid: [H⁺] = n × C. Weak acid HA with Ka = 10^−pKa: [H⁺] = (−Ka + √(Ka² + 4KaC)) ÷ 2. Weak base: the same with Kb for [OH⁻]. Percent ionisation = [H⁺] ÷ C × 100.

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewAslamResearcher, Chemical Engineer

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

What is pH?

A measure of acidity: the negative logarithm of the hydrogen ion concentration. pH 7 is neutral at 25 °C; lower is acidic and higher is basic.

What is the difference between strong and weak acids?

Strong acids, such as HCl, ionise completely in water. Weak acids, such as acetic acid, ionise only partly, described by Ka.

How do pKa and Ka relate?

pKa = −log₁₀ Ka. A lower pKa means a stronger acid.

Why not use the approximation [H⁺] = √(KaC)?

It is only accurate when ionisation is small (under about 5%). The quadratic used here is exact for a monoprotic weak acid.

Does temperature change pH?

Yes. Kw changes with temperature, so neutral pH is about 7.47 at 0 °C and 6.14 at 100 °C. This calculator assumes 25 °C.

Can pH be negative?

Yes, for very concentrated strong acids, although real activity effects make simple calculations unreliable there.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. Flowers, P., Theopold, K., Langley, R., & Robinson, W. R. (2019). pH and pOH. In Chemistry 2e (Section 14.2). OpenStax. View source
  2. Flowers, P., Theopold, K., Langley, R., & Robinson, W. R. (2019). Relative strengths of acids and bases. In Chemistry 2e (Section 14.3). OpenStax. View source
  3. Flowers, P., Theopold, K., Langley, R., & Robinson, W. R. (2019). Chemistry 2e. OpenStax. View source
  4. Buck, R. P., Rondinini, S., Covington, A. K., et al. (2002). Measurement of pH. Definition, standards, and procedures (IUPAC Recommendations 2002). Pure and Applied Chemistry, 74(11), 2169–2200. View source