# pH Calculator - Weak Acids, Bases, Polyprotic Acids, Salts & Buffers

> Free pH calculator for strong and weak acids and bases, polyprotic acids, salts and buffers, with an exact charge-balance solution and species plots.

- URL: https://qilingtools.com/en/math/ph
- Category: Chemistry Tools (https://qilingtools.com/en/chemistry)
- Tags: [Chemistry](https://qilingtools.com/en/tags/chemistry)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

pH = −log[H⁺]. For a strong acid or base the pH follows directly from concentration, but weak acids and bases, polyprotic acids, salts and buffers require the dissociation equilibria and water autoionisation to be solved together. For example, 0.1 M acetic acid (pKa 4.75) gives [H⁺] ≈ √(c·Ka) ≈ 1.33×10⁻³ M and pH ≈ 2.88; 0.1 M ammonia has pH ≈ 11.12; 0.1 M phosphoric acid has pH ≈ 1.63; and 1×10⁻⁸ M HCl has pH 6.98, not 8, because the H⁺ from water itself can no longer be ignored. This calculator writes every component into the charge-balance equation and solves it by bisection on log[H⁺], giving an exact answer that includes every dissociation step and water. Alongside it shows the textbook simplest formula and the quadratic approximation, checks their validity conditions (c·Ka ≥ 20Kw, c/Ka ≥ 500) and reports how far they are from the exact value. Six modes cover strong acids and bases, weak monoprotic acids and bases (or your own Ka/Kb), polyprotic acids and each of their salts (carbonic, phosphoric, sulfuric, oxalic, citric and more, including amphiprotic NaHCO₃ and NaH₂PO₄), salt hydrolysis (sodium acetate, ammonium chloride, ammonium acetate), buffers (Henderson–Hasselbalch versus exact, buffer capacity and the pH change after adding strong acid or base) and a pH ↔ pOH ↔ [H⁺] ↔ [OH⁻] converter. Results include species fractions and concentrations plus an interactive alpha-versus-pH distribution chart, and Kw can be corrected for temperature.

## How to use

1. Pick a mode or tap an example such as 0.1 M acetic acid, 0.1 M Na₂CO₃ or an acetate buffer
2. Choose the substance and enter its concentration; custom weak acids and bases accept Ka or pKa
3. Read pH, pOH, [H⁺] and [OH⁻], the step-by-step working and the species distribution chart

## Features

- Exact charge-balance solution including every dissociation step and water
- Simplest and quadratic approximations compared with the exact result, with validity checks
- Built-in pKa table for 20+ acids and bases: acetic, formic, HF, HCN, HClO, NH₄⁺, carbonic, phosphoric, oxalic, citric and more
- Polyprotic acids, their acid salts and normal salts, amphiprotic pH formula
- Buffers: Henderson–Hasselbalch, buffer capacity β and pH change after adding acid or base
- Species fraction table and draggable alpha-vs-pH distribution chart
- Convert between pH, pOH, [H⁺] and [OH⁻]
- Optional temperature-corrected Kw (0–100 °C)

## FAQ

### When can I use [H⁺] = √(c·Ka) for a weak acid?

The simplest formula needs both c·Ka ≥ 20Kw (water's contribution is negligible) and c/Ka ≥ 500 (dissociation is small enough to use c for the equilibrium concentration). If only the first holds, solve the quadratic [H⁺]² + Ka[H⁺] − c·Ka = 0. The calculator shows all three results, flags whether each condition is met and reports the error.

### Why is the pH of 1×10⁻⁸ M HCl not 8?

An acid solution cannot have pH above 7. At such low concentration water itself supplies more H⁺ (about 10⁻⁷ M) than the acid, so you must use [H⁺] = (c + √(c² + 4Kw))/2 ≈ 1.05×10⁻⁷ M, giving pH ≈ 6.98. The exact solver handles this automatically.

### How do you calculate the pH of polyprotic acids and amphiprotic salts?

If Ka₁ is much larger than Ka₂, a polyprotic acid can be treated as monoprotic using Ka₁ (0.1 M H₃PO₄ gives pH ≈ 1.63). A normal salt such as Na₂CO₃ is treated as a base with Kb₁ = Kw/Ka₂. An acid salt like NaHCO₃ is amphiprotic, with pH ≈ ½(pKa₁ + pKa₂) ≈ 8.34. The tool also gives the exact solution and every species concentration.

### How are buffer pH and buffer capacity calculated?

For a conjugate pair the Henderson–Hasselbalch equation gives pH = pKa + log(c_base/c_acid); an equimolar acetic acid/acetate buffer has pH ≈ 4.75 and buffers best within pKa ± 1. Buffer capacity is β = 2.303([H⁺] + [OH⁻] + c·α_acid·α_base). Enter an amount of added strong acid or base to see the buffer's pH shift by a few hundredths while the same amount in pure water shifts it by several units.

## Related tools

- [Significant Figures Calculator](https://qilingtools.com/en/math/significant-figures): Free online sig fig calculator: count significant figures digit by digit, round to N sig figs or decimals with six rounding modes, and compute by sig fig rules.
- [Chemical Equation Balancer](https://qilingtools.com/en/math/chemical-equation): Balance chemical equations by the algebraic method: smallest whole-number coefficients, brackets, hydrates, ionic charges, electrons, atom and charge checks.
- [Molar Mass Calculator](https://qilingtools.com/en/math/molar-mass): Molar mass of any formula with IUPAC atomic weights: brackets and hydrates, mass percent of each element, grams ↔ moles ↔ particles and solution molarity.
- [Interactive Periodic Table](https://qilingtools.com/en/math/periodic-table): Interactive periodic table of all 118 elements: colour by category, block, electronegativity, atomic mass, phase or melting point; search and click for details.
- [Titration Curve](https://qilingtools.com/en/math/titration): Free acid-base titration curve simulator: exact curves for strong, weak and polyprotic acids and bases, equivalence-point pH, the jump and indicator picks.
- [Gas Law Calculator](https://qilingtools.com/en/math/gas-law): Free gas law calculator: solve PV=nRT for any variable, combined gas laws, gas density, Dalton's partial pressures, gas over water and van der Waals Z.
- [Solution & Dilution Calculator](https://qilingtools.com/en/math/solution): Free dilution calculator: solve C1V1=C2V2, convert molarity, % w/w, ppm and molality, mix solutions, plan serial dilutions and dilute stock acids.
- [Stoichiometry & Limiting Reagent](https://qilingtools.com/en/math/stoichiometry): Balances the equation, finds the limiting reactant from grams, moles, gas volume or molarity, and gives theoretical yield, excess and percent yield with steps.
