# Buffer pH calculator > How do you make a buffer of the right pH? Henderson–Hasselbalch: the pH of a buffer, or the base-to-acid ratio for the pH you want. Find a buffer's pH from its pKa and the acid and conjugate base concentrations, or the ratio and amounts that give a target pH, with the buffer range drawn. - Page: https://how.box/buffer/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/buffer/?k={k}&pka={pka}&b={b}&a={a}&ph={ph}&c={c} - `k` (ph or ratio): What to find: ph (default) or ratio. Example: `ph`. - `pka` (number -2 to 16): pKa of the weak acid. Example: `4.76`. - `b` (number 0 to 100): Conjugate base [A-], mol/L. Example: `0.15`. - `a` (number 0 to 100): Weak acid [HA], mol/L. Example: `0.1`. - `ph` (number 0 to 14): Target pH. Example: `5`. - `c` (number 0 to 100): Total buffer concentration, mol/L. Example: `0.1`. Example answer: https://how.box/buffer/?k=ph&pka=4.76&b=0.15&a=0.1&ph=5&c=0.1 A complete link carries the primary answer in the page HTML; a missing or invalid value shows the default page. ## Agent tools - `buffer_calculate`: Henderson–Hasselbalch buffer calculation, pH = pKa + log10([A-]/[HA]). - MCP, one POST to https://how.box/mcp: `{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"buffer_calculate","arguments":{"mode":"ph","pka":4.76,"base":0.15,"acid":0.1,"target_ph":5,"total":0.1}}}` - GET: https://how.box/mcp/run/buffer_calculate?mode=ph&pka=4.76&base=0.15&acid=0.1&target_ph=5&total=0.1 ## How it works A buffer is a weak acid together with its conjugate base, such as acetic acid and acetate. Added acid is taken up by the base and added base by the acid, so the pH barely moves. Its pH depends on the acid's strength and on how much of each form there is. The Henderson–Hasselbalch equation gives it: pH = pKa + log₁₀([A⁻] ÷ [HA]), where pKa is the acid's strength and [A⁻] and [HA] are the base and acid concentrations. With 0.15 mol/L acetate and 0.10 mol/L acetic acid (pKa 4.76), pH = 4.76 + log₁₀ 1.5 = 4.94. Turned around, a target pH needs the ratio 10^(pH − pKa): pH 5.00 with acetic acid needs 1.74 parts acetate to 1 part acid. A buffer works best within about one unit of its pKa, where neither form is more than ten times the other; that range is shaded in the drawing. The equation assumes neither form ionizes or reacts much with water, which holds for usual lab concentrations above about 0.01 mol/L, and it ignores activity effects in strong salt solutions. Source: OpenStax Chemistry 2e, section 14.6, Buffers. ## FAQ **Can I use stock-solution concentrations directly?** Use the concentrations after mixing. If the stock solutions have different concentrations or volumes, calculate the moles of each component and divide by the final volume first. **Can this calculate the effect of adding strong acid or base?** Not directly. First account for the neutralization reaction, then enter the remaining acid and conjugate-base concentrations. **What is buffer capacity?** It is how much acid or base a buffer can absorb before its pH changes substantially. Two buffers can have the same pH but different capacities if their total concentrations differ. **Does diluting a buffer change its pH?** Moderate dilution leaves the acid-to-base ratio unchanged, so the calculated pH stays the same while capacity falls. At very low concentrations, this approximation becomes less reliable. **Can I use the same pKa at every temperature?** No. Use a pKa appropriate to the solution temperature, especially for temperature-sensitive buffers such as Tris. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)