The pH calculator above converts between the four numbers that describe how acidic or basic an aqueous solution is: pH, pOH, the hydrogen ion concentration and the hydroxide ion concentration. Give it any one of them and it returns the other three. Give it a concentration instead, tell it whether the acid or base is strong or weak, and it works the concentration out first, solving the weak-acid equilibrium properly rather than assuming the answer is small.
Arb Digital publishes free calculators that show their working instead of hiding it. That matters here more than in most places, because a pH calculator can be right for the wrong reason. Two different methods give almost the same answer for a moderately weak acid at a sensible concentration, and wildly different answers at the edges. This page tells you on screen which method it used and why, so the number is checkable rather than merely plausible.
What This pH Calculator Does
Pick a mode and the tool adapts its inputs. In strong acid or strong base mode it needs only a concentration, because dissociation is assumed complete. In weak acid or weak base mode it also needs an equilibrium constant, which you can supply as Ka or Kb in scientific notation, or as pKa or pKb if that is how your table is written. The last two modes work backwards from a measured pH or a known hydrogen ion concentration.
The headline result is pH. The supporting grid gives pOH, both ion concentrations in mol per litre, and either the percentage of the acid or base that has ionised or, in the reverse modes, a plain description of how acidic the solution is. A bar shows where the answer sits on the familiar zero to fourteen scale.
The line under the headline number names the route taken: exact for strong species at ordinary concentrations, quadratic for weak equilibria, or water-corrected when the solution is so dilute that water's own ionisation is no longer negligible. That label is the most useful thing on the page, and no competitor tool we have seen prints it.
One boundary to state plainly: buffers made from a conjugate acid-base pair belong on the Henderson-Hasselbalch calculator, not here. This page handles a single acid or a single base in water. The moment you have measurable amounts of both a weak acid and its conjugate base in the same flask, the arithmetic changes and the buffer equation is the right tool.
How to Use It
- Choose the mode that matches what you actually know. If you weighed out a solid and dissolved it, you know a concentration. If you dipped a meter in, you know a pH.
- Enter the analytical concentration in mol per litre. That is the amount you added divided by the final volume, before any dissociation is considered.
- Supply Ka or Kb for a weak species. Type it as 1.8e-5, or use the pKa box if your reference table lists pK values instead.
- Read the method line. It tells you whether the answer came from the exact relationship, the quadratic, or a water-corrected calculation.
- Check the ionised percentage. If it is above about five percent, any textbook shortcut that assumes ionisation is negligible has already broken down.
The Formula and How It Is Calculated
pH is defined as the negative base-ten logarithm of the hydrogen ion activity, which the IUPAC Gold Book entry for pH states formally in terms of activity rather than concentration. In ordinary teaching and bench work the concentration is used as a stand-in, giving pH = −log₁₀[H⁺]. The hydroxide side follows from the ion product of water, Kw = [H⁺][OH⁻] = 1.0 × 10⁻¹⁴ at 25 degrees Celsius, which is why pH + pOH = 14 at that temperature and only at that temperature.
For a strong acid the hydrogen ion concentration equals the analytical concentration, so pH follows in one step. For a weak acid HA at concentration C, the equilibrium HA ⇌ H⁺ + A⁻ gives Ka = x² / (C − x), where x is the hydrogen ion concentration produced. Rearranged, that is the quadratic x² + Ka·x − Ka·C = 0, whose positive root is x = (−Ka + √(Ka² + 4·Ka·C)) / 2. Weak bases work the same way with Kb, giving [OH⁻] first and pOH from it. The example Ka and Kb values used on this page are the ionisation constants at 25 degrees published by the University of Massachusetts chemistry ionisation constant tables, where acetic acid is 1.8 × 10⁻⁵ and ammonia is 1.8 × 10⁻⁵.
Why This Tool Uses the Quadratic, Not the Square-Root Shortcut
Almost every introductory course teaches the shortcut x = √(Ka × C). It comes from assuming that x is tiny compared with C, so the denominator C − x can be replaced by C. That assumption is usually fine and occasionally disastrous, and the trouble is that the shortcut never announces which case you are in.
Take acetic acid at 0.1 mol per litre. The shortcut gives √(1.8 × 10⁻⁶) = 1.342 × 10⁻³, or pH 2.87. The quadratic gives 1.333 × 10⁻³, or pH 2.88. The difference is invisible in practice, and the assumption held because only 1.3 percent of the acid ionised.
Now take the same acid at 1 × 10⁻⁴ mol per litre. The shortcut gives √(1.8 × 10⁻⁹) = 4.24 × 10⁻⁵, implying that 42 percent of the acid dissociated — while simultaneously assuming that dissociation was negligible. The quadratic gives 3.44 × 10⁻⁵, or just under 35 percent, a pH about 0.09 units higher. The assumption did not merely weaken; it contradicted its own result. The general rule taught alongside the shortcut is that it is acceptable while ionisation stays below roughly five percent, which is exactly the number this calculator prints for you. Because the quadratic costs nothing to evaluate, there is no reason to use the approximation at all, so this tool does not.
When Water's Own Ionisation Takes Over
Pure water at 25 degrees already contains 10⁻⁷ mol per litre of hydrogen ions. Any calculation that ignores that supply breaks down once the acid you added contributes a comparable amount. The classic trap is a very dilute strong acid: 10⁻⁸ mol per litre of hydrochloric acid appears to give pH 8, which would make an acid basic. It cannot, and the error is that the water was left out.
Handled properly, charge balance and the water equilibrium together give [H⁺] = (C + √(C² + 4Kw)) / 2 for a strong acid. At 10⁻⁸ mol per litre that returns 1.05 × 10⁻⁷, or pH 6.98 — very slightly acidic, which is the physically sensible answer. This calculator switches to that corrected form automatically whenever the concentration falls near or below 10⁻⁶ mol per litre, and says so in the method line. Adding acid to water can never take the pH above 7, and adding base can never take it below 7, no matter how little you add.
Concentration Is Not Activity, and a Meter Measures Activity
The formal definition of pH uses the activity of the hydrogen ion, not its concentration. Activity is the effective concentration once the ion's interactions with everything else in the solution are accounted for, and the two coincide only in the limit of infinite dilution. In dilute solutions the gap is small enough to ignore, which is why the concentration-based formula is taught first.
The gap grows with ionic strength. A solution containing a lot of dissolved salt shields ions from one another, lowering the activity coefficient below one and making the measured pH slightly higher than a concentration calculation predicts. In seawater, biological buffers or a concentrated brine, the difference is real and measurable. A pH meter is calibrated against standard buffers of defined activity, so it reports activity-based pH directly. This means a calculated pH and a measured pH can disagree by a tenth of a unit or more in a salty sample without either being wrong.
Temperature is the other quiet variable. Kw is 1.0 × 10⁻¹⁴ only at 25 degrees. Warm the water and Kw rises, so neutral pH falls below 7 — at body temperature neutral water sits near 6.8. Neutral means equal amounts of hydrogen and hydroxide ions, not the number 7. This calculator works at 25 degrees throughout, which is the convention for every published Ka table.
Reading pH as a Logarithm, Not a Score
Because pH is a logarithm, the arithmetic intuition most people bring to it is wrong. A drop from pH 5 to pH 4 is a tenfold increase in hydrogen ion concentration, and a drop from 5 to 2 is a thousandfold increase. Averaging pH values is meaningless for the same reason: the average of pH 3 and pH 5 is not pH 4, because you have to average the concentrations and take the logarithm afterwards, which lands close to pH 3.3.
The scale is also not bounded at 0 and 14. Those limits describe the range accessible with ordinary dilute solutions. A concentrated strong acid can have a negative pH, and a concentrated hydroxide solution can exceed 14. The bar on this page stops at the conventional ends because that is where nearly all work happens, but the numbers themselves keep going. If you are handling significant figures in a report, remember that only the digits after the decimal point in a pH are significant — pH 2.88 carries two significant figures, not three, which our significant figures calculator can help you keep straight.
Where pH Fits Among the Other Chemistry Tools
Getting to a pH usually starts somewhere else. If you weighed out a solid, you need its formula mass from the molar mass calculator and then a concentration from the molarity calculator before this page has anything to work with. If you are diluting a stock acid, the solution dilution calculator gives you the concentration that goes in the box here.
Going forwards, a titration calculator takes over when you are neutralising one solution with another and need the equivalence point, and the Henderson-Hasselbalch calculator handles buffered systems where a weak acid and its conjugate base coexist. For unit changes on a concentration you already have, the concentration converter is faster than recalculating.
Arb Digital publishes hundreds of free calculators across chemistry, maths, finance and marketing — no sign-up, no limits. If something you need is missing, tell us and we will look at building it.
Browse All Free Tools Suggest a ToolCommon Mistakes to Avoid
- Treating a weak acid as strong — 0.1 mol per litre acetic acid is pH 2.88, not pH 1. The concentration you added is not the hydrogen ion concentration.
- Using the square-root shortcut at low concentration — once ionisation passes about five percent the assumption behind it has already failed.
- Forgetting water in very dilute solutions — a strong acid can never produce a pH above 7, however little of it you add.
- Mixing up Ka and Kb — they are related through Kw, so Ka × Kb = 10⁻¹⁴ for a conjugate pair. Feeding a Kb into an acid calculation gives a confidently wrong answer.
- Assuming pH 7 is always neutral — it is neutral at 25 degrees. At other temperatures Kw changes and the neutral point moves with it.
Related Free Tools From Arb Digital
Work out a concentration first with the molarity calculator, get the formula mass behind it from the molar mass calculator, and convert between mass and amount with the moles to grams calculator. For neutralisation problems the titration calculator handles the stoichiometry, and the percent error calculator compares a measured pH against a predicted one. Everything else is listed on the free online tools hub.
Frequently Asked Questions
pH is the negative base-ten logarithm of the hydrogen ion activity in a solution. In dilute solutions the concentration is used in place of activity, so pH equals minus the logarithm of the hydrogen ion concentration in moles per litre.
Solve the equilibrium expression Ka equals x squared divided by C minus x, where C is the concentration you added and x is the hydrogen ion concentration. The positive root of the resulting quadratic gives x, and pH is minus the logarithm of x.
The square-root formula assumes ionisation is negligible compared with the starting concentration. That assumption fails at low concentrations or for stronger weak acids, sometimes contradicting its own answer. The quadratic is exact for the same equilibrium and costs nothing extra to solve.
No. If a calculation says so, water's own ionisation has been left out. Charge balance combined with the water equilibrium gives a hydrogen ion concentration of C plus the square root of C squared plus four times Kw, all over two, which always keeps a strong acid below pH 7.
At 25 degrees Celsius the ion product of water is 1.0 times ten to the minus fourteen, so pH plus pOH equals 14. At other temperatures Kw changes and that sum moves away from 14.
Only at 25 degrees Celsius. Neutral means equal concentrations of hydrogen and hydroxide ions. Because Kw rises with temperature, neutral water at body temperature sits closer to pH 6.8 while still being genuinely neutral.
A meter measures hydrogen ion activity, while the standard formula uses concentration. In solutions with high ionic strength the activity coefficient drops below one and the two diverge, often by a tenth of a unit or more. Calibration drift and temperature also contribute.
Yes. Fill the pKa or pKb box and the calculator converts it, since Ka equals ten to the power of minus pKa. Leave that box blank if you would rather type the constant directly in scientific notation.
This calculator is provided for education and general reference. It describes how pH is computed and is not laboratory, safety or handling guidance; follow the procedures and risk assessments issued by your own institution.