EN

Buffer pH Calculator (Henderson-Hasselbalch)

A flask of DMEM in a 5% CO2 incubator looks inert. It is not. Phenol red stays salmon only while bicarbonate and dissolved carbon dioxide sit in a fixed ratio. Twenty minutes on the bench with the lid off, and the colour drifts toward purple: CO2 leaves, pH climbs, cells that were content at 7.4 start to round up. A buffer is what holds that window.

pH = pKa + log ( [A⁻] / [AH] )

The Henderson–Hasselbalch relation gives the pH of a weak acid mixed with its conjugate base, the masses to weigh for a target pH, and the buffering capacity — the reserve that decides whether a culture, a plasma sample or an enzyme assay survives the next addition.

Your buffer

What you are looking for

Change mode and run the calculation again: the fields to fill in adapt.

The acid / base couple

A few landmarks: acetic acid / acetate 4.76 · H₂PO₄⁻ / HPO₄²⁻ 7.20 · Tris 8.06 · HCO₃⁻ / CO₃²⁻ 10.33. For an amine buffer, use the pKa of the conjugate acid (the ammonium ion), not that of the base.

Composition of the mixture

The pH depends only on the ratio of the two: 30 and 20 give the same pH as 3 and 2.

useful range: pKa ± 1βpH5678910pKa = 7.20pH = 7.40β = 0.0546 mol·L⁻¹/pH
Outline diagram (demonstration values). The bell recentres on the entered pKa and the marker moves to the entered pH after a calculation.

Starred terms are spelled out in the glossary at the end of the article.

Why a culture flask or a vein needs a buffer

Mammalian cells keep a narrow window: roughly 7.2 to 7.4 in the medium, 7.35 to 7.45 in arterial plasma. A few tenths either way and enzymes stall, proteins aggregate, a monolayer peels. The job of a buffer* is not to decorate a label with “pH 7.4”. It is to swallow the next load of protons — lactate from a dense culture, CO2 from a glove box, a shot of HCl in an assay — without letting that window slam shut.

Arterial blood gas makes the point without a lecture. pH 7.25 is already acidosis. pH 7.55 is already alkalosis. The patient has not “gone a bit off”. Hydrogen-ion concentration has moved by a factor of two. Same story in a T-flask: phenol red turning yellow is not a colour preference. It is lactate, and the medium has run out of reserve.

The conjugate pair, and what is not a buffer

A buffer is a conjugate pair*: a weak acid AH and its conjugate base A−, both present, in amounts of the same order. Acetic acid and acetate. Dihydrogen phosphate and hydrogen phosphate. Protonated Tris and free Tris. Pour in strong acid and A− takes the proton. Pour in strong base and AH gives one up. pH shifts. It does not leap — while both forms last.

A weak acid on its own is not a buffer. NaOH is not a buffer. Sodium chloride at pH 7 is not a buffer: there is no reservoir of protons to give or take. A saturated salt solution is another animal entirely. The word gets borrowed. The chemistry does not.

In a vein the pair is carbonic acid / bicarbonate, with haemoglobin riding alongside. In a bottle of DMEM it is dissolved CO2 / HCO3−, sometimes with HEPES as a back-up for the hour the flask spends on the hood. Same idea, different furniture.

Henderson–Hasselbalch: the ratio, and what it leaves out

Start from Ka = [H3O+][A−] / [AH]. Take −log of both sides, rearrange, and the Henderson–Hasselbalch* equation drops out:

pH = pKa + log([A−] / [AH])

The pKa* belongs to the pair, at a stated temperature and ionic strength. The logarithm sees only the ratio of the two forms. Double both concentrations and pH is unchanged. Flip the ratio by ten and pH moves one unit. That is the whole trick, and it is enough: read the pH of a known mix, or set a pH and back-calculate the weighings.

Three omissions sit in the small print. Activities, first — the equation uses concentrations, not ai, so a salty medium has an apparent pKa that is not the table value. Water’s own ions, second: below about 10−3 mol/L, or more than two pH units from the pKa, autolysis of water is no longer a rounding error. Temperature and ionic strength, third, which move the pKa itself. This page uses Henderson the way a bench uses it. It is not a law of nature. For a strong or weak acid on its own, with no pair, the arithmetic is the other calculator, the one for pH of acids and bases.

Pick a pKa within one unit of the working pH

