Weak Acid and Weak Base pH Calculator

Weak Acid and Weak Base pH: the Exact Answer, and Where the Usual Shortcut Fails

Almost every page that does this one solves pH = ½(pKa − log c) and stops. That shortcut assumes the amount that ionises is negligible beside the amount you dissolved, and for a dilute or a fairly strong weak acid it is not — it can claim more hydrogen ions than you had molecules. This page solves the quadratic instead, prints the percentage that actually dissociates, and shows you the size of the error the shortcut would have made.

pH, percentage dissociation, and the error in the x much less than c shortcut

pKa or pKb and concentration in, pH out
Pick the one your question gives you. A weak acid donates a proton and the answer comes out below pH 7; a weak base accepts one and the answer comes out above pH 7. The arithmetic is identical in both cases: the quadratic is solved for the ion the substance makes, and for a base the page then converts pOH to pH with pH + pOH = 14.
If your book gives you Ka or Kb instead of pKa or pKb, convert it first: pKa = −log10Ka. Ka = 1.8×10−5 for ethanoic (acetic) acid is pKa 4.76, which is the default here. Some other common ones: methanoic acid 3.75, benzoic 4.20, hydrofluoric 3.17, hydrocyanic 9.21, carbonic (first proton) 6.35, ammonia as a base pKb 4.75, methylamine pKb 3.36. A SMALLER pK means a STRONGER acid or base, because it means a bigger K.
The amount you put in, not the amount still un-ionised when equilibrium is reached — the whole point of the calculation is to find out how different those two are. This is the figure written on the bottle or worked out from moles divided by litres. Watch out for dilute solutions: it is below about 10−3 mol/L that the textbook shortcut starts to fall apart.
Top bar: of everything you dissolved, the red part has split into ions and the blue part has not. The bar is drawn from the same percentage dissociation printed above it, so at 0.1 mol/L of ethanoic acid the red sliver is about one hundredth of the bar, and diluting the solution widens it until it fills the bar completely. Bottom: the answer on a 0 to 14 pH scale, with the acid half shaded pink, the alkaline half blue, and the dashed line at neutral pH 7.
2.88Example

Ethanoic (acetic) acid, pKa 4.76, at 0.100 mol/L

Advertisement

The quadratic, and the shortcut it replaces

x²/(c − x) = Ka  →  x = (−Ka + √(Ka² + 4Ka·c))/2  ·  pH = −log10x  ·  for a base, pOH = −log10x and pH = 14 − pOH  ·  shortcut: x ≈ √(Ka·c), pH ≈ ½(pKa − log10c)
Ka = 10 to the minus pKa
The acid dissociation constant. Ka = [H+][A−]/[HA] at equilibrium. For a base, Kb = [BH+][OH−]/[B]. The page takes pK rather than K because a pK is a one-or-two-digit number a reader can type without a mistake, and because pKa is what the logarithmic forms all use. The conversion is base ten, not natural: Ka = 10−pKa.
x
How much of the acid actually ionises, in mol/L. It is both [H+] and [A−], because the acid makes one of each; and the concentration left as un-ionised HA is c − x, which is the term the shortcut throws away. For a base, x is [OH−].
alpha = x/c
The degree of dissociation, printed above as a percentage. Ostwald’s dilution law is the statement that this rises as the solution is diluted: Ka = c·alpha²/(1 − alpha). A weak acid is not weak in the sense of being permanently feeble — dilute it enough and it ionises completely.
pH = minus log base ten of [H+]
Base ten. This is worth one sentence of its own because it is the single most common silent error in pH arithmetic: a calculator’s “log” key is base ten but many programming languages’ log function is the natural logarithm, and the two differ by a factor of 2.302585. A pH of 2 computed with the wrong logarithm comes out as 4.61 — still a plausible-looking acid, which is exactly why the mistake survives.
pH + pOH = 14
True at 25 °C, where Kw = [H+][OH−] = 1.00×10−14. It is NOT true at other temperatures: Kw rises as water gets hotter, so at 50 °C the sum is about 13.26 and neutral water sits at pH 6.63 while still being exactly neutral. Every pH on this page is a 25 °C pH.

