Alligation is a classic method for mixing two things of different value, whether price, strength or concentration, to land on a target between them. A coffee roaster blending two lots, a pharmacist mixing two strengths of solution and a farmer blending two feeds use the same rule. This calculator gives the amount of each lot for a mix of a given size.
How the calculation works
- Share of the dearer lot = (target − cheaper value) ÷ (dearer value − cheaper value)
- Amount of the dearer lot = total × share
- Amount of the cheaper lot = total − amount of the dearer lot
- Ratio, cheaper to dearer = (dearer − target) ÷ (target − cheaper)
The target must be between the two values.
Example
You want 20 lb of coffee at $10.50 a pound by blending a $8 lot and a $14 lot. The share of the dearer lot is (10.50 − 8) ÷ (14 − 8) = 41.7 %. You need 8.33 lb of the $14 coffee and 11.67 lb of the $8 coffee, a ratio of 1.4 to 1. Check: 11.67 × 8 + 8.33 × 14 = $210, or $10.50 a pound.
Why it matters
Knowing the exact proportions avoids trial and error and wasted material. The same logic handles many everyday blends: milk with 1 % and 3 % fat to get 2 %, a bleach solution of two strengths, or two grades of concrete mix. It is also a quick check on whether a blend is possible at all: if the target is outside the range, no mix will do.
Good to know
The method assumes the values average in proportion to the weight or volume of each lot. For solutions, volumes are not always exactly additive (mixing alcohol and water shrinks the volume a little), so for precise work, mix by weight. For prices, the lots must be sold by the same unit. This tool is for general blending and is not a substitute for a pharmacist’s or chemist’s calculation.
Related tools
The weighted average calculator handles any number of lots, the dilution calculator mixes a concentrate with water, and the percentage calculator relates parts and wholes.