Alligation Calculator

All three concentrations must be in the same unit; the ratio does not depend on which unit.
Concentrations
M
M
Use 0 for water or an inactive base (diluent).
M
Must lie between the lower and higher concentrations.
Amounts (optional)
mL
Leave blank to get the ratio and parts only.
Chemistry Updated 5 Nov 2026

Works out how to mix a stronger and a weaker preparation of the same substance to reach a strength in between, using the alligation alternate method taught in pharmacy calculations. Enter the higher, lower and desired concentrations in any one unit (%, mg/mL, g/L or molarity) to get the alligation ratio and the parts of each. Add the total amount you need, or the amount of one ingredient you already have, to get the grams or milliliters of each product. Use 0 as the lower concentration when diluting with water or an inactive base.

  • The two products contain the same ingredient and their concentrations are expressed in the same unit and on the same basis (w/w, w/v or v/v).
  • Amounts are additive: the volume or weight of the mixture equals the sum of the two parts. Some liquid mixtures (for example alcohol and water) shrink slightly, so check the final volume when this matters.
  • This is a calculation aid for study and routine mixing, not a substitute for a pharmacist's or prescriber's check when preparing medicines.

Formula

Parts of higher concentration H = desired − lower; parts of lower concentration L = higher − desired; ratio = H : L. Amount of higher = H ÷ (H + L) × total amount; amount of lower = L ÷ (H + L) × total amount.
  • The parts are read diagonally across the alligation grid: the higher strength gets (desired − lower) parts and the lower strength gets (higher − desired) parts.
  • The same answer comes from the mass balance C_high × V_high + C_low × V_low = C_desired × (V_high + V_low), which is why the concentrations only have to share one unit.
  • If you know the amount of one ingredient instead of the total, each part equals that amount divided by its parts; multiply by the other parts to get the second ingredient.
  • Water, petrolatum or another inactive base counts as a lower concentration of 0.
  • Amounts are shown in the unit you choose and converted to a companion unit: 1 US fl oz = 29.5735295625 mL, 1 oz = 28.349523125 g, 1 lb = 453.59237 g.

Mixing 12 M and 5 M solutions to make 9 M

Inputs
  • Concentration unit: molar
  • Higher concentration: 12
  • Lower concentration: 5
  • Desired concentration: 9
  • Which amount do you know?: higher
  • Amount: 350
  • Amount unit: ml

The higher solution gets 9 − 5 = 4 parts and the lower solution gets 12 − 9 = 3 parts, so the alligation ratio is 4 : 3 (7 parts in total). With 350 mL of the 12 M solution, one part is 350 ÷ 4 = 87.5 mL, so you add 3 × 87.5 = 262.50 mL of the 5 M solution and get 612.50 mL of 9 M solution (about 11.83, 8.88 and 20.71 US fl oz).

Sources & references

Frequently asked questions

How do I calculate alligation?
Subtract the lower concentration from the desired one to get the parts of the stronger product, and subtract the desired concentration from the higher one to get the parts of the weaker product. To make 10% zinc oxide ointment from 20% and 5% ointments: 10 − 5 = 5 parts of 20% and 20 − 10 = 10 parts of 5%, a 1 : 2 ratio.
How do I turn the alligation ratio into grams or milliliters?
Divide the total amount you need by the total number of parts, then multiply by each product's parts. For 30 g of 2% hydrocortisone cream from 2.5% and 1% creams, the parts are 1 and 0.5 (1.5 in total), so you need 30 × 1 ÷ 1.5 = 20 g of the 2.5% cream and 10 g of the 1% cream.
Is alligation the same as dilution?
Dilution is a special case of alligation in which the weaker product has zero concentration, such as water or a plain base. Alligation is more general: it mixes two products that both contain the ingredient. For a simple dilution, enter 0 as the lower concentration.
Why can't the desired concentration be outside the two strengths?
Mixing two products always gives a strength between them, so a 9% product cannot be made from 5% and 8% products. You would need a stronger stock product, or pure drug, as the higher concentration.

Related calculators