Worked example

Ethanoic (acetic) acid, pKa 4.76, at 0.100 mol/L
TURN pKa INTO Ka, BASE TEN. Ka = 10−4.76 = 1.7378×10−5. (If your table gives 1.8×10−5 you will get pH 2.87 instead of 2.88; two-figure Ka values and two-decimal pKa values do not quite agree, and neither is wrong.)
WRITE THE EQUILIBRIUM. CH₃COOH ⇌ H+ + CH₃COO−. Start with 0.100 mol/L of the acid and none of the ions; let x mol/L ionise. At equilibrium: [H+] = x, [CH₃COO−] = x, [CH₃COOH] = 0.100 − x.
SOLVE IT PROPERLY. x²/(0.100 − x) = 1.7378×10−5, so x² + 1.7378×10−5x − 1.7378×10−6 = 0. The positive root is x = (−1.7378×10−5 + √(3.0199×10−10 + 6.9512×10−6))/2 = 1.3096×10−3 mol/L.
TAKE THE LOGARITHM — BASE TEN. pH = −log10(1.3096×10−3) = 2.88. With the natural logarithm by mistake you would get 6.64, which looks like a solution that is barely acidic at all.
CHECK THE 5 PER CENT RULE. alpha = 1.3096×10−3/0.100 = 0.0131, so 1.31 per cent has ionised. That is comfortably under 5 per cent, so the shortcut was allowed: √(1.7378×10−5 × 0.100) = 1.3183×10−3, pH 2.880 against 2.883. The difference is 0.003 of a pH unit — you would never see it.
NOW DILUTE IT A HUNDRED THOUSAND TIMES AND WATCH THE SHORTCUT BREAK. Type pKa 4 and c = 0.00001. The quadratic gives x = 9.161×10−6, so 91.6 per cent has ionised and the pH is 5.04. The shortcut gives √(10−4 × 10−5) = 3.162×10−5 mol/L and a pH of 4.50 — three times as many hydrogen ions as you had molecules of acid. Half a pH unit of error, and an answer that is physically impossible.
Advertisement

How the shortcut error grows as the solution gets more dilute

ConcentrationExact pH, quadraticShortcut pHErrorPercentage dissociated
1.00 mol/L2.3812.3800.0010.42%
0.100 mol/L2.8832.8800.0031.31%
0.0100 mol/L3.3893.3800.0094.08%
0.00100 mol/L3.9093.8800.02912.34%
1.00×10−4 mol/L4.4704.3800.09033.89%
1.00×10−5 mol/L5.1494.8800.26971.00%
All six rows are ethanoic acid at pKa 4.76, computed by this page; the error column is the difference between the two columns beside it. Notice where the fifth column crosses 5 per cent: between 0.0100 and 0.00100 mol/L, at 0.0066 mol/L to be exact. That is where the shortcut stops being a shortcut and starts being wrong, and it is why the 5 per cent rule is stated as a percentage dissociated rather than as a concentration — the crossover depends on the pKa as much as on the dilution. Hydrofluoric acid, pKa 3.17, crosses 5 per cent at 0.257 mol/L, which is a solution you would actually make up; hydrocyanic acid, pKa 9.21, only crosses it below 2.3×10−7 mol/L, where water’s own ions outnumber the acid’s anyway and nothing on this page applies. The pKa values in this caption are the conventional tabulated ones and not measurements made for this page.

Why the shortcut exists, and the two ways it lets you down

A strong acid is easy. Hydrochloric acid at 0.01 mol/L gives 0.01 mol/L of hydrogen ions, because every molecule donates its proton, and the pH is −log10(0.01) = 2 exactly. There is nothing to calculate. A weak acid is a different problem, because only some of it ionises, and how much depends on how dilute it is.

The equilibrium is HA ⇌ H+ + A−, and its position is fixed by Ka = [H+][A−]/[HA]. Dissolve c mol/L of the acid and let x mol/L of it ionise. One molecule gives one hydrogen ion and one anion, so [H+] = [A−] = x, and what is left as whole molecules is c − x. Substituting gives x²/(c − x) = Ka: one equation, one unknown, and a quadratic you can solve exactly.

