Skip to main content

Free pH Calculator – From [H⁺] to Buffer Chemistry

Convert between pH and hydrogen-ion concentration, solve weak-acid Ka problems with both the approximation and the exact quadratic, and mix Henderson–Hasselbalch buffers — all client-side.

Written & reviewed by Helperzy Editorial Team · Updated July 2026

pH ⇄ [H⁺]Weak Acid Ka/Kb + Exact QuadraticHenderson–Hasselbalch BufferTemperature-Adjusted KwFree

Calculation Mode

Kw = 1.00e-14 (measured Kw is 1.01e-14; this tool uses pKw = 14.00 exactly for display consistency). Neutral pH at this temperature is 7.000 — pH 7 is only the neutral point at 25 °C.

pH 3.00

Acidic

11.00

pOH

1.0000e-11

[OH⁻] (mol/L)

1.0000e-3

[H⁺] (mol/L)

0–14 pH Scale

0 (acidic)714 (basic)

Thick marker = your result (pH 3.00). Thin marker = neutral at the selected temperature (pH 7.000).

The Working, With Your Numbers

  1. 1. pH = −log₁₀[H⁺] = −log₁₀(1.0000e-3)
  2. 2. pH = 3.0000
  3. 3. pOH = pKw − pH = 14.0000 − 3.0000 = 11.0000

Common Acids — Ka / pKa (25 °C, CRC Handbook)

AcidKapKaUse
Acetic acid CH₃COOH1.8e-54.74
Formic acid HCOOH1.8e-43.74
Hydrofluoric acid HF6.8e-43.17
Carbonic acid (Ka1) H₂CO₃4.3e-76.37
Carbonic acid (Ka2) HCO₃⁻4.7e-1110.33reference only
Citric acid (Ka1) C₆H₈O₇7.4e-43.13
Citric acid (Ka2) C₆H₇O₇⁻1.7e-54.77reference only
Citric acid (Ka3) C₆H₆O₇²⁻4.0e-76.40reference only
Phosphoric acid (Ka1) H₃PO₄7.5e-32.12
Phosphoric acid (Ka2) H₂PO₄⁻6.2e-87.21reference only
Phosphoric acid (Ka3) HPO₄²⁻4.2e-1312.38reference only
Benzoic acid C₆H₅COOH6.3e-54.20
Lactic acid C₃H₆O₃1.4e-43.85
Hydrocyanic acid HCN6.2e-109.21

Only Ka1 of a polyprotic acid is used for the weak-acid calculation — Ka2/Ka3 are listed for reference and are not plugged into the quadratic here. Published Ka values vary in the second significant figure between sources; a 3% shift moves pH by about 0.007, immaterial at two decimals.

Common Bases — Kb / pKb (25 °C, CRC Handbook)

BaseKbpKbUse
Ammonia NH₃1.8e-54.74
Methylamine CH₃NH₂4.4e-43.36
Ethylamine C₂H₅NH₂4.7e-43.33
Pyridine C₅H₅N1.7e-98.77
Aniline C₆H₅NH₂4.3e-109.37
Hydrazine N₂H₄1.3e-65.89

Source & Method

pH is defined by the IUPAC Compendium of Chemical Terminology (Gold Book) as −log₁₀[H⁺]. Ka, Kb and the water-ionisation constant Kw at each temperature come from the CRC Handbook of Chemistry and Physics(Kw also cross-checked against NIST). Weak-acid and weak-base results were checked against Omni Calculator and calculator.net, which both agree with the exact quadratic here — one exception is 0.1 M ammonia, where calculator.net shows pH 11.13 because it rounds pOH before subtracting from 14; this tool subtracts first and rounds once, landing on 11.12.

100% Private

Every calculation runs in your browser using the constants bundled with the page. Nothing you type is uploaded.

How to Use pH Calculator

1

Pick a calculation mode

Choose [H⁺] → pH, pH → [H⁺], weak acid/base with Ka or Kb, strong acid/base, or the Henderson–Hasselbalch buffer mode depending on what you already know.

2

Enter your numbers or pick a species from the table

Type a concentration and, for weak acids or buffers, a Ka value — or tap a row in the Ka/Kb reference table below to autofill a common acid or base with its cited constant.

3

Read the pH, the classification, and the worked steps

The result card shows pH, pOH, and where it falls on the 0–14 acidic-to-basic scale, with the full substitution shown underneath so you can check every step against your own work.

How the pH Calculator Works

pH is a number on a roughly 0-to-14 scale that tells you how acidic or basic a water-based solution is, and it is defined precisely as pH = −log₁₀[H⁺], where [H⁺] is the hydrogen-ion concentration in moles per litre. A student checking a titration, a home brewer watching mash pH, an aquarium keeper tracking tank water, or a lab tech calibrating a meter all reach for the same handful of conversions this calculator covers: [H⁺] to pH and back, pOH, strong acids and bases, weak acids and bases through their equilibrium constant, and buffers built from a weak acid and its conjugate base. For a strong acid or base that dissociates completely, the concentration you dissolved is the ion concentration, so pH is just −log₁₀(C) for an acid, or you find pOH first for a base and subtract from pKw. Weak acids are the harder case: HA breaks apart only partially, governed by Ka = [H⁺][A⁻] ÷ [HA]. The textbook shortcut assumes ionization is small enough that [HA] stays close to the starting concentration C, giving [H⁺] = √(Ka × C). That shortcut is only safe when C ÷ Ka is roughly 100 or higher. Below that ratio the mass-balance equation has to be solved exactly as a quadratic, [H⁺]² + Ka[H⁺] − KaC = 0, which rearranges to [H⁺] = (−Ka + √(Ka² + 4KaC)) ÷ 2. Buffers use a third relationship, the Henderson–Hasselbalch equation, pH = pKa + log₁₀([A⁻] ÷ [HA]), which holds well as long as the ratio of the two forms stays within about a factor of ten each way of 1, i.e. inside pKa ± 1. Take 0.1 M acetic acid with Ka = 1.8 × 10⁻⁵. The square-root approximation gives [H⁺] = √(1.8 × 10⁻⁵ × 0.1) = 1.3416 × 10⁻³ M, which rounds to pH 2.87 — matching both Omni Calculator and calculator.net. Solving the exact quadratic instead gives [H⁺] = 1.3327 × 10⁻³ M and pH 2.8753, a difference of about 0.003 pH units that barely matters at this concentration because C ÷ Ka here is 5,556, far above the 100 threshold. Percent ionization, [H⁺] ÷ C × 100, comes out to about 1.33% either way — a useful reminder that even a "weak" acid at 0.1 M is still almost 99% un-ionized. Students verifying a lab result use the weak-acid mode to check a measured pH against theory before writing it up. Home brewers and winemakers use the buffer mode to see how much a mash or must will resist a pH swing, since malt and grape must both behave like weak buffer systems. Aquarium and pond keepers use the strong/weak modes to translate a test-kit ppm reading into an expected pH range. Chemistry instructors use the temperature selector to show a class that pH 7 is only "neutral" at 25 °C — at human body temperature, 37 °C, neutral water actually sits at pH 6.81, and pure water at a rolling boil drops to pH 6.15, purely because Kw itself changes with temperature, not because the water became acidic. The one mistake worth watching for is trusting the square-root shortcut at a low concentration. Drop the same acetic acid down to 0.001 M and C ÷ Ka falls to 55.6 — the approximation now says pH 3.8724 while the exact quadratic says pH 3.9015, a gap of 0.03 pH units that a lab report would flag as wrong if the exact answer was expected. This calculator shows both numbers side by side specifically so that gap is visible instead of hidden. A second limitation worth stating plainly: everything here uses concentration, not chemical activity, so a real calibrated meter reading a solution above roughly 0.1 M ionic strength will read a little differently than the formula predicts, and polyprotic acids like phosphoric or citric acid are treated only through their first dissociation constant. Every calculation runs locally in your browser; nothing you type is sent anywhere.

pH Calculator Formula & Method

pH = −log₁₀[H⁺] [H⁺] = 10^(−pH) pOH = pKw − pH [OH⁻] = 10^(−pOH) Strong acid/base (fully dissociated): [H⁺] or [OH⁻] = C Weak acid, approximation: [H⁺] = √(Ka × C) (safe when C ÷ Ka ≳ 100) Weak acid, exact quadratic: [H⁺] = (−Ka + √(Ka² + 4·Ka·C)) ÷ 2 Buffer (Henderson–Hasselbalch): pH = pKa + log₁₀([A⁻] ÷ [HA]) where C = analytical concentration (mol/L), Ka/Kb = acid/base dissociation constant, pKw = −log₁₀(Kw), and Kw is the temperature-dependent water ionization constant (1.0 × 10⁻¹⁴ at 25 °C, giving pKw = 14.00 and neutral pH 7.00).

Examples: pH Calculator

Input

0.1 M acetic acid (CH₃COOH), Ka = 1.8 × 10⁻⁵, 25 °C

Result

Approximation: [H⁺] = 1.3416 × 10⁻³ M → pH 2.87. Exact quadratic: [H⁺] = 1.3327 × 10⁻³ M → pH 2.8753.

[H⁺] = √(Ka × C) = √(1.8×10⁻⁵ × 0.1) for the approximation, or the quadratic (−Ka + √(Ka² + 4KaC)) ÷ 2 for the exact value; C ÷ Ka = 5,556 here so both agree to within 0.003 pH.

Input

0.1 M ammonia (NH₃), Kb = 1.8 × 10⁻⁵, 25 °C

Result

[OH⁻] = 1.3327 × 10⁻³ M → pOH 2.8753 → pH 11.1247 (displays as pH 11.12)

The exact quadratic gives [OH⁻], then pOH = −log₁₀[OH⁻] and pH = pKw − pOH; subtracting before rounding is why this lands on 11.12 rather than 11.13.

Input

Buffer: 0.2 M acetate [A⁻] with 0.1 M acetic acid [HA], pKa 4.7447

Result

pH = 5.0458

Henderson–Hasselbalch: pH = pKa + log₁₀([A⁻] ÷ [HA]) = 4.7447 + log₁₀(2) = 4.7447 + 0.3010 = 5.0458.

Frequently Asked Questions – pH Calculator

pH = −log₁₀[H⁺], where [H⁺] is the hydrogen-ion concentration in moles per litre. This is the IUPAC Gold Book definition. Reversing it, [H⁺] = 10^(−pH).