Quick Summary: An alligation calculator helps you find the correct ratio in which two substances of different concentrations (or prices) must be mixed to produce a desired mixture. Whether you are a pharmacy student, chemist, nurse, teacher, or just curious — this complete guide covers everything: definition, types, formulas, step-by-step solved examples, common mistakes, and real-world applications.
1. What is Alligation?
Alligation is a mathematical shortcut used to determine the ratio in which two or more ingredients — each having a different strength, concentration, or price — must be combined to produce a mixture with a specific desired value (the mean).
In simpler words: if you have a strong solution and a weak solution, and you need a solution of medium strength, alligation tells you exactly how much of each to mix.
The term "alligation" comes from the Latin word alligare, meaning "to tie together" — which perfectly describes the concept of combining two quantities.
Formal Definition: Alligation is an arithmetic rule used to find the proportions in which two or more substances at given values (prices, concentrations, percentages) must be mixed together to give a mixture of a desired value.
2. Brief History of the Alligation Method
The alligation method is one of the oldest arithmetic techniques in recorded history. It appears in medieval European manuscripts as far back as the 13th century, where merchants used it to calculate the correct mixing ratios when blending coins of different gold or silver purity.
During the 16th and 17th centuries, alligation was a standard topic in commercial arithmetic textbooks used in European trade schools. It was considered as important as multiplication and division for business calculations.
In modern times, the method has found its most consistent home in pharmaceutical science, where it is used daily by pharmacists to prepare compounded medications, IV solutions, and topical preparations of precise concentrations.
3. Two Types of Alligation: Alternate vs Medial
There are two distinct types of alligation problems:
| Feature | Alligation Alternate | Alligation Medial |
|---|---|---|
| Purpose | Find the RATIO in which two substances must be mixed to achieve a desired concentration | Find the RESULTING concentration when two or more substances of known quantities are already mixed |
| Known values | Concentrations of both substances + desired concentration | Concentrations AND quantities of all substances |
| Unknown value | Mixing ratio (how much of each) | Final concentration of the resulting mixture |
| Common use | Pharmacy compounding, IV preparation | Quality control, recipe analysis |
| Method | Cross subtraction (alligation cross) | Weighted average formula |
Which type do most calculators use? Most "alligation calculators" you find online are designed for Alligation Alternate — because that is the most common practical need. However, the best tools handle both types.
4. Alligation Alternate — Formula and Steps
Alligation Alternate is used when you want to mix two substances with different concentrations to obtain a mixture with an intermediate (target) concentration.
The Alligation Alternate Formula
If:
- CH = concentration of the higher-strength substance
- CL = concentration of the lower-strength substance
- CT = desired (target) concentration
Then:
| Parts of higher-strength substance | = CT − CL |
| Parts of lower-strength substance | = CH − CT |
| Total parts | = (CT − CL) + (CH − CT) |
Important rule: The target concentration (CT) must always be between the two concentrations being mixed. You cannot use alligation alternate if the target is higher than both or lower than both.
Step-by-Step Process for Alligation Alternate
- Write down the higher concentration (CH) on the top-left.
- Write down the lower concentration (CL) on the bottom-left.
- Write down the desired (target) concentration (CT) in the center.
- Subtract diagonally: CT − CL = parts of the higher-strength ingredient (write on top-right).
- Subtract diagonally: CH − CT = parts of the lower-strength ingredient (write on bottom-right).
- These two numbers form the mixing ratio.
- If a specific total volume is needed, use the ratio to calculate individual volumes.
5. Alligation Medial — Formula and Steps
Alligation Medial answers this question: "If I mix these known quantities together, what will the final concentration be?"
Alligation Medial Formula
The resulting concentration is simply the weighted average of all components:
| Cmix | = | (Q1 × C1) + (Q2 × C2) + ... + (Qn × Cn) |
| divided by (Q1 + Q2 + ... + Qn) |
Where Q = quantity (volume, weight, etc.) and C = concentration of each component.
Alligation Medial Example
You mix:
- 200 mL of a 10% solution
- 300 mL of a 4% solution
What is the final concentration?
Cmix = (200 × 10) + (300 × 4) / (200 + 300) = (2000 + 1200) / 500 = 3200 / 500 = 6.4%
6. The Alligation Cross (Tic-Tac-Toe Method) Explained
The most popular visual tool for Alligation Alternate is known as the alligation cross or informally as the tic-tac-toe method. It is drawn like this:
| Higher Concentration (CH) | CT (Target) |
Parts of Higher = CT − CL |
| Lower Concentration (CL) | Parts of Lower = CH − CT |
The diagonal arrows show which subtraction to do. You always subtract the target from one diagonal and subtract the other concentration from the target. The two resulting numbers tell you the ratio.
Why Does the Cross Work?
Mathematically, the cross enforces the principle of conservation of mass. The total amount of the solute contributed by both solutions must equal the total amount of solute in the final mixture. The cross is just a visual shortcut for writing and solving two simultaneous equations.
7. Solved Examples in Pharmacy
Example 1: Mixing Two Alcohol Solutions
Problem: A pharmacist needs to prepare 500 mL of a 30% alcohol solution. Available are 70% alcohol and 10% alcohol. How much of each is needed?
Given:
- CH = 70%
- CL = 10%
- CT = 30%
- Total volume = 500 mL
Step 1: Apply the alligation cross
| 70% | 30% | 30 − 10 = 20 parts |
| 10% | 70 − 30 = 40 parts |
Step 2: Calculate volumes
- Total parts = 20 + 40 = 60
- Volume of 70% solution = (20/60) × 500 = 166.7 mL
- Volume of 10% solution = (40/60) × 500 = 333.3 mL
Verification: (166.7 × 70%) + (333.3 × 10%) = 11669 + 3333 = 15002 ÷ 500 = 30% ✓
Example 2: Hydrocortisone Cream Compounding
Problem: A pharmacist has 2.5% hydrocortisone cream and plain (0%) cream base. A prescription calls for 1% hydrocortisone cream, 60 grams total. How much of each is needed?
Given:
- CH = 2.5%
- CL = 0%
- CT = 1%
- Total = 60 g
Alligation Cross:
| 2.5% | 1% | 1 − 0 = 1 part |
| 0% | 2.5 − 1 = 1.5 parts |
- Total parts = 1 + 1.5 = 2.5
- Grams of 2.5% cream = (1/2.5) × 60 = 24 g
- Grams of plain base = (1.5/2.5) × 60 = 36 g
Example 3: Dextrose IV Solution
Problem: A nurse needs to prepare 1000 mL of a 7.5% dextrose IV solution using 5% dextrose and 50% dextrose. How many mL of each?
- CH = 50%
- CL = 5%
- CT = 7.5%
| 50% | 7.5% | 7.5 − 5 = 2.5 parts |
| 5% | 50 − 7.5 = 42.5 parts |
- Total parts = 45
- Volume of 50% dextrose = (2.5/45) × 1000 = 55.6 mL
- Volume of 5% dextrose = (42.5/45) × 1000 = 944.4 mL
8. Solved Examples in Chemistry
Example 4: Preparing a Salt Solution
Problem: You need 200 mL of a 15% NaCl solution. You have 25% NaCl and 5% NaCl solutions. Find the mixing ratio.
- CH = 25%, CL = 5%, CT = 15%
| 25% | 15% | 15 − 5 = 10 parts |
| 5% | 25 − 15 = 10 parts |
Ratio is 10:10 = 1:1. Mix equal volumes: 100 mL of each.
Example 5: Acid Dilution in a Lab
Problem: A lab technician needs 500 mL of 18% sulfuric acid. Stock solutions available are 30% H₂SO₄ and 8% H₂SO₄.
| 30% | 18% | 18 − 8 = 10 parts |
| 8% | 30 − 18 = 12 parts |
- Total = 22 parts
- Volume of 30% = (10/22) × 500 = 227.3 mL
- Volume of 8% = (12/22) × 500 = 272.7 mL
9. Everyday Life Examples (Food & Cooking)
Alligation is not just for scientists. It appears in everyday mixing problems too.
Example 6: Mixing Milk with Different Fat Content
Problem: You want to make 2 liters of 3.5% fat milk by mixing full-fat milk (6% fat) and skimmed milk (0.5% fat). How much of each?
| 6% | 3.5% | 3.5 − 0.5 = 3 parts |
| 0.5% | 6 − 3.5 = 2.5 parts |
- Total = 5.5 parts
- Full-fat milk = (3/5.5) × 2000 = 1090.9 mL ≈ 1091 mL
- Skimmed milk = (2.5/5.5) × 2000 = 909.1 mL ≈ 909 mL
Example 7: Sugar Syrup for a Recipe
Problem: A chef needs 1 kg of 40% sugar syrup. Available: 70% sugar syrup and 10% sugar syrup.
| 70% | 40% | 40 − 10 = 30 parts |
| 10% | 70 − 40 = 30 parts |
Equal parts: 500 g of each.
Example 8: Alligation for Price Problems (Profit & Loss)
Problem: A shopkeeper mixes two varieties of tea — one at Rs. 120/kg and another at Rs. 80/kg — to sell the mixture at Rs. 95/kg and still make a profit. What is the mixing ratio?
| Rs. 120 | Rs. 95 | 95 − 80 = 15 parts |
| Rs. 80 | 120 − 95 = 25 parts |
Mix ratio = 15:25 = 3:5 (cheaper tea : expensive tea)
10. How to Use an Alligation Calculator
An online alligation calculator works in a few seconds. Here is what you need to know to use one correctly:
For Alligation Alternate Calculator
- Enter the higher concentration (CH) — this is the stronger solution/substance.
- Enter the lower concentration (CL) — this is the weaker solution/diluent.
- Enter the desired/target concentration (CT) — must be between CH and CL.
- (Optional) Enter the total desired volume or quantity — the calculator will convert the ratio into actual volumes.
- Read the output — the ratio of parts and, if total volume was given, the actual volumes of each component to use.
For Alligation Medial Calculator
- Enter each component's quantity (e.g., mL or grams).
- Enter each component's concentration (e.g., %).
- The calculator outputs the resulting final concentration.
Units to Watch Out For
| Scenario | Unit for Concentration | Unit for Quantity |
|---|---|---|
| Pharmacy (liquid) | % (v/v) or mg/mL | mL |
| Pharmacy (solid/cream) | % (w/w) | grams |
| Chemistry | %, ppm, mol/L | mL or L |
| Food / Cooking | % (w/w or v/v) | grams, mL, kg |
| Business / Price | Price per unit (₹, $, etc.) | kg, units, etc. |
Important: Always use the same units for all concentrations and the same units for all quantities. Most calculators do not auto-convert — if you enter one value in % and another in mg/mL, you will get wrong results.
11. Common Mistakes to Avoid When Using Alligation
Students and practitioners often make these errors:
Mistake 1: Target Concentration Outside the Range
The desired concentration must always be between the two source concentrations. If you want to mix 20% and 40% solutions but need a 50% result — alligation alternate does not apply. You would need a third ingredient or a different approach.
Mistake 2: Mixing Up Which Subtraction Goes Where
Always remember: the parts of the higher concentration equals the difference between the target and the lower concentration — NOT the other way around. This cross-subtraction is the most common source of confusion.
Mistake 3: Forgetting to Verify the Answer
Always plug your answer back in using the alligation medial formula to confirm the resulting concentration matches your target. A 2-minute verification can prevent dangerous dosing errors in clinical settings.
Mistake 4: Confusing Concentration Units
Mixing w/v%, w/w%, and mg/mL without conversion is a serious mistake in pharmacy. Always confirm which type of percentage is being used before you start the calculation.
Mistake 5: Ignoring Total Volume in Ratio Conversion
The alligation gives you a ratio, not volumes. If you need 250 mL total and the ratio is 3:2, you must use (3/5)×250 and (2/5)×250 — don't just use 3 mL and 2 mL.
Mistake 6: Using Alligation When Medial is Needed
If the quantities are already fixed and you need to find the resulting concentration, use alligation medial (weighted average). Using alligation alternate in this scenario gives meaningless results.
12. Alligation vs Dilution — Key Differences
Many people confuse alligation with dilution. Here is a clear comparison:
| Aspect | Alligation | Dilution |
|---|---|---|
| Definition | Mixing two substances of DIFFERENT concentrations to get an intermediate target concentration | Reducing the concentration of a single substance by adding a diluent (usually water) |
| Number of active components | Two (or more) active ingredients | One active ingredient + one diluent |
| Output | Ratio of two source solutions | Volume of diluent to add |
| Formula | Cross-subtraction method | C1V1 = C2V2 |
| Target concentration | Must be between the two source concentrations | Must be lower than original concentration |
| When to use | Both sources contain the active substance | Only one source contains the active substance; the other is pure solvent |
Note: Dilution is actually a special case of alligation alternate where the "lower concentration" is 0% (pure diluent). So alligation can solve dilution problems too — but not vice versa.
13. Frequently Asked Questions (FAQ)
Q1. What is an alligation calculator used for?
An alligation calculator is used to determine the correct mixing ratio of two substances with different concentrations (or prices) to produce a mixture with a specific desired concentration (or price). It is most commonly used in pharmacy, chemistry, and food science.
Q2. What is the difference between alligation alternate and alligation medial?
Alligation alternate finds the mixing ratio needed to achieve a target concentration from two known source concentrations. Alligation medial finds the resulting concentration when two or more substances of known quantities and concentrations are already combined. Think of alternate as "planning the mix" and medial as "analyzing an existing mix."
Q3. Can I use alligation for more than two ingredients?
Yes, but it becomes more complex. For three or more ingredients, you set up multiple pairs using alligation alternate and then combine the results. Many online calculators support this for 3–5 components using the medial (weighted average) approach.
Q4. Is the alligation method used in modern pharmacy?
Yes, absolutely. The alligation method is still a core topic in pharmacy school curricula worldwide and is tested on exams like NAPLEX (North America), MPharm exams (UK), and equivalent board exams globally. It is used daily in hospital pharmacies and compounding settings.
Q5. What happens if the target concentration equals one of the source concentrations?
If CT = CH, then you need 100% of the higher concentration and 0% of the lower. If CT = CL, you need 100% of the lower concentration. In both cases, no mixing is needed — just use the one that already matches your target.
Q6. Can alligation be used for prices and cost problems?
Yes. Replace "concentration" with "price per unit." This is how it was originally used by medieval merchants. The principle is identical — you are finding the ratio in which two goods of different prices must be mixed to sell at a desired mean price.
Q7. What units can I use in an alligation calculator?
You can use any unit as long as you are consistent. All concentration values must use the same unit (%, mg/mL, ppm, price per kg, etc.), and all volume/weight values must use the same unit (mL, L, g, kg, etc.). The calculator does not enforce unit compatibility, so this is the user's responsibility.
Q8. Why does the cross-subtraction in alligation work diagonally?
The diagonal subtraction enforces conservation of the solute. When you subtract the lower concentration from the target, you find out how much "extra" strength the higher source must contribute — that becomes its parts. And vice versa. The result is a ratio that guarantees the mass balance equation holds.
Q9. How accurate is the alligation method?
Alligation is mathematically exact — it is not an approximation. As long as you input correct values, the output ratio will give you the precise target concentration. Rounding during calculation introduces small errors, but in practice, these are clinically negligible for most applications.
Q10. Is alligation the same as the weighted average?
Yes and no. Alligation medial IS a weighted average. Alligation alternate is the INVERSE problem of weighted average — given the desired average, find the weights. Both are two sides of the same mathematical coin.
14. Conclusion
The alligation calculator is one of the most practical and time-saving tools in pharmacy, chemistry, food science, and even business. Behind its simple interface lies a mathematically elegant method developed centuries ago and still essential today.
To recap the key points from this guide:
- Alligation is used to find mixing ratios or resulting concentrations when combining substances of different strengths.
- There are two types: Alligation Alternate (find the ratio) and Alligation Medial (find the result).
- The alligation cross (tic-tac-toe) is the most intuitive method for alternate problems.
- Always ensure your target concentration is between the two source concentrations.
- Always verify your result using the medial formula after solving an alternate problem.
- Use consistent units throughout every calculation.