Then almost every textbook throws the exact solution away. It argues that x is small beside c, writes c − x ≈ c, and gets x = √(Ka·c), which rearranges into the famous pH = ½(pKa − log10c). That is a real convenience in an exam, and for the acid in the bottle at the concentration on the label it is right to three decimal places. The trouble is that it is presented as the method rather than as an approximation, so a reader never finds out that it has a range of validity — and when it fails, it fails in a way that looks perfectly reasonable.

It fails in two circumstances, and they are the same circumstance seen from two sides. Dilution is the first: as c falls, x falls more slowly, so the fraction x/c rises. That is Ostwald’s dilution law, and it is the reason the percentage dissociated on this page climbs towards 100 as you take zeros off the concentration. A strong-ish weak acid is the second: if Ka itself is large, a big fraction ionises even in a reasonably concentrated solution. Hydrofluoric acid at pKa 3.17 is past 5 per cent dissociation at 0.257 mol/L, which is a perfectly ordinary bench concentration.

The failure is not subtle once you look for it. Below c = Ka, the shortcut returns √(Ka·c) > c: more hydrogen ions than there were molecules of acid. Enter pKa 4 and c = 0.00001 above and the row marked “shortcut would say” reads 316 per cent. The quadratic cannot produce that answer, because its root is always smaller than c.

So the honest procedure, and the one examiners actually want, is three steps: make the approximation, compute the percentage dissociated, and check that it is under 5 per cent. If it is, you are finished. If it is not, go back and solve the quadratic. This page does all three at once and tells you which situation you are in, which is the only part a calculator can usefully add.

One thing the quadratic still does not do is count the water. Pure water supplies 10−7 mol/L of hydrogen ions on its own, and this calculation ignores them. While the acid supplies a thousand times more, that is irrelevant. When it does not — a very weak acid, or a very dilute one — the arithmetic starts drifting towards an answer above pH 7, which is impossible: no acid can make water alkaline. The page says so when the figure gets close enough to matter.

Where to go next. Once your weak acid is mixed with its own conjugate base you are no longer solving this equation at all, you are solving the Henderson-Hasselbalch one — that is a buffer, and the family already has a buffer pH from pKa calculator and a Henderson-Hasselbalch calculator for it, so this plugin does not repeat them. What this plugin adds is the rest of the story: how much acid or base a buffer can actually absorb, the whole titration curve from first drop to past the equivalence point, which indicator belongs with which titration, and why a dissolved salt is so often not neutral.

Frequently asked questions

What is the formula for the pH of a weak acid?

Exactly, it is pH = −log10x where x is the positive root of x² + Ka·x − Ka·c = 0, so x = (−Ka + √(Ka² + 4Ka·c))/2. The familiar textbook form pH = ½(pKa − log10c) is that same expression after the ionised amount has been assumed negligible beside the amount dissolved. Use whichever your question expects, but check the percentage dissociated: under 5 per cent the two agree to a few thousandths of a pH unit, and over it they do not.

When does the x much less than c approximation break down?

When the percentage dissociated passes about 5 per cent, which happens in dilute solutions and for the stronger weak acids. For ethanoic acid (pKa 4.76) the crossing point is 0.0066 mol/L; for hydrofluoric acid (pKa 3.17) it is 0.257 mol/L. A quick test that needs no calculator: the approximation is in trouble once c stops being very much larger than Ka. Once c falls below Ka it is not merely inaccurate, it returns an impossible answer — more ions than molecules.

Why do I need log base ten rather than natural log?

Because pH is defined as −log10[H+], by definition and not by convention. Using the natural logarithm multiplies every answer by 2.302585, and because that lands most answers somewhere between 0 and 14 anyway, nothing looks wrong. A 0.01 mol/L strong acid should read pH 2.00; computed with the natural logarithm it reads 4.61, which still looks like a weakly acidic solution. If a pH you have calculated by machine is roughly 2.3 times the one you expected, this is why.

Can a weak acid ever be 100 per cent dissociated?

