Alligation Calculator: Mix a Strong and a Weak Stock to a Target Strength

Alligation: what ratio of a strong and a weak stock gives the strength you want

You have two stocks of the same substance at different strengths and you need something in between. Alligation gives you the ratio in two subtractions and no algebra: the parts of the strong stock are the gap between the target and the weak one, and the parts of the weak stock are the gap between the strong one and the target. This page draws the cross with your own numbers in it, turns the ratio into actual volumes, and then checks the mixture back to the strength you asked for.

Alligation: two stocks, one target strength

Two subtractions, one ratio, one batch
The higher of your two concentrations. The units do not matter as long as all three strength boxes use the same one: per cent w/w, per cent w/v, mg/mL, molarity, proof, even grams of sugar per litre. Alligation works on differences, and a common unit cancels out of a ratio. That is why the answer here is reported as a share rather than in any particular unit.
The lower of the two, in the same unit as the box above. Enter 0 if the weaker ‘stock’ is pure diluent — water, saline, white soft paraffin, lactose. That is the commonest case of all, and the page will tell you when you are in it, because it is the one case where alligation collapses into the ordinary dilution formula.
The target, in the same unit again, and it must lie between the two stocks. Set it equal to one of them and the page returns all of that stock and none of the other, which is correct and is worth seeing once. Set it outside both and the page refuses rather than returning a negative volume, because a negative volume of diluent is not a thing you can weigh out.
The size of the batch, in millilitres or grams — whichever matches how your strengths are expressed. The ratio from the cross does not depend on this at all; it is used only to turn the ratio into two quantities you can measure out. A caution for liquids: the two volumes this page gives you add to exactly the batch size, which assumes the volumes are additive. For aqueous mixtures of similar things that is close enough; for ethanol and water it is not, and the pharmacopoeial method is to make up to volume rather than to add volumes.
The alligation cross, drawn with the numbers you typed. The two long arrows are the diagonals: follow the one from the stronger stock through the target and it lands on the parts of the WEAKER stock, and vice versa — that crossing is the whole trick. The two right-hand boxes grow and shrink with the parts they hold, so a lopsided ratio looks lopsided. The bar along the bottom is your finished batch, split where the stronger stock's share ends.
33.33%Example

a 70 % stock and a 25 % stock of the same preparation, 500 mL of 40 % wanted

Advertisement

The cross is the mass balance, drawn

f = (want − lo) / (hi − lo)  ·  parts of strong : parts of weak = (want − lo) : (hi − want)  ·  V(strong) = V·f,   V(weak) = V·(1 − f)
hi, lo
the two stock strengths, in any one unit used consistently. The rule is unit-independent because it only ever uses DIFFERENCES of strengths, and a ratio of two differences in the same unit is a pure number
want
the target, which must satisfy hi ≥ want ≥ lo. Outside that range the fraction comes out negative or above 1, which would mean measuring out a negative volume — so this page refuses rather than printing it
want − lo
the parts of the STRONGER stock. This is the half everyone gets backwards, and the cross is drawn the way it is to stop you: the line from the strong stock through the target lands on the OTHER difference
hi − want
the parts of the WEAKER stock. The two differences always sum to hi − lo, which is why dividing by that sum turns parts into fractions of the batch
f
the fraction of the finished batch that is the stronger stock — the headline number here. It is reported as a share rather than a volume because it does not depend on the batch size, and because the share is the thing you can check against the cross by eye

Worked example

a 70 % stock and a 25 % stock of the same preparation, 500 mL of 40 % wanted
DRAW THE CROSS. Stronger stock 70 at the top left, weaker stock 25 at the bottom left, target 40 in the middle.
TAKE THE TWO DIFFERENCES ALONG THE DIAGONALS. 40 − 25 = 15, and that belongs to the stronger stock. 70 − 40 = 30, and that belongs to the weaker stock. The crossing is the whole point of the diagram: the number you compute from the strong stock's row is the weak stock's parts, and vice versa.
READ THE RATIO. 15 parts of the 70 % stock to 30 parts of the 25 % stock, which is 1 : 2. Sanity-check it against where 40 sits: it is closer to 25 than to 70, so there must be more of the weak stock, and there is — twice as much.
TURN PARTS INTO A SHARE. Total parts 15 + 30 = 45, so the stronger stock is 15 ÷ 45 = 33.33 per cent of the batch. That is the headline number and it does not depend on the batch size at all.
SCALE TO THE BATCH. 500 × 0.3333 = 166.67 mL of the 70 % stock and 500 − 166.67 = 333.33 mL of the 25 % stock.
CHECK IT BACK. Active substance: 166.67 × 0.70 = 116.67 units, plus 333.33 × 0.25 = 83.33 units, total 200.00 units in 500 mL, which is 40.00 %. The check is not decoration — it is the only step that catches the commonest error on this topic, which is assigning the two differences to the wrong stocks. Get them the wrong way round here and the check comes back as 55 %, not 40 %.
AND THE PUBLISHED CROSS-CHECK. McPherson and Jack's own example in the Journal of Chemical Education mixes 2.3 M and 8.9 M hydrochloric acid to make 4 M, and reports 4.9 parts and 1.7 parts, which for a 500 mL batch they give as about 371 mL and 129 mL. Type 8.9, 2.3, 4 and 500 into the boxes above and this page returns 128.79 mL of the 8.9 M and 371.21 mL of the 2.3 M. Their published figures and this calculator were derived independently and agree.
Advertisement

