To calculate the pH of a solution, you take the negative base-10 logarithm of the hydrogen ion activity, which in dilute solutions is approximated by the molar concentration of H⁺: pH = −log₁₀[H⁺]. For example, a 0.01 mol/L hydrochloric acid solution has a pH of 2.00 because it fully dissociates to give [H⁺] = 0.01 mol/L.
Formula
The pH scale is defined by the equation:
pH = −log₁₀[H⁺]
where [H⁺] is the molar concentration of hydrogen ions in mol/L (also written as M). The pOH is related by pOH = 14 − pH at 25 °C in water, because the ion product of water, Kw = [H⁺][OH⁻] = 1.0 × 10⁻¹⁴ at 25 °C. In the calculator above, you enter [H⁺] in mmol/L; the expression converts it to mol/L (dividing by 1000) and then applies the logarithm.
Worked Example
Using the default value from the calculator: [H⁺] = 0.01 mmol/L.
- Convert to mol/L: 0.01 mmol/L ÷ 1000 = 0.00001 mol/L = 1.0 × 10⁻⁵ mol/L.
- Take the negative logarithm: pH = −log₁₀(1.0 × 10⁻⁵) = 5.00.
- pOH = 14 − 5.00 = 9.00.
The calculator shows pH = 5.00 and pOH = 9.00.
Assumptions
- The solution is dilute enough that activity coefficients are close to 1, so concentration ≈ activity.
- Temperature is 25 °C, where Kw = 1.0 × 10⁻¹⁴. At other temperatures, the neutral pH is not 7.00 (e.g., at 60 °C it is about 6.5).
- The hydrogen ion concentration is known (from strong acid/base dissociation, a weak acid equilibrium, or a direct measurement).
- For a weak acid or base, the [H⁺] must be calculated from its Ka or Kb; this calculator does not solve equilibria – it only converts a known [H⁺] to pH.
How pH Relates to Acidity and Basicity
The pH scale typically runs from 0 to 14 in aqueous solutions, but values below 0 (concentrated strong acids) and above 14 (concentrated strong bases) are possible. A pH of 7 is neutral at 25 °C; below 7 is acidic, above 7 is basic. Each one-unit change in pH represents a tenfold change in [H⁺]. For instance, pH 3 has ten times more H⁺ than pH 4, and a hundred times more than pH 5.
The relationship between pH and pOH is useful when you know the hydroxide concentration instead. For example, a 0.001 mol/L NaOH solution has [OH⁻] = 0.001 mol/L, so pOH = 3.00 and pH = 11.00.
How to Choose the Right Method
The way you calculate pH depends on what you know:
- Strong acid or strong base: Assume complete dissociation. For a monoprotic strong acid like HCl, [H⁺] equals the acid concentration. For a strong base like NaOH, first find [OH⁻], then pOH, then pH = 14 − pOH.
- Weak acid or weak base: Use the equilibrium expression. For a weak acid HA with concentration C and acid dissociation constant Ka, the approximation [H⁺] ≈ √(Ka·C) works when C/Ka > 100 and the acid is not too dilute. Then pH = −log[H⁺].
- Buffer solution: Use the Henderson-Hasselbalch equation: pH = pKa + log([A⁻]/[HA]). This works best when the concentrations of the weak acid and its conjugate base are within a factor of 10 of each other.
- Direct measurement: A pH meter or indicator gives the pH directly; this is the only method that accounts for real solution conditions like temperature and ionic strength.
Common Mistakes and Pitfalls
- Forgetting to convert units: If you have [H⁺] in mmol/L, you must divide by 1000 to get mol/L before taking the log. The calculator does this automatically, but doing it by hand is a common error.
- Using the wrong Kw: At 25 °C, Kw = 1.0 × 10⁻¹⁴, but at 100 °C it is about 5.1 × 10⁻¹³, so pH + pOH = 12.3, not 14.
- Ignoring significant figures: The number of decimal places in a pH value should equal the number of significant figures in the concentration. For [H⁺] = 1.0 × 10⁻⁵ (two sig figs), pH should be reported as 5.00, not 5.0 or 5.
- Assuming complete dissociation for weak acids: Acetic acid (Ka = 1.8 × 10⁻⁵) does not fully dissociate; a 0.1 mol/L solution has pH ≈ 2.87, not 1.0.
- Confusing pH with acidity strength: pH measures the concentration of H⁺, not the total amount of acid. A large volume of dilute acid can have a higher pH but more total acid than a small volume of concentrated acid.
Limits of the Simple pH Formula
The simple pH = −log[H⁺] is an approximation. In real solutions, especially at high concentrations or high ionic strength, the activity of H⁺ differs from its molar concentration. For example, concentrated hydrochloric acid (about 12 mol/L) has an activity that gives a pH below −1, even though the concentration would suggest pH ≈ −1.08. The activity coefficient depends on the ionic strength and the specific ions present. For most educational and lab-planning purposes, the concentration-based formula is adequate for solutions below about 0.1 mol/L. Always verify with a calibrated pH meter when the exact pH matters.
Frequently Asked Questions
How do I calculate pH from pOH?
At 25 °C, use pH = 14 − pOH. For example, if pOH = 4.5, then pH = 9.5. This comes from the ion product of water: [H⁺][OH⁻] = 1.0 × 10⁻¹⁴, so pH + pOH = 14 at 25 °C.
What is the pH of pure water?
At 25 °C, pure water has [H⁺] = 1.0 × 10⁻⁷ mol/L, so pH = 7.00. However, pure water exposed to air absorbs CO₂ and becomes slightly acidic (pH ≈ 5.6) because carbon dioxide forms carbonic acid. Freshly distilled water in a sealed container is close to 7.
Can pH be negative?
Yes. If [H⁺] > 1 mol/L, the negative logarithm is negative. For example, a 2 mol/L HCl solution has pH ≈ −0.30. However, at such high concentrations, activity effects become significant, so the measured pH may differ from the calculated value.
How do I find pH of a weak acid without a calculator?
Use the approximation [H⁺] ≈ √(Ka·C) when the acid is weak and not too dilute. For 0.1 mol/L acetic acid (Ka = 1.8 × 10⁻⁵), [H⁺] ≈ √(1.8 × 10⁻⁶) ≈ 1.34 × 10⁻³ mol/L, so pH ≈ 2.87. This works when C/Ka > 100 and the acid is less than 5% dissociated.
Why does temperature change pH?
Temperature affects the ion product of water (Kw). As temperature increases, Kw increases, so the neutral pH decreases (e.g., 6.5 at 60 °C). A solution that is neutral at 25 °C (pH 7) will still be neutral at 60 °C, but its pH will read about 6.5 on a meter calibrated at 25 °C. Always note the temperature when reporting pH.
Safety and Practical Notes
When preparing solutions for lab work, always follow your lab method, the safety data sheet (SDS) and your supervisor. pH calculations are for planning and study; the actual pH should be verified with a calibrated pH meter, because temperature, ionic strength, and dissolved gases can shift the value. For strong acids and bases, always add acid to water (not water to acid) to avoid splattering, and use appropriate personal protective equipment.
Related
Formula used
in mm | H+ concentration [H+] | mmol/L | 0.01 | 1e-14 | 1e7 out pH | pH | - | -log10(mm / 1000) | 2 out poh | pOH | - | 14 - (-log10(mm / 1000)) | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation with the constants and conversion factors written on the page, rounded as each result states. See method and constants, the disclaimer or report an error.
More in this section
- How to Find the Continuous Decay Rate
- Total Constant of Decay: How to Calculate It0.000121 1/s
- How to Calculate Decay Constant0.000121 1/s
- Half Life GitHub: What It Is and How to Use It
- Decay Constant: How to Calculate It0.000121 1/s
- Half-Life Games in Order: Full Release Timeline