molecalculator

Moles & Molar Mass

Calculating pH of a Solution: A Step-by-Step Guide

Calculator No. 01-6895 · Updated · Formula and assumptions shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

For study and lab planning. The result follows from the numbers you enter and the formula shown. Check it against your method before you weigh, mix or dilute anything, follow the safety data sheet and your supervisor, and do not use it for clinical, dosing or medication work.

To calculate the pH of a solution, you take the negative base-10 logarithm of the hydronium ion concentration (in mol/L): pH = -log₁₀[H₃O⁺]. You enter the concentration of hydrogen or hydroxide ions, and the calculator returns the pH (or pOH) on the 0–14 scale.

Formula

The defining equation for pH is:

pH = -log₁₀[H₃O⁺]

where [H₃O⁺] is the molar concentration of hydronium ions in mol/L (also written as [H⁺] for simplicity). The pOH is defined similarly: pOH = -log₁₀[OH⁻]. At 25 °C, pure water has [H₃O⁺] = 1.0 × 10⁻⁷ mol/L, giving pH = 7.0. The ion product of water, Kw = [H₃O⁺][OH⁻] = 1.0 × 10⁻¹⁴ at 25 °C, links the two scales: pH + pOH = 14.

Worked Example

Using the calculator defaults: [H₃O⁺] = 0.0001 mol/L (which is 1.0 × 10⁻⁴ mol/L).

  1. Take the base-10 logarithm: log₁₀(0.0001) = log₁₀(1.0 × 10⁻⁴) = -4.000
  2. Apply the negative sign: pH = -(-4.000) = 4.00
  3. Find pOH: pOH = 14.00 – 4.00 = 10.00
  4. Find [OH⁻]: [OH⁻] = 1.0 × 10⁻¹⁴ / 1.0 × 10⁻⁴ = 1.0 × 10⁻¹⁰ mol/L

The calculator returns pH = 4.00, pOH = 10.00, and [OH⁻] = 1.0 × 10⁻¹⁰ mol/L.

Assumptions

  • Temperature is 25 °C (pH + pOH = 14 only at this temperature; at 60 °C, Kw ≈ 9.6 × 10⁻¹⁴, so the neutral pH is about 6.5).
  • The solution is dilute enough that activity coefficients are near 1 (concentrations below ~0.1 mol/L).
  • For strong acids or bases, complete dissociation is assumed; for weak acids/bases, the given [H₃O⁺] or [OH⁻] already accounts for equilibrium.
  • No other acid-base reactions are occurring (e.g., no buffers or amphiprotic species).

How to Determine [H₃O⁺] for Different Solutions

The pH formula is simple once you know the hydronium ion concentration. How you get that concentration depends on the type of solution:

  • Strong acid (e.g., HCl, HNO₃, H₂SO₄ first proton): For a monoprotic strong acid, [H₃O⁺] equals the acid’s molarity. A 0.01 mol/L HCl solution has [H₃O⁺] = 0.01 mol/L, so pH = 2.00.
  • Strong base (e.g., NaOH, KOH): First find [OH⁻] from the base concentration, then use Kw to get [H₃O⁺] = 1.0 × 10⁻¹⁴ / [OH⁻]. For 0.01 mol/L NaOH, [OH⁻] = 0.01 mol/L, [H₃O⁺] = 1.0 × 10⁻¹² mol/L, pH = 12.00.
  • Weak acid (e.g., acetic acid): Use the acid dissociation constant Ka and the ICE table. For a 0.10 mol/L acetic acid (Ka = 1.8 × 10⁻⁵), [H₃O⁺] ≈ √(Ka × C) = √(1.8 × 10⁻⁶) ≈ 1.34 × 10⁻³ mol/L, so pH ≈ 2.87.
  • Weak base (e.g., ammonia): Use Kb to find [OH⁻], then convert to pH via pOH.
  • Buffer solution: Use the Henderson-Hasselbalch equation, pH = pKa + log([A⁻]/[HA]).

Using the Calculator: What to Enter

Enter the hydronium ion concentration in mol/L. The calculator accepts values from 1 × 10⁻¹⁴ to 1 mol/L. For concentrations outside this range (e.g., > 1 mol/L), the pH can be negative or above 14, but the simple formula still applies. For example, 2 mol/L HCl has pH = -log₁₀(2) ≈ -0.30.

