pH Calculator
Last updated: 6 August 2026
Reviewed by Gavin Meiring, Lead research and primary author · Doctoral Candidate (Corporate Governance) · Research and drafting assisted by AI
Calculate pH, pOH, [H⁺] (hydrogen-ion concentration) and [OH⁻] (hydroxide-ion concentration) for an aqueous solution. Enter either an [H⁺] concentration, a pH value, or set up an acid dilution series. Results automatically account for water autoionisation, so very dilute strong acids give pH just below 7 rather than impossibly high pH values.
pH Calculator, pH, pOH, [H⁺], and [OH⁻] from Any Input
The pH calculator solves the four core variables of aqueous acid-base chemistry, pH, pOH, the hydrogen-ion concentration [H⁺], and the hydroxide-ion concentration [OH⁻], from any one of them, plus an optional acid-dilution series and a temperature-corrected ion product of water. It is used by chemistry students balancing acid-base reactions, lab technicians preparing buffer solutions, brewers and winemakers monitoring fermentation acidity, biologists interpreting cell-culture media, and environmental scientists measuring acid rain or stream pH. Because all four quantities are linked by fixed mathematical relationships (the ion product of water, Kw), knowing any one of them lets you compute the other three.
The calculator also handles two cases that a naive textbook formula breaks on: very dilute strong acids (where the contribution of water autoionisation cannot be ignored, for example, 10⁻⁸ M HCl has pH ≈ 7, not 8) and very concentrated strong acids and bases (where pH can be negative or greater than 14). Results automatically adjust for temperature between 0 °C and 100 °C using a tabulated Kw curve from the NIST/CRC databases.
How to Use the pH Calculator
- Choose your input mode: From [H⁺] concentration, From pH value, or Acid dilution series.
- Type the value into the appropriate field. In concentration mode you may use scientific notation (
1e-8,5.5e-3) or decimal notation (0.001). - Set the temperature in °C if you are not working at 25 °C; the calculator interpolates Kw from a tabulated NIST/CRC reference curve between 0 and 100 °C.
- Click Calculate. The result panel shows the solved pH, pOH, [H⁺], [OH⁻], pKw at the chosen temperature, the regime (acidic / neutral / alkaline), and a flag for whether water autoionisation materially affected the answer.
- Compare against standard references: pure water at 25 °C has pH 7.0, gastric acid sits around pH 1.5, household ammonia near pH 11.5, and bleach around pH 12.5.
- For a quick start, click any concentration preset (gastric acid, vinegar, coffee, pure water, baking soda, household ammonia, concentrated NaOH) to load a real-world value.
Formulae
The calculator implements three foundational relationships in aqueous chemistry:
- pH from hydrogen-ion concentration:
pH = −log₁₀([H⁺]). The inverse is[H⁺] = 10^(−pH). - pOH from hydroxide-ion concentration:
pOH = −log₁₀([OH⁻]). The inverse is[OH⁻] = 10^(−pOH). - Ion product of water:
[H⁺] · [OH⁻] = Kw, equivalentlypH + pOH = pKw, wherepKw = −log₁₀(Kw).
At 25 °C, Kw ≈ 1.0 × 10⁻¹⁴ mol²/L² so pKw ≈ 14.0 and the familiar shortcut pH + pOH = 14 holds. At other temperatures Kw varies substantially and the calculator uses tabulated values (NIST/CRC):
| Temperature (°C) | Kw (mol²/L²) | pKw | Neutral pH |
|---|---|---|---|
| 0 | ≈ 1.14 × 10⁻¹⁵ | 14.94 | 7.47 |
| 10 | ≈ 2.93 × 10⁻¹⁵ | 14.53 | 7.27 |
| 25 | ≈ 1.008 × 10⁻¹⁴ | 14.00 | 7.00 |
| 37 (body) | ≈ 2.4 × 10⁻¹⁴ | 13.62 | 6.81 |
| 50 | ≈ 5.48 × 10⁻¹⁴ | 13.26 | 6.63 |
| 100 | ≈ 5.13 × 10⁻¹³ | 12.29 | 6.14 |
For dilute strong acids (concentration below about 10⁻⁶ M), the calculator solves the quadratic [H⁺]² − c·[H⁺] − Kw = 0 using the positive root [H⁺] = (c + √(c² + 4·Kw))/2. This correctly handles water autoionisation. For strong bases the symmetric calculation is performed via [OH⁻] and the Kw relation.
Worked Examples
Example 1, 0.001 M HCl at 25 °C. This is a textbook case. pH = −log₁₀(0.001) = 3.0, pOH = 14.0 − 3.0 = 11.0, [H⁺] = 1.0 × 10⁻³ M, [OH⁻] = 1.0 × 10⁻¹¹ M. Solution is strongly acidic. Water autoionisation contributes a negligible fraction of the H⁺ at this concentration.
Example 2, 10⁻⁸ M HCl at 25 °C (water autoionisation matters). A naive application of pH = −log₁₀(c) would give pH = 8.0, which is absurd, adding any acid to water cannot make the solution more alkaline than pure water. The quadratic gives [H⁺] = (10⁻⁸ + √(10⁻¹⁶ + 4·10⁻¹⁴))/2 ≈ 9.51 × 10⁻⁸ M, so pH ≈ 6.99, and [OH⁻] = Kw / [H⁺] ≈ 1.05 × 10⁻⁷ M. The solution is essentially neutral but slightly more acidic than pure water, exactly as expected.
Example 3, 0.5 M NaOH at 25 °C. A strong base gives [OH⁻] ≈ 0.5 M, so pOH = −log₁₀(0.5) ≈ 0.301 and pH = 14.0 − 0.301 ≈ 13.70. [H⁺] = Kw / 0.5 ≈ 2.0 × 10⁻¹⁴ M. Strongly alkaline. Compare to concentrated NaOH at 5 M (pH ≈ 14.7) and 10 M (pH ≈ 15.3), these are values above the conventional pH 14 ceiling.
Example 4, pH 4.6 (typical rainwater or weak-acid beverage). Solving the other way: [H⁺] = 10⁻⁴·⁶ ≈ 2.51 × 10⁻⁵ M. [OH⁻] = 10⁻⁹·⁴ ≈ 3.98 × 10⁻¹⁰ M. pOH = 14.0 − 4.6 = 9.4. The solution is mildly acidic, the [H⁺] is roughly 400× higher than at neutral pH, but still only about 25 μM.
Example 5, Acid dilution: 1.0 M stock HCl → 0.001 M target. Dilution factor = stock / target = 1000×. The target solution's pH, computed using the strong-acid approximation (which is valid at 10⁻³ M), is pH ≈ 3.0. The calculator reports the dilution factor and the resulting pH together.
Where pH Shows Up
- Chemistry lab work. Preparing buffer solutions (acetate, phosphate, Tris), titrating acids and bases, and verifying calibration of pH meters all rely on accurate pH/pOH calculations.
- Biology and biochemistry. Enzyme activity, protein structure, and cell viability depend sensitively on pH. Cell-culture media are buffered to roughly pH 7.4; stomach acid sits around pH 1.5; blood is held near pH 7.40 by the carbonic-acid/bicarbonate buffer system.
- Environmental monitoring. Acid rain (often pH 4 to 5), ocean acidification (now about pH 8.1, down from 8.2 in pre-industrial times), agricultural soil pH (typically 5.5 to 7.5), and wastewater treatment all require pH measurement.
- Food and beverage. Wine (pH ≈ 3 to 4), beer (pH ≈ 4 to 5), cheese making, jam and pickle acidification, and brewing all use pH as a quality-control parameter.
- Pool and spa. Recommended chlorine efficacy is highest in the pH range 7.2 to 7.8; above that, chlorine activity drops rapidly, and below that, the water becomes corrosive.
- Cosmetics and pharmaceuticals. Skin pH is mildly acidic (≈ 5.5); topical products are formulated to keep pH in a non-irritating range, and oral dosage forms target pH values that maximise drug solubility or stability.
- Industrial processes. Electroplating baths, pickling of metals, dye-bath pH in textiles, paper-making, and brewing all depend on pH control.
Common Mistakes
Forgetting water autoionisation at low concentrations. A 10⁻⁸ M HCl solution has pH ≈ 7, not 8. Below about 10⁻⁶ M the strong-acid approximation breaks down and the quadratic must be used.
Confusing pH with total acid concentration. A 0.1 M acetic-acid solution is a weak acid and has pH ≈ 2.87, not 1.0. The simple pH = −log₁₀(c) only applies to strong acids that dissociate fully.
Using the wrong pKw at non-25 °C temperatures. At body temperature (37 °C), neutral pH is about 6.81, not 7. Physiological buffers must be calibrated to the working temperature.
Neglecting ionic strength and activity coefficients. In concentrated solutions (above about 0.1 M ionic strength) the activity of H⁺ differs from its concentration, and the simple log relationship becomes less accurate. The calculator reports concentrations, not activities.
Treating "pH 7 means neutral" as universal. pH 7 is neutral only at 25 °C. At other temperatures the neutral pH is ½·pKw, which shifts substantially (from about 7.47 at 0 °C down to about 6.14 at 100 °C).
Frequently Asked Questions
Why is 10⁻⁸ M HCl not pH 8? Because pure water already contains 10⁻⁷ M of H⁺ from autoionisation, adding a tiny amount of strong acid shifts the equilibrium rather than simply adding to it. Solving the quadratic [H⁺]² − c·[H⁺] − Kw = 0 with c = 10⁻⁸ and Kw = 10⁻¹⁴ gives [H⁺] ≈ 9.51 × 10⁻⁸ M, so pH ≈ 6.99. The calculator performs this quadratic automatically for low concentrations and flags when autoionisation is significant.
What is the relationship between pH and pOH? For any aqueous solution, pH + pOH = pKw, where pKw = −log₁₀(Kw). At 25 °C, Kw ≈ 1.0 × 10⁻¹⁴ so pKw ≈ 14.0. At other temperatures pKw shifts: about 14.94 at 0 °C, 13.62 at 37 °C, and 12.29 at 100 °C. Knowing any one of pH, pOH, [H⁺], or [OH⁻] lets you compute the others through pH = −log₁₀[H⁺] and [H⁺] · [OH⁻] = Kw.
How does temperature affect pH? Temperature affects pH through Kw. As temperature rises, Kw rises, for example Kw at 25 °C is about 1.0 × 10⁻¹⁴, at 37 °C about 2.4 × 10⁻¹⁴, and at 100 °C about 5.1 × 10⁻¹³. Neutral water at 37 °C has pH ≈ 6.81, and at 100 °C about 6.14. Most pH meters do not auto-correct for temperature; recalibrate at the working temperature or input a temperature-corrected buffer pH.
Can pH be negative or greater than 14? Yes, mathematically. Negative pH corresponds to [H⁺] > 1 M, which occurs with concentrated strong acids (e.g. 10 M HCl has pH ≈ −1). pH above 14 corresponds to [OH⁻] > 1 M, which occurs with concentrated strong bases (e.g. 5 M NaOH has pH ≈ 14.3, 10 M NaOH about 15). The IUPAC definition of pH places no formal limits; the conventional 0 to 14 window is just where most dilute aqueous chemistry sits.
Does the calculator work for weak acids and bases? It works for strong acids and bases (those that dissociate essentially completely). For weak acids and bases you must supply the equilibrium [H⁺] from a Ka calculation (or use the Henderson-Hasselbalch calculator for buffers), then enter that [H⁺] here to get pH, pOH, and [OH⁻]. The simple −log₁₀(c) approximation only holds when the acid or base is fully dissociated.
What is the difference between concentration and activity? Concentration is the moles of H⁺ per litre of solution; activity is the "effective" concentration that determines equilibrium behaviour. They are equal in dilute solutions (ionic strength below about 0.1 M) but diverge at higher ionic strength. The IUPAC definition of pH uses activity, so the calculator's results should be treated as concentration-derived estimates in concentrated solutions.
Why does the calculator ask for temperature? Because Kw changes substantially with temperature. At 25 °C pKw ≈ 14.0, but at body temperature (37 °C) pKw ≈ 13.6 and at 100 °C pKw ≈ 12.3. The calculator interpolates Kw from the CRC/NIST table between 0 and 100 °C so that pH, pOH, and [OH⁻] are all consistent with the temperature you specify.
How accurate are the results? Mathematically, the calculator is accurate to about 15 significant digits of floating-point precision. Real-world accuracy depends on the accuracy of the inputs: how well you know the concentration, the temperature, and the activity corrections. For most lab and educational purposes the results are accurate to 3 to 4 significant figures, more than adequate for titration, buffer prep, and similar work.
Is this calculator suitable for environmental reporting or regulatory submissions? It is an educational and lab-prep tool. For environmental compliance reporting, ocean-acidification monitoring, or any regulatory submission you should measure pH directly with a calibrated meter verified against certified reference buffers (typically NIST-traceable pH 4, 7, and 10 standards) at the working temperature. Computed pH values are not a substitute for direct measurement when reporting is required.
How is pH actually measured in a lab? With a pH meter: a glass electrode whose potential depends on the activity of H⁺ in the solution, referenced against a stable reference electrode (typically Ag/AgCl in saturated KCl). The meter is calibrated with two or three buffer solutions that bracket the expected pH range, and the slope is checked regularly. The reported pH is determined by the Nernst equation, with calibration accounting for the slight non-idealities of real electrodes.
Can I use this calculator for non-aqueous solutions? Not directly. pH as defined in water assumes the solvent's autoionisation equilibrium. In other solvents (ethanol, acetonitrile, DMSO) the "pH" scale shifts substantially and pKw can range from roughly 14 to over 30. For non-aqueous work use a method calibrated for that specific solvent.
How does ionic strength affect the result? At low ionic strength (below about 0.1 M), activity ≈ concentration and the simple log relationship holds. Above this, the activity coefficient γ falls below 1, so a[H⁺] < c[H⁺]. The Davies or Debye-Hückel equations estimate γ to convert concentration to activity, but the calculator reports concentrations as entered and does not apply these corrections.
What unit should I use for concentration? The calculator expects mol/L (M, molarity). To convert from mass concentration (e.g. g/L), divide by the molar mass of the solute. To convert from molality (mol/kg solvent), multiply by the solution's density in kg/L. For dilute aqueous solutions the difference is small (a few percent or less), but at higher concentration the density correction becomes significant.
**Q:**Can the pH Calculator, pH, pOH, [H⁺], [OH⁻] Solver be used for professional or commercial purposes?A: Yes, the pH Calculator, pH, pOH, [H⁺], [OH⁻] Solver The pH Calculator, pH, pOH, [H⁺], and [OH⁻] from Any Input provides mathematically correct results that are suitable for professional, commercial, and educational use. pH, pOH, [H⁺], [OH⁻] Solver, the pH Calculator, pH, pOH, [H⁺], [OH⁻] Solver formulas used are well-established and validated against reference standards.
**Q:**pH, pOH, [H⁺], [OH⁻] Solver, How often are the formulas behind the pH Calculator, pH, pOH, [H⁺], and [OH⁻] from Any Input updated? When standards change (e.g., new physical constants, revised tax brackets, updated standards), the pH Calculator, pH, pOH, [H⁺], and [OH⁻] from Any Input is updated to reflect the current authoritative source. pH, pOH, [H⁺], [OH⁻] Solver, pH, pOH, [H⁺], [OH⁻] Solver, Each calculator's references section, including the pH Calculator, pH, pOH, [H⁺], and [OH⁻] from Any Input, lists the specific sources used.
References
- IUPAC. Compendium of Chemical Terminology ("pH", "ion product of water"). Available from the IUPAC Gold Book.
- NIST Chemistry WebBook, recommended values of Kw at 0 to 100 °C and standard thermodynamic data for H⁺ and OH⁻.
- CRC Handbook of Chemistry and Physics, 100th Edition, Kw(T) table and activity-coefficient conventions for pH measurement.
- Atkins, P. & de Paula, J. Physical Chemistry (any recent edition), equilibrium chapter for the derivation of Kw and pH.
- Buck, R. P. et al. Measurement of pH, Definition, Standards, and Procedures, IUPAC Recommendations 2002 (Pure Appl. Chem. 74, 2169).