What is pH?
The phrase ph calculator is searched about 1,900 times a month in the United States by students meeting logarithms in chemistry for the first time, teachers checking worked answers, aquarium and pool keepers interpreting test readings, and home brewers and gardeners who need to know what a number on a meter actually means. Almost every one of those questions reduces to a single definition and its rearrangements: pH is the negative base-10 logarithm of the hydrogen ion concentration. That is exactly what the tool above does, in four modes, and this guide explains the mathematics thoroughly enough that you can predict its answers before you read them — and recognise the questions it honestly cannot answer.
Why a logarithm at all? Because hydrogen ion concentrations in real solutions span an enormous range: about 1 mol/L in a strong bench acid down to 0.00000000000001 mol/L (10⁻¹⁴) in a strong base. Writing those numbers out is hopeless, and comparing them is worse. The pH scale compresses that whole range into friendly numbers mostly between 0 and 14, at the cost of one idea that must be kept in mind at all times: the scale is logarithmic, not linear. A solution at pH 3 does not have a little more acid than one at pH 4 — it has exactly ten times the hydrogen ion concentration. Two units apart means a hundredfold difference, three units a thousandfold. Nearly every misunderstanding about pH starts with forgetting that.
The pH formula
Read the definition in pieces. The square brackets, [H+], are chemistry shorthand for "the concentration of hydrogen ions", measured in moles per litre (mol/L). Strictly, the ions in water are hydronium ions, H₃O+, formed when a hydrogen ion attaches to a water molecule; textbooks use [H+] and [H₃O+] interchangeably, and so does this page. The log₁₀ is the base-10 logarithm — the power to which 10 must be raised to give the concentration. And the minus sign is there because most concentrations are below 1 mol/L, so their logarithms are negative; negating them produces the positive pH values everyone is used to.
| To find | Formula | Needs |
|---|---|---|
| pH | -log₁₀[H+] | hydrogen ion concentration, mol/L |
| [H+] | 10^-pH | pH |
| pOH | -log₁₀[OH-] | hydroxide ion concentration, mol/L |
| [OH-] | 10^-pOH | pOH |
| pH from pOH | 14 - pOH (at 25 °C) | pOH |
| pH of a strong acid | -log₁₀(molarity) | molarity of a fully dissociating acid |
Every mode of the calculator is one row of that table. Nothing else is hidden inside it — no fitted constants and no approximations beyond ordinary floating-point arithmetic — so any result can be reproduced with a pocket calculator from the same inputs. The one constant in the whole system, 14, is not arbitrary: it comes from the autoionisation of water, covered in the pH and pOH section below.
How to calculate pH step by step
How to calculate pH is the question behind most visits to this page, so here is the full procedure. Suppose a solution has a hydrogen ion concentration of 0.001 mol/L. First, take the base-10 logarithm: log₁₀(0.001). Because 0.001 is exactly 10⁻³, the logarithm is exactly -3 — whenever a concentration is a clean power of ten, the pH is simply that power with its sign flipped. Second, apply the minus sign: pH = -(-3) = 3.00. That is the whole method, and it is the calculator's starting state in concentration mode: open the page and the hero result already reads 3.00.
Real concentrations are rarely clean powers of ten, and then the logarithm does the work. For [H+] = 2.5 × 10⁻⁵ mol/L, split the number: log₁₀(2.5 × 10⁻⁵) = log₁₀(2.5) + log₁₀(10⁻⁵) = 0.398 - 5 = -4.602, so pH = 4.60. Notice the pattern this creates: the exponent of the concentration sets the pH's whole-number neighbourhood, and the leading digits fine-tune the decimals. A concentration of 2.5 × 10⁻⁵ sits between 10⁻⁵ (pH 5) and 10⁻⁴ (pH 4), closer to the first — and 4.60 is exactly where it should land. Typing the same value into the calculator as 2.5e-5 gives the same answer, because the field accepts scientific notation.
Finding [H+] from pH
The formula runs backwards just as cleanly. To find the hydrogen ion concentration from a pH value, raise 10 to the power of minus the pH: [H+] = 10^-pH. For pH 5, that is 10⁻⁵ = 1.0 × 10⁻⁵ mol/L — the worked check in this calculator's second mode. For a pH with decimals, such as 4.60, the same split works in reverse: 10^-4.60 = 10^0.40 × 10⁻⁵ ≈ 2.5 × 10⁻⁵ mol/L, recovering the concentration from the previous section. This direction is the one used in real laboratories, where a pH meter gives the pH and the chemist wants the concentration it implies.
Two habits keep this conversion honest. First, mind the significant figures: a pH quoted to two decimal places, like 4.60, implies a concentration known to about two significant figures, because the decimal places of a logarithm correspond to the significant figures of the original number. Second, remember that the conversion is a definition, not a measurement model — a real meter responds to hydrogen ion activity, which in concentrated or very salty solutions drifts away from concentration, a limit stated plainly in the final section of this guide.
pH and pOH: the 14 rule at 25 °C
Even the purest water is not free of ions. A tiny fraction of water molecules split — autoionise — into H+ and OH-, and at 25 °C the product of the two concentrations is fixed at Kw = 1.0 × 10⁻¹⁴. In pure water the two are equal, so each is 10⁻⁷ mol/L, giving pH 7.00 and pOH 7.00: that equality, not the number 7 itself, is what "neutral" means. Add acid and [H+] rises; the product must stay 1.0 × 10⁻¹⁴, so [OH-] falls by the same factor, and the pH drops while the pOH climbs. The seesaw is exact, which is why one subtraction converts between the scales: pOH 4.5 means pH = 14 - 4.5 = 9.50, the worked check in this calculator's third mode.
The catch is the temperature. Kw grows as water warms, so the sum is 14 only at 25 °C: it is about 14.94 at 0 °C and about 13.62 at 37 °C, where neutral water has a pH of about 6.81 — still neutral, because its [H+] still equals its [OH-], just at a higher level. This calculator works at 25 °C throughout, which is the standard condition for textbooks, school labs and the pH scale printed on classroom walls. If your problem is set at another temperature and gives you a different Kw, the subtraction constant changes with it.
pH of strong acids and bases from molarity
The most common pH question of all is also the simplest — when the acid or base is strong. A strong acid dissociates completely in dilute water solution: every HCl molecule gives up its hydrogen ion, so a 0.01 M hydrochloric acid solution has [H+] = 0.01 mol/L and pH = -log₁₀(0.01) = 2.00. A strong base mirrors it: 0.01 M sodium hydroxide gives [OH-] = 0.01 mol/L, so pOH = 2.00 and pH = 14 - 2.00 = 12.00. One logarithm, no equilibrium table — this calculator's fourth mode does exactly this for HCl, HNO₃ and HClO₄ among acids and NaOH and KOH among bases.
Plainly stated, because it decides when the mode may be used: the calculation assumes complete dissociation and a dilute solution. Complete dissociation is an excellent assumption for the listed compounds at ordinary lab concentrations, and it is the assumption every textbook makes for them. It weakens in concentrated solutions, where ions interfere with each other and activity replaces concentration, and it fails completely for weak acids and bases, which dissociate only partially. Sulfuric acid needs a word of its own: its first proton is strong, but the second dissociates only partly, so a single logarithm of its molarity is not the whole story — which is why H₂SO₄ is deliberately not in this calculator's list.
The pH scale: common substances
The table below places familiar substances on the scale, so a number from the calculator can be read against everyday experience. Values are typical published figures and are approximate — natural products vary with ripeness, brand and preparation, sometimes by half a unit or more.
| Substance | Typical pH | Type |
|---|---|---|
| Battery acid (sulfuric acid) | ~0 | Strongly acidic |
| Stomach (gastric) juice | 1.5 – 2.0 | Acidic |
| Lemon juice | 2.2 | Acidic |
| Vinegar | 2.5 | Acidic |
| Orange juice | 3.5 | Acidic |
| Tomato juice | 4.3 | Acidic |
| Black coffee | 5.0 | Acidic |
| Milk | 6.5 | Very slightly acidic |
| Pure water (25 °C) | 7.0 | Neutral |
| Human blood | 7.4 | Slightly alkaline |
| Seawater | 8.1 | Alkaline |
| Baking soda solution | 8.3 | Alkaline |
| Hand soap | 9 – 10 | Alkaline |
| Household ammonia | 11.0 | Alkaline |
| Bleach | 12.5 | Strongly alkaline |
| Drain cleaner (sodium hydroxide) | ~14 | Strongly alkaline |
Read the table logarithmically. Lemon juice at pH 2.2 is not "a bit" more acidic than orange juice at 3.5 — it carries roughly twenty times the hydrogen ion concentration. Blood is the striking entry in the other direction: the body holds it between about 7.35 and 7.45, a range so narrow that the hydrogen ion concentration barely moves, because enzyme chemistry depends on it. And the two ends of the table are a safety lesson in themselves: the substances near 0 and near 14 are the ones with hazard warnings, which is why this page gives no handling advice and defers to safety data sheets and qualified supervision for real reagents.
Worked examples you can check
Four examples anchor this page, each chosen so the arithmetic can be verified by hand, and each matching one mode of the calculator. Example 1 — pH from concentration. [H+] = 0.001 mol/L is 10⁻³, so pH = 3.00. Example 2 — concentration from pH. pH 5 gives [H+] = 10⁻⁵ = 1.0 × 10⁻⁵ mol/L. Example 3 — strong acid. 0.01 M HCl dissociates completely, so [H+] = 0.01 = 10⁻² mol/L and pH = 2.00. Example 4 — pH from pOH. pOH 4.5 gives pH = 14 - 4.5 = 9.50. Set each mode to these inputs and the calculator prints exactly these figures; all four were recomputed independently before this page was published.
| Example | Given | Working | Result |
|---|---|---|---|
| pH from [H+] | [H+] = 0.001 mol/L | -log₁₀(0.001) = -(-3) | pH 3.00 |
| [H+] from pH | pH 5 | 10^-5 | 1.0 × 10⁻⁵ mol/L |
| Strong acid | 0.01 M HCl | -log₁₀(0.01) = -(-2) | pH 2.00 |
| pH from pOH | pOH 4.5 | 14 - 4.5 | pH 9.50 |
| Strong base | 0.01 M NaOH | pOH = 2.00; 14 - 2.00 | pH 12.00 |
Where pH is used
In school and university chemistry, pH is where logarithms stop being abstract: acid–base equilibria, titration curves and buffer problems all speak this language, and the conversions on this page are their entry point. In water treatment and environmental work, pH is a front-line measurement — drinking water is typically kept between 6.5 and 8.5, and the US Environmental Protection Agency tracks pH as a basic indicator of the health of rivers and lakes, because aquatic life tolerates only a limited range. In agriculture and gardening, soil pH decides which nutrients plants can actually absorb, which is why lime is added to raise it and sulfur to lower it.
In food, brewing and winemaking, pH controls flavour, preservation and fermentation behaviour; in pools and aquariums it is the number checked weekly to keep water safe and fish alive; and in medicine, blood pH is a vital sign held in the narrow band noted above. In every one of these settings the same two skills recur: converting between a measured pH and the concentration it means, and remembering that one unit is a factor of ten.
Common pH mistakes
The most common mistake is treating the scale as linear — reading pH 3 as slightly stronger than pH 4, when it is ten times the hydrogen ion concentration. Second is forgetting the minus sign, which turns pH 3.00 into -3.00. Third is feeding a weak acid's molarity into the strong-acid formula: vinegar is about 0.8 M acetic acid, but its pH is around 2.5, not the 0.1 the strong-acid formula would claim, because only a small fraction of the molecules dissociate. Fourth is assuming pH + pOH = 14 at any temperature, when the sum is pKw and moves with temperature.
Fifth is believing the scale ends at 0 and 14: concentrated strong acids have negative pH and concentrated strong bases exceed 14, and this calculator will report those values rather than clipping them. Sixth is a laboratory one: trusting a concentration calculation over a calibrated meter in concentrated or salty solutions, where activity effects shift the reading. Finally, beware averaging pH values: the average of pH 2 and pH 4 is not pH 3 in concentration terms — concentrations must be averaged, then converted, and the result is about pH 2.3.
What this calculator cannot do
Plainly stated: this calculator does definition conversions and strong-acid/base arithmetic only. It does not calculate the pH of a weak acid or weak base, because that requires an equilibrium calculation with the acid or base dissociation constant (Ka or Kb), an ICE table and usually a quadratic equation. It does not calculate buffer pH, which needs the Henderson–Hasselbalch equation and a pKa. It does not handle mixtures of acids and bases, polyprotic acids such as H₂SO₄ or H₃PO₄ beyond their first proton, or salt hydrolysis. If your substance is not one of the five fully dissociating compounds in the strong mode, its molarity alone does not determine its pH, and no honest calculator should pretend otherwise from molarity alone.
It also works at 25 °C only and with concentrations rather than activities, so for concentrated solutions its figures are the idealised textbook values, not a substitute for a calibrated pH meter. And it is not a safety tool: it gives no handling, protective-equipment or disposal guidance for acids, bases or any other hazardous reagent. Preparing or using real chemicals must follow your institution's procedures, the reagent's safety data sheet and a qualified supervisor's instructions. Used inside its stated scope, though, every number this page prints can be reproduced from the formula table in this guide: the homework check, the meter-reading conversion, the sanity check on someone else's figure.
Sources & References
- OpenStax Chemistry 2e — 14.2 pH and pOH (the definitions of pH and pOH, the pH + pOH = 14 relation, and worked concentration conversions)
- LibreTexts (UC Davis) — The pH Scale (the logarithmic scale, common-substance pH values, and why pH can leave the 0 to 14 range)
- LibreTexts Chemistry (OpenStax) — 14.2 pH and pOH (the same chapter in the LibreTexts library, with the autoionisation of water and Kw)
- Khan Academy — pH and pOH (hydrogen and hydroxide concentrations, and converting between pH, pOH, [H+] and [OH-])
- Khan Academy — Autoionisation of Water (where Kw = 1.0 x 10^-14 at 25 degrees C comes from, and why the neutral point moves with temperature)
- Purdue University Chemistry Help — Calculating pH and pOH (step-by-step method for strong acids, strong bases and concentration conversions)
- US Environmental Protection Agency — CADDIS: pH (what pH means in natural waters, typical ranges, and why it matters environmentally)
One substitution to disclose: the US Geological Survey's "pH and Water" page is a standard reference for this topic, but it returned HTTP 403 to this site's automated availability check, so it is not linked here; the US Environmental Protection Agency's CADDIS pH page is used in its place for the environmental material. The formulas, the scale values and every worked figure in this guide were checked against the sources above, and the four worked examples were recomputed independently from the formulas themselves — pH = -log₁₀[H+], [H+] = 10^-pH, and pH + pOH = 14 at 25 °C — so you can reproduce each one exactly in the calculator.