How to use the pH calculator
- Choose what you know: one solution, two solutions mixed, or the pH, pOH, [H⁺] or [OH⁻].
- For a solution, pick the acid, base or salt. If it is not in the list, choose “Other weak acid” or one of the other entries and type its pKa, Ka, pKb or Kb, or the number of H⁺ or OH⁻ a strong one releases.
- Enter the concentration, or switch “Amount given as” to mass and volume and type the grams and the volume of the solution. The calculator works out the molar mass from the formula.
- To mix two solutions, enter the concentration and volume of each. This covers buffers, neutralization and the points of a titration.
- Read the pH with the pOH, [H⁺], [OH⁻], how much of the acid or base has reacted, the forms of a polyprotic acid, and every step.
What pH means
pH measures how acidic or basic a water solution is, through its hydrogen ion concentration: pH = −log₁₀[H⁺], with [H⁺] in moles per liter. Wikipedia sums up the scale: “At 25 °C (77 °F), solutions of which the pH is less than 7 are acidic, and solutions of which the pH is greater than 7 are basic.” It adds: “Since pH is a logarithmic scale, a difference of one in pH is equivalent to a tenfold difference in hydrogen ion concentration.”
The Danish chemist Søren Sørensen introduced pH in 1909 at the Carlsberg Laboratory. A related scale, pOH = −log₁₀[OH⁻], counts hydroxide ions instead. Water itself splits into a few H⁺ and OH⁻ ions, and their product is fixed: [H⁺] × [OH⁻] = Kw. According to Wikipedia, “At 24.87 °C and zero ionic strength, Kw is equal to 1.0 × 10⁻¹⁴”, which is why pH + pOH = 14 and why pure water has pH 7.
Kw changes with temperature. Wikipedia’s table gives pKw = 14.95 at 0 °C and 12.25 at 100 °C, so the neutral point, where [H⁺] = [OH⁻] and pH = pKw ÷ 2, moves from about pH 7.5 in ice-cold water to about pH 6.1 in boiling water. Water at 100 °C with pH 6.1 is neutral, not acidic. The calculator uses the standard 25 °C values.
Strong acids and bases
A strong acid such as hydrochloric, nitric or perchloric acid gives up all its protons in water, so [H⁺] is simply the acid concentration: 0.01 M HCl has pH 2.00. A strong base works the same way through OH⁻: 0.01 M sodium hydroxide has pOH 2 and pH 12.00. Calcium hydroxide releases two OH⁻ per formula unit, so 0.01 M of it has pH 12.30, though only about 1.73 g of it dissolves in a liter of water at 20 °C.
The shortcut pH = −log₁₀(c) breaks down for very dilute solutions. Diluting 10⁻⁸ M of HCl into water cannot make it basic, yet the shortcut gives pH 8. Water’s own 10⁻⁷ M of H⁺ matters here, and the calculator counts it by solving the full balance of charges, [H⁺] = [OH⁻] + [Cl⁻]. The result is pH 6.98: just below neutral.
Weak acids and the acid dissociation constant
A weak acid HA gives up only part of its protons: HA ⇌ H⁺ + A⁻, with the acid dissociation constant Ka = [H⁺][A⁻] / [HA]. The smaller Ka, or the larger pKa = −log₁₀ Ka, the weaker the acid. Wikipedia notes that “In water, measurable pKa values range from about −2 for a strong acid to about 12 for a very weak acid (or strong base).”
For a weak acid alone in water, x = [H⁺] solves Ka = x² / (c − x). The textbook shortcut drops x from the bottom, x ≈ √(Ka × c), which is fine while under about 5% of the acid dissociates. For 0.1 M acetic acid, pKa 4.756, the shortcut and the exact answer agree at pH 2.88, with 1.32% dissociated. Dilute it to 10⁻⁶ M and 94.8% dissociates: the shortcut gives pH 5.38, but the true pH is 6.02. The calculator always solves the exact equation and tells you when the shortcut would be off.
Bases work the same way through Kb, and Kb = Kw / Ka of the conjugate acid. Ammonia’s conjugate acid, the ammonium ion, has pKa 9.24, so 0.1 M ammonia has pH 11.12. Salts of weak acids and bases also shift the pH: 0.1 M sodium acetate is basic at pH 8.88, and 0.1 M ammonium chloride is acidic at pH 5.12.
Polyprotic acids
In Wikipedia’s words, “A polyprotic acid is a compound which may lose more than 1 proton,” and it gives phosphoric acid, H₃PO₄, which can lose three, as the example. Each step has its own pKa: 2.14, 7.2 and 12.37 for phosphoric acid. The calculator handles every step at once and shows how much of each form is present. For 0.1 M phosphoric acid, the pH is 1.63, and almost all of it is H₃PO₄ or H₂PO₄⁻.
Sulfuric acid is a special case: its first proton is strong, its second has pKa 2.0. So 0.01 M sulfuric acid has pH 1.85, not 1.70 as if both protons were strong. Wikipedia gives the bicarbonate ion, HCO₃⁻, as an example of an amphoteric substance, “one that can act as an acid or as a base, depending on pH.” A 0.1 M solution of sodium bicarbonate settles at pH 8.34, close to the average of carbonic acid’s two pKa values.
Mixtures, neutralization and buffers
When two solutions are mixed, each is diluted by the other, and acids and bases react. Mixing 50 mL of 0.1 M HCl with 40 mL of 0.1 M NaOH leaves the extra acid in 90 mL: pH 1.95. With 50 mL of each, the acid and base cancel exactly and the pH is 7.00.
A weak acid neutralized by a strong base is different. With 50 mL of 0.1 M NaOH added to 50 mL of 0.1 M acetic acid, all the acid becomes acetate, and the solution is basic at pH 8.73. This is the equivalence point of the titration, so an indicator for it has to change color on the basic side of 7.
A buffer is a weak acid with its conjugate base. Wikipedia: “A buffer solution of a desired pH can be prepared as a mixture of a weak acid and its conjugate base.” Its pH follows the Henderson–Hasselbalch equation, pH = pKa + log₁₀([A⁻] / [HA]). Equal amounts of 0.1 M acetic acid and 0.1 M sodium acetate give pH 4.76, the pKa itself. The calculator shows the Henderson–Hasselbalch estimate next to the exact answer, and warns when a very dilute or lopsided buffer makes the estimate drift.
Everyday pH values
Wikipedia lists typical ranges: gastric acid 1.0–1.5, vinegar 2–3, orange juice 3.3–4.2, black coffee about 5, milk 6.5–6.8, pure water 7, sea water 7.5–8.4, ammonia 11.0–11.5 and bleach 12.5. Its article on vinegar describes distilled vinegar as “a colorless solution of 5 to 8% acetic acid in water, with a pH of about 2.6.” For 5 g of acetic acid in 100 mL, the calculator gives pH 2.42; a real sample measures a little higher, for the reasons below.
Limits of a calculated pH
The calculator, like most textbooks, uses concentrations. Real pH meters respond to activity, which falls below the concentration as more ions crowd the solution, so in concentrated solutions a measured pH can differ from the calculated one. Constants also depend on temperature, and the pKa values here are for 25 °C.
Common mistakes
- Using −log₁₀(c) for a weak acid. Only strong acids release all their protons; weak acids need Ka.
- Forgetting the dilution when mixing two solutions. Each concentration falls by its share of the total volume.
- Treating a very dilute acid as if water had no ions of its own, which can give a basic pH for an acid.
- Assuming pH + pOH = 14 at any temperature. It holds at 25 °C.
Your values stay on your device
Everything is worked out in your browser. Nothing you type is sent anywhere or stored.
Frequently asked questions
How do I calculate pH from concentration?
For a strong acid such as HCl, the H⁺ concentration equals the acid concentration, so pH = −log₁₀(c): 0.01 M HCl has pH 2.00. For a weak acid, solve Ka = x² / (c − x) for x = [H⁺] first: 0.1 M acetic acid has pH 2.88. The calculator does both exactly and shows the steps.
Why is the pH of 10⁻⁸ M HCl not 8?
An acid cannot make water basic. At this low a concentration, water’s own ions, 10⁻⁷ M of H⁺ and OH⁻, outnumber the acid’s H⁺, and both have to be counted. Solving the full balance gives pH 6.98, slightly acidic, as it should be.
How do I find the pH of a buffer?
Choose “Two solutions mixed” and pick a weak acid and its salt, such as acetic acid and sodium acetate. The calculator gives the exact pH and the Henderson–Hasselbalch estimate, pH ≈ pKa + log₁₀([base] ÷ [acid]). Equal amounts of 0.1 M acetic acid and 0.1 M sodium acetate give pH 4.76.
What is the relationship between pH and pOH?
In water at 25 °C, pH + pOH = 14, because [H⁺] × [OH⁻] = Kw = 1.0 × 10⁻¹⁴. A solution with pH 3 has pOH 11. The sum changes with temperature, because Kw does.
Can the pH be below 0 or above 14?
Yes. pH 0 means 1 mol/L of H⁺, and more concentrated strong acids go below 0; very concentrated strong bases go above 14. At such strengths, concentrations are no longer a good stand-in for activities, so a measured pH can differ from the calculated one.
Is anything I type sent anywhere?
No. Everything is worked out in your browser and nothing you type is sent anywhere or stored.