Skip to content
Tutorials Center
My learning

Topics

Lesson 14 of 86 ยท Percentages, Ratio and Proportion

Mixtures and Alligation

Master the alligation rule, replacement and repeated dilution problems for mixtures of prices and strengths, and simulate them with code.

A shopkeeper blends two grades of rice. A chemist dilutes an acid with water. A milkman replaces some milk with water (he should not, but exam questions say he does). All of these are mixture problems: you combine two or more ingredients with different "values" (a price per kilogram, or a percentage of acid) and want to know the value of the blend or how much of each ingredient to use.

You could solve them with algebra every time, but there is a much faster tool called alligation. It gives the mixing ratio in one subtraction step. In this lesson you will learn the rule and why it works, how to solve replacement problems, how repeated replacement leaves less and less of the original liquid, and how to check your work with a small simulation.

The idea behind alligation

Suppose you mix two lots of rice, one costing 40 per kg (the cheaper) and one costing 60 per kg (the dearer). The mixture costs somewhere between 40 and 60 per kg, and the more of the dearer rice you add, the closer to 60 it gets. Let the mean price (the price per kg of the blend) be 48.

Think of the mean as a balance point. Rice at 40 is 8 below the mean, and rice at 60 is 12 above it. Whatever the blend costs, the "savings" from the cheap rice (quantity ร— 8) must exactly cancel the "extra cost" of the dear rice (quantity ร— 12):

cheap ร— 8 = dear ร— 12, so cheap : dear = 12 : 8 = 3 : 2.

Check: 3 kg at 40 costs 120 and 2 kg at 60 costs 120, so 5 kg cost 240, which is 48 per kg. The rule works.

The alligation rule

(Quantity of cheaper) : (Quantity of dearer) = (Dearer value โˆ’ Mean) : (Mean โˆ’ Cheaper value)

The word "value" can be a price, a percentage of milk, a percentage of acid, a speed or anything that averages by weight. A cross diagram makes the subtraction easy to remember: put the cheaper value on the left, the dearer value on the right, the mean in the middle, and subtract along the diagonals.

flowchart TB
    C["Cheaper: 40"] --> M["Mean: 48"]
    D["Dearer: 60"] --> M
    M --> R1["Cheaper part = 60 - 48 = 12"]
    M --> R2["Dearer part = 48 - 40 = 8"]
    R1 --> F["Cheaper : Dearer = 12 : 8 = 3 : 2"]
    R2 --> F

Each ingredient's quantity is proportional to the distance of the other ingredient from the mean.

The cross always gives the larger share to the ingredient closer to the mean. Here 48 is 8 away from 40 and 12 away from 60, so it is nearer to 40, and there is more of the cheaper rice (3 parts against 2). This is a good sense check: the blend is closer to whichever ingredient you use more of.

Percentages and pure water

The rule works when one ingredient is pure: water is 0% acid, pure milk is 100% milk.

Example. How much water must be added to 20 litres of a 30% acid solution to make it 20% acid?

Water has 0% acid, the solution has 30%, and the mean is 20%.

Solution : water = (20 โˆ’ 0) : (30 โˆ’ 20) = 20 : 10 = 2 : 1.

So 20 litres of solution needs 10 litres of water. Check with direct reasoning: the acid is 30% of 20 = 6 litres, and in 30 litres of total solution 6 litres is exactly 20%.

Mixing two blends

Example. In what ratio should a milk-water mixture with 20% water be mixed with another mixture with 50% water to get a mixture with 30% water?

Treat water content as the "value". The lower value is 20%, the higher is 50%, and the mean is 30%. The first mixture (20% water) gets the share 50 โˆ’ 30 = 20, and the second (50% water) gets 30 โˆ’ 20 = 10. So first : second = 20 : 10 = 2 : 1.

Price and profit

Example. Tea at 120 per kg and tea at 150 per kg are mixed in the ratio 2 : 3. The blend is sold at a 15% profit. What is the selling price per kg?

Cost per kg = (2 ร— 120 + 3 ร— 150) รท 5 = (240 + 450) รท 5 = 690 รท 5 = 138. Selling price = 138 ร— 1.15 = 158.70.

You can also run the rule backwards: if the question gives the final price and the mix ratio, find the missing price using the same cross.

Alligation as a small calculator

This script applies the rule for any two values and any mean. It also checks the answer by recomputing the mean from the ratio.

JS Alligation calculator

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Read the output with care. In the second line water (0%) is the cheaper value, so the script prints water : solution = 10 : 20, which is the same as the 2 : 1 ratio of solution to water found above. In the last line the ratios are not simplified, so 12 : 18 is the ratio 2 : 3 used in the tea example.

Replacement problems

In a replacement problem, some of a mixture is removed and replaced by something else, often water. The key to these problems is that the mixture is uniform: when you remove some, you remove both ingredients in the same ratio as in the vessel.

