Chemistry · Acids, Bases and pH
pH calculator icon showing a pH scale from acidic red to basic blue

pH calculator

This pH calculator converts between pH, pOH, hydrogen ion concentration [H⁺] and hydroxide ion concentration [OH⁻], and finds the pH of a strong acid or strong base solution from its molar concentration, including sulfuric acid and very dilute solutions where the ions from water itself matter.

Concentrations in the pH calculator are in mol/L (M) by default; switch the unit menu to mmol/L if your data is in mM. Leave the temperature at 25 °C for textbook problems, where pH + pOH = 14.00.

pH, pOH, [H⁺] and [OH⁻] converter

Enter any one of the four quantities; the pH calculator returns the other three.
Kw changes with temperature; 25 °C is the textbook default (pH + pOH = 14.00).

Strong acid and strong base pH calculator

pH from the molar concentration of a strong acid, a strong base or sulfuric acid. Water autoionization is included, so very dilute solutions come out right.
1.0 × 10⁻² at 25 °C (CRC); some textbooks use 1.2 × 10⁻².
Kw changes with temperature; 25 °C is the textbook default (pH + pOH = 14.00).

How to use the pH calculator

The first panel is a pH calculator for conversions. Choose what you know (pH, pOH, [H⁺] or [OH⁻]), type the value and read the other three; it also tells you whether the solution is acidic, neutral or basic. The second panel works from a recipe: pick a strong acid, a strong base or sulfuric acid, enter its molar concentration, and the pH calculator applies complete dissociation, the exact charge balance and, for H₂SO₄, the partial dissociation of HSO₄⁻. Both panels have a temperature menu that sets the ion product of water, Kw. Open “Show the working” to see each line of the method with your numbers substituted.

pH, pOH and the ion product of water

pH is the negative base-10 logarithm of the hydrogen ion concentration (strictly, of the hydronium ion H₃O⁺, which is what H⁺ really is in water). pOH is the same for hydroxide. Water always ionizes slightly, 2H₂O ⇌ H₃O⁺ + OH⁻, and the product of the two concentrations is fixed at a given temperature:

pH = −log[H⁺] · pOH = −log[OH⁻] · [H⁺]·[OH⁻] = Kw · pH + pOH = pKw (= 14.00 at 25 °C)

Every pH calculator rests on these four relations. Because pH is logarithmic, one pH unit means a tenfold change in [H⁺]: a solution at pH 3 has 100 times more hydrogen ions than one at pH 5. The number of decimal places in a pH equals the number of significant figures in [H⁺], so [H⁺] = 1.2 × 10⁻³ M (two significant figures) gives pH = 2.92, not 2.9208. For the definitions and more practice problems, see OpenStax Chemistry 2e, section 14.2 pH and pOH.

Worked example: converting pH to [H⁺], pOH and [OH⁻]

The first panel of the pH calculator opens with pH = 4.25 at 25 °C. Then [H⁺] = 10⁻⁴·²⁵ = 5.62 × 10⁻⁵ mol/L, pOH = 14.00 − 4.25 = 9.75 and [OH⁻] = 10⁻⁹·⁷⁵ = 1.78 × 10⁻¹⁰ mol/L. The solution is acidic because the pH is below 7.00. Going the other way, stomach acid with [H₃O⁺] = 1.2 × 10⁻³ M has pH = −log(1.2 × 10⁻³) = 2.92, and a 0.0125 M KOH solution has [OH⁻] = 0.0125 M, pOH = 1.903 and pH = 12.10. These are the textbook answers in OpenStax examples 14.4 and 14.6, and you can reproduce both by switching the mode of the pH calculator to [H⁺] or [OH⁻].

pH of strong acids and strong bases

Strong acids (HCl, HBr, HI, HNO₃, HClO₄ and the first proton of H₂SO₄) and strong bases (the Group 1 hydroxides and Ca(OH)₂, Sr(OH)₂, Ba(OH)₂) dissociate completely, so the ion concentration equals the formula concentration times the number of H⁺ or OH⁻ released. For a strong acid, pH = −log C. For a strong base, [OH⁻] = n·C, where n = 1 for NaOH and 2 for Ca(OH)₂ or Ba(OH)₂, and pH = 14.00 − pOH at 25 °C. For weak acids such as acetic acid this shortcut gives far too low a pH; use the Weak Acid Calculator or the Weak Base Calculator instead, because those need Ka or Kb.

Worked example (second panel default). 0.015 M HCl: [H⁺] = 0.015 mol/L and pH = −log(0.015) = 1.82, pOH = 12.18. Switch the strong acid and base pH calculator to “Strong base”, choose n = 2 and enter 0.010 M for Ca(OH)₂: [OH⁻] = 0.020 M, pOH = 1.70, pH = 12.30.

Very dilute solutions: why 10⁻⁸ M HCl is not basic

