pH Calculator

Calculate pH, pOH, [H+], and [OH] for strong acids, weak acids, strong bases, weak bases, and buffers using the Henderson-Hasselbalch equation.

Input
Common Weak Acids (click to load):
Acetic acid (CH₃COOH, Ka=1.8×10⁻⁵) Formic acid (HCOOH, Ka=1.8×10⁻⁴) Hydrofluoric acid (HF, Ka=6.8×10⁻⁴) Hypochlorous acid (HOCl, Ka=3.5×10⁻⁸) Benzoic acid (C₆H₅COOH, Ka=6.3×10⁻⁵)
Common Weak Bases (click to load):
Ammonia (NH₃, Kb=1.8×10⁻⁵) Methylamine (CH₃NH₂, Kb=4.4×10⁻⁴) Pyridine (C₅H₅N, Kb=1.7×10⁻⁹) Aniline (C₆H₅NH₂, Kb=7.4×10⁻¹⁰)
pH = -log[H+]  |  pOH = -log[OH]  |  pH + pOH = 14
Result
What Is pH?

pH is a measure of the acidity or basicity of a solution, defined as pH = -log[H+]. The pH scale ranges from 0 (very acidic) to 14 (very basic), with 7 being neutral at 25°C.

Key Relationships
  • pH + pOH = 14 (at 25°C)
  • [H+][OH] = 1.0 × 10−14 (Kw, water ionization constant)
  • pH = -log[H+]
  • pOH = -log[OH]
  • pKa = -log(Ka)
Strong vs. Weak Acids/Bases
  • Strong acids (HCl, HNO₃, H₂SO₄) completely dissociate: pH ≈ -log[HA]
  • Weak acids partially dissociate: pH = ½(pKa - log[HA])
  • Strong bases (NaOH, KOH) completely dissociate: pOH ≈ -log[Base]
  • Weak bases partially dissociate: pOH = ½(pKb - log[B])
Worked Examples

1) Strong Acid: 0.01 M HCl

HCl completely dissociates → [H+] = 0.01 M

pH = -log(0.01) = 2.0

2) Weak Acid: 0.1 M Acetic Acid (Ka = 1.8×10−5)

Using approximation: [H+] ≈ √(Ka × C) = √(1.8×10−5 × 0.1) = 1.34×10−3 M

pH = -log(1.34×10−3) = 2.87

3) Buffer: 0.1 M CH₃COOH + 0.1 M CH₃COO (pKa = 4.76)

Henderson-Hasselbalch: pH = 4.76 + log(0.1/0.1) = 4.76 + 0 = 4.76

When [acid] = [base], pH = pKa

pH Scale Reference
pH RangeClassificationExamples
0-3Strongly acidicStomach acid (1-2), Lemon juice (2)
3-6Weakly acidicCoffee (5), Rainwater (5.5)
6-8NeutralPure water (7), Blood (7.4)
8-11Weakly basicBaking soda (9), Milk of magnesia (10)
11-14Strongly basicAmmonia (11), Bleach (13)

Support This Free Tool

Every coffee helps keep the servers running. Every book sale funds the next tool I'm dreaming up. You're not just supporting a site — you're helping me build what developers actually need.

500K+ users
200+ tools
100% private
Privacy Guarantee: Private keys you enter or generate are never stored on our servers. All tools are served over HTTPS.