pH Calculator Guide: How to Calculate pH from Concentration (and Back)

Written and verified by Muhammad Haroon, founder of Numblox · pH = −log₁₀[H⁺] · The pH scale · Worked examples · Updated 24 November 2026

pH squeezes an enormous range of acidity — from battery acid to bleach, a factor of a trillion — onto one friendly scale from 0 to 14. The squeeze is done by a logarithm, which is why pH questions look harder than they are. This guide explains the formula in both directions with examples verified against the calculator.

Try it yourself: use the free pH Calculator on Numblox — enter a concentration to get pH, or a pH to get the concentration. Nothing you enter is stored or sent anywhere.

The pH formula

pH = −log₁₀[H⁺]

[H⁺] is the hydrogen-ion concentration in mol/L. The reverse journey uses the inverse of the logarithm:

[H⁺] = 10^(−pH)

pH[H⁺] (mol/L)Example
10.1Strong acid territory
30.001Vinegar, citrus juice
5.62.5 × 10⁻⁶Normal rain (slightly acidic)
70.0000001 (10⁻⁷)Pure water — neutral
1010⁻¹⁰Soap solutions
1310⁻¹³Strong alkali territory

Two properties of the scale matter more than any other. First, it runs backwards: lower pH means more acidic, because of the minus sign. Second, each step of 1 on the scale is a factor of 10 in concentration — pH 3 is ten times as acidic as pH 4 and a hundred times pH 5.

How to use the calculator

Step 1: To find pH: enter the hydrogen-ion concentration [H⁺] in mol/L (for example 0.001).

Step 2: To go the other way: enter a pH value and read the concentration it corresponds to.

Step 3: Read the result — pH to two decimal places, or the concentration in mol/L.

Worked example 1 — a strong acid: [H⁺] = 0.001 M

Step 1: pH = −log₁₀(0.001).
Step 2: log₁₀(0.001) = −3, so pH = 3.00.

Concentrations that are neat powers of ten give whole-number pH values — a good first check on any pH calculation. The calculator returns exactly 3.00.

Worked example 2 — pure water: [H⁺] = 10⁻⁷ M

pH = −log₁₀(10⁻⁷) = 7.00 — neutral, the midpoint of the scale. (At 25 °C, the temperature the standard scale assumes.)

Worked example 3 — a less tidy concentration: 0.05 M

pH = −log₁₀(0.05) = 1.30. Most real concentrations are not powers of ten, and the pH lands between whole numbers — 0.05 M sits between 0.1 M (pH 1) and 0.01 M (pH 2), closer to the stronger end, exactly as 1.30 suggests.

Worked example 4 — going backwards: pH 4.5

Step 1: [H⁺] = 10^(−4.5).
Step 2: = 3.16 × 10⁻⁵ M (0.0000316 mol/L).

The calculator's second mode returns this directly: enter pH 4.5 and read 3.16 × 10⁻⁵ M.

Common questions

How do I calculate pH from concentration? Take the negative base-10 logarithm of the hydrogen-ion concentration: pH = −log₁₀[H⁺]. For 0.001 M, that is −log₁₀(0.001) = 3.00.

How do I get concentration from pH? Use the inverse: [H⁺] = 10^(−pH). A pH of 4.5 means [H⁺] = 10^(−4.5) ≈ 3.16 × 10⁻⁵ mol/L.

Why is each pH step worth a factor of 10? Because pH is a logarithm. A difference of 1 means the exponent of ten changed by 1 — ten times the concentration. A difference of 2 is a hundredfold.

Can pH be below 0 or above 14? Yes, for very concentrated strong acids and bases — the 0–14 range simply covers the dilute solutions of everyday chemistry, where concentrations stay between 1 M and 10⁻¹⁴ M.

Check your own numbers

Enter your concentration or pH in the Numblox pH Calculator and compare with the formulas above. The concentration unit itself is covered in the Molarity Calculator Guide.

Disclaimer: This article and the calculator provide general educational information and estimates only. Always double-check figures that matter for coursework grades, lab work, wiring, or safety.

Related: pH Calculator · Molarity Calculator Guide · Mole Calculator Guide · All free calculators

Real-world examples and common mistakes

The pH scale is logarithmic, which surprises everyone the first time: lemon juice at pH 2 is not 'a bit' more acidic than tomatoes at pH 4 — it is 100 times more acidic, because each whole pH step is a factor of ten in hydrogen-ion concentration. A solution with [H⁺] = 0.001 mol/L has pH = −log(0.001) = 3. The common mistakes: reading pH as a linear scale, assuming neutral always means 7 (that is only true at 25 °C), and averaging pH values when mixing solutions — you must average the concentrations, then take the logarithm again. Pool and aquarium test kits work because small pH shifts matter: most fish thrive only within about half a pH unit of their natural water.