The same two stocks, nine targets: how the ratio swings across the range

TargetParts of 70 % stockParts of 25 % stockRatio strong : weakShare that is strongOf a 500 mL batch
25 %0450 : 450.00 %0 mL + 500 mL
30 %5401 : 811.11 %55.56 mL + 444.44 mL
35 %10352 : 722.22 %111.11 mL + 388.89 mL
40 %15301 : 233.33 %166.67 mL + 333.33 mL
45 %20254 : 544.44 %222.22 mL + 277.78 mL
47.5 %22.522.51 : 150.00 %250.00 mL + 250.00 mL
50 %25205 : 455.56 %277.78 mL + 222.22 mL
60 %35107 : 277.78 %388.89 mL + 111.11 mL
70 %45045 : 0100.00 %500 mL + 0 mL
A 70 % stock and a 25 % stock throughout. Two things to notice. The equal-parts row is at 47.5 %, the arithmetic mean of the two stocks, and NOT at 50 % — the midpoint of the achievable range is the mean of the stocks, which is a different number from any round figure you might have expected. And the share moves linearly with the target: every 4.5 percentage points of target costs another 10 per cent of the batch in strong stock, because the span between the stocks is 45. A narrow span makes the ratio hypersensitive to the target, which is the practical reason for keeping a genuinely strong concentrate on the shelf.

Three classic alligation problems, worked

ProblemStrongerWeakerTargetPartsFor 100 of batch
A 2 % ointment from 5 % and 1 % stocks5 %1 %2 %1 : 325 + 75
70 % isopropanol from 99 % and water99 %0 %70 %70 : 2970.71 + 29.29
4 M hydrochloric acid from 8.9 M and 2.3 M8.9 M2.3 M4 M1.7 : 4.925.76 + 74.24
Parts are written stronger : weaker. The middle row is the pure-diluent case, where alligation reduces to C1V1 = C2V2 and 100 × 70 / 99 = 70.71 gives the same answer with no cross at all. The bottom row is the published example from McPherson and Jack (2024), whose own parts of 4.9 and 1.7 are the same two numbers in the other order, because they list parts descending by stock strength while this page lists the stronger stock first. The quantities agree: 25.76 per cent of the batch is the 8.9 M acid.

A named technique, 376 years in print, and absent from the rest of this site

Alligation answers one question: in what ratio do I mix two stocks of different strength to land on a strength in between? It is a pharmacy and laboratory staple, it is taught as a diagram rather than as algebra, and it is the only method on this page because there is only one — the cross and the equation are the same thing.

The procedure is two subtractions. Write the stronger stock at the top left, the weaker at the bottom left, the target in the middle. Subtract along each diagonal, always smaller from larger. The difference you reach by going from the STRONGER stock through the target is the number of parts of the WEAKER stock, and the difference from the weaker stock through the target is the parts of the stronger. That crossing is the single thing to get right, and it is why the figure is drawn as a cross rather than as two sums in a column.

Why it works is a mass balance. Mixing a fraction f of the strong stock with (1−f) of the weak gives a strength of f·hi + (1−f)·lo, and setting that equal to the target and solving gives f = (want − lo) / (hi − lo). The cross is that fraction with its numerator and denominator laid out so the subtractions cannot be done in the wrong order. McPherson and Jack give the formal proof, and note that the differences being proportional to the parts is exactly why the units cancel: per cent, molarity, mg/mL, proof, degrees Brix, all work the same way as long as all three strengths are in the same one.

