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

pH calculator

pH = −log₁₀[H⁺], and at 25 °C pH + pOH = 14, so 0.01 M HCl is pH 2.00 and 0.05 M NaOH is pH 12.70. A weak acid also needs its pKa: 0.1 M acetic acid (pKa 4.76) is pH 2.88. This calculator converts between pH, pOH, [H⁺] and [OH⁻], solves strong and weak acids and bases exactly (including water’s own ions), and gives buffer pH, or the base-to-acid ratio for a target pH, with the Henderson–Hasselbalch equation, pH = pKa + log₁₀([A⁻]/[HA]).

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 · First published

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 examples: HCl, NaOH, acetic acid, ammonia and buffers

Six common cases, each the value the calculator gives (25 °C, concentrations for activities).

  1. Strong acid: 0.01 M HCl. Fully dissociated, so [H+]=0.01 M and pH=−log10⁡(0.01)=2.00.
  2. Very dilute acid: 10⁻⁸ M HCl. Not pH 8: water’s own ions dominate, and solving [H+]=C+Kw/[H+] gives pH 6.98.
  3. Strong base: 0.05 M NaOH. pOH=−log10⁡(0.05)=1.30, so pH=14−1.30=12.70.
  4. Weak acid: 0.1 M acetic acid (pKa 4.76). [H+]=1.31×10−3 M, pH 2.88, 1.3 % ionised. The shortcut pH≈12(pKa−log10⁡C) gives the same 2.88 here.
  5. Weak base: 0.1 M ammonia (pKa of NH₄⁺ 9.25). [OH−]≈KbC with Kb=10−4.75: pH 11.12.
  6. Buffer: equal amounts of acetic acid and sodium acetate. pH=pKa+log10⁡(1)=4.76. For pH 7.4 with phosphate (pKa₂ 7.20) the ratio [HPOA4A2−]/[HA2POA4A−] is 100.2=1.58.

pKa table of common buffers and weak acids

Choose a buffer whose pKa is within one unit of the pH you need. Values are thermodynamic pKa at 25 °C (Goldberg et al. 2002); the last numeric column is the change in pKa per °C. In real buffers, ionic strength lowers the apparent pKa of phosphate and citrate noticeably, so always finish with a pH meter.

pKa values at 25 °C
Acid or bufferpKaUseful pH rangeΔpKa per °CNotes
Citric acid3.13, 4.76, 6.402.1–7.4Three pKa values; antigen retrieval at pH 6.0
Acetic acid4.763.8–5.8+0.0002Hardly changes with temperature
MES6.275.3–7.3−0.011Good’s buffer
Carbonic acid / bicarbonate6.35, 10.335.4–7.4 and 9.3–11.3Exchanges CO₂ with air; cell culture media with 5 % CO₂
Imidazole6.996.0–8.0Also the His-tag elution reagent
PIPES7.146.1–8.1−0.0085Good’s buffer
MOPS7.186.2–8.2−0.011RNA electrophoresis
Phosphoric acid2.15, 7.20, 12.356.2–8.2 (pKa₂)−0.0028PBS; its apparent pKa₂ falls to about 6.8 at 0.1 M ionic strength
HEPES7.566.6–8.6−0.014Cell culture outside a CO₂ incubator
Tris8.077.1–9.1−0.028Strongly temperature dependent: set the pH at the working temperature
Tricine8.147.1–9.1Tricine-SDS-PAGE
Bicine8.337.3–9.3Good’s buffer
Boric acid9.248.2–10.2TBE, borate buffers
Ammonium (NH₄⁺/NH₃)9.258.2–10.2Ammonia is the base form
CHES9.398.4–10.4Good’s buffer
Glycine2.35, 9.788.8–10.8 (pKa₂)Glycine-NaOH; glycine-HCl near pH 2–3
CAPS10.509.5–11.5Western transfer at pH 11

How to make a buffer of a given pH

Henderson–Hasselbalch gives the fraction in the base form: fbase=r/(1+r) with r=10pH−pKa. Three worked recipes for 1 L:

  • 0.1 M sodium phosphate, pH 7.4 (pKa₂ 7.20): r=1.585, so 61.3 % base. Weigh 8.70 g Na₂HPO₄ (61.3 mM) and 5.34 g NaH₂PO₄·H₂O (38.7 mM). Because ionic strength lowers the apparent pKa₂ to about 6.8, the measured pH comes out lower; laboratory tables made with a pH meter use about 77 : 23 for pH 7.4. Titrate with NaOH to 7.4.
  • 50 mM Tris-HCl, pH 8.0 at 25 °C (pKa 8.07): 54.0 % of the Tris must be protonated. Dissolve 6.057 g Tris base in 800 mL and add about 27.0 mL of 1 M HCl, check with a pH meter, then make up to 1 L. Used at 4 °C, the same solution reads about pH 8.6.
  • 0.1 M sodium acetate, pH 5.0 (pKa 4.76): r=100.24=1.74, 63.5 % acetate. Weigh 8.64 g sodium acetate trihydrate and add 2.09 mL glacial acetic acid, then make up to 1 L.

