About pH Calculator
pH is a logarithm, so small changes in the hydrogen ion concentration move the value a long way: 0.01 M HCl gives pH 2, while a weak acid at the same concentration can land near 3 or higher depending on its Ka. This calculator separates the cases rather than applying one formula to every acid, and it says which assumption each result depends on.
Strong acids and bases are treated as fully dissociated, weak acids and bases are solved from their equilibrium constant with the quadratic expression, and the direct conversion handles a measured [H⁺] or pH. Everything is calculated at 25 °C with Kw = 1.0 × 10⁻¹⁴; no temperature correction is applied.
What this tool does
Six calculation modes
Strong acid, strong base, weak acid, weak base, pH from [H⁺] and [H⁺] from pH, each with its own formula.
Exact weak-equilibrium solution
Weak acids and bases are solved from the quadratic expression rather than the small-x approximation, and the tool reports whether x is negligible compared with c.
Assumptions shown
Every result lists the dissociation, activity and water-autoionization assumptions behind it, so you know when the number is an ideal estimate.
[H⁺] and pH conversion
Convert a measured hydrogen ion concentration to pH and back, with [OH⁻] and pOH shown alongside.
Science-notation input
Accept Ka and Kb in forms such as 1.8e-5, and concentrations from 1e-12 to 10 mol/L.
Browser-only calculation
The maths runs locally; no concentration or equilibrium constant is uploaded or stored.
How to use pH Calculator
- 01
Choose the calculation mode
Pick the case that matches your system: a strong acid or base, a weak acid or base, or a conversion between [H⁺] and pH.
- 02
Enter the concentration
Type the analytical concentration in mol/L for the acid or base modes.
- 03
Add Ka or Kb for weak systems
Enter the acid dissociation constant or base constant, for example 1.8e-5 for acetic acid or ammonia.
- 04
Read pH and the companion values
The result card shows pH, pOH, [H⁺] and [OH⁻], and the working states the assumption each mode makes.
- 05
Check the range warning
If the result falls outside the usual 0–14 range, the tool says so instead of clamping the value.
How this tool works
- Works with
- pH
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- Chrome, Edge, Firefox or Safari · JavaScript enabled
Limitations worth knowing
- Assumes ideal solutions: concentrations are used in place of activities, so concentrated or high-ionic-strength samples will differ from the calculated pH.
- Strong acid and base modes assume complete dissociation and one ionizable proton or hydroxide per formula unit; polyprotic and weak-electrolyte cases need a more specific treatment.
- All calculations are at 25 °C with Kw = 1.0 × 10⁻¹⁴; no temperature correction is applied.
- The tool calculates equilibrium values, not a measurement; real pH depends on activity coefficients, temperature and electrode calibration.
Privacy and file handling
The concentration, Ka or Kb and pH values you enter are processed in your browser with plain JavaScript. Nothing is uploaded, stored or logged, and no network request is made; closing the page clears the form.
Read the full privacy policy
