How to Calculate pH: The Math Behind the 0-14 Acid-Base Scale
A clear guide to calculating pH from hydrogen-ion concentration, reading the 0-14 scale, telling strong from weak acids, and checking your water tests.
How to Calculate pH: The Math Behind the 0-14 Acid-Base Scale
The first time pH clicked for me was not in a lecture. It was at a kitchen sink, watching a hydroponics test kit turn a slightly different shade of green every time I added a drop of nutrient solution. The number on the chart kept moving by tenths, and I had no feel for whether 6.2 versus 6.5 mattered. It turns out it does, and the reason is the math underneath the scale. Once you see how pH is built, the whole 0-to-14 strip stops being a mystery and becomes something you can predict on paper.
This post walks through that math: where the number comes from, how to compute it by hand, why each step is a tenfold jump, and how strong and weak acids behave differently. If you want to skip the arithmetic, the pH Calculator does every conversion in your browser, but the goal here is to understand it well enough that you could check the calculator yourself.
What pH Actually Measures
pH is a measure of how many free hydrogen ions are floating in a water-based solution. More hydrogen ions means a more acidic solution. Fewer means a more basic, or alkaline, one. Chemists write the hydrogen-ion concentration as [H+], measured in moles per liter (mol/L).
The trouble is that those concentrations span a huge range. Stomach acid sits around 0.01 mol/L, while a basic cleaning solution might have a hydrogen-ion concentration near 0.0000000000001 mol/L. Writing those numbers out side by side is awkward, so chemists compress them with a logarithm. That compression is the whole reason the pH scale exists.
The Formula: pH = -log[H+]
Here is the one equation that matters:
pH = -log10[H+]
In words: take the base-ten logarithm of the hydrogen-ion concentration, then flip the sign. The negative sign is there for convenience. Because [H+] values are tiny fractions, their logs are negative, and the minus sign turns them back into the friendly 0-to-14 numbers we recognize.
The relationship runs both ways. If you know the pH and want the concentration, you reverse it:
[H+] = 10^(-pH)
The same pattern covers the basic side of the equation. Hydroxide ions get their own measure, pOH:
- pOH = -log10[OH-]
- [OH-] = 10^(-pOH)
And at 25 degrees Celsius, the two always sum to a fixed total:
pH + pOH = 14
That last fact comes from the ionization constant of water, Kw, which equals 1e-14 at room temperature. Since -log10(1e-14) = 14, the pH and pOH of any solution split that 14 between them. Measure a pH of 4.2 and the pOH is 14 - 4.2 = 9.8, no extra work required.
A Worked Example You Can Do on Paper
Say a chemistry worksheet hands you a hydrogen-ion concentration of [H+] = 1e-3 mol/L and asks for the pH.
Plug it into the formula:
pH = -log10(1e-3)
= -(-3)
= 3
The log of 0.001 is -3, and flipping the sign gives a pH of 3. So a solution with [H+] = 1e-3 mol/L has a pH of 3, which puts it firmly in acidic territory.
Want to check the basic side too? Since pH + pOH = 14, the pOH is 14 - 3 = 11, and [OH-] = 10^(-11) = 1e-11 mol/L. Notice how much smaller the hydroxide concentration is than the hydrogen concentration. That imbalance is exactly what "acidic" means at the molecular level.
When I am grading my own working, I run the input through the pH Calculator and watch all four values appear at once. If my hand-computed pOH does not match what the tool shows, I know I dropped a sign somewhere, which is the single most common mistake in acid-base homework.
Why Each pH Unit Is a Tenfold Change
Because pH is a base-ten logarithm, every whole number on the scale represents a factor of ten in concentration. This is the part people underestimate.
- A pH 3 solution has ten times the [H+] of a pH 4 solution.
- It has one hundred times the [H+] of a pH 5 solution.
- It has one thousand times the [H+] of a pH 6 solution.
So when a water reading drifts from pH 7 down to pH 5, that is not a small nudge. It is a hundredfold rise in acidity. This is why aquarium keepers and gardeners take half-point pH changes seriously, and why a logarithmic scale is the right tool for the job. The numbers stay readable even when the underlying concentrations vary by trillions.
Here is the rough layout of the 0-14 scale:
| pH range | Verdict | Everyday example | | --- | --- | --- | | 0-6 | Acidic | Lemon juice (~2), vinegar (~3), coffee (~5) | | 7 | Neutral | Pure water at 25 C | | 8-14 | Basic | Baking soda (~8.3), ammonia (~11), bleach (~13) |
Pure water sits at exactly 7 because its [H+] and [OH-] both equal 1e-7 mol/L. The two are balanced, so neither acidity nor basicity wins.
Strong Acids Versus Weak Acids
Calculating pH from a known [H+] is straightforward. The harder question is: given an acid and its concentration, what is the [H+] in the first place? That depends on whether the acid is strong or weak.
A strong acid, such as hydrochloric acid (HCl), dissociates completely in water. Every molecule releases its proton. So a 0.01 mol/L solution of HCl gives [H+] = 0.01 mol/L directly, and pH = -log10(0.01) = 2. The concentration of the acid and the concentration of hydrogen ions are the same number.
A weak acid, such as acetic acid (the acid in vinegar), only partially dissociates. Most of its molecules stay intact, so the [H+] is far lower than the acid concentration. A 0.01 mol/L acetic acid solution might land near pH 3.4, not pH 2, because only a small fraction of the molecules let go of their proton. Computing that requires the acid's dissociation constant, Ka, and a bit more algebra, but the takeaway is simple: concentration alone does not tell you the pH. Strength matters just as much.
This is also why "concentrated" and "strong" are not synonyms. You can have a concentrated weak acid that is gentler than a dilute strong one. The pH scale exposes that difference cleanly once you have the [H+].
Using pH in Real Water Testing
The chemistry is the same whether you are in a lab or topping off a fish tank, but the practical workflow shifts a little.
For a hydroponics or aquarium reading, you usually have a measured pH and want to know how far you are from your target. Suppose your nutrient solution reads pH 6.2. Converting gives [H+] = 10^(-6.2), which is about 6.3e-7 mol/L, and the matching [OH-] is roughly 1.6e-8 mol/L. The solution is mildly acidic, so a pH-up additive moves you toward neutral. Knowing the direction before you dose saves you from overshooting.
For lab work, the conversions support rate equations and titration checks. Kinetics problems often give you a pH but need the raw [H+] for the rate law, and converting by hand invites exponent errors. If your work also involves preparing solutions of a known molarity, pair the pH math with a Molar Mass Calculator so you can go from grams on a balance to moles per liter to a predicted pH without juggling three tools.
A few habits keep the results honest:
- Confirm your temperature. The pH + pOH = 14 rule holds at 25 C. In hot or cold solutions, Kw shifts and the neutral point moves away from 7.
- Keep the negative sign in front of the log. pH = -log10[H+], never +log10[H+].
- Do not confuse [H+] with pH. A concentration of 1e-3 mol/L is a pH of 3, not a pH of 0.001.
Get those three right and the rest of acid-base chemistry follows from the same handful of equations you have already seen here. The math is small. The scale it produces is what makes it powerful.
Made by Toolora · Updated 2026-06-13