pH, [H⁺] and pOH at a glance

pH and hydrogen ion concentration at 25 °C
pH[H⁺] (mol/L)pOH
0114Acidic
110⁻¹13Acidic
210⁻²12Acidic
310⁻³11Acidic
410⁻⁴10Acidic
510⁻⁵9Acidic
610⁻⁶8Acidic
710⁻⁷7Neutral
810⁻⁸6Basic
910⁻⁹5Basic
1010⁻¹⁰4Basic
1110⁻¹¹3Basic
1210⁻¹²2Basic
1310⁻¹³1Basic
1410⁻¹⁴0Basic

Each pH unit is a tenfold change in [H⁺]: pH 6 has ten times the [H⁺] of pH 7. At 37 °C, Kw is about 2.4×10−14 and neutral water is pH 6.8.

Common mistakes with pH and buffers

  • Taking −log of the acid concentration for a weak acid. 0.1 M acetic acid is pH 2.88, not 1; only strong acids are fully dissociated.
  • Using the base’s pKb as a pKa. For ammonia or Tris, use the pKa of the conjugate acid (9.25 and 8.07); pKa + pKb = 14.
  • Ignoring temperature. Tris loses about 0.028 pH units per °C: a buffer set to pH 8.0 at 25 °C is about 8.6 at 4 °C and 7.7 at 37 °C.
  • Trusting Henderson–Hasselbalch for the final pH. It uses concentrations instead of activities, so salt shifts the real pH; use it to get close, then adjust with a pH meter.
  • Diluting a 10× buffer and expecting the same pH. The ratio stays the same, but the ionic strength changes and the pH can shift by 0.1 or more, especially for phosphate.
  • Choosing a buffer far from its pKa. Outside pKa ± 1 there is little buffering capacity.

References

  1. Goldberg RN, Kishore N, Lennen RM. Thermodynamic quantities for the ionization reactions of buffers. J Phys Chem Ref Data 2002;31:231–370. doi:10.1063/1.1416902
  2. Good NE, Winget GD, Winter W et al. Hydrogen ion buffers for biological research. Biochemistry 1966;5:467–477. doi:10.1021/bi00866a011
  3. Ferguson WJ, Braunschweiger KI, Braunschweiger WR et al. Hydrogen ion buffers for biological research. Anal Biochem 1980;104:300–310. doi:10.1016/0003-2697(80)90079-2
  4. Stoll VS, Blanchard JS. Buffers: principles and practice. Methods Enzymol 1990;182:24–38. doi:10.1016/0076-6879(90)82006-N
  5. Cohen ER, Cvitaš T, Frey JG et al. Quantities, Units and Symbols in Physical Chemistry (IUPAC Green Book), 3rd ed. RSC Publishing; 2007. doi:10.1039/9781847557889
  • Molarity calculatorGrams to weigh for a molar solution (m = C × V × M), or the molarity or volume from a mass.
  • Dilution calculatorC₁V₁ = C₂V₂ for whichever value is missing, and serial dilutions planned tube by tube.
  • RHE converterPotentials vs Ag/AgCl, SCE or Hg/HgO converted to the RHE scale, with iR correction and overpotential.
  • All 43 lab calculatorsSolutions, molecular biology, cell culture, assays, electrochemistry and materials, on one page.

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.

How do I calculate pH from pKa?

For a buffer, pH=pKa+log10⁡([A−]/[HA]): equal amounts give pH = pKa. For a weak acid alone, pH≈12(pKa−log10⁡C) when it is only slightly ionised; 0.1 M acetic acid gives 12(4.76+1)=2.88.

Which buffer should I use for pH 7.4?

One with a pKa between about 6.4 and 8.4: HEPES (7.56), phosphate (7.20), MOPS (7.18) or PIPES (7.14) at 25 °C. Tris (8.07) works at 7.4 but buffers weakly there and shifts with temperature.

What is the pH of pure water?

7.00 at 25 °C, where [H+]=[OH−]=10−7 M. Neutral pH falls as temperature rises (about 6.8 at 37 °C) because Kw grows; water stays neutral. Water left in air absorbs CO₂ and reads about pH 5.6.

Make the whole figure in LabCanvas

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

Get started