Sub topic 10
The Alligation Rule and Its Cross-Diagram
What the rule does
Assume you know ratios, weighted averages, fractions, and basic linear equations. Alligation is a shortcut for mixing two components with different values to reach a required mean value.
The values may be:
- Prices, such as ₹40 per kg and ₹60 per kg
- Concentrations, such as 20% and 50%
- Marks, scores, or strengths
- Speeds or other quantities when the final value is a weighted average
The target mean must lie between the two component values. If it does not, an ordinary mixture of only those two components cannot reach it.
Let:
- C = value of the cheaper or lower component
- D = value of the dearer or higher component
- M = required mean value
Then:
quantity of lower component : quantity of higher component
= (D - M) : (M - C)The differences are taken crosswise. The higher component is paired with the difference between the lower component and the mean. The lower component is paired with the difference between the mean and the higher component.
The cross-diagram
The rule is often remembered through this diagram:
The diagram gives:
lower quantity : higher quantity = (D - M) : (M - C)Example: mixing prices
A shopkeeper mixes rice costing ₹40 per kg with rice costing ₹60 per kg. The mixture must cost ₹52 per kg. Find the ratio of the cheaper rice to the dearer rice.
Here:
C = 40, D = 60, M = 52
cheaper : dearer
= (60 - 52) : (52 - 40)
= 8 : 12
= 2 : 3So the shopkeeper should mix 2 parts of the ₹40 rice with 3 parts of the ₹60 rice.
Check the weighted average:
(2 × 40 + 3 × 60) / (2 + 3)
= (80 + 180) / 5
= 52The answer is correct.
Why the rule works
Suppose the quantities are x of the lower component and y of the higher component. The weighted-average equation is:
(Cx + Dy) / (x + y) = MMultiply both sides by x + y:
Cx + Dy = Mx + MyRearrange:
(D - M)y = (M - C)xTherefore:
x : y = (D - M) : (M - C)Alligation is simply this equation written as a quick ratio.
| Component | Value | Difference from mean | Quantity ratio |
|---|---|---|---|
| Lower | 40 | 52 − 40 = 12 | 2 |
| Higher | 60 | 60 − 52 = 8 | 3 |
Notice that the larger difference belongs to the opposite component. The lower component is 12 below the mean, but it receives quantity 8. This opposite pairing is the most common source of errors.
Concentration example
A solution contains 20% acid and another contains 50% acid. In what ratio should they be mixed to obtain a 32% acid solution?
lower : higher
= (50 - 32) : (32 - 20)
= 18 : 12
= 3 : 2Use 3 parts of the 20% solution and 2 parts of the 50% solution.
The check is:
(3 × 20 + 2 × 50) / 5
= 160 / 5
= 32%CAT checks and method selection
Use alligation when:
- There are exactly two component values.
- The final value is a weighted average.
- Only the ratio is required, or the total quantity is easy to apply afterward.
Use the weighted-average equation when:
- There are three or more components.
- One quantity is already fixed.
- The problem includes profit, loss, wastage, or another condition that changes the equation.
Check these traps:
- The target must lie strictly between the two values.
- Keep units consistent, such as litres with litres or rupees per kg with rupees per kg.
- A ratio gives relative quantities, not actual amounts. Multiply both parts by a common factor to meet a total.
- If the required total is 25 kg and the ratio is 2:3, the quantities are 10 kg and 15 kg, not 2 kg and 3 kg.
from fractions import Fraction
def alligation_ratio(lower, higher, mean):
"""Return lower quantity : higher quantity as a reduced fraction."""
if not lower < mean < higher:
raise ValueError("mean must lie strictly between the two values")
return Fraction(higher - mean, mean - lower)
ratio = alligation_ratio(40, 60, 52)
print(ratio) # 2/3, meaning lower : higher = 2 : 3
print((2 * 40 + 3 * 60) / 5) # 52.0Exercise
Tea costs ₹30 per kg and ₹50 per kg. In what ratio should they be mixed to obtain tea costing ₹42 per kg?
Show answer
Lower : higher = (50 − 42) : (42 − 30) = 8 : 12 = 2 : 3.