At pH = pKa the two reservoirs are equal. That is where the mix soaks up acid and base with the same appetite. One unit either side, the ratio runs from 0.1 to 10. Still usable: a tenth of the minor form remains. Past that, one partner is almost gone. The buffer becomes a jug with a single handle — it still takes a blow from one side, not from the other.

So the working rule is a grocer’s count, not a creed. Choose a pair whose pKa sits inside target pH ± 1. Acetate (4.76) for an extraction at 5. Phosphate (pKa2 7.20) for an enzyme assay at 7.4. Tris (8.06) for a gel at 8.3. Acetate is not “adjusted to pH 9”. The pair is swapped.

Blood bicarbonate breaks the rule, and the break is the point: it is an open system, with one form leaving as a gas. In a closed bottle, parking a pKa three units from the working pH is a label without a reserve.

Buffering capacity β: the reserve, not the reading

Two flasks can both read 7.40 and have nothing in common. One is 100 mmol/L, the other 5. The first eats an addition that wrecks the second. The number that tells them apart is buffering capacity β*: moles of strong base per litre of solution needed to move pH by one unit. Same idea, inverted, for strong acid.

β = 2.303 · C · x · (1 − x)    with x = [A−] / C

C = [AH] + [A−] is the total pair concentration. β peaks at x = 0.5, i.e. at the pKa, where it equals 0.576 · C. One unit out, about a third of that peak is left. The bell on the diagram is the same story: fat at the top, steep on the flanks. Double C, double β. That is the honest way to buy more reserve without changing pair.

In practice a 0.10 mol/L phosphate buffer at pH 7.20 has β ≈ 0.058 mol·L−1 per pH unit. Five millimoles of HCl in a litre shift pH by about 0.09. The same shot in pure water drops pH below 3. That comparison is the test. A buffer is not a printed pH. It is a measurable resistance.

Two bench recipes: weigh both, or titrate

Two routes, both sound if they are finished. First: weigh both forms. Acetic acid plus sodium acetate. KH2PO4 plus Na2HPO4. Tris base plus Tris-HCl. Dissolve, make up in a volumetric flask. The ratio is the ratio of the weighings. pH follows Henderson, give or take ionic strength and temperature. That is the calculator’s “amounts to weigh” mode.

Second: start from one form, nearly always the acid, and titrate with strong base to the target pH. Weigh the acetic acid, run in NaOH, watch the meter, make up. The ratio is built under the electrode, not on the balance. The meter has to be calibrated, and the reading has to settle. Cell-culture bicarbonate often follows a cousin of this route: dissolve NaHCO3, let the 5% CO2 atmosphere set the equilibrium, glance at phenol red — then use the meter, not the colour alone.

Either way, the ratio is calculated first, then weighed, then checked. “A few drops of HCl until the paper turns” is not a recipe. Molar masses, hydrates included, come off the bottle: Na2HPO4·12H2O is not the anhydrous salt, and the mass gap is not a rounding error.

Dilution holds the pH and empties the tank

Henderson sees the ratio and nothing else. Dilute tenfold and both concentrations fall by the same factor, so the ratio — and the pH — stay put, until water itself starts to count. β, though, is now a tenth. A 1 mmol/L acetate buffer at pH 4.76 has the right reading and no reserve. A splash of acid throws it. A 100 mmol/L buffer at the same pH eats what the first never saw.

That is the trap in a medium “already at 7.4” stretched with serum or water. pH holds. Capacity does not. Diluting a 10× DMEM without resetting the bicarbonate keeps the colour and loses the tank. Diluting a solution conserves the amount of solute. It does not conserve buffering capacity per litre.

At very low concentration even the pH lets go. Water brings 10−7 mol/L of H3O+ and OH−. A 0.1 mmol/L buffer is no longer in charge. Henderson then promises a number the meter will not show.

Temperature, ionic strength, and the pKa on the bottle

Tables are written at 25 °C, often at I ≈ 0.1. An enzyme runs at 37 °C. A gel run sits at 4 °C. The pKa is not the same. Tris drops by about 0.03 unit per degree. A Tris buffer at 8.10 at 25 °C sits near 7.74 at 37 °C and near 8.73 at 4 °C. That is more than half a unit — enough to walk an enzyme out of its range, or to make a band pattern lie.

