PHAR-131 · Lesson 7 of 12 · 33 min

Alligation and compounding quantities

▶ Video coming soon A video version of this lesson is on the way.

Compounding is the preparation of a medication for an individual patient when a commercially available product does not meet that person's needs, for example because a different strength, a liquid instead of a tablet, or a preparation without a particular excipient is required. At the fictional Larchmere Community Pharmacy, which has a non-sterile compounding area, pharmacy technician Joel Abernathy-Kim is asked to prepare 500 mL of a 30 percent solution using stock solutions of 70 percent and 20 percent, and then to scale a cream formula from 100 g to 250 g. Neither task can be done by a simple C1V1 = C2V2 dilution, because the first involves mixing two strengths and the second involves several ingredients at once. This lesson introduces alligation, the classic method for mixing strengths, and the calculations that underpin compounding: scaling formulas, calculating ingredient quantities and accounting for excess.

Compounding standards in Canada and the United States

Compounding is regulated. In Canada, the National Association of Pharmacy Regulatory Authorities (NAPRA) publishes model standards for non-sterile compounding, for sterile compounding of non-hazardous preparations and for sterile compounding of hazardous preparations, and the provincial and territorial regulatory authorities adopt and enforce them. In the United States, United States Pharmacopeia (USP) general chapters set the main standards: chapter 795 for non-sterile compounding, chapter 797 for sterile compounding and chapter 800 for handling hazardous drugs. Revised versions of chapters 795 and 797 became official on November 1, 2023, and state boards of pharmacy enforce compounding standards alongside federal law. Pharmacies in each country follow their own framework, but the calculations are identical.

Both frameworks require that compounded preparations be made from a written formula (a master formulation record), that each preparation be documented in a compounding record, that calculations be checked, and that preparations receive an appropriate beyond-use date. The calculations in this lesson are the ones a master formulation record relies on, and errors in them affect every batch prepared from that record.

Alligation medial

Alligation medial is used to find the strength of a mixture when the quantities and strengths of the ingredients are known. It is the weighted average of the strengths, with each strength weighted by its quantity. Multiply each strength by its quantity, add the products and divide by the total quantity. This is the same calculation as the 'mixing two strengths' example in lesson 6, extended to any number of ingredients.

Worked problem

Alligation medial with three strengths

A pharmacist mixes 100 mL of a hypothetical 10 percent solution, 200 mL of a 5 percent solution and 200 mL of water (0 percent). What is the strength of the mixture?

Show solution
  1. Multiply each strength by its quantity: 10 x 100 = 1,000; 5 x 200 = 1,000; 0 x 200 = 0.
  2. Add the products: 1,000 + 1,000 + 0 = 2,000.
  3. Total quantity: 100 + 200 + 200 = 500 mL.
  4. Strength: 2,000 / 500 = 4 percent.

Answer: 4 percent.

Alligation alternate

Alligation alternate solves the reverse problem: how much of each of two strengths is needed to make a desired intermediate strength. It is set out as a grid. The higher strength is written at the upper left, the lower strength at the lower left and the desired strength in the center. Subtracting along the diagonals gives the number of parts of each: the difference between the desired strength and the lower strength gives the parts of the higher strength, and the difference between the higher strength and the desired strength gives the parts of the lower strength. The parts are always positive numbers, so subtract the smaller value from the larger one.

An alligation grid with 70 percent at upper left, 20 percent at lower left and 30 percent in the center. Diagonal lines lead to 10 parts at upper right and 40 parts at lower right, total 50 parts. Boxes explain: stronger 30 minus 20 equals 10 parts; weaker 70 minus 30 equals 40 parts; to make 500 mL of 30 percent use 100 mL of 70 percent and 400 mL of 20 percent.
Figure 1. Alligation alternate for mixing a 70 percent and a 20 percent solution to make 30 percent.

Worked problem

Joel's alligation problem

How many milliliters of a 70 percent and a 20 percent solution are needed to make 500 mL of a 30 percent solution?

