pH Calculator
Calculate pH from H+ concentration, or find H+ from pH. Supports weak acid/base pH.
About
The pH scale measures the acidity or basicity of an aqueous solution by quantifying its hydrogen-ion activity, defined as pH = −log10([H⁺]), where [H⁺] is the molar concentration of hydrogen ions. The scale runs from 0 (strongly acidic, like 1 M hydrochloric acid) to 14 (strongly basic, like 1 M sodium hydroxide), with 7 marking neutral (pure water at 25 °C, where [H⁺] = [OH⁻] = 10⁻⁷ mol/L). Each pH unit represents a tenfold change in hydrogen-ion concentration, so a solution at pH 4 is 10× more acidic than one at pH 5 and 100× more acidic than one at pH 6.
The scale is symmetric around pH 7 because of the water auto-ionization equilibrium: H₂O ⇌ H⁺ + OH⁻, with Kw = [H⁺][OH⁻] = 10⁻¹⁴ at 25 °C. Taking negative logarithms gives pH + pOH = 14, which means any hydroxide concentration can be converted to pH via pOH = −log10([OH⁻]) and pH = 14 − pOH. This relationship is the foundation of acid-base chemistry and lets you move freely between the two equivalent descriptions — "0.001 M H⁺" and "pH 3" are the same statement about the same solution.
The pH scale was introduced in 1909 by the Danish chemist Søren Sørensen at the Carlsberg Laboratory in Copenhagen, originally as a quality-control metric for beer fermentation. The "p" is variously explained as "power", "potential", or the French "puissance" (power); Sørensen himself never specified, and modern chemistry simply treats "pX" as shorthand for "−log10(X)". The scale's logarithmic nature compresses an enormous range of acidities — from 10 M (concentrated mineral acids, pH = −1) to 10⁻¹⁵ M (concentrated bases, pH = 15) — into a manageable 0-14 range, and is the standard reporting format in chemistry, biology, medicine, agriculture, and water treatment.
How to Use
- Choose a mode: From [H⁺] → pH, From [OH⁻] → pH, or From pH → [H⁺].
- Enter the matching input value. For concentrations, use scientific notation like 1e-7, 0.0001, or 1e-13.
- The headline result shows pH (with classification) or [H⁺] depending on the mode.
- The breakdown always shows pH, pOH, [H⁺], [OH⁻], and the classification — both equivalent descriptions are presented together.
- Use Reset to return to the default 10⁻⁷ M H⁺ (neutral water) example.
Formula
The three formulas used depending on the chosen mode:
From [H⁺]: pH = −log₁₀([H⁺])
From [OH⁻]: pOH = −log₁₀([OH⁻]); pH = 14 − pOH
From pH: [H⁺] = 10^(−pH)
Two key relationships that always hold at 25 °C:
- Water auto-ionization: Kw = [H⁺][OH⁻] = 10⁻¹⁴
- pH + pOH = 14 (derived by taking −log of both sides of the Kw equation)
Useful reference points:
- pH 0 — 1 M strong acid (e.g., 0.1 M HCl has pH 1)
- pH 7 — neutral (pure water at 25 °C)
- pH 14 — 1 M strong base (e.g., 0.1 M NaOH has pH 13)
- pH −1 — 10 M acid (the scale extends below 0 for concentrated acids)
Worked Example
A carbonated cola has [H⁺] = 3.16 × 10⁻³ M. What is its pH?
- pH = −log10(3.16 × 10⁻³) = −(log10(3.16) + log10(10⁻³)) = −(0.5 − 3) = 2.5
- Classification: Acidic (cola is between lemon juice ~pH 2 and orange juice ~pH 3.5).
- Reverse: [H⁺] from pH 2.5 = 10⁻²·⁵ = 3.16 × 10⁻³ M ✓
A 0.01 M NaOH solution — what is its pH?
- NaOH dissociates completely, so [OH⁻] = 0.01 = 10⁻² M
- pOH = −log10(10⁻²) = 2
- pH = 14 − pOH = 14 − 2 = 12
- Cross-check via Kw: [H⁺] = 10⁻¹⁴ / 10⁻² = 10⁻¹² M, so pH = 12 ✓
Find [H⁺] at pH 7.4 (human blood):
- [H⁺] = 10⁻⁷·⁴ = 10⁻⁸ × 10⁰·⁶ = 10⁻⁸ × 3.98 = 3.98 × 10⁻⁸ M
- Compared with neutral water (10⁻⁷ M), blood is 2.5× less acidic — slightly basic, as expected.
Tips
- Scientific notation like 1e-7 works in the concentration field — this is the natural way to express the very small concentrations typical of acids and bases (10⁻¹ to 10⁻¹⁵ M).
- The pH scale is logarithmic: every 1-unit change means 10× change in [H⁺]. A solution at pH 4 has 1000× more H⁺ than one at pH 7, not 3×.
- pH is temperature-dependent: Kw rises with temperature, so neutral pH is 7.0 at 25 °C but 6.5 at 50 °C and 7.5 at 0 °C. Always quote pH with the temperature, especially for hot or cold samples.
- Buffers resist pH change near their pKa: the Henderson-Hasselbalch equation (pH = pKa + log([A⁻]/[HA])) lets you compute buffer composition. Blood is buffered to pH 7.4 by bicarbonate; cellular cytoplasm to ~7.2 by phosphate.
- For weak acids and bases, [H⁺] ≠ [acid]total because dissociation is incomplete. The calculator assumes you're entering the actual [H⁺] (or [OH⁻]) measured, not the nominal acid concentration.
Common Mistakes
- Treating pH as linear — pH 6 is not "twice as acidic" as pH 7; it is 10× more acidic. A common sign seen in pools reads "pH 7.4 is 1.4× more acidic than pH 7.5" — this is wrong; it's actually 1.26× (10⁰·¹) more acidic.
- Forgetting the negative sign — pH = −log10([H⁺]), not +log. Forgetting the negative gives absurd results like "pH 7" for a 10⁻⁷ M solution becoming "pH −7".
- Confusing pH and pOH — at pH 7 they coincide (both are 7), but at pH 2 the pOH is 12 (strongly basic in terms of OH⁻), not 2. The two scales are complementary: one high means the other is low.
- Applying pH 0-14 limits rigidly — concentrated acids (e.g., 12 M HCl) have negative pH values, and concentrated bases (e.g., 10 M NaOH) can have pH > 14. The 0-14 range covers most aqueous chemistry but is not a hard limit.
- Using pH as a measure of "how dangerous" — concentrated acetic acid (pH ~2.4) is a stronger irritant than dilute HCl at the same pH, because the conjugate base also affects tissue. Corrosivity depends on the specific chemical, not just the pH number.
Frequently Asked Questions
- Why is pH defined with a logarithm?
- Because the range of relevant hydrogen-ion concentrations spans 14+ orders of magnitude — from concentrated acids at ~10 M to concentrated bases at ~10⁻¹⁵ M. Reporting such a range linearly would mean dealing with numbers like 0.00000000000001, which are awkward to compare. The logarithmic scale compresses this to a 0-14 range, makes "tenfold" differences easy to compare (each unit = 10×), and mirrors the way human perception works (decibels for sound, Richter for earthquake magnitude, pK for binding constants — all logarithmic for the same reason).
- What temperature is assumed by pH + pOH = 14?
- 25 °C (298 K). The 14 in the formula comes from K_w = [H⁺][OH⁻] = 10⁻¹⁴ at 25 °C, so pK_w = 14. At 0 °C, K_w ≈ 10⁻¹⁵, so pK_w = 15 and neutral pH ≈ 7.5. At 50 °C, K_w ≈ 5.5 × 10⁻¹⁴, so pK_w ≈ 13.26 and neutral pH ≈ 6.63. For samples at non-standard temperatures, the 14 in the formulas should be replaced with the temperature-appropriate pK_w value.
- Can pH be negative or above 14?
- Yes. pH is defined as −log₁₀(a_H+), where a_H+ is the activity of hydrogen ions. For a 10 M HCl solution, the activity is ~10, so pH ≈ −1. For a 10 M NaOH solution, [OH⁻] ≈ 10, so pOH ≈ −1 and pH ≈ 15. The 0-14 range corresponds to dilute solutions (between 1 M acid and 1 M base), and concentrated solutions extend the scale beyond these limits. The scale is not bounded; it is just logarithmic.
- What's the difference between pH and pKa?
- pH is a property of a specific solution (its measured acidity); pKa is a property of a specific acid (its tendency to dissociate). pH = pKa when [A⁻] = [HA] in a buffer (Henderson-Hasselbalch equation). A weak acid like acetic acid has pKa = 4.76, but a solution containing it can have any pH depending on how much is dissociated — typically pH 4.76 when [A⁻] = [HA], pH 2-3 in pure vinegar (mostly HA), or pH 8-9 in a solution of pure sodium acetate (mostly A⁻).
- Does this calculator handle weak acids and bases?
- Not directly. The formulas assume you are entering the actual free [H⁺] or [OH⁻] measured in solution. For a weak acid like 0.1 M acetic acid (pKa = 4.76), only ~1.3% dissociates, so the actual [H⁺] is ~1.3 × 10⁻³ M (not 0.1 M) and the pH is 2.89 (not 1.0). To compute pH from weak-acid concentration, you need to solve the equilibrium: [H⁺]² / (C − [H⁺]) = Ka, which requires Ka or pKa — this calculator does not perform that step automatically.
Try our other free calculators
CalcGenius has 1,200+ free, ad-free, browser-based calculators for finance, health, math, science, and everyday life. No sign-up required.