Chemistry & Chemical Engineering Acids, Bases, Buffers & Titration Ka equilibrium solved by exact charge balance

Weak Acid pH Calculator (Ka)

Enter the acid dissociation constant and the concentration you weighed out, and this calculator returns the pH, the equilibrium hydrogen ion concentration, the percent ionization and the leftover undissociated acid. It solves the equilibrium exactly — including the hydrogen ion the water itself contributes — instead of using the xC shortcut, so the answer stays correct for strong-ish acids where that shortcut fails and for very dilute solutions where it fails in the other direction.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Constant you haveKa and pKa carry the same information; pKa = -log10 Ka.Ka (acid dissociation constant)
KaEnter the mantissa and pick the power of ten; acetic acid is 1.8 × 10⁻⁵ at 25 °C.1.8 × 10⁻⁵
pKaThe tabulated pKa at 25 °C; acetic acid 4.76, formic 3.75, benzoic 4.20.4.76
Analytical concentration of the acidTotal acid put into solution, dissociated plus undissociated - the number you get from mass over molar mass over volume.0.1 M

It returns

  • pH — From the exact equilibrium hydrogen ion concentration.
  • [H+] at equilibrium
  • Percent ionization — Fraction of the acid present as the conjugate base A-.
  • [HA] remaining undissociated
  • [A-] conjugate base formed
  • pKa
  • pOH

The formula

x=Ka+Ka2+4KaC2
α=100[A]C

In plain text: Ka = x^2 / (C - x) → x = [H+] = (-Ka + sqrt(Ka^2 + 4·Ka·C)) / 2, pH = -log10 x

  • KaAcid dissociation constant of HA at 25 °C (-)
  • CAnalytical (formal) concentration of the acid (mol/L)
  • xEquilibrium [H+], equal to [A-] when water is negligible (mol/L)
  • pH-log10 of the equilibrium hydrogen ion concentration (-)

The quadratic shown assumes water autoionisation contributes nothing. This calculator solves the full charge balance [H+] = Ka·C/(Ka + [H+]) + Kw/[H+], which reduces to the quadratic whenever [H+] is well above 1e-6 M.

Updated Category Acids, Bases, Buffers & Titration Verified against published test cases Reading time 11 min

Why a weak acid needs an equilibrium calculation

A strong acid hands over every proton it has, so its pH follows from the concentration alone. A weak acid does not. Acetic acid at 0.10 mol/L leaves about 98.7% of its molecules intact and releases only the remaining 1.3% as hydrogen ion, so you cannot get the pH without knowing how weak it is. That number is the acid dissociation constant:

Ka=[H+][A][HA]

Ka is the equilibrium constant for HA ⇌ H+ + A. Big Ka means the equilibrium sits to the right and the acid is stronger. Because the values span many orders of magnitude — from about 10−2 for the second proton of sulfuric acid down to 10−10 for phenol — chemists usually quote pKa = −log10Ka instead. A lower pKa is a stronger acid, and each unit of pKa is a factor of ten in Ka.

Two things follow that surprise people. First, the pH of a weak acid is not proportional to its concentration: dilute a weak acid ten-fold and the pH rises by about half a unit, not a full unit. Second, dilution makes a weak acid more ionized as a fraction even as it becomes less acidic overall. Both fall directly out of the algebra below.

Setting up and solving the equilibrium

Start with an ICE table. Before anything reacts you have C mol/L of HA and essentially no H+ or A. Let x be the amount that dissociates. At equilibrium you have Cx of HA and x each of H+ and A. Substituting into the Ka expression gives

Ka=x2Cx

Rearranged, that is the quadratic x2 + KaxKaC = 0, whose positive root is the formula at the top of this page. Textbooks often skip the quadratic by assuming xC, which collapses the denominator to C and gives x ≈ √(KaC). That shortcut is convenient but it is always an overestimate of [H+], because the true denominator Cx is smaller than C. The conventional tolerance is the 5% rule: use it only when the resulting ionization is under 5%, which for a given acid means only above a certain concentration.

There is a second approximation buried in the quadratic itself, and it is the one this calculator removes. The quadratic assumes every hydrogen ion came from the acid. In very dilute solution the water contributes comparably, so the correct statement is the charge balance [H+] = [A] + [OH]. Writing [A] = KaC/(Ka + [H+]) and [OH] = Kw/[H+] gives one equation in one unknown, solved here numerically. Adding the water term can only push [H+] up, never down, so the exact pH is always at or below the quadratic value.

Worked example: 0.10 M acetic acid, Ka = 1.8e-5

Acetic acid at 25 °C has Ka = 1.8×10−5 (pKa 4.74 to 4.76 depending on the table). Work the 0.10 M case by hand.

  1. Write the quadratic. x2 = Ka(Cx), so x2 + 1.8×10−5x − 1.8×10−6 = 0.
  2. Discriminant. Ka2 = 3.24×10−10; 4KaC = 4 × 1.8×10−5 × 0.10 = 7.2×10−6. Sum = 7.200324×10−6.
  3. Square root. √(7.200324×10−6) = 2.68334×10−3.
  4. Positive root. x = (−1.8×10−5 + 2.68334×10−3) ÷ 2 = 1.3327×10−3 M.
  5. pH. −log10(1.3327×10−3) = 2.875.
  6. Percent ionization. 1.3327×10−3 ÷ 0.10 × 100 = 1.33%. Comfortably under 5%.
  7. Leftover acid. [HA] = 0.10 − 0.0013327 = 0.09867 M.

Compare the shortcut: √(1.8×10−5 × 0.10) = 1.3416×10−3, giving pH 2.872. It is high by 0.7% in [H+] and low by 0.003 in pH — invisible in practice, which is exactly why the shortcut is taught. Now repeat with 0.10 M hydrofluoric acid, Ka = 6.8×10−4: the exact root is 7.913×10−3 (pH 2.102, 7.9% ionized) while the shortcut gives 8.246×10−3 (pH 2.084). Now the shortcut is off by 4% in concentration, and the 5% rule correctly told you in advance not to use it.

How to read the pH and the percent ionization together

Read the two numbers as a pair. The pH tells you how acidic the solution is right now; the percent ionization tells you how much capacity is held in reserve. A 0.10 M acetic acid solution at pH 2.875 has 98.7% of its acid still undissociated, which is why it can neutralise far more base than a pH 2.87 solution of HCl could.

Use the percent ionization as your validity check. Under 5%, the simple √(KaC) treatment is fine and any textbook answer will agree with this page to two decimals. Between 5% and about 30%, you need the quadratic and hand-waved answers start to visibly disagree. Above roughly 50%, the species is barely weak at all and the tabulated Ka itself becomes the weak link, since values for such acids differ between sources.

A useful cross-check: when C is much larger than Ka, pH ≈ ½(pKa − log10C). For 0.10 M acetic acid that is ½(4.74 + 1) = 2.87, within 0.005 of the exact answer. That relation also explains the half-unit rule: because of the ½, a ten-fold dilution moves the pH by 0.5, not 1.0. Confirm it in the dilution table below.

If your solution contains both the acid and its salt, this page is the wrong tool — the conjugate base suppresses ionization and the pH is set by the ratio of the two. Use the Henderson-Hasselbalch buffer calculator. For fully dissociated acids, use the pH and pOH calculator instead.

Ka and pKa for common weak acids at 25 degC

Reference values for the first ionization step. pKa is -log10 Ka; the pH column is the exact solution for a 0.10 M solution of each acid, computed the same way this page does.
AcidKapKapH of 0.10 MIonized at 0.10 M
Sulfurous (1st)1.5×10−21.821.5031.9%
Chloroacetic1.4×10−32.851.9511.2%
Hydrofluoric6.8×10−43.172.107.91%
Formic1.8×10−43.752.384.15%
Benzoic6.3×10−54.202.612.48%
Acetic1.8×10−54.742.881.33%
Carbonic (1st)4.5×10−76.353.670.21%
Hypochlorous3.0×10−87.524.260.055%
Phenol1.0×10−1010.005.500.0032%

Ka values are representative tabulated constants at 25 °C; sources differ in the second significant figure. Enter any of them above to reproduce the pH column.

Assumptions and where they break

  • One ionizable proton. For a polyprotic acid this page treats only the first step. That is usually adequate, because Ka2 is typically 104 to 105 times smaller, but it is a genuine approximation.
  • Concentration, not activity. The equilibrium constant is strictly written in activities. In dilute solution the difference is small; in high ionic strength it is not, which is why measured pKa values shift with added salt.
  • 25 °C. Ka is temperature-dependent through the van 't Hoff relation. Carboxylic acids change little over a few tens of degrees; amine conjugate acids change substantially.
  • No other acid or base present. Adding the conjugate base, a second acid, or a buffer invalidates the single-equilibrium treatment entirely.
  • The tabulated Ka is right. Published values for the same acid can differ by 10 to 20% in Ka, which is 0.04 to 0.08 in pKa. Do not report a pH to three decimals on the strength of a two-figure constant.
  • Water is included here but not in most textbooks. If your homework answer differs from this page below about 10−6 M, this is why.

Related calculations and when to use them instead

The weak-acid equilibrium is the foundation for three other calculations you are likely to need.

Buffers. Add the conjugate base and the pH stops depending on concentration and starts depending on the ratio of base to acid. That is the Henderson-Hasselbalch relation, which is just this same Ka expression rearranged.

Titration. Adding strong base to a weak acid walks you through three regimes: the pure weak acid computed here, a buffer region, and finally the hydrolysis of the pure conjugate base at equivalence — where the pH is above 7, not equal to it. The acid-base titration calculator handles all three.

The conjugate base itself. A solution of sodium acetate is basic, with Kb = Kw/Ka. The weak base pH calculator takes either Kb or the conjugate Ka directly.

Upstream of all of them, the concentration you feed in has to be right. If you are preparing the solution from a solid or from a stock, work through the molarity calculator or the solution dilution calculator first. And if you want to understand Ka as one instance of a general equilibrium constant, see the equilibrium constant calculator.

Frequently asked questions

How do I find the pH of a weak acid from Ka?

Solve Ka = x2/(Cx) for x = [H+], then take −log10x. The positive root is x = (−Ka + √(Ka2 + 4KaC))/2. Concentration alone is never enough for a weak acid, because only a fraction of the molecules give up their proton and Ka is what fixes that fraction.

When can I use the sqrt(Ka x C) approximation?

When the resulting ionization is under 5%. Compute x = √(KaC), divide by C, and if the result is below 0.05 the shortcut is within about 2.5% of the exact root. The approximation always overestimates [H+], because it uses C in the denominator instead of the smaller Cx. This page shows both values in the steps so you can see the gap for your own numbers.

Why is the pH of a diluted weak acid not one unit higher?

Because dilution shifts the equilibrium as well as reducing the acid. Le Chatelier's principle pushes the dissociation further to the right when the solution is diluted, so a larger fraction ionizes and the hydrogen ion concentration falls by less than ten-fold. When CKa, pH ≈ ½(pKa − log10C), so a ten-fold dilution raises the pH by about 0.5 units. The dilution table on this page shows the effect for your acid.

What is percent ionization and what is a typical value?

Percent ionization is 100 × [A]/C: the share of the acid that has actually given up its proton. For 0.10 M acetic acid it is 1.33%; for 0.10 M hydrofluoric acid, 7.9%; for 0.10 M phenol, 0.0032%. It rises as the acid gets stronger and also as the solution gets more dilute, so quoting a percent ionization without its concentration is meaningless.

Should I enter Ka or pKa?

Whichever your source gives — they are the same information. pKa = −log10Ka, so Ka = 10−pKa. Organic chemistry tables almost always list pKa; general chemistry tables usually list Ka. Watch the rounding: pKa 4.76 corresponds to Ka = 1.74×10−5, slightly different from the commonly quoted 1.8×10−5 (pKa 4.74), which is why the two entry modes give pH values a few thousandths apart.

Does this work for polyprotic acids like H3PO4 or H2CO3?

For the first proton only. Enter Ka1 and the total acid concentration and the answer is close, because the second ionization is typically 104 to 105 times weaker and contributes little extra hydrogen ion. Sulfuric acid is the notable exception, since its first proton is strong and its second has a Ka2 near 10−2, so neither a strong-acid nor a single weak-acid treatment describes it well.

Why does my answer differ from my textbook in the third decimal?

Three likely reasons. Your book may use the √(KaC) shortcut where this page uses the exact root. It may use a slightly different tabulated Ka — 1.75×10−5 and 1.8×10−5 for acetic acid differ by 0.01 in the pH. Or it may ignore the water term, which matters below roughly 10−6 M. Differences of a few thousandths of a pH unit are below what any measurement can resolve.

Can a weak acid solution ever be basic?

No. Adding any acid to water raises [H+] above 10−7 M, so the pH is always below 7 at 25 °C, however weak or dilute the acid. What can happen is that the pH gets arbitrarily close to 7 from below: a 10−7 M solution of an acid with Ka = 1.8×10−5 comes out at pH 6.79. It is the salt of a weak acid, not the acid, that gives a basic solution.

How does temperature change the answer?

It changes Ka, and this page assumes the 25 °C value you entered. Ionisation enthalpies for carboxylic acids are small, so acetic acid's pKa moves only a few hundredths over 0–50 °C. Conjugate acids of amines behave differently and shift noticeably, which is why buffers such as Tris carry an explicit temperature coefficient on the bottle. If precision matters, look up Ka at your working temperature and enter that value.

References

  • IUPAC Compendium of Chemical Terminology (the Gold Book), acid dissociation constantInternational Union of Pure and Applied Chemistry
  • CRC Handbook of Chemistry and Physics, dissociation constants of organic and inorganic acids — CRC Press / Taylor & Francis
  • Quantitative Chemical Analysis, 10th ed. (Daniel C. Harris) — W. H. Freeman / Macmillan Learning
  • Chemical Principles: The Quest for Insight (Atkins, Jones, Laverman) — W. H. Freeman