Plugging 1.0 × 10⁻⁸ M HCl into pH = −log C gives 8.00, which says an acid made the water basic. That is wrong because water itself supplies about 10⁻⁷ M H⁺. The correct treatment writes the charge balance [H⁺] = C + [OH⁻] = C + Kw/[H⁺], a quadratic in [H⁺]:

[H⁺] = ( C + √(C² + 4·Kw) ) / 2 · (strong monoprotic acid)

For C = 1.0 × 10⁻⁸ M this gives [H⁺] = 1.05 × 10⁻⁷ M and pH = 6.98: slightly acidic, as it must be. The same formula with [OH⁻] in place of [H⁺] handles dilute bases. The pH calculator above always uses the exact form, so it agrees with the simple formula above about 10⁻⁶ M and stays correct below it.

Sulfuric acid in the pH calculator: the second proton

H₂SO₄ gives up its first proton completely, but HSO₄⁻ is only a moderately strong acid with Ka₂ ≈ 1.0 × 10⁻² at 25 °C. Writing [H⁺] = 2C overestimates the acidity of all but very dilute solutions, and writing [H⁺] = C underestimates it. With x = [SO₄²⁻], the equilibrium (C + x)·x / (C − x) = Ka₂ gives a quadratic. For 0.010 M H₂SO₄ and Ka₂ = 1.2 × 10⁻² (the value used by Zumdahl), x = 0.0045 M, [H⁺] = 0.0145 M and pH = 1.84, compared with 2.00 for one proton and 1.70 for two. With Ka₂ = 1.0 × 10⁻² the pH calculator gives 1.85. At 1 M only about 1 % of HSO₄⁻ dissociates and the pH is very close to −log C.

pH values of common substances

The typical values below come from LibreTexts, Beginning Chemistry (Ball), 12.7 The pH Scale, which notes that actual values vary with conditions. The [H⁺] column is 10−pH, so you can check each line with the first panel of the pH calculator. For natural waters, the USGS Water Science School page on pH and water gives about 5.6 for normal rainfall and as low as 2 for water draining from an abandoned coal mine.

SubstanceTypical pH[H⁺] = 10−pH (mol/L)
Stomach acid1.72.0 × 10⁻²
Lemon juice2.26.3 × 10⁻³
Vinegar2.91.3 × 10⁻³
Soda (soft drink)3.01.0 × 10⁻³
Wine3.53.2 × 10⁻⁴
Black coffee5.01.0 × 10⁻⁵
Milk6.91.3 × 10⁻⁷
Pure water (25 °C)7.01.0 × 10⁻⁷
Blood7.44.0 × 10⁻⁸
Seawater8.53.2 × 10⁻⁹
Milk of magnesia10.53.2 × 10⁻¹¹
Ammonia solution12.53.2 × 10⁻¹³
1.0 M NaOH14.01.0 × 10⁻¹⁴

Each pH unit is a factor of 10 in [H⁺], so lemon juice (pH 2.2) has 106.9 − 2.2 = 104.7 ≈ 50,000 times more H⁺ than milk (pH 6.9). At 25 °C, values below 7 are acidic and values above 7 are basic.

Kw and neutral pH at other temperatures

The autoionization of water is endothermic, so Kw rises with temperature and the neutral pH falls. Pure water at 50 °C has pH 6.63 and is still neutral, because [H⁺] = [OH⁻]. The temperature menu of the pH calculator uses the values below, taken from LibreTexts: Temperature Dependence of the pH of Pure Water.

TemperatureKwpKwNeutral pH
0 °C1.14 × 10⁻¹⁵14.947.47
10 °C2.93 × 10⁻¹⁵14.537.27
20 °C6.81 × 10⁻¹⁵14.177.08
25 °C1.01 × 10⁻¹⁴14.007.00
30 °C1.47 × 10⁻¹⁴13.836.92
40 °C2.92 × 10⁻¹⁴13.546.77
50 °C5.48 × 10⁻¹⁴13.266.63
100 °C5.13 × 10⁻¹³12.296.14

Only Kw changes in the pH calculator; Ka values of solutes also depend on temperature, which matters for weak acids and buffers but not for the strong electrolytes handled here.

pH practice questions to check with the pH calculator

Try each question first, then check the answer and the short solution. All are at 25 °C, so pH + pOH = 14.00. You can confirm every answer with the pH calculator above.

1. Strong acid. What is the pH of 0.0025 M HNO₃?
Answer: pH = 2.60. HNO₃ is a strong acid and releases one H⁺, so [H⁺] = 0.0025 M and pH = −log(0.0025) = 2.60.

2. Strong base. What is the pH of 0.0050 M Ba(OH)₂?
Answer: pH = 12.00. Each Ba(OH)₂ gives two OH⁻, so [OH⁻] = 2 × 0.0050 = 0.010 M, pOH = −log(0.010) = 2.00 and pH = 14.00 − 2.00 = 12.00.

3. Dilution. 25.0 mL of 0.10 M HCl is diluted with water to 500.0 mL. What is the new pH?
Answer: pH = 2.30. C₂ = C₁V₁ / V₂ = 0.10 × 25.0 / 500.0 = 0.0050 M, so pH = −log(0.0050) = 2.30. The original pH was 1.00; a 20-fold dilution raises the pH by log 20 = 1.30. In the pH calculator, enter the diluted concentration, not the original one.

4. pOH. A cleaning solution has [OH⁻] = 3.2 × 10⁻⁴ M. Find pOH and pH.
Answer: pOH = 3.49, pH = 10.51. pOH = −log(3.2 × 10⁻⁴) = 3.49 and pH = 14.00 − 3.49 = 10.51. The solution is basic.

5. Weak acid with Ka. What is the pH of 0.050 M of a weak acid HA with Ka = 6.3 × 10⁻⁵?
Answer: pH = 2.75 (2.76 exactly). Set up HA ⇌ H⁺ + A⁻ with x = [H⁺]: x² / (0.050 − x) = 6.3 × 10⁻⁵. Assuming x is small, x = √(6.3 × 10⁻⁵ × 0.050) = 1.77 × 10⁻³ M. Check: 1.77 × 10⁻³ / 0.050 = 3.5 %, below 5 %, so the shortcut is acceptable and pH = 2.75. The quadratic gives x = 1.74 × 10⁻³ M and pH = 2.76. Do not use pH = −log(0.050) = 1.30; that treats the acid as strong.

6. Mixing an acid and a base. 50.0 mL of 0.10 M HCl is mixed with 30.0 mL of 0.10 M NaOH. What is the pH?
Answer: pH = 1.60. Work in moles, not pH: H⁺ = 50.0 mL × 0.10 M = 5.0 mmol; OH⁻ = 30.0 × 0.10 = 3.0 mmol. They neutralize 1 : 1, leaving 2.0 mmol H⁺ in 80.0 mL of solution, so [H⁺] = 2.0 / 80.0 = 0.025 M and pH = −log(0.025) = 1.60.

Common mistakes with pH calculations

Forgetting the minus sign. log(0.001) = −3, so pH = +3. Using 14 at the wrong temperature. pH + pOH = 14.00 only at 25 °C. Counting OH⁻ for Ca(OH)₂ once. Each formula unit releases two hydroxide ions, so 0.010 M Ca(OH)₂ is 0.020 M OH⁻. Treating weak acids as strong. 0.10 M acetic acid has pH 2.87, not 1.00. Diluting and then adding pH values. Mix or dilute concentrations, not pH numbers; work out the new [H⁺] with the Dilution Calculator or the Molarity Calculator, then use the pH calculator. Ignoring water at very low concentration. Below about 10⁻⁶ M use the exact formula.

Related calculators

For acids and bases that only partly ionize, use the weak acid calculator and the weak base calculator; to design a solution that resists pH change, use the Buffer Calculator (Henderson-Hasselbalch). The Titration Calculator follows pH through a neutralization, and the Scientific Notation Calculator helps with powers of ten.

Frequently asked questions

How do I calculate pH from concentration?

For a strong acid, pH = −log C, where C is the molar concentration (multiply C by the number of H⁺ released if it is more than one). For a strong base, find pOH = −log(n·C), where n is the number of OH⁻ per formula unit, and subtract it from 14.00 at 25 °C. For a weak acid, [H⁺] ≈ √(Ka·C) when the ionization is under 5 %, so 0.10 M acetic acid (Ka = 1.8 × 10⁻⁵) has pH 2.87, not 1.00.

How do I find [H⁺] from pH?

Raise 10 to the power of minus the pH: [H⁺] = 10⁻ᵖᴴ. For pH 7.3, [H⁺] = 10⁻⁷·³ = 5 × 10⁻⁸ mol/L. Choose “pH” in the first panel of the pH calculator to get [H⁺], [OH⁻] and pOH together.

Can pH be negative or above 14?

Yes. A 2 M HCl solution has a calculated pH of −0.3, and concentrated NaOH can exceed 14. At such high concentrations activities differ from concentrations, so the calculated value is only approximate.

Why is the pH of pure water not 7 at 50 °C?

Kw increases with temperature, so at 50 °C [H⁺] = [OH⁻] = 2.3 × 10⁻⁷ M and the neutral pH is 6.63. The water is still neutral because the two concentrations are equal.

Is this pH calculator free?

Yes. The pH calculator runs entirely in your browser, needs no sign-up and does not store or send the values you enter.

Results are for study, homework and lab preparation; check important results against your own data, and follow your lab’s safety rules. Back to chemistry calculators or CalcSwiftly home.

Reviewed by: CalcSwiftly · Last reviewed: