LabCanvas
Free account · save your work, full figure editorSign up free

pH calculator

pH = −log₁₀[H⁺] and, at 25 °C, pH + pOH = 14. This calculator converts between pH, pOH, [H⁺] and [OH⁻], gives the pH of strong and weak acids and bases (solving the full equilibrium, including water), and calculates buffer pH or the base-to-acid ratio for a target pH with the Henderson–Hasselbalch equation.

What it does
Converts between pH, pOH, [H⁺] and [OH⁻], gives the exact pH of strong and weak acids and bases, and designs buffers with Henderson–Hasselbalch, at 25 °C.
Formula
pH=−log10⁡[H+]Kw=1.0×10−14weak acid: [H+]3+Ka[H+]2−(KaC+Kw)[H+]−KaKw=0buffer pH=pKa+log10⁡([A−]/[HA])
Example
0.1 M acetic acid (pKa 4.76) gives [H⁺] = 1.31 × 10⁻³ M, so pH = 2.88 with 1.3 % ionised.

Last updated

FreeNo sign-upRuns in your browserLab calculators

Loading pH calculator…

At a glance

pH calculator at a glance
ConvertspH, pOH, [H⁺] and [OH⁻] (Kw=1.0×10−14 at 25 °C)
Strong acids and basesFully dissociated, with water’s own ions, so very dilute solutions come out right
Weak acids and basesSolved exactly from the charge balance, from pKa
BufferspH=pKa+log10⁡([A−]/[HA]), and the ratio for a target pH
LimitConcentrations stand in for activities, which is accurate for dilute solutions
Runs inYour web browser; nothing is uploaded
PriceFree, no account needed

What it does

How to use the pH calculator

  1. Choose a calculatorConvert a value, or calculate for a strong acid/base, a weak acid/base or a buffer.
  2. Enter the valuesType the concentration and, for weak acids, bases and buffers, the pKa (or pick a common one).
  3. Read the resultGet the pH with pOH, [H⁺] and [OH⁻], plus the fraction ionised or the buffer ratio.

How it works

pH=−log10⁡[H+]pOH=−log10⁡[OH−][H+][OH−]=Kw=1.0×10−14  (25 ∘C)Weak acid:[H+]3+Ka[H+]2−(KaC+Kw)[H+]−KaKw=0Buffer: pH=pKa+log10⁡[A−][HA]

Strong acids are treated as fully dissociated with water’s own ions included, so a 10−8 M HCl solution correctly gives a pH just below 7. Weak acids and bases are solved exactly from the charge balance rather than with the KaC shortcut. Concentrations stand in for activities, which is accurate for dilute solutions.

Worked example

0.1 M acetic acid (pKa 4.76): [H+]=1.31×10−3 M, so pH=2.88, with 1.3 % of the acid ionised. A phosphate buffer at pH 7.4 (pKa 7.20) needs [HPOA4A2−]/[HA2POA4A−]=100.2=1.58.

Frequently asked questions

How do you calculate pH from concentration?

For a strong acid, pH=−log10 of the acid concentration (times the number of protons released). For a weak acid you also need Ka: [H+]≈Ka×C when the acid is only slightly ionised, or solve the equilibrium exactly, as this calculator does.

What is the Henderson–Hasselbalch equation?

pH=pKa+log10⁡([A−]/[HA]). It gives the pH of a buffer from the ratio of base to acid forms, and buffers work best within one pH unit of the pKa.

Why is pH + pOH = 14?

Because water’s ion product Kw=[H+][OH−]=1.0×10−14 at 25 °C. At other temperatures Kw changes, so the sum is not exactly 14.

Can pH be negative?

Yes, for very concentrated strong acids (above 1 M), although activities then differ from concentrations and measured values deviate from the simple formula.

Does Tris buffer pH change with temperature?

Yes, strongly: Tris’s pKa drops by about 0.03 per °C, so set the pH at the temperature you will use it.

Make the whole figure in LabCanvas

Vector figure editor, slides, 3D models, protein structures and Prism-style graphs, in your browser.

Get started