How a buffer recipe is calculated
A recipe lists the final concentration of each component in the working buffer. To make a volume V of that buffer, the mass of each solid is concentration × volume × molecular weight, with the concentration in mol/L, the volume in litres and the molecular weight in g/mol. A 10× concentrate is the same recipe with every concentration multiplied by ten, so the same weights are dissolved in one tenth of the final volume and diluted before use.
Molecular weight matters more than it seems: Na₂HPO₄ is usually supplied as the dodecahydrate (358.14 g/mol) rather than the anhydrous salt (141.96 g/mol) used here, and the dihydrate of EDTA is already accounted for in the TAE and TBE recipes. Using the wrong hydrate gives a solution that is weaker than intended, so check the bottle label before weighing.
The pH of a buffer: Henderson–Hasselbalch
A buffer works because a weak acid and its conjugate base are present in comparable amounts. The Henderson–Hasselbalch equation, pH = pKa + log₁₀([base]/[acid]), says how the ratio of the two forms sets the pH. Rearranged, [base]/[acid] = 10^(pH − pKa): at pH equal to the pKa the two forms are equal, one pH unit above the pKa the base is ten times the acid, and the fraction of the total that is basic is ratio/(1 + ratio).
Multiplying each fraction by the total buffer concentration and the volume gives the moles of each form, and multiplying by its molecular weight gives the mass to weigh. For Tris buffers the “acid” form is Tris-HCl and the base is Tris base, which is how a Tris buffer is actually made up; for phosphate it is NaH₂PO₄ and Na₂HPO₄.
Limits of the calculation
A pKa is a property of the molecule at a particular temperature and ionic strength, and both change in a real buffer. Tris, for example, loses about 0.03 pH units per °C as it warms, so a buffer set to pH 8.0 in the cold is around 7.7 at 37 °C. Activity coefficients, divalent ions, chelators and the buffer concentration itself all shift the true pH away from the simple equation.
Treat the calculated masses as a starting point, dissolve them, and adjust the final pH with a calibrated meter at the temperature you will use. A buffer is only as good as its calibration: check the meter with fresh pH 4, 7 and 10 standards, and never rely on the calculation alone for an enzyme or a cell-culture step.