Saved

Press the star next to a tool's name to save it.

All my tools

pH Calculator

Choose what you know: a strong or weak acid or base, an ion concentration, or the pH itself. The pH calculator works out pH, pOH, [H⁺] and [OH⁻] at 25 °C, solving weak acids exactly rather than with the shortcut.

Restored your last values ·

M

Assumes the acid or base fully dissociates.

Concentrations are in mol/L (M). Scientific notation like 1e-5 works. Results are for water at 25 °C.

The pH calculator finds how acidic or basic a solution is. Choose what you know, the concentration of a strong acid such as hydrochloric acid, a strong base such as sodium hydroxide, a weak acid or base with its Ka or Kb, an H⁺ or OH⁻ concentration, or the pH itself, and you get pH, pOH and both ion concentrations. For example, 0.01 M hydrochloric acid has a pH of 2, and 0.1 M acetic acid, with Ka = 1.8 × 10⁻⁵, has a pH of about 2.88.

How to use the pH calculator

  1. Choose what you know from the list.
  2. Enter the concentration in moles per liter (M), such as 0.01 or 1e-3.
  3. For weak acids and bases, enter Ka (or Kb) or pKa (or pKb).
  4. For strong acids and bases, choose how many H⁺ or OH⁻ ions each unit releases, such as 2 for sulfuric acid or calcium hydroxide.
  5. Read the results: pH, pOH, [H⁺], [OH⁻] and whether the solution is acidic, neutral or basic.

The pH formulas

  • pH = −log₁₀[H⁺], where [H⁺] is the hydrogen ion concentration in mol/L.
  • pOH = −log₁₀[OH⁻].
  • pH + pOH = 14 at 25 °C, because water’s ion product Kw = [H⁺][OH⁻] = 1.0 × 10⁻¹⁴.
  • [H⁺] = 10⁻ᵖᴴ, to go from pH back to concentration.

Because pH is a logarithm, each step of 1 is a tenfold change: pH 3 is ten times more acidic than pH 4, and a hundred times more acidic than pH 5.

Worked examples

SolutionWorkingpH
0.01 M HCl[H⁺] = 0.01 → −log(0.01)2.00
0.005 M H₂SO₄ (2 H⁺)[H⁺] = 0.012.00
0.001 M NaOHpOH = 3 → 14 − 311.00
0.1 M acetic acid, Ka 1.8 × 10⁻⁵Solve x² + Ka·x − Ka·C = 02.88
0.1 M ammonia, Kb 1.8 × 10⁻⁵pOH 2.88 → 14 − 2.8811.12

Strong and weak acids

Strong acids, such as hydrochloric, nitric and sulfuric acid, split almost completely into ions in water, so [H⁺] equals the acid concentration (times the number of H⁺ each releases). Weak acids, such as acetic acid in vinegar or citric acid, only partly ionize, so you need their acid dissociation constant, Ka. The calculator solves the equilibrium exactly with the quadratic formula. Many textbooks use the shortcut [H⁺] ≈ √(Ka × C), which gives pH 2.87 for 0.1 M acetic acid instead of 2.88; the shortcut works well only when less than about 5% of the acid ionizes. The results also show the share ionized, so you can see how good the shortcut would be.

The pH scale

pHExample
0–1Battery acid
2Lemon juice, stomach acid
3Vinegar, soda
5–6Black coffee, rain
7Pure water
7.4Blood
8–9Seawater, baking soda solution
11Household ammonia
13–14Bleach, drain cleaner

Temperature matters

The rule pH + pOH = 14 holds at 25 °C. Water ionizes more as it warms, so at body temperature (37 °C) neutral water has a pH of about 6.8, and at 100 °C about 6.1, even though it’s still neutral. This calculator uses the standard 25 °C value, as most chemistry problems do.

Tips for chemistry homework

  • Keep as many significant figures in pH decimal places as the concentration has significant figures.
  • For polyprotic acids, the calculator treats every H⁺ as fully released, which is only accurate for the first H⁺ of strong acids like sulfuric acid in dilute solutions.
  • Check that your answer makes sense: acids below 7, bases above 7.

Going from pH to concentration

Choose pH (find concentrations) to work backward. Enter a pH and the calculator gives [H⁺] = 10⁻ᵖᴴ, the pOH and [OH⁻]. For example, pH 4.5 means [H⁺] = 10⁻⁴·⁵ ≈ 3.16 × 10⁻⁵ M, and pOH = 9.5. This is handy for lab work, where you measure pH with a meter and need the ion concentration for a calculation.

Weak bases and Kb

Weak bases, such as ammonia, take an H⁺ from water and leave OH⁻ behind. They work just like weak acids, but with the base dissociation constant Kb, and the equilibrium gives [OH⁻] instead of [H⁺]. The calculator solves for [OH⁻] exactly, finds pOH, then subtracts from 14. For a conjugate pair, Ka × Kb = Kw, so pKa + pKb = 14; if you only know the pKa of ammonium (9.25), the pKb of ammonia is 4.75.

Common Ka values at 25 °C

SubstanceKa or KbpKa or pKb
Acetic acid1.8 × 10⁻⁵4.74
Formic acid1.8 × 10⁻⁴3.75
Hydrofluoric acid6.8 × 10⁻⁴3.17
Ammonia (Kb)1.8 × 10⁻⁵4.74

Published values vary slightly between textbooks, so use the value your course or lab gives.

pH in everyday life

  • Pools and hot tubs are kept around pH 7.2 to 7.8 so chlorine works and eyes don’t sting.
  • Garden soil around pH 6 to 7 suits most vegetables; blueberries like it more acidic.
  • Aquariums need a steady pH that suits the fish.
  • Drinking water in the US is recommended to be between pH 6.5 and 8.5.

Measuring pH

In the lab, pH is measured with a pH meter, which uses a glass electrode and should be calibrated with buffer solutions before use. At home, test strips and universal indicator paper change color with pH and are accurate to about one unit. Pool and aquarium test kits use liquid indicators matched to a narrow range. Calculated values are a good check on measurements: if a meter reads far from the value you expect, recalibrate it or check the solution.

Buffers

A buffer is a mix of a weak acid and its conjugate base, such as acetic acid and sodium acetate, that resists changes in pH when small amounts of acid or base are added. Blood is kept close to pH 7.4 by buffers. Buffer pH follows the Henderson–Hasselbalch equation, pH = pKa + log([A⁻]/[HA]), which this calculator doesn’t cover.

Work out concentrations with the molarity calculator, and find formula masses with the molar mass calculator.

What next

Use this often? Add pH to your Home screen.

Frequently asked questions

How does the pH calculator work out pH?

It finds the H⁺ concentration from your input, then takes pH = −log₁₀[H⁺]. Weak acids and bases are solved with the exact equilibrium equation.

What is the pH of 0.1 M HCl?

pH 1. Hydrochloric acid is a strong acid, so [H⁺] = 0.1 M and −log(0.1) = 1.

What is the difference between pH and pOH?

pH measures H⁺ and pOH measures OH⁻. At 25 °C they always add up to 14.

Can pH be negative?

Yes. Very concentrated strong acids, above 1 M, have a pH below 0.

Sources

  1. Wikipedia: pH

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Physics & Science Tools