Show solution
  1. Grid: 70 at upper left, 20 at lower left, 30 in the center.
  2. Parts of 70 percent: 30 minus 20 = 10 parts.
  3. Parts of 20 percent: 70 minus 30 = 40 parts.
  4. Total parts: 50. Each part is 500 / 50 = 10 mL.
  5. 70 percent: 10 x 10 = 100 mL. 20 percent: 40 x 10 = 400 mL.
  6. Check with alligation medial: (70 x 100 + 20 x 400) / 500 = (7,000 + 8,000) / 500 = 30 percent.

Answer: 100 mL of 70 percent and 400 mL of 20 percent.

A diluent such as water, a cream base or petrolatum counts as a strength of zero. Alligation alternate with zero as the lower strength gives the same answer as a C1V1 = C2V2 dilution, which is a useful cross-check.

Worked problem

Alligation with a base of zero strength

How many grams of a hypothetical 5 percent w/w ointment and of plain ointment base are needed to make 120 g of a 2 percent ointment?

Show solution
  1. Grid: 5 at upper left, 0 at lower left, 2 in the center.
  2. Parts of 5 percent: 2 minus 0 = 2 parts. Parts of base: 5 minus 2 = 3 parts. Total 5 parts.
  3. Each part: 120 / 5 = 24 g.
  4. 5 percent ointment: 2 x 24 = 48 g. Base: 3 x 24 = 72 g.
  5. Check with C1V1 = C2V2: 5 x Q1 = 2 x 120, so Q1 = 48 g.

Answer: 48 g of 5 percent ointment and 72 g of base.

Alligation alternate can also be used when the quantity of one ingredient is fixed. If Joel has only 60 mL of the 70 percent solution and wants to use all of it, the parts ratio of 10 to 40 tells him that he needs four times as much 20 percent solution, or 240 mL, giving 300 mL of 30 percent solution.

Adding pure drug to increase strength

Sometimes a preparation must be strengthened by adding pure drug (100 percent). Alligation alternate handles this with 100 at the upper left. For example, to increase 200 g of a hypothetical 1 percent cream to 2.5 percent by adding pure drug powder, the grid has 100 and 1 on the left and 2.5 in the center. Parts of pure drug: 2.5 minus 1 = 1.5. Parts of 1 percent cream: 100 minus 2.5 = 97.5. Because the cream quantity is fixed at 200 g, the drug needed is 1.5 / 97.5 x 200, which is about 3.08 g. The final mixture weighs about 203.08 g, and its strength is (2 + 3.08) / 203.08, which is 2.5 percent.

An algebraic method gives the same answer: the final drug amount must equal 2.5 percent of the final weight. If x is the grams of drug added, then 2 + x = 0.025 x (200 + x). Solving gives x of about 3.08 g. Many pharmacy professionals check alligation answers this way.

Scaling formulas

Compounding formulas are usually written for a standard quantity, such as 100 g or 100 mL, and must be scaled to the quantity prescribed. Scaling uses a single multiplication factor, which is the quantity wanted divided by the quantity in the formula. Every ingredient is multiplied by the same factor. Using one factor for all ingredients keeps the proportions, and therefore the strength, unchanged.

A table for a hypothetical cream formula: active ingredient 2 g becomes 5 g, ingredient B 10 g becomes 25 g, base 'to 100 g' (88 g) becomes 'to 250 g' (220 g), each multiplied by a factor of 2.5. A note explains the factor equals quantity wanted divided by quantity in the formula, 250 divided by 100.
Figure 2. Scaling a formula from 100 g to 250 g with a single factor.

Worked problem

Scaling a cream formula

A hypothetical formula for 100 g of cream contains 2 g of active ingredient, 10 g of ingredient B and base to 100 g. Scale it to 250 g.

