pH Calculator
Free pH calculator — solve pH from [H+], [H+] from pH, pOH, and [OH-] with temperature-dependent Kw (CRC handbook). Worked examples.
pH Calculator
Background.
This pH calculator computes the pH of an aqueous solution from its hydrogen-ion concentration, the inverse mapping from pH back to [H+], and the corresponding pOH and hydroxide-ion concentration — with a CRC-Handbook-backed correction for the temperature dependence of the water ion product Kw, because pH is one of those quantities that is silently temperature-dependent and the textbook answer of 'neutral water is pH 7' only holds at exactly 25 °C.
The pH scale was introduced by the Danish biochemist Søren Peder Lauritz Sørensen in his 1909 paper 'Über die Messung und die Bedeutung der Wasserstoffionenkonzentration bei enzymatischen Prozessen' (Biochemische Zeitschrift 21, 131–304), originally as a pragmatic shorthand for the very small concentrations of H+ that arise in enzymatic and physiological work. Sørensen defined the quantity by pH = −log10[H+], turning a concentration that ranges over fourteen orders of magnitude (from roughly 1 mol/L in concentrated strong acid down to 10^−14 mol/L in concentrated strong base) into a single-digit number, which is why the scale is logarithmic.
The factor of ten between adjacent pH units is not a stylistic choice but a mathematical consequence of the definition: lemon juice at pH 2 is one hundred times more acidic in [H+] terms than orange juice at pH 4, and ten thousand times more acidic than tap water at pH 6. Pure water self-ionises into H+ and OH-, and at 25 °C the equilibrium constant for that reaction is Kw = [H+][OH-] = 1.0 × 10^−14, which forces [H+] = [OH-] = 10^−7 mol/L and therefore pH = 7 exactly at neutrality.
The standard '0 to 14' range that students memorise is the consequence of those bounds being where almost all dilute aqueous chemistry happens — but it is not a hard limit. Concentrated strong acids and bases can push pH outside the [0, 14] window, and at higher temperatures Kw rises significantly (pKw drops from 14.000 at 25 °C to about 13.617 at body temperature 37 °C and 13.262 at 50 °C), which means neutral water at 37 °C is not pH 7 but pH 6.81 — a small but measurable shift that matters for clinical chemistry, brewing, hot-spring geochemistry, and any thermostatted reactor.
This calculator implements all of that with a CRC-Handbook lookup of Kw between 0 °C and 60 °C, linearly interpolated between tabulated knots; outside that range it extrapolates conservatively. The four solve-for modes — pH from [H+], [H+] from pH, pOH from pH, pOH from [OH-] — cover every elementary acid-base bookkeeping question, and every result is internally consistent because the engine always computes the full quartet (pH, pOH, [H+], [OH-]) before returning.
What is ph calculator?
pH is defined as the negative base-10 logarithm of the hydrogen-ion activity in a solution, written pH = −log10(a_H+), or to a very good approximation in dilute solutions pH = −log10[H+] where [H+] is the molar concentration of hydrogen ions (more precisely the hydronium ion H3O+) in mol/L. The IUPAC operational definition (Compendium of Chemical Terminology, 'pH' entry, doi:10.1351/goldbook.P04524) ties the laboratory measurement to a chain of pH-buffer reference materials with assigned values, so 'pH' as you read it off an electrochemical meter is the operationally defined IUPAC pH, not literally −log10[H+]. For dilute aqueous work the two definitions agree to within the precision a typical meter can deliver. The companion quantity pOH = −log10[OH-] handles the basic end of the scale symmetrically. Because water self-ionises with equilibrium constant Kw = [H+][OH-], taking the negative log of both sides gives the fundamental relationship pH + pOH = pKw. At 25 °C, pKw = 14.000 exactly (NIST / IUPAC reference value), which is the origin of the familiar '0 to 14' pH scale and the rule that neutral water is pH 7. Kw is temperature-dependent — the self-ionisation reaction is endothermic, so heating water shifts the equilibrium toward more H+ and OH-, raising Kw and lowering pKw. The CRC Handbook of Chemistry and Physics (100th ed., Table 5-71) tabulates pKw from 0 °C (14.938) through 25 °C (14.000), 37 °C (13.617), 50 °C (13.262), to 60 °C (13.017). 'Neutral pH' — the pH at which [H+] = [OH-] — therefore drifts: 7.47 at 0 °C, 7.00 at 25 °C, 6.81 at body temperature 37 °C, 6.63 at 50 °C. Anything outside the [0, 14] band — concentrated 6 M HCl is around pH −0.8, and 1 M NaOH is around pH 14 — is still well-defined by the definition itself, but the simple [H+] = molarity-of-acid approximation breaks down at high concentrations because activity coefficients diverge from unity.
How to use this calculator.
- Pick a solve-for mode from the dropdown. 'pH from [H+]' is the usual lab calculation; 'pOH from [OH-]' is its base-side mirror; the two 'from pH' modes are useful when you have a meter reading and need the underlying concentrations.
- Enter the known quantity in SI units: concentrations in mol/L (molarity), not mmol/L or g/L. Convert if necessary: 1 mM = 0.001 mol/L.
- Adjust the temperature field if your solution is not at 25 °C. The calculator interpolates the CRC Handbook Kw table between 0 °C and 60 °C; outside that range it linearly extrapolates and should be treated as an estimate.
- Read the primary result (your solved-for quantity) and the three companion outputs — pH, pOH, [H+], [OH-] — which are always returned together and are internally consistent through pH + pOH = pKw.
- Check the acidity category code: 0 strong acid, 1 weak acid, 2 neutral (within ±0.05 of 7.0 at 25 °C), 3 weak base, 4 strong base. Use it to sanity-check your inputs.
- For a strong monoprotic acid (HCl, HNO3, HClO4) at concentrations above about 10^−6 mol/L, [H+] equals the acid molarity to excellent precision. For weak acids (acetic, citric, carbonic) you must first solve the equilibrium Ka expression and only then feed [H+] into this calculator.
- For very dilute solutions (below 10^−6 mol/L of strong acid), the contribution of water's own self-ionisation becomes significant and a simple −log10[acid concentration] underestimates the pH. Use the full charge-balance equation in that regime.
The formula.
The core relationships are:
pH = −log10[H+] (Sørensen definition) pOH = −log10[OH-] Kw = [H+] × [OH-] (water self-ionisation equilibrium) pKw = −log10(Kw) = pH + pOH (taking −log10 of the Kw expression) [H+] = 10^(−pH) [OH-] = 10^(−pOH) = Kw / [H+]
At 25 °C, Kw = 1.0 × 10^−14 mol²/L² exactly (the IUPAC/NIST reference value), so pKw = 14.000 and the familiar formulas pH + pOH = 14 and [H+][OH-] = 10^−14 are special cases. Outside 25 °C they are wrong by a measurable amount.
The calculator handles the temperature dependence by linearly interpolating between CRC Handbook (100th ed., Table 5-71) tabulated knots:
T (°C) | pKw -------|------- 0 | 14.938 10 | 14.535 15 | 14.346 20 | 14.167 25 | 14.000 30 | 13.833 37 | 13.617 40 | 13.535 50 | 13.262 60 | 13.017
For temperatures between two knots the engine uses straight linear interpolation; below 0 °C or above 60 °C it linearly extrapolates from the nearest interval, which is a deliberately conservative choice (the true Kw(T) curve is slightly nonlinear, captured better by the Marshall-Franck or Bandura-Lvov correlations, but the linear knot interpolation is accurate to better than 0.01 pH units across the tabulated range).
Four solve-for modes are dispatched on the 'solveFor' input:
• 'ph' — given [H+], compute pH = −log10[H+]. • 'hydrogenIonMolarity'— given pH, compute [H+] = 10^(−pH). • 'pohFromPh' — given pH, compute pOH = pKw(T) − pH. • 'pohFromMolarity' — given [OH-], compute pOH = −log10[OH-], then pH = pKw(T) − pOH.
In all four modes the engine returns the full quartet (pH, pOH, [H+], [OH-]) — every result is computed from a single self-consistent pH value, so pH + pOH always equals pKw at the requested temperature to floating-point precision. The engine refuses non-physical inputs: [H+] ≤ 0 and [OH-] ≤ 0 raise InvalidInputError (log of zero is −∞, log of a negative number is undefined), and pH outside [−2, 16] is rejected as outside any realistic aqueous range.
A worked example.
Classic textbook problem: what is the pH of a 0.001 mol/L (1 mM) solution of HCl at 25 °C? HCl is a strong monoprotic acid — it dissociates essentially completely, so [H+] equals the acid molarity, 0.001 mol/L. Applying the Sørensen definition: pH = −log10(0.001) = −log10(10^−3) = 3.000 exactly. The calculator returns pH = 3, pOH = pKw − pH = 14.000 − 3.000 = 11.000, [H+] = 10^−3 = 0.001 mol/L (the input echoed back, as expected), and [OH-] = 10^−11 = 1.0 × 10^−11 mol/L. The acidity category is 1 (weak acid by the calculator's pH-band classification — note that 'weak acid' here is a label for the pH range 3 ≤ pH ≤ 6.95 in the displayed output, not a statement about HCl itself, which is by any chemistry definition a strong acid; the dilute solution simply produces a moderate, not extreme, pH). Two sanity checks. (1) Multiply [H+] × [OH-] = 10^−3 × 10^−11 = 10^−14 = Kw at 25 °C. (2) Confirm against the rule of thumb that −log10 of a power of ten is just the magnitude of the exponent: −log10(10^−3) = 3. Now change temperature to 37 °C (body temperature) with the same 0.001 M HCl: pH is still 3.000 (the definition uses only [H+]), but pOH = pKw(37 °C) − pH = 13.617 − 3.000 = 10.617, and [OH-] = 10^−10.617 ≈ 2.42 × 10^−11 mol/L — slightly higher than at 25 °C because Kw is larger. The acid solution is still as acidic in absolute [H+] terms, but the corresponding [OH-] companion shifts with temperature.
Frequently asked questions.
What is the formula for pH?
Why does pH range from 0 to 14?
Why is the pH scale logarithmic?
How does temperature affect pH?
What is the difference between a strong and weak acid in terms of pH?
Why does my pH meter sometimes read above 14 or below 0?
How is pH measured in the lab?
What is the relationship between [H+] and pH numerically?
What is the difference between pH and pOH?
Can pH be negative or greater than 14?
References& sources.
- [1]Sørensen, S. P. L. (1909). Über die Messung und die Bedeutung der Wasserstoffionenkonzentration bei enzymatischen Prozessen. Biochemische Zeitschrift, 21, 131–304. Original introduction of the pH notation and the pH = −log10[H+] definition.
- [2]IUPAC Compendium of Chemical Terminology (Gold Book), 2nd ed. — entry 'pH' (doi:10.1351/goldbook.P04524). International Union of Pure and Applied Chemistry. The operational definition of pH used by all modern pH-meter calibration standards.
- [3]Atkins, P. W. & de Paula, J. (2010). Physical Chemistry, 9th ed., §7B 'The response of equilibria to temperature' and §9C 'Acid–base equilibria'. Oxford University Press. ISBN 978-1-4292-1812-0. Derivation of Kw(T), the pH + pOH = pKw identity, and worked treatments of strong and weak acid pH.
- [4]Lide, D. R. (ed.) (2019). CRC Handbook of Chemistry and Physics, 100th ed., Table 5-71 'Ionization Constant of Water' — tabulated pKw values from 0 °C to 60 °C. CRC Press / Taylor & Francis. ISBN 978-1-138-36729-6. Source of the temperature-knot table used for Kw(T) interpolation in this calculator.
- [5]Bates, R. G. (1973). Determination of pH: Theory and Practice, 2nd ed. John Wiley & Sons. The standard reference on operational pH measurement, electrode calibration, and the link between activity-based and concentration-based pH definitions.
- [6]Bandura, A. V. & Lvov, S. N. (2006). The Ionization Constant of Water over Wide Ranges of Temperature and Density. Journal of Physical and Chemical Reference Data, 35(1), 15–30. Peer-reviewed NIST-affiliated reference for Kw(T) at higher temperatures and pressures than the CRC table covers.
- [7]Buck, R. P., Rondinini, S., Covington, A. K., Baucke, F. G. K., Brett, C. M. A., Camões, M. F., Milton, M. J. T., Mussini, T., Naumann, R., Pratt, K. W., Spitzer, P. & Wilson, G. S. (2002). Measurement of pH. Definition, standards, and procedures (IUPAC Recommendations 2002). Pure and Applied Chemistry, 74(11), 2169–2200. The current authoritative IUPAC recommendations on pH measurement that supersede the original Sørensen definition for laboratory practice.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled