Alligation: Pharmacy Math Method and Formula
Updated
Alligation is an arithmetic method for solving problems where two strengths of the same drug are mixed to make a third. Alligation alternate, the tic-tac-toe method, works out how much of a stronger product and a weaker product to mix to land on a strength in between. Alligation medial works the other way round and finds the strength of a mix you already have. It looks intimidating until you see the pattern (and it is often searched as pharmacy allegation), then it becomes one of the quickest points on the exam. It rests on the proportion, percentage strength and dilution math covered first below. Drill it alongside the other calculations on the PTCB math practice test once you have worked the examples below.
parts of high = desired - low
parts of low = high - desired
When you can use alligation
Alligation only works when the target strength is greater than the lower strength and less than the higher strength. You cannot mix two products to reach a strength stronger than the strongest one you have, or weaker than the weakest. Water or any inactive diluent counts as 0%, so diluting a concentrate is alligation with 0 in the low position. The method can be extended to three or more strengths, but the standard PTCE-style problem uses two, and so does every example here.
Ratio and proportion: what a proportion actually says
Ratio and proportion is the workhorse of pharmacy math. It is not one calculation among many: it is the underlying method that solves conversions, liquid doses, tablet counts, and concentration problems, and it sits inside almost every other formula in this series.
a / b = c / d
a × d = b × c
A ratio compares two quantities: 250 mg to 5 mL, one tablet to 10 mg, 60 minutes to 1 hour. A proportion states that two such ratios are equal. In practice you almost always know one complete ratio, which is the strength printed on the bottle, and three quarters of a second one, which is the dose the prescriber wants. The missing quarter is x.
The setup is where accuracy lives. Write the known ratio on the left and the wanted ratio on the right, keeping the same unit in the same position on both sides. If milligrams are on top on the left, milligrams must be on top on the right. Get that alignment right and the arithmetic cannot mislead you.
Solving a proportion
Once the proportion is written, cross multiply: multiply each numerator by the opposite denominator. That turns the fractions into a single equation with x in it. Divide both sides by whatever number is multiplying x, and the answer is left. Finish by asking whether the size of the answer makes sense: if a dose is twice the strength on the bottle, the volume should be about twice as much, not half.
Worked example: a liquid dose
How many millilitres deliver 400 mg?
A suspension is labelled 250 mg/5 mL. The prescriber orders 400 mg per dose. How many millilitres should be given?
- Step 1. Write the known ratio: 250 mg / 5 mL.
- Step 2. Write the wanted ratio with the same units in the same positions: 400 mg / x mL.
- Step 3. Set them equal: 250 / 5 = 400 / x.
- Step 4. Cross multiply: 250 × x = 5 × 400, so 250x = 2,000.
- Step 5. Divide both sides by 250: x = 2,000 ÷ 250 = 8 mL.
Answer: 8 mL
The trap: Writing the second ratio upside down as x mL / 400 mg. The units must sit in the same positions on both sides, or cross multiplying produces the reciprocal of the right answer.
Worked example: how many tablets
The method does not change when the units are tablets rather than millilitres.
How many 25 mcg tablets make a 0.1 mg dose?
A prescription calls for 0.1 mg of a drug. The pharmacy stocks 25 mcg tablets. How many tablets are needed per dose?
- Step 1. Make the units match before setting up. 0.1 mg = 100 mcg, because 1 mg = 1,000 mcg.
- Step 2. Write the known ratio: 25 mcg / 1 tablet.
- Step 3. Write the wanted ratio: 100 mcg / x tablets.
- Step 4. Set them equal and cross multiply: 25x = 100.
- Step 5. Divide by 25: x = 4 tablets.
Answer: 4 tablets
The trap: Setting up 0.1 against 25 without converting first. Mixing milligrams and micrograms in one proportion gives an answer 1,000 times out.
Worked example: working backwards to a strength
x does not have to be the volume. Sometimes you know the volume and need the amount of drug it contains.
How much drug is in 12 mL?
An oral solution contains 80 mg in every 15 mL. How many milligrams are in a 12 mL dose?
- Step 1. Write the known ratio: 80 mg / 15 mL.
- Step 2. Write the wanted ratio: x mg / 12 mL.
- Step 3. Set them equal: 80 / 15 = x / 12.
- Step 4. Cross multiply: 15x = 80 × 12 = 960.
- Step 5. Divide by 15: x = 64 mg.
Answer: 64 mg
The trap: Reaching for a formula. This is the same single proportion as the earlier examples, just with the unknown in a different position.
Percentage strength
Concentration questions ask how much drug is in a preparation. Percentage strength always means an amount per 100. Which unit depends on the letters:
- % w/v is grams of solute per 100 mL of solution (a solid in a liquid). A 5% w/v solution holds 5 g per 100 mL.
- % w/w is grams per 100 g of product (a solid in a solid). A 2% w/w cream holds 2 g per 100 g.
- % v/v is millilitres per 100 mL of solution (a liquid in a liquid). A 70% v/v solution holds 70 mL per 100 mL.
grams of drug = (percent ÷ 100) × amount of preparation
Percent w/v: dextrose in D5W
How many grams of dextrose are in a 500 mL bag of D5W (5% w/v)?
- Step 1. 5% w/v means 5 g per 100 mL.
- Step 2. Scale to 500 mL: 5 g × (500 ÷ 100) = 5 × 5 = 25 g.
- Step 3. Quick check: the bag is five times 100 mL, so five times 5 g.
Answer: 25 g of dextrose
The trap: Reading 5% as 5 g in the whole bag. The 5 g is per 100 mL, so you must scale up to the actual volume.
The same rule covers ointments and alcohols. A 2% w/w hydrocortisone cream in a 30 g tube holds 0.02 × 30 = 0.6 g of drug. A 70% v/v isopropyl alcohol in 480 mL holds 0.70 × 480 = 336 mL of alcohol.
Ratio strength
Ratio strength writes a concentration as 1 in something. For a w/v ratio, 1:1000 means 1 g in 1000 mL. The fastest move is to convert the ratio into milligrams per millilitre or a percentage before you calculate.
Ratio strength: 1:1000 epinephrine
How many milligrams of drug are in 10 mL of a 1:1000 (w/v) solution?
- Step 1. 1:1000 w/v means 1 g per 1000 mL.
- Step 2. Convert grams to milligrams: 1 g = 1000 mg, so the concentration is 1000 mg ÷ 1000 mL = 1 mg/mL.
- Step 3. Multiply by the volume: 1 mg/mL × 10 mL = 10 mg.
Answer: 10 mg
The trap: Confusing the ratio direction. 1:1000 is 1 part drug to 1000 parts total, not 1000 mg in each millilitre.
The same method handles a 1:200 (w/v) solution: 1 g per 200 mL is 1000 mg ÷ 200 mL = 5 mg/mL, so 15 mL carries 5 × 15 = 75 mg.
The dilution equation
Dilution questions ask what happens to a strength when you add diluent. The amount of drug stays the same while the volume grows, so the strength falls. That is the whole idea behind the dilution equation.
C1 × V1 = C2 × V2
Diluting a stock solution
How many mL of a 10% stock solution are needed to make 250 mL of a 2% solution?
- Step 1. Assign the values: C1 = 10%, V1 = unknown, C2 = 2%, V2 = 250 mL.
- Step 2. Rearrange: V1 = (C2 × V2) ÷ C1 = (2 × 250) ÷ 10.
- Step 3. Solve: 500 ÷ 10 = 50 mL of stock, then add diluent up to 250 mL.
Answer: 50 mL of the 10% stock, q.s. to 250 mL
The trap: Inverting the concentrations. Put the strength you are diluting from as C1; if you flip them you get 1250 mL, which is impossible for a dilution.
Alligation alternate: the tic-tac-toe grid
Draw a three by three grid. Place the higher strength in the top-left corner, the lower strength in the bottom-left corner, and the desired strength in the center. Then subtract across the diagonals. The number you write in the top-right (the parts of the higher strength) is the desired strength minus the lower strength. The number in the bottom-right (the parts of the lower strength) is the higher strength minus the desired strength. Each product takes the difference measured across from the other one.
The result is a ratio of parts. To turn parts into millilitres or grams, add the parts together, divide the final quantity by that total, and scale each product up.
Worked example: mixing two liquids
You need a 5% solution, and the pharmacy stocks a 10% solution and a 2.5% solution. How much of each makes 300 mL?
A 10% and a 2.5% to make a 5%
Prepare 300 mL of a 5% solution from a 10% stock and a 2.5% stock.
- Step 1. Grid it: 10% top-left, 2.5% bottom-left, 5% in the center.
- Step 2. Parts of 10% (high) = desired - low = 5 - 2.5 = 2.5 parts.
- Step 3. Parts of 2.5% (low) = high - desired = 10 - 5 = 5 parts.
- Step 4. Total parts = 2.5 + 5 = 7.5 parts. One part = 300 mL ÷ 7.5 = 40 mL.
- Step 5. 10% needed = 2.5 × 40 = 100 mL. 2.5% needed = 5 × 40 = 200 mL. Check: 100 + 200 = 300 mL.
Answer: 100 mL of the 10% and 200 mL of the 2.5%
The trap: Assigning the parts to the wrong strength. The parts written across from the 10% belong to the 10%, not to the 2.5%.
Worked example: mixing two ointments
The parts method is identical for solids. Here the units are grams instead of millilitres.
A 10% and a 2% to make a 5% ointment
Prepare 120 g of a 5% ointment from a 10% ointment and a 2% ointment.
- Step 1. Grid it: 10% top-left, 2% bottom-left, 5% in the center.
- Step 2. Parts of 10% (high) = 5 - 2 = 3 parts.
- Step 3. Parts of 2% (low) = 10 - 5 = 5 parts.
- Step 4. Total parts = 3 + 5 = 8 parts. One part = 120 g ÷ 8 = 15 g.
- Step 5. 10% needed = 3 × 15 = 45 g. 2% needed = 5 × 15 = 75 g. Check: 45 + 75 = 120 g.
Answer: 45 g of the 10% and 75 g of the 2%
The trap: Reporting 75 g as the 10% amount. The larger part belongs to the strength that is farther from the target, which here is the 2%.
Worked example: using water as 0%
When you dilute a concentrate, the diluent is simply 0%. Put it in the low position and the method does not change.
Diluting 90% alcohol with water
Prepare 900 mL of 70% isopropyl alcohol from 90% alcohol and purified water (0%).
- Step 1. Grid it: 90% top-left, 0% (water) bottom-left, 70% in the center.
- Step 2. Parts of 90% (high) = 70 - 0 = 70 parts.
- Step 3. Parts of water (low) = 90 - 70 = 20 parts.
- Step 4. Total parts = 70 + 20 = 90 parts. One part = 900 mL ÷ 90 = 10 mL.
- Step 5. 90% alcohol = 70 × 10 = 700 mL. Water = 20 × 10 = 200 mL. Check: 700 + 200 = 900 mL.
Answer: 700 mL of 90% alcohol and 200 mL of water
The trap: Forgetting that water is 0%, not 100%. The diluent adds volume but no active ingredient.
Alligation medial: finding the final strength
Alligation medial answers the reverse question. You already know how much of each strength went into the mix, and you need the strength of the result. It is a weighted average: multiply each strength by its quantity, add the products, and divide by the total quantity.
final % = (sum of % × quantity) ÷ total quantity
Mixing 200 mL of 10% with 300 mL of 5%
A technician mixes 200 mL of a 10% solution with 300 mL of a 5% solution. What is the percentage strength of the final 500 mL?
- Step 1. Active from the 10%: 0.10 × 200 mL = 20 g.
- Step 2. Active from the 5%: 0.05 × 300 mL = 15 g.
- Step 3. Total active = 20 + 15 = 35 g. Total volume = 200 + 300 = 500 mL.
- Step 4. Final strength = 35 g ÷ 500 mL × 100 = 7%.
Answer: 7%
The trap: Averaging the two percentages to get 7.5%. That only works when the quantities are equal; here there is more of the weaker solution, so the result sits closer to 5%.
The most common mistake
The number one error is swapping which product gets which parts. The parts of the higher strength are found from the lower strength side of the grid (desired minus low), and they belong to the higher strength. Read the grid across the diagonal, and always sanity-check by mixing the active back: the total active from both products divided by the total quantity has to equal the desired percentage.
Try it
- Using alligation, in what ratio do you mix a 20% cream and a 5% cream to make a 10% cream?
- You need 240 g of a 3% ointment from a 5% ointment and a 1% ointment. How many grams of each?
- Prepare 500 mL of a 40% dextrose solution from a 70% dextrose and a 20% dextrose. How much of each?
- A solution is 125 mg/5 mL. How many millilitres contain 300 mg?
- How many mL of a 25% stock solution are needed to make 500 mL of a 10% solution?
Show answers
- Parts of 20% = 10 - 5 = 5; parts of 5% = 20 - 10 = 10. Ratio is 5 to 10, which simplifies to 1 part of 20% to 2 parts of 5%.
- Parts of 5% = 3 - 1 = 2; parts of 1% = 5 - 3 = 2. Total 4 parts, so 240 ÷ 4 = 60 g per part: 120 g of the 5% and 120 g of the 1%.
- Parts of 70% = 40 - 20 = 20; parts of 20% = 70 - 40 = 30. Total 50 parts, so 500 ÷ 50 = 10 mL per part: 200 mL of the 70% and 300 mL of the 20%.
- 125 / 5 = 300 / x, so 125x = 1,500 and x = 12 mL.
- C1 × V1 = C2 × V2: 25 × V1 = 10 × 500, so V1 = 5000 ÷ 25 = 200 mL, then q.s. to 500 mL.
Check questions 1 to 3, or any alligation problem of your own, with the Alligation Calculator. It shows each step in the same grid format used above.
Frequently asked questions
What is alligation used for?
Alligation alternate finds how much of a stronger product and a weaker product to combine to reach a strength in between. It is the go-to method when the desired strength sits between two available strengths and neither one alone will do.
How do you set up the alligation grid?
Draw a tic-tac-toe grid. Put the higher strength top-left, the lower strength bottom-left, and the desired strength in the center. The parts of each product are the differences taken across the diagonals: parts of the higher strength equal desired minus lower, and parts of the lower strength equal higher minus desired.
How do you convert parts to actual quantities?
Add the two parts to get the total number of parts. Divide the final quantity you need by the total parts to find the size of one part, then multiply each product's parts by that value. The two amounts must add back up to the final quantity.
Can alligation use water as one of the strengths?
Yes. Purified water or any inactive diluent counts as 0%. Put 0 in the low position and the method works the same way, which is how you dilute a concentrated stock down to a target percentage.
Does the desired strength have to be between the two strengths?
Yes. Alligation only works when the target strength is greater than the lower strength and less than the higher strength. You cannot mix two products to reach a strength stronger than the strongest one you have.
Is alligation the same as dilution?
No, but they are related. Dilution adds a diluent with no drug in it to a single product, and C1 × V1 = C2 × V2 solves it. Alligation mixes two products that both contain drug. When one of the two is water or another diluent at 0%, alligation and the dilution equation give the same answer.
Official sources checked
Practise this
Proportions carry straight into clinical dosing calculations for IV flow rates, weight-based dosing and BSA, where the final volume step is the same proportion, and into days supply. Work a mixed set on the pharmacy math practice test, then head back to the pharmacy math hub for the other formulas.
PTCB Quiz Prep is an independent study resource, not affiliated with the Pharmacy Technician Certification Board.
The rest of the pharmacy math series
The other pages in the series use the same method, so once one clicks the others read faster. The full set sits on the pharmacy math guide.
- Days Supply: how long a dispensed quantity lasts, including the drops, insulin and inhaler cases that trip people up.
- Pharmacy Conversion Chart: metric, household to metric, temperature, and the Roman numerals that still appear on prescriptions.
- Alligation Calculator: the parts, ratio and amounts to mix, or the strength of a mix, in %, mg/mL or ratio strengths, with every step shown.
- Reconstitution Calculator: the concentration, the diluent to add or the powder volume of a reconstituted vial, plus the mL to draw for a dose.
- Clinical Dosing Calculations: IV Flow Rates, Weight-Based Dosing and BSA: flow rate in mL/hr and drip rate in gtt/min, mg/kg per dose against per day, and Mosteller BSA with mg/m2 dosing.
