Titration Curve Calculator
Plot the pH curve of a strong or weak acid titrated with NaOH and read off the equivalence point, half-equivalence pH and pKa. Exact charge-balance solution.
Set up the titration
Titration curve
Show the Larzscript program that just ran
Run a calculation to see the exact program.
This is the real program the page sent to the Larzscript interpreter (compiled to WebAssembly) in your browser. The library it imports is the same code the automated tests check.
The four regions
- Start — only the weak acid: pH 2.883 for 0.1 M acetic acid.
- Buffer region — part of the acid converted: pH = pKa + log(nA⁻/nHA); at half-equivalence pH = pKa = 4.760.
- Equivalence — all acid converted to A⁻: pH 8.730 for acetate, 7.000 for a strong acid.
- After equivalence — excess NaOH controls the pH: twice the equivalence volume gives 12.523.
Equations used
with ct and [Na⁺] the concentrations after dilution by the added volume. Strong-acid curves use the exact excess-of-H⁺ or OH⁻ formula. Because both are solved exactly, the curve has the right steepness near the equivalence point (a 5.40-unit jump within ±0.1% for a strong acid).
What is verified
Forty-four points on four different titrations (fractions of equivalence from 0 to 1.5) match the exact cubic solved in 60-digit arithmetic to 10⁻⁹ in pH. The half-equivalence pH equals pKa, the strong/strong equivalence point is 7.000, and the curve must rise monotonically; mutation tests confirm that dropping the sodium term or the dilution is caught.
Limits: monoprotic acid and strong base, ideal solutions, 25 °C. Polyprotic acids (H₃PO₄, H₂CO₃) have several steps and are not modelled here.
Frequently asked questions
What is a titration curve?
A graph of pH against the volume of titrant added. For a weak acid titrated with strong base it starts at the weak acid's pH, rises slowly through the buffer region, jumps sharply at the equivalence point and then levels off at the pH of the excess base.
How do I find the equivalence point?
Where moles of base added equal moles of acid: Veq = caVa/cb. For 25 mL of 0.1 M acid and 0.1 M NaOH that is 25.0000 mL.
Why is the pH not 7 at the equivalence point of a weak acid?
Because the solution then contains the conjugate base of the weak acid (acetate), which reacts with water to make OH⁻. For acetic acid the equivalence-point pH is 8.730; for a strong acid it is exactly 7.000.
What is the half-equivalence point?
After adding half the equivalence volume, [HA] = [A⁻], so pH = pKa. The curve reads 4.760 there for acetic acid (pKa 4.76). This is the standard way to measure a pKa from a titration.
Which indicator should I use?
Choose one that changes colour near the equivalence-point pH. Phenolphthalein (8.2–10) suits weak acid + strong base (equivalence pH 8.730); methyl orange (3.1–4.4) would change early. For strong acid + strong base either works because the pH jumps by about 5.40 units within ±0.1% of equivalence.
How is the curve calculated?
At every point the calculator solves the exact charge balance [H⁺] + [Na⁺] = [A⁻] + [OH⁻] with the diluted concentrations, not the Henderson–Hasselbalch shortcut, so the curve is right at the start and around the equivalence point where the shortcut fails.
Every number on this page is computed by the open-source larzscript-chem library (chemistry, physconst, physmath), written in Larzscript, and checked against independent references in its test suite. How it is verified →