Example. A vessel holds 60 litres of milk and water in the ratio 2 : 1. Twelve litres of the mixture are removed and replaced with 12 litres of water. What is the new ratio of milk to water?

  • Milk = 40 L and water = 20 L at the start.
  • Removing 12 L of the mixture takes out milk and water in the same 2 : 1 ratio, which is 8 L of milk and 4 L of water. Milk left: 32 L. Water left: 16 L.
  • Adding 12 L of water gives 28 L of water.
  • New ratio: 32 : 28 = 8 : 7.

A careless mistake is to remove 12 L of milk instead of 12 L of the mixture. Read the wording.

Repeated replacement (dilution)

If a vessel holds V litres of pure liquid, and you remove x litres and replace them with water, then repeat this n times, the pure liquid that remains is

Pure liquid left = V ร— (1 โˆ’ x/V)โฟ

Why? After one step, the fraction of pure liquid in the vessel is (V โˆ’ x)/V = 1 โˆ’ x/V. Each later step removes the same fraction and so multiplies the pure quantity by 1 โˆ’ x/V again.

Example. A vessel has 50 litres of pure milk. Five litres are removed and replaced by water, and this is repeated once more (two operations in all). How much milk is left?

Milk left = 50 ร— (1 โˆ’ 5/50)ยฒ = 50 ร— 0.9ยฒ = 50 ร— 0.81 = 40.5 litres. Water is 9.5 litres, so the ratio of milk to water is 40.5 : 9.5 = 81 : 19.

If there are three operations of 4 litres on a 40-litre vessel: 40 ร— 0.9ยณ = 40 ร— 0.729 = 29.16 litres of milk are left.

flowchart LR
    S["50 L milk"] --> A["Remove 5 L, add 5 L water<br/>milk = 45 L"]
    A --> B["Remove 5 L, add 5 L water<br/>milk = 40.5 L"]

Each operation multiplies the milk by 0.9, so two operations leave 81% of it.

The formula needs the same amount removed each time and a vessel whose total volume stays constant. If the amounts differ, or if the vessel starts with a mixture instead of a pure liquid, work step by step.

Simulating replacement

Computers are good at checking this kind of reasoning. This simulation removes a fraction of the mixture, adds water and prints the state after each step. It also compares the result with the formula.

JS Repeated dilution simulation

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Notice that the last run shows milk 32 and water 28, matching the ratio 8 : 7 from the worked example.

Which method to use

  • Mean value needed (price of the blend, percentage of a mix): use weighted averaging, as in the tea example.
  • Ratio needed for a target mean: use alligation.
  • Some mixture removed and replaced once: compute the quantities of each ingredient step by step.
  • Replacement repeated n times from a pure liquid: use the formula V(1 โˆ’ x/V)โฟ.
  • Three or more ingredients: alligation handles two at a time, so combine ingredients in pairs, or use algebra.

Check your understanding

Quick check ยท 5 questions

of 5 answered You scored / 5 ยท perfect!

  1. 1. In what ratio must rice at 30 per kg be mixed with rice at 45 per kg to make a blend worth 36 per kg?

    Cheaper : dearer = (45 - 36) : (36 - 30) = 9 : 6 = 3 : 2.
  2. 2. How many litres of water must be added to 30 litres of a 40% alcohol solution to make it 30% alcohol?

    Solution : water = (30 - 0) : (40 - 30) = 3 : 1. For 30 litres of solution, water = 10 litres. Check: 12 litres of alcohol in 40 litres is 30%.
  3. 3. A vessel contains 40 litres of pure milk. Four litres are removed and replaced with water, and the process is repeated once more. How much milk remains?

    Milk left = 40 x (1 - 4/40)^2 = 40 x 0.81 = 32.4 litres.
  4. 4. A 20-litre mixture contains milk and water in the ratio 3 : 1. Four litres of the mixture are removed and replaced with 4 litres of water. What is the new ratio of milk to water?

    Milk is 15 L and water is 5 L. Removing 4 L of mixture takes out 3 L of milk and 1 L of water, leaving 12 L of milk and 4 L of water. Adding 4 L of water gives 12 : 8 = 3 : 2.
  5. 5. Two solutions have 10% and 40% sugar. In what ratio should they be mixed to get a 25% solution?

    Ratio = (40 - 25) : (25 - 10) = 15 : 15 = 1 : 1. The target is exactly halfway between 10 and 40.

Summary

  • Alligation: cheaper : dearer = (dearer โˆ’ mean) : (mean โˆ’ cheaper), and the blend lies nearer the ingredient used more.
  • The rule works for prices, percentages and any quantity that averages by weight; pure water counts as 0%.
  • In a replacement problem, removing mixture removes both ingredients in their current ratio.
  • Repeated replacement from a pure liquid leaves V ร— (1 โˆ’ x/V)โฟ of it.
  • When a problem looks complicated, a quick simulation or a step-by-step table is a safe way to check an answer.

Next: Averages, the first lesson in the next chapter, where you will learn what an average really tells you and how it changes when items join or leave a group.