Skip to content
Omnikalc

Alligation calculator: mix two lots to hit a target price or strength

Enter the value of two lots, your target and the total amount to get the amount of each lot to mix and their ratio.

Updated on
Your inputs
$

Value out of range

$

Value out of range

$

Value out of range

lb

Value out of range

Results

Amount of the cheaper lot

11.67 lb

A mix of these amounts reaches the target
Amount of the dearer lot
8.33 lb
Ratio, cheaper to dearer
1.40
Share of the dearer lot in the mix
41.7%

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.

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.

Frequently asked questions

What is alligation?

Alligation is a method for mixing two ingredients of different price or strength to reach a target in between. The amounts needed are in inverse proportion to how far each one is from the target.

How does the calculation work?

Take the gap between the dearer lot and the target for the cheaper lot's share, and the gap between the target and the cheaper lot for the dearer lot's share. Divide each by the total gap to get the fractions.

Can the target be outside the two values?

No. A mix always falls between its parts, so the target must be higher than the weaker lot and lower than the stronger one. Otherwise no combination reaches it.

What can I use it for?

Blending coffee or tea of different prices, mixing alcohol, cleaning or fertilizer solutions of different strengths, or pooling grain, fuel or paint of different grades to a given average.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.