Show solution
  1. Factor: 250 / 100 = 2.5.
  2. Active ingredient: 2 x 2.5 = 5 g.
  3. Ingredient B: 10 x 2.5 = 25 g.
  4. Base: make up to 250 g, which is 250 minus 5 minus 25 = 220 g.
  5. Check: the active ingredient is 5 / 250 = 2 percent, the same as the original 2 / 100.

Answer: 5 g active, 25 g ingredient B, base to 250 g (220 g).

Formulas are sometimes written in parts rather than amounts, for example 'drug 1 part, ingredient B 4 parts, base 15 parts'. To scale, add the parts (here 20), divide the quantity wanted by the total parts to find the amount per part, and multiply. For 300 g, each part is 15 g, so the drug is 15 g, ingredient B is 60 g and the base is 225 g.

Calculating quantities for an individual prescription

Compounded oral liquids are often made from commercial tablets or capsules when a patient cannot swallow solids. The calculation finds how many tablets are needed to provide the prescribed concentration in the prescribed volume. For example, to make 100 mL of a hypothetical suspension containing 5 mg per mL from 25 mg tablets, the total drug needed is 5 x 100 = 500 mg, which is 500 / 25 = 20 tablets. The vehicle is then added to make the final volume. The formula, the vehicle, the stability information and the beyond-use date come from a validated source, not from improvisation; the calculation is only one part of a safe compounding process.

Worked problem

Tablets needed for a compounded suspension

Prescription for a hypothetical adult: 150 mL of an oral suspension at 2 mg per mL, prepared from 10 mg tablets according to a validated formula. How many tablets?

Show solution
  1. Total drug: 2 mg per mL x 150 mL = 300 mg.
  2. Tablets: 300 / 10 = 30 tablets.
  3. Vehicle: make up to 150 mL as the formula directs.

Answer: 30 tablets.

Overage and excess

Real compounding loses some material: some cream stays on the mixing slab, some liquid clings to the measuring cylinder, and some suspension remains in the mortar. Formulas may include a planned excess, sometimes called overage, so that the patient receives the full labeled quantity. For example, a formula might direct preparing 110 mL to dispense 100 mL. The calculation then uses the larger quantity: for 110 mL at 5 mg per mL, the drug needed is 550 mg. The label states the dispensed quantity and strength, and the excess is documented in the compounding record. Overage is never used to make up for imprecise weighing.

Weighing accuracy and minimum weighable quantity

Balances have a minimum quantity they can weigh within an acceptable error, which depends on the balance's sensitivity and the acceptable error set by the organization. A common teaching example uses a balance sensitivity of 6 mg and an acceptable error of 5 percent; the minimum weighable quantity is the sensitivity divided by the acceptable error, 6 mg / 0.05 = 120 mg. If a formula calls for less than this, such as 20 mg of a drug, it cannot be weighed directly. Instead, an aliquot method is used: a larger, weighable amount is weighed, mixed with a known amount of an inert diluent, and a portion containing the desired amount is weighed out.

Worked problem

Aliquot weighing

A formula requires 20 mg of a hypothetical drug. The minimum weighable quantity on the balance is 120 mg. Using a factor of 6, plan an aliquot.

Show solution
  1. Weigh 6 times the required amount: 20 mg x 6 = 120 mg of drug, which meets the minimum.
  2. Mix it with an inert diluent to a total weight that is at least the minimum weighable quantity times 6: for example, 120 mg drug + 600 mg diluent = 720 mg.
  3. The mixture contains 120 mg of drug in 720 mg, so 20 mg of drug is in 720 / 6 = 120 mg of mixture.
  4. Weigh 120 mg of the mixture, which contains the required 20 mg.

Answer: Weigh 120 mg of drug, mix with 600 mg of diluent, and weigh 120 mg of the mixture.

Specific gravity: converting between weight and volume

Compounding formulas sometimes give a liquid ingredient by weight when it is easier to measure by volume, or the reverse. Specific gravity is the ratio of the weight of a substance to the weight of the same volume of water, and because 1 mL of water weighs about 1 g, specific gravity lets you convert between grams and milliliters: weight in grams equals volume in milliliters multiplied by specific gravity, and volume equals weight divided by specific gravity. Glycerin, for example, has a specific gravity of about 1.25, so 50 g of glycerin occupies 50 / 1.25 = 40 mL. Liquids lighter than water, such as alcohol, have specific gravities below 1, so a given weight occupies more than the same number of milliliters. The specific gravity used should come from a reliable reference for the exact ingredient and grade.

Worked problem

Measuring a liquid by volume

A hypothetical formula calls for 30 g of a liquid with a specific gravity of 1.2. What volume should be measured?

Show solution
  1. Volume = weight / specific gravity.
  2. 30 g / 1.2 = 25 mL.
  3. Check: a liquid heavier than water occupies fewer milliliters than its weight in grams.

Answer: 25 mL.

Percentage error

The accuracy of a measurement is expressed as percentage error: the error divided by the intended quantity, multiplied by 100. If a technician intends to weigh 500 mg and the actual amount is 490 mg, the error is 10 mg and the percentage error is 10 / 500 x 100 = 2 percent. Percentage error is used to evaluate balances, measuring devices and technique, and to decide whether a preparation falls within the accepted range.

Common mistakes

  • MistakeSubtracting along the wrong lines in alligation alternate and assigning parts to the wrong strength.

    InsteadParts of the higher strength come from desired minus lower; parts of the lower from higher minus desired.

  • MistakeScaling the active ingredient but not the other ingredients.

    InsteadMultiply every ingredient by the same factor.

  • MistakeAdding pure drug without accounting for the increase in total weight.

    InsteadUse alligation with 100 percent or solve algebraically for the final weight.

  • MistakeWeighing a quantity below the balance's minimum weighable quantity.

    InsteadUse an aliquot method.

  • MistakeCalculating a compounded suspension without using a validated formula.

    InsteadUse a validated formula with stability data and a beyond-use date.

Summary and key terms

  • Alligation medial finds the strength of a mixture as a weighted average of its ingredients.
  • Alligation alternate finds the parts of a higher and a lower strength needed to make an intermediate strength.
  • Diluents count as zero percent, and pure drug as 100 percent.
  • Formulas are scaled with one factor (quantity wanted divided by formula quantity) for every ingredient.
  • Minimum weighable quantity = balance sensitivity divided by acceptable error; smaller amounts need an aliquot.
  • USP chapters 795, 797 and 800 in the US govern compounding documentation and practice.
Compounding
Preparing a medication for an individual patient from ingredients when a commercial product does not meet the patient's needs.
Alligation medial
A method for calculating the strength of a mixture of known quantities and strengths.
Alligation alternate
A method for calculating the proportions of two strengths needed to make a desired strength.
Master formulation record
The written formula and instructions used to prepare a compounded preparation.
Beyond-use date
The date after which a compounded preparation should not be used.
Minimum weighable quantity
The smallest amount a balance can weigh within the acceptable error.
Aliquot method
Weighing a larger amount, diluting it and taking a portion to obtain a quantity too small to weigh directly.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. What is the strength of a mixture of 300 mL of 15 percent and 200 mL of 5 percent?

    Show answer

    (4,500 + 1,000) / 500 = 11 percent.

  2. How much 95 percent and 50 percent alcohol make 900 mL of 70 percent?

    Show answer

    Parts: 20 of 95 percent and 25 of 50 percent; total 45; 400 mL and 500 mL.

  3. Scale a 100 g formula containing 3 g of drug to 40 g.

    Show answer

    Factor 0.4; 1.2 g of drug.

  4. A formula is drug 1 part, base 9 parts. How much drug in 250 g?

    Show answer

    25 g of drug.

  5. Balance sensitivity 6 mg, acceptable error 5 percent. Minimum weighable quantity?

    Show answer

    120 mg.

  6. Intended 200 mg, actual 196 mg. Percentage error?

    Show answer

    4 / 200 x 100 = 2 percent.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz