Weak Acid and Weak Base pH Calculator
Calculate pH, pOH, equilibrium ion concentration, and percent ionization for weak acids and weak bases using equilibrium chemistry. Enter the initial concentration and Ka or Kb value to get a fast, accurate result with a visual chart.
Enter a weak acid or weak base concentration and dissociation constant, then click Calculate pH.
Expert Guide to Calculating pH of Weak Acids and Weak Bases
Calculating the pH of weak acids and weak bases is one of the most important skills in introductory chemistry, analytical chemistry, environmental science, and biochemistry. Unlike strong acids and strong bases, weak electrolytes do not dissociate completely in water. That single idea changes everything: instead of simple stoichiometry, you must use equilibrium relationships. Once you understand how the dissociation constant connects initial concentration to equilibrium ion concentration, weak acid and weak base calculations become systematic and reliable.
A weak acid, written generally as HA, partially dissociates in water to produce H+ and A–. A weak base, written as B, partially reacts with water to form BH+ and OH–. The extent of this dissociation is measured by Ka for acids and Kb for bases. A larger Ka means the acid is stronger within the weak acid category. A larger Kb means the base is stronger within the weak base category. The pH of the solution is determined by how much H+ or OH– forms at equilibrium, not by the initial concentration alone.
Key idea: For a weak acid, solve for the equilibrium concentration of H+. For a weak base, solve for the equilibrium concentration of OH–, then convert to pOH and finally to pH using pH + pOH = 14.00 at 25 C.
Why weak acid and weak base calculations are different from strong electrolyte calculations
If you dissolve 0.10 M HCl in water, you usually treat the acid as fully dissociated, so [H+] is approximately 0.10 M. That gives a pH of 1.00. But if you dissolve 0.10 M acetic acid, only a small fraction dissociates because acetic acid is weak. Its Ka at 25 C is about 1.8 × 10-5, so the equilibrium [H+] is much smaller than 0.10 M. The resulting pH is around 2.88, not 1.00.
The same logic applies to weak bases. A 0.10 M NaOH solution gives [OH–] close to 0.10 M because it is a strong base. A 0.10 M ammonia solution does not. Ammonia has a Kb near 1.8 × 10-5, so it produces far less OH– at equilibrium. That means the pH is basic, but not nearly as high as a strong base of the same concentration.
The core equations you need
For a weak acid
For the equilibrium
HA ⇌ H+ + A–
the acid dissociation constant is:
Ka = [H+][A–] / [HA]
If the initial concentration of HA is C and the amount that dissociates is x, then at equilibrium:
- [HA] = C – x
- [H+] = x
- [A–] = x
Substitute these into the Ka expression:
Ka = x² / (C – x)
For a weak base
For the equilibrium
B + H2O ⇌ BH+ + OH–
the base dissociation constant is:
Kb = [BH+][OH–] / [B]
If the initial concentration of B is C and the amount that reacts is x, then:
- [B] = C – x
- [BH+] = x
- [OH–] = x
So:
Kb = x² / (C – x)
Notice that weak acid and weak base calculations have the same algebraic form. The only difference is whether x equals [H+] or [OH–].
How to calculate pH step by step
- Identify whether the solute is a weak acid or weak base.
- Write the equilibrium expression using Ka or Kb.
- Set up an ICE table: Initial, Change, Equilibrium.
- Let x represent the amount that ionizes.
- Solve the equation x² / (C – x) = K.
- If weak acid, pH = -log[H+] = -log(x).
- If weak base, pOH = -log[OH–] = -log(x), then pH = 14.00 – pOH.
- Optionally calculate percent ionization: (x / C) × 100.
Approximation versus exact quadratic solution
Many textbooks teach the weak acid approximation that if x is very small compared with C, then C – x is close to C. This gives a simplified equation:
x ≈ √(K × C)
This shortcut is fast and often very accurate when the dissociation is small. A common classroom rule is the 5% test. If x/C × 100 is less than 5%, the approximation is typically acceptable. However, exact calculators often solve the quadratic directly:
x² + Kx – KC = 0
Using the quadratic formula gives:
x = (-K + √(K² + 4KC)) / 2
This calculator uses the exact quadratic solution, which avoids approximation errors at lower concentrations or when Ka or Kb is relatively large.
Worked example: acetic acid
Suppose you have 0.100 M acetic acid, CH3COOH, with Ka = 1.8 × 10-5. For a weak acid, solve:
Ka = x² / (0.100 – x)
The exact solution gives x ≈ 0.001332 M. Since x is [H+],
pH = -log(0.001332) ≈ 2.88
Percent ionization is:
(0.001332 / 0.100) × 100 ≈ 1.33%
This shows an important pattern: even though the solution contains 0.100 M acid, only a small percentage ionizes because acetic acid is weak.
Worked example: ammonia
Now consider 0.100 M ammonia, NH3, with Kb = 1.8 × 10-5. For a weak base:
Kb = x² / (0.100 – x)
The exact solution again gives x ≈ 0.001332 M, but this time x is [OH–].
pOH = -log(0.001332) ≈ 2.88
pH = 14.00 – 2.88 = 11.12
Percent ionization is also about 1.33% under these conditions.
Comparison table: common weak acids and bases at 25 C
| Compound | Type | Typical dissociation constant | pKa or pKb | Notes |
|---|---|---|---|---|
| Acetic acid | Weak acid | Ka ≈ 1.8 × 10-5 | pKa ≈ 4.76 | Common reference weak acid in general chemistry |
| Hydrofluoric acid | Weak acid | Ka ≈ 6.8 × 10-4 | pKa ≈ 3.17 | Weak acid, but significantly stronger than acetic acid |
| Formic acid | Weak acid | Ka ≈ 1.8 × 10-4 | pKa ≈ 3.75 | More ionized than acetic acid at the same concentration |
| Ammonia | Weak base | Kb ≈ 1.8 × 10-5 | pKb ≈ 4.75 | Classic weak base example |
| Methylamine | Weak base | Kb ≈ 4.4 × 10-4 | pKb ≈ 3.36 | Stronger weak base than ammonia |
What the numbers mean in practice
The dissociation constant directly controls pH because it determines how far equilibrium lies toward the products. If two weak acids are prepared at the same initial concentration, the one with the higher Ka produces a lower pH. If two weak bases are prepared at the same concentration, the one with the higher Kb produces a higher pH.
Concentration matters too. For a weak acid, lowering concentration generally increases the fraction ionized, even though the absolute [H+] may decrease. This can surprise students. The reason is Le Chatelier style equilibrium behavior: more dilute solutions favor dissociation proportionally. As a result, percent ionization often increases as the initial concentration decreases.
Data table: estimated pH values for acetic acid and ammonia solutions
| Compound | Initial concentration (M) | Ka or Kb | Estimated pH | Approximate percent ionization |
|---|---|---|---|---|
| Acetic acid | 0.100 | Ka = 1.8 × 10-5 | 2.88 | 1.33% |
| Acetic acid | 0.010 | Ka = 1.8 × 10-5 | 3.38 | 4.15% |
| Ammonia | 0.100 | Kb = 1.8 × 10-5 | 11.12 | 1.33% |
| Ammonia | 0.010 | Kb = 1.8 × 10-5 | 10.63 | 4.15% |
Common mistakes to avoid
- Using the strong acid formula for a weak acid. A weak acid does not fully dissociate, so [H+] is not equal to the initial concentration.
- Confusing Ka and Kb. If the substance is a base, solve for [OH–] first.
- Skipping the pOH step for weak bases. You usually calculate pOH directly from [OH–] and then convert to pH.
- Applying the approximation without checking. At low concentration or larger K values, the exact quadratic is safer.
- Forgetting temperature assumptions. The relation pH + pOH = 14.00 is specific to 25 C.
When to use percent ionization
Percent ionization is a powerful interpretation tool because it tells you how much of the original acid or base has reacted. It is especially useful when comparing solutions of the same compound at different concentrations, or when deciding whether the square root approximation is valid. Low percent ionization usually means the approximation is good. A larger percentage means the exact solution is more appropriate.
How this calculator works
This page uses the equilibrium expression for weak acids and weak bases and solves the quadratic form exactly. It then calculates pH, pOH, equilibrium ion concentration, and percent ionization. The chart helps visualize how the solution partitions into hydrogen ion or hydroxide ion behavior, remaining un-ionized fraction, and logarithmic pH or pOH values. That makes it easier to interpret what the numbers mean rather than just reading a single pH value.
Authoritative chemistry references
- University level chemistry explanations hosted by academic institutions
- U.S. Environmental Protection Agency resources on pH and water chemistry
- National Institute of Standards and Technology reference materials and measurement guidance
Final takeaway
To calculate pH of weak acids and weak bases correctly, always think in terms of equilibrium. Start with concentration, use Ka or Kb, solve for the small amount that ionizes, and then convert that equilibrium concentration into pH or pOH. With practice, you will recognize patterns immediately: higher Ka means lower pH for a weak acid, higher Kb means higher pH for a weak base, and lower concentration usually means higher percent ionization. Once you master these relationships, you can solve a wide range of acid-base equilibrium problems with confidence.