pH Calculator
Convert between pH, pOH, [H⁺] and [OH⁻], or Ka and pKa, at 25 °C or any temperature. Find the pH of a strong or weak acid, a base or a salt from its concentration, worked step by step the textbook's way, or mix two solutions and see where the pH falls on the titration curve.
Calculator
pH calculator
pH, pOH, [H⁺] and [OH⁻] from any one of them, or Ka, pKa, Kb and pKb, at 25 °C or any temperature.
Powers of ten as 1e-3 or 1.5e-8.
pH + pOH = 14, the textbook value, and neutral is pH 7.
pH
pH 3.00
[H⁺] = 1 × 10−3 M is pH 3.00: acidic, with 10,000 times the H⁺ of pure water.
All four
| Unit | Amount |
|---|---|
| At 25 °C, pH + pOH = 14 | |
| pHanswer | 3.00 |
| pOH | 11.00 |
| [H⁺], hydrogen ionstyped | 1 × 10−3 M |
| [OH⁻], hydroxide ions | 1 × 10−11 M |
Working
- 01pH = −log₁₀[H⁺] = −log₁₀(1 × 10−3) = 3.00
- 02pOH = 14 − pH = 11.00
- 03[OH⁻] = Kw ÷ [H⁺] = 10−14 ÷ 1 × 10−3 = 1 × 10−11 M
Worked example
The pH of 0.1 M acetic acid
- 01Ka = 10^(−4.76) = 1.74 × 10−5
- 02Ka = x² ÷ (0.1 − x)
- 03x = (−Ka + √(Ka² + 4 × Ka × C)) ÷ 2 = 1.31 × 10−3 M
- 04pH = −log₁₀(1.31 × 10−3) = 2.88
0.1 M acetic acid is pH 2.88: only 1.3% of it gives up its H⁺. 0.1 M HCl, a strong acid, is pH 1.00.
How it works
How to calculate pH
pH measures the hydrogen ions in a solution: it is the negative logarithm of their concentration in mol/L, pH = −log₁₀[H⁺], so [H⁺] = 10−3 M is pH 3, and going back, [H⁺] = 10^−pH. Water splits into H⁺ and OH⁻ by itself, and the two always multiply to Kw, 1.0 × 10−14 at 25 °C. So [OH⁻] = Kw ÷ [H⁺], pOH = −log₁₀[OH⁻], and pH + pOH = 14. Pure water has as much of one as of the other: pH 7 at 25 °C.
A strong acid, such as HCl, HNO₃ or HClO₄, gives up every H⁺, so [H⁺] is the acid's concentration and pH = −log₁₀ C: 0.01 M HCl is pH 2. A strong base gives [OH⁻] = C, so 0.01 M NaOH is pOH 2 and pH 12, and Ca(OH)₂ and Ba(OH)₂ give two OH⁻ each. Only below about 10−6 M does water's own H⁺ start to count.
A weak acid gives up only part of its H⁺, as its Ka sets. Write HA ⇌ H⁺ + A⁻ as an ICE table: of C, x ionises and C − x is left, so Ka = x² ÷ (C − x). The quadratic gives x, which is [H⁺]. When under 5% ionises, x is small beside C, and x ≈ √(Ka × C) is close enough. A weak base works the same way with Kb = Kw ÷ Ka, and gives [OH⁻].
A salt takes its pH from its ions. NaCl is neutral; NH₄Cl is acidic, because NH₄⁺ is a weak acid; sodium acetate is basic, because acetate is a weak base. A salt that can give a proton or take one, such as NaHCO₃, sits near the middle of its two pKa values: (6.35 + 10.33) ÷ 2 = 8.34.
Mixed, an acid and a base first cancel each other mole for mole, and the pH comes from what is left. Before the equivalence point a weak acid and its conjugate base make a buffer, pH = pKa + log₁₀([A⁻] ÷ [HA]), and half-way there the pH is the pKa. At the equivalence point only the conjugate base is left, so a weak acid titrated with NaOH ends above pH 7. The calculator solves each case exactly, every equilibrium at once, and shows the textbook working beside it.
Questions
Frequently asked
How do you calculate pH?
Take the negative logarithm of the hydrogen ion concentration in mol/L: pH = −log₁₀[H⁺], so [H⁺] = 0.001 M is pH 3. For a strong acid, [H⁺] is the acid's concentration; for a weak acid, solve Ka = x² ÷ (C − x) for x, the [H⁺]. From pOH, pH = 14 − pOH at 25 °C.
What is the pH of water?
Pure water is pH 7.00 at 25 °C, where its own H⁺ and OH⁻ are each 1.0 × 10−7 M. Water splits more as it warms, so its neutral pH falls, to 6.81 at 37 °C and 6.13 at 100 °C, though it stays neutral. Rain is about pH 5.6, because carbon dioxide from the air dissolves in it.
How do you find pOH?
pOH = −log₁₀[OH⁻], or 14 − pH at 25 °C: pH 9 is pOH 5, and [OH⁻] = 10−5 M. For a strong base, [OH⁻] is its concentration times the OH⁻ in each formula unit, so 0.01 M NaOH is pOH 2 and pH 12.
How do you find pH from pKa?
For a weak acid on its own you need its concentration too: Ka = 10^−pKa, then solve Ka = x² ÷ (C − x) for [H⁺]. 0.1 M acetic acid, pKa 4.76, is pH 2.88. For a buffer of the acid and its conjugate base, pH = pKa + log₁₀([A⁻] ÷ [HA]), so with equal amounts of each the pH is the pKa.
What is the pH of HCl?
HCl is a strong acid and gives up all its H⁺, so pH = −log₁₀ of its concentration: 0.1 M HCl is pH 1.00, 0.01 M pH 2.00 and 0.001 M pH 3.00. 1 M is pH 0 on paper, but a meter reads differently there, as the ions crowd each other. Very dilute HCl stays below 7: 10−8 M is pH 6.98.
How do you convert Ka to pKa?
pKa = −log₁₀ Ka, and back, Ka = 10^−pKa: acetic acid's Ka of 1.74 × 10−5 is pKa 4.76. The lower the pKa, the stronger the acid, ten times stronger for each unit lower. For a base at 25 °C, pKb = 14 − the pKa of its conjugate acid: ammonium's pKa of 9.25 makes ammonia's pKb 4.75.
Reference
pH of common acids, bases and salts
At 25 °C, solved as the calculator solves them, every equilibrium and water's own ions included. Each tenfold dilution moves a strong acid or base by a whole unit, a weak one by about half a unit, and a salt like sodium bicarbonate hardly at all.
| Solution | 0.1M | 0.01M | 0.001M | |
|---|---|---|---|---|
| Strong acids | ||||
| Hydrochloric acidHCl | 1.00 | 2.00 | 3.00 | |
| Nitric acidHNO₃ | 1.00 | 2.00 | 3.00 | |
| Sulfuric acidH₂SO₄ | 0.96 | 1.85 | 2.73 | |
| Weak acids | ||||
| Acetic acidCH₃COOH | 2.88 | 3.39 | 3.91 | |
| Formic acidHCOOH | 2.38 | 2.90 | 3.47 | |
| Hydrofluoric acidHF | 2.12 | 2.65 | 3.27 | |
| Carbonic acidH₂CO₃ | 3.68 | 4.18 | 4.68 | |
| Phosphoric acidH₃PO₄ | 1.63 | 2.25 | 3.05 | |
| Citric acidC₆H₈O₇ | 2.08 | 2.62 | 3.23 | |
| Bases | ||||
| Sodium hydroxideNaOH | 13.00 | 12.00 | 11.00 | |
| Potassium hydroxideKOH | 13.00 | 12.00 | 11.00 | |
| Calcium hydroxideCa(OH)₂ | 13.30 | 12.30 | 11.30 | |
| AmmoniaNH₃ | 11.12 | 10.62 | 10.10 | |
| Salts | ||||
| Ammonium chlorideNH₄Cl | 5.12 | 5.62 | 6.12 | |
| Sodium acetateCH₃COONa | 8.88 | 8.38 | 7.88 | |
| Sodium bicarbonateNaHCO₃ | 8.34 | 8.34 | 8.30 | |
| Sodium carbonateNa₂CO₃ | 11.65 | 11.13 | 10.57 | |
At 1 M the ions crowd each other, and a meter reads a different pH: a 1 M figure is a textbook answer, not a measurement. Calcium hydroxide dissolves only sparingly, so its 1 M and 0.1 M solutions can't be made.
Constants
pKa and Ka of common acids
Ka = 10−pKa, and pKa = −log₁₀ Ka. The smaller the pKa, the stronger the acid: each unit lower is ten times stronger. For a base, the pKa is its conjugate acid's, and pKb = 14 − pKa.
| Acid | pKaand Ka |
|---|---|
| Weak acids | |
| Sulfuric acidHSO₄⁻, its second proton | 1.990.010 |
| Acetic acidCH₃COOH, to CH₃COO⁻ | 4.761.7 × 10−5 |
| Formic acidHCOOH, to HCOO⁻ | 3.751.8 × 10−4 |
| Lactic acidC₃H₆O₃, to lactate | 3.861.4 × 10−4 |
| Benzoic acidC₆H₅COOH, to C₆H₅COO⁻ | 4.206.3 × 10−5 |
| Hydrofluoric acidHF, to F⁻ | 3.206.3 × 10−4 |
| Nitrous acidHNO₂, to NO₂⁻ | 3.166.9 × 10−4 |
| Hypochlorous acidHOCl, to OCl⁻ | 7.542.9 × 10−8 |
| Hydrocyanic acidHCN, to CN⁻ | 9.216.2 × 10−10 |
| Boric acidB(OH)₃, to B(OH)₄⁻ | 9.245.8 × 10−10 |
| Carbonic acidH₂CO₃, to CO₃²⁻ | ₁ 6.354.5 × 10−7₂ 10.334.7 × 10−11 |
| Phosphoric acidH₃PO₄, to PO₄³⁻ | ₁ 2.157.1 × 10−3₂ 7.206.3 × 10−8₃ 12.354.5 × 10−13 |
| Citric acidC₆H₈O₇, to Cit³⁻ | ₁ 3.137.4 × 10−4₂ 4.761.7 × 10−5₃ 6.404.0 × 10−7 |
| Oxalic acidH₂C₂O₄, to C₂O₄²⁻ | ₁ 1.270.054₂ 4.275.4 × 10−5 |
| Ascorbic acidC₆H₈O₆, to Asc²⁻ | ₁ 4.176.8 × 10−5₂ 11.572.7 × 10−12 |
| Weak bases, by their conjugate acid | |
| AmmoniaNH₄⁺, pKb 4.75 | 9.255.6 × 10−10 |
| MethylamineCH₃NH₃⁺, pKb 3.35 | 10.652.2 × 10−11 |
| Trimethylamine(CH₃)₃NH⁺, pKb 4.20 | 9.801.6 × 10−10 |
| PyridineC₅H₅NH⁺, pKb 8.77 | 5.235.9 × 10−6 |
| AnilineC₆H₅NH₃⁺, pKb 9.40 | 4.602.5 × 10−5 |
| Tris baseTrisH⁺, pKb 5.93 | 8.078.5 × 10−9 |
At 25 °C and zero ionic strength: NIST's critically evaluated values (Goldberg, Kishore and Lennen, 2002) where it has one, otherwise the CRC Handbook's or IUPAC's; hypochlorous acid from Morris (1966) and nitrous acid from da Silva and others (2006). Carbonic acid's pKa₁ counts dissolved CO₂ and H₂CO₃ together, as it is measured.
The pH scale
Everyday pH values, and pure water by temperature
Each step on the scale is ten times the hydrogen ions of the next: lemon juice, at pH 2.0 to 2.6, has 25,000 to 100,000 times the H⁺ of pure water. Pure water is neutral at every temperature, but its neutral pH is 7 only at 25 °C.
| Liquid | pH |
|---|---|
| Battery acidSulfuric acid; 0.5 M is pH 0.3.USGS, the pH scale | about 0 |
| Stomach acidAbout 0.8 as it is secreted.StatPearls, NCBI Bookshelf | 1.5 to 2.0 |
| Lemon juiceUS FDA, pH of foods | 2.0 to 2.6 |
| ColaDiet colas are nearer 3.1.Reddy et al., J Am Dent Assoc 2016 | about 2.4 |
| VinegarUS FDA, pH of foods | 2.4 to 3.4 |
| Orange juiceUS FDA, pH of foods | 3.3 to 4.2 |
| Acid rainTypical of acid rain; anything below 5.6 is more acidic than clean rain.US EPA, What is acid rain? | 4.2 to 4.4 |
| Black coffeeReddy et al., J Am Dent Assoc 2016 | about 5 |
| Clean rainCarbon dioxide from the air dissolves in it as carbonic acid.US EPA, What is acid rain? | about 5.6 |
| MilkUS FDA, pH of foods | 6.4 to 6.8 |
| Pure water, 25 °CCRC Handbook of Chemistry and Physics | 7.00 |
| Blood, arterialStatPearls, NCBI Bookshelf; Merck Manual | 7.35 to 7.45 |
| SeawaterAbout 8.2 before the industrial era.NOAA, ocean acidification | about 8.1 |
| Baking soda, 0.1 MThe Merck Index, via PubChem | 8.3 |
| Household ammoniaUSGS, the pH scale; PubChem | 11 to 12 |
| Lye, drain cleaner0.5% NaOH is about 13, 5% about 14.PubChem, sodium hydroxide | 13 to 14 |
| °C | pKw | Neutral pH |
|---|---|---|
| 0 | 14.95 | 7.47 |
| 10 | 14.53 | 7.27 |
| 20 | 14.16 | 7.08 |
| 25 | 13.99 | 7.00 |
| 30 | 13.83 | 6.92 |
| 37body | 13.62 | 6.81 |
| 40 | 13.53 | 6.77 |
| 50 | 13.26 | 6.63 |
| 60 | 13.02 | 6.51 |
| 70 | 12.80 | 6.40 |
| 80 | 12.60 | 6.30 |
| 90 | 12.42 | 6.21 |
| 100 | 12.25 | 6.13 |
Water's ion product from IAPWS R11-24 (2024), at 1 atm. Textbooks round it to 14 at 25 °C, where IAPWS gives 13.99, so the calculator uses 14 at 25 °C and IAPWS's value at any other temperature. The US EPA suggests drinking water between pH 6.5 and 8.5, a guideline for taste and pipes, not an enforceable limit.
More Calculators
Each one shows its formula and a worked example, so you can check the answer and learn the method.
Henderson–Hasselbalch Calculator
The pH of a buffer, or how much of its acid and base form you need for a target pH, with common buffers built in.
Open calculatorMolarity Calculator
How many grams to weigh for a solution, or what concentration or volume you made, from the formula weight.
Open calculatorDilution Calculator
How much stock to dilute, or the final concentration or volume, with C₁V₁ = C₂V₂.
Open calculatorPractice the theory with free quizzes in Biochemistry, Physiology, Medicine, Microbiology and Marine Biology.