Phosphate barely budges (pKa2 around −0.003 per °C). HEPES sits near −0.014. The pair is chosen for that, too. An assay at 37 °C in Tris standardised at 25 °C is a paper pH. PBS, over the same swing, more or less keeps the label.

Ionic strength shifts the apparent pKa through activities. Adding KCl to match I = 0.15 — plasma, PBS — is not a free move. Biochemists do it on purpose and take the pKa at that ionic strength. Forgotten in a teaching lab, calculated and measured pH often differ by 0.1 to 0.2. Not a disaster. Not nothing. And a “salt-free” buffer is a fiction: both forms of the pair are already ions, and C = 0.1 mol/L is not I = 0.

Acetate, phosphate, Tris, carbonate, MES, HEPES

The choice is a pH window, a temperature, and what the medium is allowed to hold — calcium, magnesium, amines, CO2. Not a brand.

PairpKa (≈ 25 °C)Useful windowWhere it turns up
Acetic / acetate4.763.8 – 5.8Extractions, chromatography, food
H2PO4− / HPO42−7.206.2 – 8.2PBS, enzymology, the biological default
Tris-H+ / Tris8.067.1 – 9.1Electrophoresis, molecular biology
HCO3− / CO32−10.339.3 – 11.3Alkaline media; CO2/HCO3− is a different pKa
MES6.155.2 – 7.2Good’s buffers, little chelation
HEPES7.556.6 – 8.5Cell culture, Good’s buffers

Tris* (tris(hydroxymethyl)aminomethane) is an amine. The pKa to enter is that of the conjugate acid, the ammonium ion, not the free base — a classic table trap. It binds some metals weakly, it is sharply temperature-sensitive, and it crosses membranes. For a culture, not the first pick. For a gel, yes.

HEPES* and MES belong to Good’s buffers*, a zwitterionic family built in the 1960s for organelle work: pKa between 6 and 8, little metal binding, poor membrane permeability. HEPES at 10–25 mmol/L often rides along with bicarbonate in a DMEM meant to leave the incubator. At high concentration it is not harmless to every line; the medium’s dose is the dose, not a syrup.

Phosphate precipitates with Ca2+ and Mg2+. In a culture medium or a PCR mix, that is an argument against it. Acetate has no business in a 37 °C incubator full of mammalian cells. Each pair has a floor.

Blood bicarbonate: an open system far from its pKa

Apparent pKa around 6.1, arterial pH 7.40: the ratio HCO3− / dissolved CO2 is not 1, it is near 20. Outside the pKa ± 1 window, then. It still holds, because CO2 leaves through the lungs. An open buffer, not a capped bottle. Ventilation sets PCO2; the kidney sets HCO3−. Henderson then takes the form every blood-gas slip uses:

pH = 6.1 + log([HCO3−] / (0.03 · PCO2))

Copy that into an Erlenmeyer and the CO2 leaves, pH soars. Same thing happens to a bottle of DMEM left open on the bench: phenol red goes purple, and any cells dunked in it start the day badly. Blood is not a flask. While ventilation keeps up, the pair works far from its pKa without running dry, because one form is a gas.

The 6.1 figure is itself an apparent pKa. True H2CO3 is a stronger acid (pKa near 3.6), but most dissolved CO2 is not hydrated. Physiology lumps that into one effective constant. Textbook 6.35 and clinical 6.1 are not a quarrel. They are not counting the same numerator.

Polyprotic pairs: which pKa phosphate and citrate actually use

Phosphoric acid has three acidities: pKa1 ≈ 2.16, pKa2 ≈ 7.21, pKa3 ≈ 12.32. Around pH 7 only the second pair is in play, H2PO4− / HPO42−. The first is already fully deprotonated, the third still far off. PBS at pH 7.4 is that pair, and that pair only, as far as Henderson is concerned.

Citric acid has three pKa values as well (near 3.13, 4.76 and 6.40). At a given pH the nearest one is used and the others are ignored, provided they sit more than a unit away. This page takes one pair. Not three at once. Citrate at pH 5: enter 4.76. Phosphate at pH 7.4: enter 7.20.

Checking with a meter: calibration, drift, sodium error

The calculation is a model pH. The meter is the flask’s pH, if it is treated as one. Two calibration buffers that bracket the reading: 4.01 and 7.00, or 7.00 and 10.01. Rinse the electrode; do not wipe it on a lab coat. Temperature on the display, or a compensation probe plugged in. Wait for a steady number, not the first digit that pauses for a second.