It approaches it. The degree of dissociation rises without limit as the solution is diluted — Ostwald’s dilution law — so a weak acid diluted far enough is effectively fully ionised. What stops this being a useful statement is that by then the solution contains so little acid that water’s own 10−7 mol/L of hydrogen ions dominates the pH, and the pH is indistinguishable from 7 whatever the acid is doing. “Weak” describes the equilibrium constant, not a fixed percentage.

Does this work for a weak base as well?

Yes, with Kb in place of Ka: the same quadratic gives [OH−], from which pOH = −log10[OH−] and pH = 14 − pOH at 25 °C. Choose “a weak base” in the first field. If your question gives you the Ka of the conjugate acid instead of the Kb of the base — as data tables often do for amines — use pKb = 14 − pKa; the page prints that conjugate value for you.

Why is my answer slightly different from my textbook’s?

Three usual reasons. First, rounding of the constant: Ka = 1.8×10−5 and pKa = 4.76 are not the same number, and they differ in the second decimal place of the pH. Second, the shortcut: if your book used √(Ka·c) and this page solved the quadratic, expect a small difference in the same direction every time, with this page reading higher. Third, temperature: every figure here is for 25 °C, where pKw is 14.00.

Is the calculated pH what a pH meter would read?

Close, but not identical, and the meter is right. This calculation uses concentrations where thermodynamics calls for activities, which at 0.1 mol/L costs a few hundredths of a pH unit and considerably more in a solution that also contains a lot of salt. It also assumes 25 °C and ideal behaviour. Treat anything on this page as good to about ±0.05 of a pH unit, which is finer than any school titration can resolve anyway.

Related calculators

References

  1. NCERT / CIET National MOOC e-text, Chemistry, Class XI, Equilibrium: Part 5 (module kech_10705, ciet.nic.in), read 14 November 2026. Its section 2, Hydrolysis of Salts and the pH of their Solutions, covers the three salt types and gives pH = 7 + ½(pKa − pKb) for the salt of a weak acid and a weak base; its section 3, Buffer Solutions, places the acetic acid / sodium acetate buffer near pH 4.75. The module quotes Ka = 1.8×10−5 for acetic acid (pKa 4.76) and Kb = 1.77×10−5 for aqueous ammonia, which are the default values on these pages.
  2. Annual Syllabus, Class XI, Chemistry (043), Session 2026-27, Directorate of Education, GNCT of Delhi (edustud.nic.in), read 14 November 2026. Unit 6, Equilibrium, lists “Ionic Equilibrium in Solution, Acids, Bases and Salts, Ionization of Acids and Bases, Buffer Solutions, Solubility Equilibria of Sparingly Soluble Salts”. This is a state directorate’s annual syllabus, not CBSE’s own curriculum document, which was not read for these pages; the unit numbering and the wording of the topic list follow the CBSE course but should be checked against whatever your own board publishes.
  3. The ionic product of water is taken as Kw = 1.00×10−14 at 25 °C, pKw = 14.00, which is the value every school course uses and the value these pages compute with. No IUPAC or NIST primary document for it was read, so it is quoted as the conventional figure and not from its source. The more precise modern value is pKw = 13.995, which would move every pH above 7 on these pages down by 0.0025 — far below the precision of any titration a school laboratory performs, and far below the 0.1 to 0.2 of a pH unit that the indicator and temperature assumptions already cost.
  4. Ostwald’s dilution law, Ka = c·alpha²/(1 − alpha), is the relation that makes the percentage-dissociated column on this page rise as the concentration falls, and it is derived in the same NCERT unit cited above. The primary 1888 paper was not read; the law is quoted from the school treatment. It is also the subject of a separate page in this plugin, on the degree of dissociation.
  5. The pKa values quoted on this page — ethanoic 4.76, methanoic 3.75, benzoic 4.20, hydrofluoric 3.17, hydrocyanic 9.21, carbonic 6.35, ammonia pKb 4.75, methylamine pKb 3.36 — are conventional tabulated values in general textbook use at 25 °C, not measurements made or sourced for this page. Published tables disagree in the second decimal place, and some quote Ka to two significant figures instead, which shifts a computed pH by around 0.01. Use your own data book’s number if a question supplies one.