How to Calculate the pH of Weak Acids and Bases
Use this premium calculator to estimate the pH of a weak acid or weak base from its concentration and dissociation constant. The tool uses the exact quadratic-equation approach and also shows the common square-root approximation for quick chemistry work.
Weak Acid / Weak Base pH Calculator
Choose whether you are solving for a weak acid or a weak base.
Enter the starting molar concentration, such as 0.10 M.
For a weak acid use Ka. For a weak base use Kb.
This calculator assumes aqueous solution at 25 degrees C, so pH + pOH = 14.00.
Results
Enter your values and click Calculate pH to see the equilibrium concentrations, pH, pOH, percent ionization, and a visual chart.
Expert Guide: How to Calculate the pH of Weak Acids and Bases
Calculating the pH of weak acids and weak bases is one of the most important equilibrium skills in general chemistry. Unlike strong acids and strong bases, which dissociate almost completely in water, weak acids and weak bases only ionize partially. That single difference changes the math, the assumptions, and the interpretation of the result. If you have ever wondered why a 0.10 M hydrochloric acid solution has a much lower pH than a 0.10 M acetic acid solution, the answer lies in equilibrium. Strong acids produce nearly all possible hydrogen ions, while weak acids produce only a small fraction. The same logic applies to weak bases and hydroxide ion production.
The central concept is simple: a weak acid or weak base establishes an equilibrium in water, and the position of that equilibrium is measured by a dissociation constant. For acids, the constant is Ka. For bases, it is Kb. A larger Ka means a stronger weak acid. A larger Kb means a stronger weak base. Once you know the starting concentration and the equilibrium constant, you can solve for the amount that ionizes and then convert that value to pH or pOH.
Core equations you need
Weak acid: HA ⇌ H+ + A- Ka = [H+][A-] / [HA] Weak base: B + H2O ⇌ BH+ + OH- Kb = [BH+][OH-] / [B] pH = -log10[H+] pOH = -log10[OH-] At 25 degrees C: pH + pOH = 14.00Why weak acid and weak base pH calculations are different from strong electrolyte calculations
For a strong acid like HCl, chemistry students usually assume complete dissociation. A 0.010 M HCl solution gives approximately 0.010 M hydrogen ion, so the pH is 2.00. There is no need for an equilibrium table. A weak acid such as acetic acid does not behave that way. If acetic acid starts at 0.10 M, the equilibrium hydrogen ion concentration is much smaller than 0.10 M because only a small fraction of molecules dissociate. Therefore, you must calculate the equilibrium concentration rather than simply reading the pH from the initial concentration.
This is exactly why Ka and Kb matter so much. They tell you how far the reaction proceeds. A weak acid with a Ka of 1.8 × 10-5 dissociates much less than one with a Ka of 6.8 × 10-4. In practical terms, that means the first solution has a higher pH than the second at the same starting molarity.
Step by step method for a weak acid
Suppose you have a weak acid HA with initial concentration C. Let x represent the amount that dissociates. At equilibrium:
- [H+] = x
- [A-] = x
- [HA] = C – x
Substitute into the Ka expression:
Ka = x² / (C – x)This is the classic equilibrium expression for a monoprotic weak acid. Rearranging gives a quadratic equation:
x² + Ka x – Ka C = 0The exact solution is:
x = (-Ka + √(Ka² + 4KaC)) / 2Once x is known, x equals the equilibrium hydrogen ion concentration, so:
pH = -log10(x)Step by step method for a weak base
For a weak base B with initial concentration C, let x be the amount that reacts with water to produce hydroxide ion. At equilibrium:
- [OH-] = x
- [BH+] = x
- [B] = C – x
Substitute into the Kb expression:
Kb = x² / (C – x)This has the same mathematical structure as the weak acid case:
x² + Kb x – Kb C = 0After solving for x, x equals the hydroxide ion concentration. Then calculate:
pOH = -log10(x), then pH = 14.00 – pOHThe shortcut approximation and when it works
In many textbook problems, chemists use the approximation that x is much smaller than C. If that is true, then C – x is approximately C, and the equilibrium expression simplifies to:
x ≈ √(KaC) for weak acids x ≈ √(KbC) for weak basesThis shortcut is fast and often sufficiently accurate, especially when the dissociation constant is much smaller than the initial concentration. A common classroom rule is the 5 percent test. If x/C × 100 is less than 5 percent, the approximation is usually acceptable. However, for better precision, calculators like the one above solve the quadratic equation directly.
Worked example 1: acetic acid
Consider 0.10 M acetic acid with Ka = 1.8 × 10-5. The simplified estimate is:
x ≈ √(1.8 × 10^-5 × 0.10) = √(1.8 × 10^-6) ≈ 1.34 × 10^-3 MThat gives:
pH ≈ -log10(1.34 × 10^-3) ≈ 2.87The exact quadratic result is nearly the same, confirming the approximation works well in this case. The percent ionization is about 1.34 percent, which is comfortably below the 5 percent guideline.
Worked example 2: ammonia
Now consider 0.10 M ammonia with Kb = 1.8 × 10-5. Solve for hydroxide concentration first:
x ≈ √(1.8 × 10^-5 × 0.10) ≈ 1.34 × 10^-3 MThen:
pOH ≈ -log10(1.34 × 10^-3) ≈ 2.87 pH ≈ 14.00 – 2.87 = 11.13Notice the symmetry. The same concentration and the same dissociation-constant magnitude produce mirror-image pH and pOH values under the standard 25 degrees C assumption.
Comparison table: common weak acids and bases
| Substance | Type | Typical Constant at 25 degrees C | Approximate pKa / pKb | Relative Strength Note |
|---|---|---|---|---|
| Acetic acid | Weak acid | Ka = 1.8 × 10-5 | pKa ≈ 4.76 | Common textbook example of a moderately weak acid |
| Hydrofluoric acid | Weak acid | Ka = 6.8 × 10-4 | pKa ≈ 3.17 | Stronger than acetic acid but still not a strong acid in water |
| Ammonia | Weak base | Kb = 1.8 × 10-5 | pKb ≈ 4.74 | Widely used weak-base reference in equilibrium problems |
| Methylamine | Weak base | Kb = 4.4 × 10-4 | pKb ≈ 3.36 | Stronger weak base than ammonia |
How concentration affects pH
One of the most useful insights in weak-acid and weak-base chemistry is that pH depends on both the equilibrium constant and the starting concentration. If the solution becomes more dilute, the amount dissociated often becomes a larger percentage of the total, even though the absolute concentration of H+ or OH- may decrease. This is why percent ionization often increases upon dilution for weak electrolytes.
That behavior can surprise learners because it differs from the simplistic idea that concentration alone controls pH. In weak electrolyte systems, the equilibrium responds to dilution. Le Châtelier’s principle helps explain this. When you dilute the mixture, the system shifts toward producing more ions to partially counteract the change.
Comparison table: same concentration, different equilibrium constants
| Case | Initial Concentration | Constant | Exact Ion Concentration | Approximate pH |
|---|---|---|---|---|
| Acetic acid | 0.10 M | Ka = 1.8 × 10-5 | [H+] ≈ 1.33 × 10-3 M | pH ≈ 2.88 |
| Hydrofluoric acid | 0.10 M | Ka = 6.8 × 10-4 | [H+] ≈ 7.93 × 10-3 M | pH ≈ 2.10 |
| Ammonia | 0.10 M | Kb = 1.8 × 10-5 | [OH-] ≈ 1.33 × 10-3 M | pH ≈ 11.12 |
| Methylamine | 0.10 M | Kb = 4.4 × 10-4 | [OH-] ≈ 6.42 × 10-3 M | pH ≈ 11.81 |
Common mistakes to avoid
- Using the strong acid formula for a weak acid. You cannot assume [H+] equals the initial acid concentration unless the acid is strong.
- Mixing up Ka and Kb. Acid problems use Ka directly; base problems use Kb directly. If you are given pKa or pKb, convert first.
- Forgetting to convert from pOH to pH. Weak-base problems often produce [OH-], not [H+].
- Ignoring the 5 percent rule. If the approximation gives too large a percent ionization, use the quadratic equation.
- Using the wrong temperature assumption. The relation pH + pOH = 14.00 is standard at 25 degrees C, but it changes slightly with temperature.
How this calculator works
The calculator above uses the exact quadratic formula rather than relying only on the square-root shortcut. For a weak acid, it solves x² + Ka x – KaC = 0 and assigns x to the hydrogen ion concentration. For a weak base, it solves x² + Kb x – KbC = 0 and assigns x to the hydroxide ion concentration. It then calculates pH, pOH, percent ionization, and the remaining concentration of undissociated acid or base. The chart provides a quick visual comparison between the initial concentration, the ionized amount, and the concentration still present as the weak electrolyte.
When to use ICE tables
ICE tables, meaning Initial, Change, and Equilibrium tables, are still the best organizational tool for these problems. They are especially valuable when you work with more complicated systems such as buffers, salt hydrolysis, or polyprotic species. Even though this calculator automates the arithmetic, understanding the ICE-table setup helps you know what the symbols mean and why the equations take the shape they do.
Trusted resources for deeper study
If you want to verify constants, review pH fundamentals, or extend your learning, these authoritative references are excellent starting points:
- U.S. Environmental Protection Agency: pH overview and environmental chemistry context
- NIST Chemistry WebBook: reference data and chemical information
- MIT OpenCourseWare: principles of chemical science and equilibrium concepts
Final takeaway
To calculate the pH of weak acids and bases correctly, begin with the equilibrium reaction, define the change as x, write the Ka or Kb expression, and solve for the equilibrium ion concentration. Then convert to pH or pOH as needed. The shortcut x ≈ √(KC) is useful, but the exact quadratic solution is more reliable and is what this calculator uses. Once you understand that weak acids and weak bases ionize only partially, the entire process becomes much more intuitive. With repeated practice, you will quickly recognize which equations to use, when approximations are safe, and how concentration and dissociation constants work together to determine pH.