In alkali the sodium error — Na+ read as H+ by the glass — pulls the displayed pH down. Tris at pH 9, poorly calibrated, is fiction. At 37 °C a meter standardised at 25 °C lies as well, all the more if the pair is temperature-sensitive. Culture medium is measured at incubator temperature, not “straight from the fridge”.

Indicator paper to 0.5 unit is not a checked buffer. It is a mood. Phenol red in DMEM says “too alkaline” or “too acid”. It does not say 7.42.

DMEM, phenol red, and time outside the incubator

A standard DMEM carries 44 mmol/L bicarbonate (3.7 g/L NaHCO3) and is meant for 5% CO2. Under that atmosphere the CO2 / HCO3− pair settles near 7.4. Out of the cabinet the gas leaves and pH climbs. Hence HEPES at 10–25 mmol/L in “HEPES-buffered” media, meant for handling on the bench — a sort, a transfection, an hour on the microscope. It is not a stand-in for bicarbonate in long culture: mammalian cells need CO2 / HCO3− for metabolism, not only for pH.

Phenol red (pKa near 7.5) is a witness, not a measurement. Salmon is the zone. Yellow, the monolayer has acidified — too many cells, too much lactate. Purple, the flask has lost CO2, or the cap was not vented. A purple DMEM is not “fixed” with three drops of HCl. It goes back under 5%, or a fresh bottle is opened.

Haemoglobin inside the red cell

Plasma is not working alone. Inside the erythrocyte, haemoglobin buffers as much as plasma bicarbonate, or more. Its histidines take and give protons as oxygenation changes. The Bohr effect is exactly that: deoxy-Hb is a better H+ acceptor, which lets tissue CO2 leave as bicarbonate without dropping local pH as far as it otherwise would.

A single-pair calculator cannot do that justice. Blood is a stacked, open system looking out onto alveolar air. The page computes a bottle. A bottle is not an organism. Even so, the same relation — pH = pKa + log([A−]/[AH]) — is the language in which a blood-gas slip and a culture medium are both read.

Autoclaves, shelf life, and what the model skips

Phosphate survives the autoclave. Bicarbonate does not: CO2 leaves at 121 °C, pH soars, and what remains is no longer the weighed ratio. Tris stands the heat; some of Good’s buffers break down in heat and light. What is not heated is filter-sterilised. The bottle is dated.

The model on this page skips activity, room CO2, electrode drift, a hydrate misread on the label, and the real temperature of the bath. The usual gap between calculated and measured pH, 0.05 to 0.2, is not always a bug. It is often the bench. The number is there to weigh and to aim. The meter, at working temperature, has the last word before anything is seeded.

Glossary

Buffer
A mixture of a weak acid and its conjugate base, in comparable amounts, able to absorb a shot of strong acid or base without a large pH swing. Not a saturated solution, and not a bottle that merely carries a pH on the label.
Conjugate pair
The two forms of the same acid–base that exchange a proton: AH and A−. Without both, there is no buffer. For an amine (Tris), the pair is the ammonium ion and the free base.
Henderson–Hasselbalch
The relation pH = pKa + log([A−]/[AH]). It gives the pH of a buffer from the ratio of the two forms, working in concentrations and ignoring the autolysis of water.
pKa
The acid dissociation constant as −log Ka. It is the pH at which the pair is half-dissociated ([A−] = [AH]). It depends on temperature and ionic strength.
Buffering capacity β
The amount of strong base, in mol/L of solution, needed to move pH by one unit. Largest at the pKa, proportional to the total concentration of the pair. A correct pH with a small β is only a label.
Tris
Tris(hydroxymethyl)aminomethane, an amine widely used in molecular biology. pKa ≈ 8.06 at 25 °C, sharply temperature-sensitive (about −0.03 unit per °C). The pKa entered is that of the conjugate acid, not the free base.
HEPES
4-(2-hydroxyethyl)-1-piperazineethanesulfonic acid. A zwitterionic buffer, pKa ≈ 7.55, common in cell culture to hold pH outside the incubator, alongside bicarbonate rather than instead of it.
Good’s buffers
A family of zwitterionic buffers (MES, HEPES, MOPS, PIPES…) introduced by N. E. Good in the 1960s for cell biochemistry: pKa between 6 and 8, little metal chelation, poor membrane permeability.

Related calculators