Henderson-Hasselbalch Calculator

A buffer holds its pH steady when small amounts of acid or base are added, and this free Henderson-Hasselbalch calculator works out the pH of such a buffer from its pKa and its base to acid ratio.

Solve the Henderson-Hasselbalch Equation

Solving for pH: enter the pKa and the concentrations of the conjugate base and the weak acid. The pH field shows the answer.

HA and A- in equilibrium at pH 4.76 pH 4.76 Ratio [A-]/[HA] = 1.00 [H+] = 1.74×10⁻⁵ mol/L · 50.00% dissociated HA HA HA HA A- A- A- A- ⇌ HA (acid) A- (conjugate base) 0 7 14
Your buffer
pH
pKa
Ratio [A-]/[HA]
[H+] (mol/L)
Acid Dissociated
Dominant Species
What the number means
Formula Used
Henderson-Hasselbalch works with activities, not concentrations, so it is exact only for dilute solutions at 25 °C. When the ratio is 1, the pH equals the pKa, and a buffer works best within one pH unit of its pKa.
Acid / Base PairpKaRatio [A-]/[HA]pH

Eight common acid and base pairs at 25 °C. The highlighted row matches your pKa and pH: acetic acid at pKa 4.76 and a ratio of 1.00 is pH 4.76.

Powered by Techraxy

Creator & Reviewer

Faiq Ur Rahman

Founder & CEO, Techraxy

Faiq Ur Rahman is a web designer, digital product developer, and Founder of Techraxy, a growing platform of online calculators and utility tools. He specializes in building structured, user-friendly tools focused on finance, health, conversions, productivity, and everyday problem-solving. He is passionate about developing practical digital solutions that make complex tasks simpler for users worldwide.

Share:

Rate this Tool

User Ratings:

0
0 out of 5 stars (based on 0 reviews)
Excellent
Very good
Average
Poor
Terrible

ADVERTISEMENT

ADVERTISEMENT

A buffer holds its pH steady when small amounts of acid or base are added, and this free Henderson-Hasselbalch calculator works out the pH of such a buffer from its pKa and its base to acid ratio. Run 0.10 mol/L of acetic acid with 0.10 mol/L of acetate through it, with a pKa of 4.76, and the answer is pH 4.76, because the ratio is 1.00 and the logarithm of 1 is 0. Change the acetate to 0.174 mol/L and the ratio becomes 1.74, so the pH rises to 5.00. The same equation also runs backwards: give it a target pH and it tells you the ratio you need, or give it a pH and a ratio and it tells you the pKa.

The calculator solves for any one of the three parts of the equation: the pH, the pKa, or the ratio of conjugate base to weak acid. It also returns the hydrogen ion concentration and the percentage of the acid that is dissociated, so you can see what the ratio means in chemical terms. The diagram shows two beakers, one for the acid HA and one for its conjugate base A-, with liquid levels and particle dots that shift as the ratio changes, and a pH scale below with a marker at your pH.

What is a Henderson-Hasselbalch Calculator?

A Henderson-Hasselbalch calculator is a tool that applies the Henderson-Hasselbalch equation, pH equals pKa plus log10 of the ratio [A-] over [HA], where [A-] is the concentration of the conjugate base and [HA] is the concentration of the weak acid. The equation is the acid dissociation constant written in logarithmic form. The dissociation HA giving H+ plus A- has Ka equal to [H+] times [A-] divided by [HA], and taking the negative logarithm of both sides gives pH equals pKa plus log10 of [A-] over [HA]. A buffer is a mixture of a weak acid and its conjugate base, and the equation is the standard way to find its pH.

The pKa is the strength of the acid on a log scale: pKa equals minus log10 of Ka, so a smaller pKa means a stronger acid. Acetic acid has a pKa of 4.76, formic acid 3.75, and ammonium 9.25. If you need a pKa and do not know it, the pKa Calculator works it out from the Ka. The ratio is what moves the pH away from the pKa: a ratio of 10 raises the pH one unit above the pKa, and a ratio of 0.1 lowers it one unit below, because log10 of 10 is 1 and log10 of 0.1 is minus 1. When the ratio is exactly 1, the two concentrations are equal, log10 of 1 is 0, and the pH equals the pKa.

The percentage dissociated is the fraction of the acid that has lost its proton, which is [A-] divided by [A-] plus [HA], times 100. Written with the ratio r, it is r divided by 1 plus r, times 100. At a ratio of 1, exactly 50.00 percent is dissociated. At a ratio of 10, about 90.91 percent is, and at a ratio of 0.1, about 9.09 percent is. The hydrogen ion concentration follows from the pH: [H+] equals 10 to the power of minus pH, so at pH 4.76 it is 1.74 times 10 to the power of minus 5 mol/L.

How to Use the Henderson-Hasselbalch Calculator

Pick what to solve for first. The default mode solves for pH: enter the pKa, the [A-] concentration and the [HA] concentration, and the pH field shows the answer. Switch the mode to pKa and the pKa field becomes the answer: enter the pH and the two concentrations instead. Switch it to the ratio and the two concentration fields show a pair of concentrations that give the answer ratio: enter the pH and the pKa instead. When you switch modes, the calculator carries the current answer across, so a pH of 5.00 found in one mode becomes the starting pH of the next.

Read the results in order. The first rows give the pH, the pKa and the ratio, then the hydrogen ion concentration in scientific notation, the percentage of the acid dissociated, and the dominant species, which says whether the mixture is mostly acid, mostly base, or an equal mix. The formula row shows the exact form applied for the mode you picked. The highlight sentence repeats the answer in plain words, with the inputs it used, so you can check that nothing was mistyped.

The diagram shows the equilibrium as two beakers. The left beaker holds the acid HA in blue and the right beaker holds the conjugate base A- in green. The liquid level and the number of particle dots in each beaker follow the fraction of each form, so raising [A-] fills the right beaker and empties the left one. The marker on the pH scale below slides to your pH, so changing the pKa moves the marker even when the ratio stays put. If you want the pH of a named buffer system rather than the raw equation, the Buffer pH Calculator starts from the buffer system instead.

The Compare Pairs tab puts eight common acid and base pairs side by side, each with its pKa, a stated ratio and the resulting pH: acetic acid, formic acid, carbonic acid, phosphoric acid step 2, ammonium, hypochlorous acid, hydrofluoric acid and propionic acid. The row matching your pKa and pH is highlighted. If no row matches, the note says so, and the table still shows all eight values.

Henderson-Hasselbalch Calculator Formula

The formula is pH equals pKa plus log10 of [A-] divided by [HA], where pKa is minus log10 of Ka, [A-] is the conjugate base concentration in mol/L, and [HA] is the weak acid concentration in mol/L. Rearranged, pKa equals pH minus log10 of [A-] divided by [HA], and the ratio [A-] divided by [HA] equals 10 to the power of pH minus pKa. The hydrogen ion concentration is [H+] equals 10 to the power of minus pH, and the percentage dissociated is the ratio divided by 1 plus the ratio, times 100.

Written out for the defaults, 0.10 mol/L of acetic acid with 0.10 mol/L of acetate and a pKa of 4.76: the ratio is 0.10 divided by 0.10, which is 1.00. Log10 of 1.00 is 0, so the pH is 4.76 plus 0, which is 4.76. The [H+] is 10 to the power of minus 4.76, which is 1.74 times 10 to the power of minus 5 mol/L. The percentage dissociated is 1.00 divided by 2.00, times 100, which is 50.00 percent.

The log step is the part most often done wrong. The ratio goes inside the logarithm, so doubling the ratio does not double the pH: it adds log10 of 2, which is 0.30. A tenfold change in the ratio moves the pH by exactly 1.00, which is why a buffer resists pH change: a large change in the amounts only moves the pH a little. The Hydrogen Ion Concentration Calculator converts between pH and [H+] on its own if you need that step separately.

Worked Example

Take an acetate buffer at a target pH of 5.00. The pKa of acetic acid is 4.76, so the ratio needed is 10 to the power of 5.00 minus 4.76, which is 10 to the power of 0.24, which is 1.74. With 0.10 mol/L of acetic acid, that means 0.174 mol/L of acetate. Checking it forwards: the ratio is 0.174 divided by 0.10, which is 1.74, log10 of 1.74 is 0.24, and 4.76 plus 0.24 is 5.00. The [H+] is 9.99 times 10 to the power of minus 6 mol/L, and 63.50 percent of the acid is dissociated.

The phosphate buffer in blood works the same way, using the second step of phosphoric acid, which has a pKa of 7.20. With 0.10 mol/L of dihydrogen phosphate and 0.158 mol/L of hydrogen phosphate, the ratio is 1.58, log10 of 1.58 is 0.20, and the pH is 7.20 plus 0.20, which is 7.40, the pH of blood. The [H+] is 3.99 times 10 to the power of minus 8 mol/L, and 61.24 percent of the acid form is dissociated. Running it backwards, a pH of 7.40 with a ratio of 1.58 gives a pKa of 7.40 minus 0.20, which is 7.20.

A ratio below 1 pulls the pH below the pKa. Propionic acid has a pKa of 4.87, and with 0.05 mol/L of propionate and 0.20 mol/L of propionic acid the ratio is 0.25, log10 of 0.25 is minus 0.60, and the pH is 4.87 minus 0.60, which is 4.27. Only 20.00 percent of the acid is dissociated, so the mixture is mostly acid.

Benefits of Using a Henderson-Hasselbalch Calculator

The first benefit is designing a buffer instead of guessing one. Pick the pH you need, pick an acid whose pKa is close to it, and the calculator gives the exact ratio to mix. A buffer works best within one pH unit of its pKa, so the ratio stays between 0.1 and 10, and the calculator shows at once when a target pH is out of reach for the acid you picked.

The second benefit is checking a buffer you already made. Enter the two concentrations you actually mixed and the calculator gives the pH, the [H+] and the percentage dissociated, so you can compare the result with a pH meter reading. If the reading disagrees by more than a few hundredths, the most likely causes are a wrong pKa, a concentration error, or a solution too concentrated for the dilute approximation.

The third benefit is seeing what the ratio means. A ratio of 1.74 is hard to picture, but 63.50 percent dissociated and a [H+] of 9.99 times 10 to the power of minus 6 mol/L are concrete, and the diagram makes the same point visually: the two beakers fill and empty as the ratio moves. Students can watch the acid beaker drain as the base beaker fills, and see that the pH marker only moves a little for a large change in the amounts.

The fourth benefit is handling polyprotic acids correctly. Phosphoric acid has three pKa values, 2.15, 7.20 and 12.35, and the wrong one gives a wildly wrong pH. The Compare Pairs tab states which step each row uses, so the phosphate row uses 7.20, the step that pairs dihydrogen phosphate with hydrogen phosphate, and the carbonic acid row uses 6.35, the first step that pairs carbonic acid with bicarbonate.

Frequently Asked Questions

What is the Henderson-Hasselbalch equation?

It is pH equals pKa plus log10 of [A-] divided by [HA], where [A-] is the conjugate base concentration and [HA] is the weak acid concentration. It is the acid dissociation constant Ka equals [H+] times [A-] divided by [HA], rewritten in logarithmic form. For 0.10 mol/L of acetic acid and 0.10 mol/L of acetate with a pKa of 4.76, the ratio is 1.00, log10 of 1.00 is 0, and the pH is 4.76. The equation can be rearranged to solve for the pKa or for the ratio instead of the pH.

