pH & pOH Calculator

All calculations are performed locally in your browser — privacy guaranteed.

Positive concentration (≥0). Water autoionization included.
Kw = 1.00×10⁻¹⁴
? 0.1 M HCl
? 0.01 M NaOH
? 0.1 M Acetic acid (Ka=1.8e-5)
? 0.1 M Ammonia (Kb=1.8e-5)
? 1e-7 M HCl (water effect)
? 1e-6 M Acetic acid (exact cubic)
? Pure water at 25°C
? Pure water at 60°C
All calculations are performed locally in your browser — privacy guaranteed.

The Science Behind pH: Understanding Hydrogen Ion Activity

The pH scale, introduced by Søren Sørensen in 1909, quantifies the acidity or basicity of an aqueous solution: pH = -log₁₀[H⁺]. In pure water at 25°C, [H⁺] = [OH⁻] = 1.0×10⁻⁷ M, giving pH = 7.0. For strong acids (e.g., HCl, H₂SO₄) and bases (NaOH, KOH), dissociation is complete. For weak electrolytes (acetic acid, ammonia), equilibrium constants (Ka, Kb) govern [H⁺] via the expression: Ka = [H⁺][A⁻]/[HA]. This calculator rigorously solves the exact quadratic where necessary, and for very dilute strong acids (< 1×10⁻⁶ M) accounts for water's autoprotolysis, ensuring accurate results across all concentration ranges.

? Key equations

• Strong acid: [H⁺] = Cacid | pH = -log₁₀(Cacid)

• Strong base: [OH⁻] = Cbase → pOH = -log₁₀(Cbase), pH = 14 - pOH (at 25°C)

• Weak acid: [H⁺]² + Ka[H⁺] – Ka·Ca = 0 → exact quadratic solution

• Temperature effect: Kw(T) = exp(ΔG°/RT) , e.g., Kw(0°C) ≈ 1.14×10⁻¹⁵ , Kw(50°C) ≈ 5.48×10⁻¹⁴

How this pH calculator works (analytic rigor)

Our algorithm determines the exact hydrogen ion concentration by considering the type of solute, concentration, and temperature‑dependent Kw. For strong acids (monoprotic), we solve [H⁺] = Ca + [OH⁻] (mass balance + charge) which simplifies to [H⁺] = Ca when Ca >> 1e-6; otherwise we solve the cubic from water autoionization: [H⁺]² – Ca[H⁺] – Kw = 0 → exact analytical root. For weak acids, we solve the full polynomial without approximation using the quadratic formula derived from the equilibrium expression. Weak bases are treated analogously by converting to [OH⁻] via Kb, then pOH. The solver also checks if the 'x is small' approximation is valid and displays an appropriate note.

Why temperature matters: the shift in neutrality

Water autoprotolysis is endothermic: Kw increases with temperature. At 37°C (body temperature), Kw ≈ 2.5×10⁻¹⁴, making neutral pH ≈ 6.81, not 7.00. This calculator incorporates the temperature‑Kw correlation (validated by IUPAC data) to give accurate results for biological and industrial applications (e.g., swimming pools, aquariums, fermentation).

Substance / ConditionConcentration (M)pH (calc)Type / Note
Hydrochloric acid0.1001.00Strong acid, complete dissociation
Sodium hydroxide0.01012.00Strong base
Acetic acid0.1002.88Weak acid (Ka = 1.8×10⁻⁵)
Ammonia solution0.10011.13Weak base (Kb = 1.8×10⁻⁵)
Ultra-pure water at 25°C7.00Kw=1.0×10⁻¹⁴
Ultra-pure water at 60°C6.51Kw increased → neutral pH drops
Case Study: Aquaculture pH management

In fish farming, ammonia toxicity depends on pH. Un-ionized ammonia (NH₃) is far more toxic than NH₄⁺. Using our pH calculator, a farmer can input total ammonia concentration (as weak base) and pH to evaluate toxic fraction. The underlying weak base equilibrium (Kb of NH₃ ≈ 1.8×10⁻⁵) determines the [NH₃]/[NH₄⁺] ratio, guiding aeration and water exchange decisions. This tool thus helps prevent fish mortality and ensures sustainable aquaculture.

Step‑by‑step usage guide

  1. Select solute type: strong acid, strong base, weak acid, or weak base.
  2. Enter the analytical concentration (molarity). For weak acids/bases, provide Ka or Kb (the field appears). Use scientific notation if needed (e.g., 1.8e-5).
  3. Adjust temperature to match your experimental conditions.
  4. Click “Calculate pH & pOH” to get precise pH, pOH, [H⁺], [OH⁻] and a visual pH scale.
  5. Use the example buttons to quickly test typical cases or challenge extreme dilutions.

Common misconceptions clarified

  • pH of strong acid always equals -log(C): Not at extremely low concentrations (<10⁻⁶ M), where water contributes significant [H⁺]. Our calculator includes water ion contribution.
  • Ka * Kb = Kw only for conjugate pairs: True, but this relation is built-in for verifying consistency.
  • pH + pOH = 14 only at 25°C: Actually pH + pOH = pKw, and pKw changes with temperature. Our tool shows pKw derived from Kw.

From empirical rules to exact solution: weak acid quadratic

For a weak acid HA with initial concentration C and dissociation degree α, the equilibrium [H⁺] = x, then x²/(C – x) = Ka. The exact quadratic is x² + Ka·x – Ka·C = 0. The positive root x = [-Ka + sqrt(Ka² + 4KaC)]/2 is used. If x/C < 0.05, the approximation x ≈ sqrt(Ka·C) is acceptable; our calculator shows a note when approximation error is small, enhancing transparency.

FAQs about pH and pOH calculations

Concentration must be > 0 (positive). Upper limit is theoretically unbounded, but for very high concentrations (>10 M) activity coefficients deviate, and pH definition using concentration loses accuracy. In such cases, use activity-based models. Our calculator warns for concentrations > 2 M.

Currently, this version supports monoprotic weak acids and bases. For polyprotic species, the first dissociation usually dominates pH; however, we recommend using a dedicated polyprotic calculator for full rigor (planned for future release).

Neutral pH equals pKw/2. At higher temperatures, neutral pH becomes lower, and the visual marker on the pH scale reflects the current Kw-derived neutrality point. This helps understand temperature impact.

Yes, the quadratic solver works for extremely small Ka values. However for Ka < 1e-12, the acid behaves like neutral, and the calculator correctly converges to water’s intrinsic pH (pKw/2).

Authoritative foundation: This pH calculator follows IUPAC recommendations and standard chemical equilibrium principles. Algorithms validated against published tables (CRC Handbook of Chemistry and Physics, 102nd edition). Last update: June 2026.

References: IUPAC – Definition of pH scales; NIST pH standards; Harris, D.C. “Quantitative Chemical Analysis” (10th ed.).