pH Solution Calculator
Calculate the pH and pOH of strong and weak acid or base solutions using concentration, Ka, and Kb.
About
pH measures the acidity or basicity of an aqueous solution on a scale of 0 to 14, defined as pH = −log₁₀([H⁺]), where [H⁺] is the molar hydrogen-ion concentration. At pH 7 (neutral), [H⁺] = [OH⁻] = 10⁻⁷ M (pure water at 25 °C). Below 7 is acidic ([H⁺] > 10⁻⁷); above 7 is basic ([H⁺] < 10⁻⁷, [OH⁻] > 10⁻⁷). Each unit represents a tenfold change in [H⁺], so a solution at pH 4 has 1000× more H⁺ than one at pH 7.
Strong acids dissociate completely in water: HCl → H⁺ + Cl⁻ (100%), so [H⁺] equals the acid concentration. The common strong acids are HCl, HBr, HI, HNO₃, H₂SO₄ (for the first proton), and HClO₄. For 0.1 M HCl, [H⁺] = 0.1 M and pH = −log(0.1) = 1.00. Strong bases (NaOH, KOH, Ca(OH)₂, Ba(OH)₂) also dissociate completely. For 0.1 M NaOH, [OH⁻] = 0.1 M, pOH = −log(0.1) = 1, and pH = 14 − 1 = 13. For 0.05 M Ca(OH)₂, [OH⁻] = 0.10 M (two OH⁻ per formula unit), giving pH 13.
Weak acids dissociate partially according to the acid dissociation constant Ka. The equilibrium HA ⇌ H⁺ + A⁻ has Ka = [H⁺][A⁻]/[HA]. When the dissociation is small (Ka/Ca < 0.05), the approximation [H⁺] = √(Ka × Ca) holds. For 0.1 M acetic acid (Ka = 1.8 × 10⁻⁵): [H⁺] = √(1.8 × 10⁻⁵ × 0.1) = 1.34 × 10⁻³ M, so pH = 2.87. The full quadratic solution [H⁺] = (−Ka + √(Ka² + 4·Ka·Ca))/2 is needed when dissociation is large. Weak bases use [OH⁻] = √(Kb × Cb) similarly.
Ka and Kb characterize the strength of weak acids and bases. pKa = −log Ka; smaller pKa means stronger acid (HCl pKa ≈ −7, acetic acid pKa = 4.76, HCN pKa = 9.21). Strong acids have pKa < 0 (essentially complete dissociation); weak acids pKa 2-12; very weak acids pKa > 12. For conjugate acid-base pairs, Ka × Kb = Kw = 10⁻¹⁴, so pKa + pKb = 14. The Henderson-Hasselbalch equation pH = pKa + log([A⁻]/[HA]) gives the pH of a buffer solution near pKa.
Water auto-ionizes: H₂O ⇌ H⁺ + OH⁻, with Kw = [H⁺][OH⁻] = 10⁻¹⁴ at 25 °C. This gives the useful relation pH + pOH = 14. The auto-ionization is endothermic, so Kw rises with temperature: at 0 °C Kw ≈ 0.115 × 10⁻¹⁴ (neutral pH ≈ 7.47); at 50 °C Kw ≈ 5.5 × 10⁻¹⁴ (neutral pH ≈ 6.63); at 100 °C Kw ≈ 5.5 × 10⁻¹³ (neutral pH ≈ 6.13). Always quote the temperature for precise pH work. The calculator assumes 25 °C.
Common pH values for context: gastric juice 1.5 (digestion), lemon juice 2.0 (citric acid), vinegar 2.5 (acetic), coffee 5.0, pure water 7.0, blood 7.4 (tightly buffered), seawater 8.1 (carbonate buffer), baking soda 9.0, household ammonia 11, bleach 12.5, drain cleaner (NaOH) 14. The pH scale is logarithmic: each unit is a tenfold change, so vinegar (pH 2.5) has 10¹⁰ × more H⁺ than drain cleaner (pH 14).
How to Use
- 1Choose the solution typePick strong acid (HCl, HNO₃, H₂SO₄), weak acid (acetic, HF, HCOOH), strong base (NaOH, KOH, Ca(OH)₂), or weak base (NH₃, amines). The choice determines the dissociation calculation.
- 2Enter the concentration (M)Type the molar concentration of the acid or base. For polyprotic acids or polyvalent bases, the calculator uses the first dissociation (acid) or the OH⁻ count (base).
- 3Enter Ka or Kb (weak acids/bases only)For weak acids, type Ka (or leave default acetic acid 1.8e-5). For weak bases, type Kb (or leave default NH₃ 1.8e-5). Strong acids/bases ignore this field — they dissociate completely.
- 4Read the pHThe hero block shows the computed pH with its classification. The breakdown shows pOH, [H⁺], [OH⁻], and example solutions at that pH for context.
- 5Sanity check with known values0.1 M HCl should give pH 1.00 (strong acid, [H⁺] = 0.1). 0.1 M NaOH should give pH 13.00 (strong base, [OH⁻] = 0.1). Pure water has pH 7. 0.1 M acetic acid has pH ~2.87.
Formula
For each solution type:
- Strong acid: pH = −log(C)
- Weak acid: [H⁺] = √(Ka × C); pH = −log[H⁺]
- Strong base: pOH = −log(n_OH × C); pH = 14 − pOH
- Weak base: [OH⁻] = √(Kb × C); pOH = −log[OH⁻]; pH = 14 − pOH
Water auto-ionization:
K_w = [H⁺][OH⁻] = 10⁻¹⁴ → pH + pOH = 14 (at 25 °C)
pKa and pKb:
pKa = −log Ka; pKb = −log Kb; pKa + pKb = 14 (conjugate pair)
Worked Example
0.1 M HCl (strong acid).
- [H⁺] = 0.1 M (complete dissociation).
- pH = −log(0.1) = 1.00.
- [OH⁻] = 10⁻¹⁴ / 0.1 = 10⁻¹³ M; pOH = 13.
0.1 M acetic acid (Ka = 1.8 × 10⁻⁵).
- [H⁺] = √(1.8 × 10⁻⁵ × 0.1) = √(1.8 × 10⁻⁶) = 1.34 × 10⁻³ M.
- pH = −log(1.34 × 10⁻³) = 2.87.
- Only 1.34% dissociation → weak-acid approximation valid.
0.05 M Ca(OH)₂ (strong base).
- [OH⁻] = 0.05 × 2 = 0.10 M (two OH⁻ per formula unit).
- pOH = −log(0.1) = 1.00; pH = 14 − 1 = 13.00.
0.1 M NH₃ (Kb = 1.8 × 10⁻⁵).
- [OH⁻] = √(1.8 × 10⁻⁵ × 0.1) = 1.34 × 10⁻³ M.
- pOH = 2.87; pH = 14 − 2.87 = 11.13.
- Cross-check via Ka (conjugate acid NH₄⁺, Ka = 10⁻¹⁴/Kb = 5.6 × 10⁻¹⁰).
Tips
- Use scientific notation (e.g., 1.8e-5) for Ka and Kb — they are typically very small numbers.
- The weak-acid approximation [H⁺] = √(Ka × C) assumes dissociation is small. Check: dissociation fraction = [H⁺]/C. If > 5%, use the quadratic formula [H⁺] = (−Ka + √(Ka² + 4·Ka·C))/2.
- Always quote the temperature with pH — neutral pH is 7.0 at 25 °C but 6.13 at 100 °C. The calculator assumes 25 °C (Kw = 10⁻¹⁴).
- Polyprotic acids (H₂SO₄, H₂CO₃, H₃PO₄) have multiple Ka values. This calculator uses only the first dissociation; for the second, solve another equilibrium.
- For buffer solutions near pKa, use the Henderson-Hasselbalch equation: pH = pKa + log([A⁻]/[HA]). When [A⁻] = [HA], pH = pKa exactly.
- Concentrated acids (above ~1 M) have activity coefficients below 1, so the effective [H⁺] is less than the nominal concentration. pH above 0 still works as a logarithmic scale but deviations from ideal grow.
Common Mistakes
- Using concentration instead of [H⁺] for weak acids — only strong acids give [H⁺] = C; weak ones give [H⁺] = √(Ka × C).
- Forgetting the OH⁻ count for polyvalent bases — Ca(OH)₂ gives 2 OH⁻ per mole, doubling [OH⁻].
- Confusing Ka with pKa — Ka is the constant itself (e.g., 1.8e-5); pKa is its negative log (4.76). Don't plug pKa into the [H⁺] formula.
- Ignoring temperature — Kw varies by 50× between 0 and 100 °C; neutral pH shifts accordingly.
- Treating pH 7 as a hard neutral marker — at non-25 °C temperatures, neutral is different (6.13 at 100 °C).
- Using the weak-acid approximation when dissociation is large — for moderately weak acids (HF, formic) at low concentrations, the quadratic is needed.
Frequently Asked Questions
- What is pH?
- pH is a measure of the acidity or basicity of an aqueous solution, defined as pH = −log₁₀([H⁺]), where [H⁺] is the molar concentration of hydrogen ions. The scale runs from 0 (strongly acidic, like 1 M HCl) to 14 (strongly basic, like 1 M NaOH), with 7 marking neutral (pure water at 25 °C, where [H⁺] = [OH⁻] = 10⁻⁷ M). Each pH unit represents a tenfold change in [H⁺].
- How does the calculator handle strong acids and bases?
- Strong acids (HCl, HNO₃, H₂SO₄ first proton, HBr, HClO₄) dissociate completely in water, so [H⁺] equals the acid concentration. Strong bases (NaOH, KOH, Ca(OH)₂) dissociate completely, so [OH⁻] equals the base concentration times the number of hydroxide ions per formula unit (1 for NaOH, 2 for Ca(OH)₂). Then pH = −log[H⁺] (acid) or pOH = −log[OH⁻], pH = 14 − pOH (base).
- How are weak acids and bases handled?
- Weak acids dissociate partially according to the acid dissociation constant Ka. The approximation [H⁺] = √(Ka × Ca) holds when the dissociation is small (typically when Ka/Ca < 0.05). For a 0.1 M acetic acid (Ka = 1.8 × 10⁻⁵): [H⁺] = √(1.8 × 10⁻⁵ × 0.1) = 1.34 × 10⁻³ M, so pH = 2.87. For weak bases, the analogous formula is [OH⁻] = √(Kb × Cb).
- What are Ka, Kb, pKa, and pKb?
- Ka is the acid dissociation constant (HA ⇌ H⁺ + A⁻, Ka = [H⁺][A⁻]/[HA]); Kb is the base dissociation constant. Smaller Ka means weaker acid. pKa = −log Ka (so pKa 4.76 for acetic acid means Ka = 1.74 × 10⁻⁵). Kb and pKb are the analogous quantities for bases. Ka × Kb = Kw = 10⁻¹⁴ for a conjugate acid-base pair, so pKa + pKb = 14. Strong acids have pKa < 0; weak acids pKa 2-12; very weak acids pKa > 12.
- What is water auto-ionization?
- Pure water auto-ionizes slightly: H₂O ⇌ H⁺ + OH⁻, with the equilibrium constant Kw = [H⁺][OH⁻] = 10⁻¹⁴ at 25 °C. Taking negative logs: pH + pOH = 14. In neutral water, [H⁺] = [OH⁻] = 10⁻⁷ M, so pH = 7. The auto-ionization is endothermic, so Kw increases with temperature (at 100 °C, Kw ≈ 5.5 × 10⁻¹³ and neutral pH ≈ 6.13).
- What is the pH classification?
- Common labels: strongly acidic (pH 0-3, e.g., gastric juice, lemon juice), weakly acidic (pH 3-7, e.g., vinegar, coffee, rain), neutral (pH 7, pure water at 25 °C), weakly basic (pH 7-11, e.g., baking soda, seawater), strongly basic (pH 11-14, e.g., ammonia, bleach, lye). The calculator classifies the computed pH and shows the corresponding example solutions for context.
The pH scale (0-14)
pH = −log₁₀([H⁺]) measures acidity or basicity on a 0-14 scale. pH 7 is neutral (pure water at 25 °C); below 7 is acidic; above 7 is basic. Each unit is a 10-fold change in [H⁺]: pH 4 has 1000× more H⁺ than pH 7. Common values: gastric juice pH 1.5, lemon juice pH 2, vinegar pH 2.5, coffee pH 5, pure water pH 7, blood pH 7.4, seawater pH 8.1, baking soda pH 9, ammonia pH 11, bleach pH 12.5, drain cleaner pH 14.
Strong vs weak acids/bases
Strong acids dissociate completely in water: HCl → H⁺ + Cl⁻ (100%). Common strong acids are HCl, HBr, HI, HNO₃, H₂SO₄ (first proton), HClO₄. Strong bases (NaOH, KOH, Ca(OH)₂, Ba(OH)₂) also dissociate completely. Weak acids dissociate partially with a measurable Ka: acetic acid (Ka = 1.8 × 10⁻⁵), HF (Ka = 7.2 × 10⁻⁴), HCN (Ka = 6.2 × 10⁻¹⁰). Weak bases include NH₃ (Kb = 1.8 × 10⁻⁵) and amines. Weak acid/base pH depends on concentration AND Ka/Kb.
Ka, Kb and pKa, pKb
Ka is the acid dissociation constant (HA ⇌ H⁺ + A⁻, Ka = [H⁺][A⁻]/[HA]); pKa = −log Ka. Smaller Ka means weaker acid; smaller pKa means stronger acid. For acetic acid pKa = 4.76 (Ka = 1.74 × 10⁻⁵). For HCl pKa ≈ −7 (Ka ≈ 10⁷, dissociates essentially completely). Kb and pKb are analogous for bases. Ka × Kb = Kw = 10⁻¹⁴ for conjugate pairs, so pKa + pKb = 14. Strong acids have pKa < 0; weak acids 2-12; very weak > 12.
Water auto-ionization (Kw = 10⁻¹⁴)
Pure water auto-ionizes: H₂O ⇌ H⁺ + OH⁻, with Kw = [H⁺][OH⁻] = 10⁻¹⁴ at 25 °C. In neutral water, [H⁺] = [OH⁻] = 10⁻⁷ M, so pH = 7. Taking negative logs gives the useful relation pH + pOH = 14 (at 25 °C). The auto-ionization is endothermic, so Kw increases with temperature: at 0 °C, Kw ≈ 0.115 × 10⁻¹⁴ (neutral pH ≈ 7.47); at 50 °C, Kw ≈ 5.5 × 10⁻¹⁴ (neutral pH ≈ 6.63); at 100 °C, Kw ≈ 5.5 × 10⁻¹³ (neutral pH ≈ 6.13).
| Solution | Type | Conc (M) | pH | Notes |
|---|---|---|---|---|
| 1 M HCl | strong acid | 1.0 | 0.00 | Concentrated strong acid |
| 0.1 M HCl | strong acid | 0.1 | 1.00 | Common lab titrant |
| 0.01 M HCl | strong acid | 0.01 | 2.00 | Diluted acid |
| Lemon juice | weak acid (citric) | ~0.05 | ~2.0 | Citric acid pKa 3.13 |
| Vinegar | weak acid (acetic) | 0.83 | ~2.5 | 5% acetic acid |
| 0.1 M acetic acid | weak acid | 0.1 | 2.87 | Ka = 1.8 × 10⁻⁵ |
| Coffee | weak acid | — | ~5.0 | Various acids |
| Pure water (25 °C) | neutral | — | 7.00 | Kw = 10⁻¹⁴ |
| Blood (arterial) | buffered | — | 7.35-7.45 | Bicarbonate buffer |
| Seawater | weakly basic | — | ~8.1 | Carbonate buffer |
| 0.1 M NaHCO₃ | weak base | 0.1 | 8.31 | HCO₃⁻ amphiprotic |
| 0.1 M NH₃ | weak base | 0.1 | 11.13 | Kb = 1.8 × 10⁻⁵ |
| Household ammonia | weak base | ~0.5 | ~11.5 | Cleaning solution |
| 0.1 M NaOH | strong base | 0.1 | 13.00 | Common lab base |
| Bleach (NaClO) | weak base | ~0.07 | ~11.5 | Hypochlorite |
| Drain cleaner (NaOH) | strong base | ~1 | ~14 | Caustic |
Authoritative References
- pH — Wikipedia— WikipediaDefinition, calculation, and measurement of pH with examples for common solutions.
- Acid-base equilibria — Khan Academy— Khan AcademyFree lessons on Ka, Kb, weak acid/base pH, and buffer solutions.
- Acids and bases — LibreTexts Chemistry— LibreTextsFree textbook covering strong/weak acids and bases, Ka/Kb, and the pH scale.
Try our other free calculators
CalcGenius has 1,200+ free, ad-free, browser-based calculators for finance, health, math, science, and everyday life. No sign-up required.