When does the pH equal the pKa?

When the concentrations of the conjugate base and the weak acid are equal, so the ratio is 1 and log10 of 1 is 0. That is the half equivalence point of a titration, and it is also the point where the buffer capacity is highest: equal amounts of acid and base are available to neutralise what is added. At that point exactly 50.00 percent of the acid is dissociated. A buffer is usually made near this point, within one pH unit of the pKa, so the ratio stays between 0.1 and 10.

How do you make a buffer at a target pH?

Pick an acid whose pKa is within one unit of the target pH, then work out the ratio as 10 to the power of the target pH minus the pKa. For an acetate buffer at pH 5.00, with a pKa of 4.76, the ratio is 10 to the power of 0.24, which is 1.74, so mix 1.74 parts of acetate for every 1 part of acetic acid at the same concentration. For a phosphate buffer at pH 7.40, with a pKa of 7.20, the ratio is 10 to the power of 0.20, which is 1.58. If the ratio comes out far outside 0.1 to 10, pick a different acid: the buffer will be too weak at that pH.

Why does the equation fail for very dilute or extreme buffers?

Because it uses concentrations where the true equation uses activities, and it assumes the dissociation of the acid itself is negligible next to the amounts of acid and base you mixed. Both assumptions hold for a dilute buffer near its pKa at 25 °C, and both break down when the buffer is very dilute, when the pH is far from the pKa, or when the ionic strength is high. In those cases the full equilibrium calculation is needed, and the pH the equation gives can be off by several tenths. The equation also fails for strong acids and for weak acids with no conjugate base partner, because there is no HA and A- pair to put into it.

What is the difference between this calculator and a buffer pH calculator?

This calculator is the equation solver: it takes a pKa and two concentrations, or a pH and a ratio, and solves for the missing part, whichever part that is. A buffer pH calculator starts from a named buffer system, such as acetate or phosphate, and works out the pH from the system you pick. Use this one when you have the numbers and want any of the three answers, and use the buffer pH calculator when you are choosing a system and want its pH. Both use the same equation underneath.

Calculator Sources

Wikipedia — Henderson-Hasselbalch equation, with the derivation from Ka equals [H+][A-] divided by [HA], the logarithmic form pH equals pKa plus log10 of [A-] over [HA], and the limits of the approximation.

LibreTexts — Buffer solutions, with the Henderson-Hasselbalch approximation derived from the equilibrium expression, the formic acid example with pKa 3.75, and the rule that a buffer works best within one pH unit of its pKa.

LibreTexts — Controlling pH, buffer solutions, with the Henderson-Hasselbalch equation, the ratio form [A-] over [HA] equals 10 to the power of pH minus pKa, and the acetate worked example at pH 5.00 with a ratio of 1.74.

LibreTexts — Acid-base ionization constant, with the table of Ka and pKa values at 25 °C used for the compare rows, including acetic acid 4.76, phosphoric acid step 2 7.20, propionic acid 4.87 and ammonium 9.25.

Khan Academy — pH, pOH, and the pH scale, with pH defined as minus log10 of [H+], [H+] equals 10 to the power of minus pH, and pH plus pOH equals 14 for water at 25 °C.

Disclaimer

This calculator applies the Henderson-Hasselbalch equation to the pKa and concentrations you enter, and it is for study, homework and general reference only. The equation treats activities as concentrations, so it is exact only for dilute solutions at 25 °C, and it assumes the acid dissociation itself is negligible next to the amounts mixed. For a polyprotic acid, use the pKa of the step that matches your pair: phosphoric acid step 2 is 7.20, not 2.15 or 12.35. Do not use it for dosing, for clinical decisions such as blood pH, for regulatory work, or for concentrated or very dilute buffers, where a full equilibrium calculation is needed. If your course or your lab uses a different pKa value, use that one instead of this calculator.

Last updated: 1 December 2026

ADVERTISEMENT

ADVERTISEMENT