If you only know the hydroxide concentration, first convert using Kw: [H₃O⁺] = 1.0 × 10⁻¹⁴ / [OH⁻]. Then enter that value. The calculator also shows pOH and [OH⁻] for convenience.

Common Mistakes and Misconceptions

  • Forgetting the negative sign: pH is -log, not log. A common error is reporting pH = 4 when it should be -4.
  • Mixing up [H⁺] and [OH⁻]: If you enter [OH⁻] directly, you get the pOH, not the pH. Always convert.
  • Ignoring temperature: pH = 7 is neutral only at 25 °C. At body temperature (37 °C), neutral pH is about 6.8.
  • Using molarity when you have molality or mass percent: Convert to mol/L first. For example, 1 g of HCl (molar mass 36.46 g/mol) in 1 L gives 0.0274 mol/L, pH ≈ 1.56.
  • Assuming complete dissociation for weak acids: Acetic acid does not fully dissociate; using the acid concentration as [H⁺] gives a pH that is too low.

Limits of the Simple pH Formula

The equation pH = -log[H₃O⁺] is an approximation. In concentrated solutions (above ~0.1 mol/L), ion interactions become significant, and the activity (effective concentration) of H⁺ is lower than the actual concentration. This is why a 1 mol/L strong acid has a measured pH of about 0, not exactly 0.00. For very dilute solutions (below ~10⁻⁶ mol/L), the contribution of water’s autoionization (1.0 × 10⁻⁷ mol/L) cannot be ignored; a 1.0 × 10⁻⁸ mol/L HCl solution does not have pH = 8, but rather pH ≈ 6.98 because the water supplies additional H⁺.

For these reasons, the calculator is most accurate for concentrations between 10⁻⁶ and 0.1 mol/L at 25 °C. In the lab, always verify pH with a calibrated meter, especially for buffers or non-aqueous solutions.

Frequently Asked Questions

What is the pH of pure water?

At 25 °C, pure water has [H₃O⁺] = 1.0 × 10⁻⁷ mol/L, so pH = 7.00. This is the neutral point. At higher temperatures, Kw increases, so the neutral pH is lower (e.g., 6.5 at 60 °C).

How do I calculate pH from pOH?

Use pH + pOH = 14 at 25 °C. If pOH = 5, then pH = 14 – 5 = 9. This works because Kw = 1.0 × 10⁻¹⁴.

Can pH be negative or greater than 14?

Yes. A 2 mol/L HCl solution has pH ≈ -0.30, and a 2 mol/L NaOH solution has pH ≈ 14.3. The 0–14 scale is just a convenient range for most lab solutions; pH is defined mathematically without bounds.

Why does my pH meter read differently from my calculation?

Meters measure activity, not concentration, and are calibrated with buffers of known pH. Temperature, ionic strength, and junction potentials can shift readings. For precise work, calibrate the meter at the sample temperature and use a buffer close to the expected pH.

How do I find pH of a weak acid without a calculator?

For a weak acid with concentration C and dissociation constant Ka, approximate [H⁺] ≈ √(Ka × C) when C >> Ka. Then pH = -log₁₀(√(Ka × C)). For example, 0.1 M acetic acid (Ka = 1.8 × 10⁻⁵) gives pH ≈ 2.87. This approximation fails for very dilute acids or very weak acids.

What is the difference between pH and pOH?

pH measures acidity (hydronium ion concentration), while pOH measures basicity (hydroxide ion concentration). They are inversely related: as pH rises, pOH falls, and their sum is 14 at 25 °C.

Safety and Accuracy Notes

When working with acids and bases in the lab, always wear appropriate personal protective equipment (goggles, gloves, lab coat) and follow your institution’s safety protocols. For buffer preparation, the calculated pH is a starting point; always verify with a calibrated pH meter, as temperature and ionic strength can shift the actual pH. This calculator is for educational and planning purposes only, not for clinical or medical use.

Related

Formula used
in cH | [H₃O⁺] concentration | mol/L | 0.0001 | 1e-14 | 1
out pH | pH | - | -log10(cH) | 2
out pOH | pOH | - | 14 - (-log10(cH)) | 2
out cOH | [OH⁻] concentration | mol/L | 1e-14 / cH | 3

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

The whole Moles & Molar Mass section →