Solutions & pH calculator
Work out the pH of acids, bases and buffers exactly, get buffer recipes in grams, draw titration curves and convert solution concentrations.
How to use
- pH of a solution: pick a substance (or type your own pKa or pKb) and its concentration. You get pH, pOH, ion concentrations and how much of a weak acid or base has reacted with water.
- Buffer recipe: pick a buffer pair, the pH you want, the total strength and volume. You get the grams of each form to weigh. You can also type the moles of a mix you already have to see its pH.
- Titration curve: set the acid in the flask and the sodium hydroxide in the burette. The curve shows the pH as you add base, with the equivalence point marked.
- Concentrations: convert between mol/L, g/L, ppm and % w/v, find how much to weigh, turn a stock bottle's % w/w and density into mol/L, and mix two solutions.
Keyboard and touch
| Enter in a box | Work it out |
| Tab | Move between boxes and lists |
| Changing a list | Updates the answer straight away |
Tips
- A buffer works best within 1 pH unit of its pKa. Choose the pair whose pKa is closest to your target.
- Buffer recipes are a starting point: temperature and salt change the real pH a little. Always finish with a pH meter.
- Very dilute acids never go above pH 7: 10⁻⁸ mol/L HCl has pH 6.98, because water's own ions count.
- For simple dilution (C₁V₁ = C₂V₂) and grams-to-moles, use the Chemistry calculator.
- Safety: always add concentrated acid to water, never water to acid, and wear eye protection.
About this calculator
pH is found from the charge balance of the solution: [H⁺] + [Na⁺] + [BH⁺] = [Cl⁻] + [A⁻] + [OH⁻], with [A⁻] = C·Ka ÷ (Ka + [H⁺]), [BH⁺] = C·[H⁺] ÷ ([H⁺] + Kw/Kb) and [OH⁻] = Kw ÷ [H⁺]. This is solved exactly by halving the search range, with no "small x" shortcut. Kw = 1.0 × 10⁻¹⁴ at 25 °C; concentrations are treated as activities, which is accurate for dilute solutions.
Buffer recipes use the Henderson-Hasselbalch equation, pH = pKa + log₁₀([A⁻] ÷ [HA]). Titration curves apply the same charge balance at each volume of base added. pKa values are typical values at 25 °C from standard data tables. Everything runs in your browser.