GamifiedGamified challengesPracticeRaceLeaderboardPricing

Learn data structures by watching them move, then doing it yourself. Press M anytime to toggle sound.

A product of Amypo Technologies, Coimbatore.

Learn

  • Fundamentals & OOPs
  • Data structures and algorithms
  • Aptitude
  • Learning path
  • How it works
  • About dotprep

Practice

  • Practice arena
  • Daily challenge
  • Gamified challenges
  • Race mode
  • Leaderboard

Interview prep

  • Java interview
  • Coding questions
  • Company questions
  • System design
  • Jobs & careers

You

  • Dashboard
  • Settings
  • Pricing
  • Create account

© 2026 dotprep

Content last updated 27 November 2026

GamifiedGamified challengesPracticeRaceLeaderboardPricing
AptitudeQuantitative aptitude · Arithmetic

Mixtures and Alligations

Mean prices and strengths, the alligation cross, milk-and-water ratios, repeated replacement, combining two vessels, and profit by mixing.

5 min read 45 questions
Practice questions
5:31:3

On this page

1/10
  1. 011. What mixtures and alligations are about
  2. 022. Mean price and the rule of alligation
  3. 033. Formulas worth knowing
  4. 044. Milk and water problems
  5. 055. Repeated replacement
  6. 066. Two vessels and profit by mixing
  7. 077. Shortcuts
  8. 088. Common traps
  9. 099. Revision sheet
  10. 10Practice
Back to top

1. What mixtures and alligations are about

A mixture is made by combining two or more ingredients, each with its own price, strength or concentration. Alligation is the quick rule that links the amounts you mix to the average value you end up with. These questions are really weighted averages dressed up as grocers, milkmen and chemists, and the same small toolkit solves all of them.

Two quantities matter: the mean value of a mixture (its price per kg, or its strength as a percentage) and the ratio in which the ingredients are combined. Given the ratio you can find the mean; given the mean you can find the ratio. The alligation cross is just a fast way to go from a target mean back to the ratio.

cheaperdearer₹4₹9mixture₹723cheaperdearer
The alligation cross: to reach ₹7 from ₹4 and ₹9, mix them in the ratio (9 − 7) : (7 − 4) = 2 : 3.

2. Mean price and the rule of alligation

The mean price of a mixture is its total cost divided by its total weight — an ordinary weighted average. Mixing 3 kg at ₹40 with 2 kg at ₹60 costs 120 + 120 = ₹240 for 5 kg, i.e. ₹48 per kg, not the plain average ₹50.

Turned around, this is the rule of alligation. To find the ratio in which two ingredients are mixed to reach a given mean:

cheaper quantity : dearer quantity = (dearer value − mean) : (mean − cheaper value).

The two differences are the "arms" of the cross. The mean always lies between the two values, and the ingredient whose value is farther from the mean is used in the smaller amount — a built-in sanity check.

3. Formulas worth knowing

SituationRule
Mean price of a mixturetotal cost ÷ total quantity
Alligation ratiocheap : dear = (dear − mean) : (mean − cheap)
Strength of a solutionpure part ÷ whole × 100%
Milk : water = a : b in V litresmilk = V·a/(a+b), water = V·b/(a+b)
Add water to milk, sell at costgain% = water ÷ milk × 100
Remove x from V, refill, n timespure left = V·(1 − x/V)ⁿ

When you add only water, the quantity of the other ingredient does not change — anchor your working on that fixed amount.

4. Milk and water problems

Most mixture questions are phrased as milk and water. If a 30-litre mixture has milk and water in the ratio 3 : 2, then milk = 30 × 3/5 = 18 L and water = 12 L. Strength questions just rewrite a ratio as a percentage: 3 : 2 milk-to-water is 60% milk.

Mixturemilk (3)water (2)
A 3 : 2 milk-to-water mixture: milk fills three of the five equal parts, so it is 60% of the liquid.