Three limits worth stating plainly. First, the target must lie between the two stocks; no ratio of a 25 % and a 70 % stock reaches 80 %, and this page refuses rather than handing you a negative volume. Second, for liquids the two volumes are assumed to add. Mixing ethanol and water contracts, so a pharmacopoeial method makes up to volume rather than adding volumes; for dilute aqueous work the error is small, and for powders and ointments by weight there is no error at all. Third, a strength is only as good as the assay behind it: a concentrate that is nominally 70 % and actually 68 % puts a systematic bias into every batch you make from it, in a fixed direction.

Where the weaker stock is pure diluent, alligation reduces to the ordinary dilution formula and you should use the simpler page: C1V1 = C2V2, or serial dilution for a dilution series. For converting between the ways a strength can be written before you alligate at all, this site already has the percent solution calculator, the molarity calculator and normality to molarity; there is no version of them here, deliberately. Inside this plugin, molality and mole fraction covers the per-kilogram-of-solvent way of stating a strength, ppm, ppb and trace units covers the other end of the scale, and the solubility curve page tells you whether the strong stock you are planning will dissolve in the first place.

Frequently asked questions

Which difference belongs to which stock? I always get it backwards.

The difference that does NOT involve a stock belongs to it. Parts of the stronger stock = target − weaker; parts of the weaker stock = stronger − target. The check that settles it in two seconds without remembering anything: look at where the target sits. If it is nearer the weak stock, you need MORE weak stock than strong. With 70, 25 and a target of 40, the target is 15 above the weak stock and 30 below the strong one, so it is nearer the weak one, so the weak one must dominate — and it gets 30 parts against 15. If your answer has the dominant stock on the far side of the target, you have crossed them the wrong way.

Does it matter whether my strengths are in per cent, molarity or mg/mL?

No, as long as all three are in the SAME unit. Alligation uses only differences of strengths, and the ratio of two differences in one unit is a pure number with the unit cancelled out. That is why this page reports a share rather than a volume as its headline. What does matter is mixing bases: a 70 % w/w stock and a 70 % w/v stock are not the same strength, and alligating one against the other silently gives a wrong answer. Convert first.

The volumes it gives me do not fill my flask. Why?

Because volumes are not always additive. Mixing ethanol and water produces a smaller volume than the sum of the parts — the classic demonstration is that 50 mL plus 50 mL gives about 96 mL — and the pharmacopoeial instruction is therefore to add the concentrate and then make up TO volume with diluent, not to add two measured volumes. For dilute aqueous solutions of similar substances the contraction is a fraction of a per cent and nobody notices. For solids and semi-solids mixed by weight there is no issue, which is one reason ointment alligation is done in grams.

What if my target is outside both stocks?

Then no mixture of those two stocks can reach it and the page says so rather than returning a negative amount. To go BELOW the weaker stock you need a diluent, which you can model here by entering 0 as the weaker strength. To go ABOVE the stronger stock you need a stronger concentrate, or you need to remove solvent — evaporation, not mixing. A negative volume on a calculator display is a signal that the problem as posed has no physical answer, and it is worth recognising rather than typing into a prescription.

Related calculators

References

  1. P. A. C. McPherson and I. G. Jack, “Alligation Alternate: Borrowing a Useful Concept from the Pharmacy Curriculum”, Journal of Chemical Education 101 (2024) 4472–4476, doi:10.1021/acs.jchemed.4c00559; read 14 November 2026 as the accepted manuscript in the Ulster University repository, whose metadata says 2025 while the file says 2024. The source for the history and the cross-check here. The authors trace the rule “most likely” to Euclid’s Elements and date its first widespread English-language account to Jonas Moore’s Arithmetick of 1650, which already had a chapter on compounding medicines with it. They give an algebraic proof from the mass balance, showing the cross-differences are proportional to the parts and therefore unit-independent. Their worked example mixes 2.3 M and 8.9 M hydrochloric acid to make 4 M: 4.9 and 1.7 parts, about 371 mL and 129 mL for 500 mL. This calculator returns 371.21 mL and 128.79 mL.
  2. IUPAC, Compendium of Chemical Terminology (the Gold Book), entry “amount fraction”, doi:10.1351/goldbook.A00296 (read 14 November 2026). IUPAC’s preferred name for what your textbook calls MOLE FRACTION: the amount of a component divided by the total amount of all constituents. The entry records “mole fraction” as the alternative name, so both are acceptable in an answer.
  3. NOT SOURCED, and said so rather than dressed up. Alligation is not a physical law and needs no measured constant: it is the two-component mass balance rearranged, derived in full on this page rather than asserted. The pharmacy compendia that teach it as a procedure — Remington, the USP–NF, the British Pharmacopoeia — are paywalled and none was read on 14 November 2026, so no compendial wording or rounding convention is quoted. If your course follows one, follow its rounding rather than this page’s.