Adding one liquid. Pour water into a mixture and the milk stays put while the water grows, so recompute the ratio from the unchanged milk. To find how much water turns a 3 : 2 mixture (milk = 18 L in 30 L) into 3 : 4, keep milk at 3 parts: one part is 6 L, water must become 4 × 6 = 24 L, so add 24 − 12 = 12 L.

5. Repeated replacement

A classic: a vessel holds V litres of pure milk. You draw off x litres and top up with water; then repeat. Because the mixture is uniform, each draw removes the same fraction x/V of whatever milk is present, so after n operations:

milk remaining = V × (1 − x/V)ⁿ.

Draw 20 L from 80 L of milk and refill, twice: milk left = 80 × (1 − 20/80)² = 80 × (3/4)² = 80 × 9/16 = 45 L, so the milk-to-water ratio is 45 : 35 = 9 : 7. The commonest mistake is to subtract 20 twice (giving 40) — wrong, because the second draw removes milk *and* water.

CapacityDrawn each timeTimesMilk left80 L20 L245 L
Each replacement keeps three-quarters of the milk, so two of them keep (3/4)² = 9/16 of it.

6. Two vessels and profit by mixing

Two mixtures combined. Add the milk from each vessel and the water from each, then take the ratio. Mixing 20 L of 3 : 1 milk-water (15 L milk) with 20 L of 1 : 1 (10 L milk) gives 25 L milk and 15 L water, a 5 : 3 mixture. Alligation also works directly on the milk fractions.

Profit by adding water. A milkman who adds water and sells the mixture at the cost price of pure milk pockets the value of the free water. If he adds 10 L of water to 50 L of milk, his gain is 10/50 = 20%. Conversely, to gain 25% he mixes water and milk in the ratio 25 : 100 = 1 : 4.

Blending for profit. When a blend of two priced ingredients is sold at a markup, first strip the profit off the selling price to get the blend's cost price, then alligate the two ingredient prices to that cost.

7. Shortcuts

  • Use the cross. For two ingredients, cheaper : dearer = (dear − mean) : (mean − cheap). The farther value gets the smaller share.
  • Work in parts. Turn every ratio into equal parts and find the value of one part first.
  • Anchor the unchanged ingredient. Adding water leaves the milk fixed; adding milk leaves the water fixed.
  • Replacement is a power, not a subtraction: V·(1 − x/V)ⁿ. Take the nth root to work backwards.
  • Selling watered milk at cost: gain% = water ÷ milk × 100.
  • Blend then sell: cost price = selling price ÷ (1 + profit), then alligate.

8. Common traps

  • Inverting the alligation arms — pairing (dear − mean) with the dearer ingredient instead of the cheaper one.
  • Using the sum of the values instead of the differences.
  • Subtracting the drawn-off amount each time in replacement instead of multiplying by (1 − x/V) and raising to the power n.
  • Taking the plain average of two prices or strengths when the quantities differ.
  • Reading a percentage as an absolute amount, or forgetting that water contributes 0 to the value.
  • Alligating against the selling price instead of the cost price in profit-and-blend questions.

9. Revision sheet

  • Mean price = total cost ÷ total quantity; it is a weighted average.
  • Alligation: cheap : dear = (dear − mean) : (mean − cheap).
  • Milk : water = a : b in V litres → milk = Va/(a+b), water = Vb/(a+b); strength = part/whole × 100%.
  • Add water → milk fixed; recompute water and re-form the ratio.
  • Repeated replacement: pure left = V·(1 − x/V)ⁿ.
  • Two vessels: add the milks, add the waters, take the ratio.
  • Watered milk sold at cost: gain% = water/milk × 100. Blend for profit: cost = price ÷ (1 + profit), then alligate.

Practice

45 questions in 3 sets. Every answer comes with its explanation, and each question you get right earns XP.

  • Easy · 15
  • Medium · 15
  • Hard · 15
Start practising
PreviousProblems on AgesNextPartnership
Log inStart free