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
a 70 % stock and a 25 % stock of the same preparation, 500 mL of 40 % wanted
The cross is the mass balance, drawn
- 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.
The same two stocks, nine targets: how the ratio swings across the range
| Target | Parts of 70 % stock | Parts of 25 % stock | Ratio strong : weak | Share that is strong | Of a 500 mL batch |
|---|---|---|---|---|---|
| 25 % | 0 | 45 | 0 : 45 | 0.00 % | 0 mL + 500 mL |
| 30 % | 5 | 40 | 1 : 8 | 11.11 % | 55.56 mL + 444.44 mL |
| 35 % | 10 | 35 | 2 : 7 | 22.22 % | 111.11 mL + 388.89 mL |
| 40 % | 15 | 30 | 1 : 2 | 33.33 % | 166.67 mL + 333.33 mL |
| 45 % | 20 | 25 | 4 : 5 | 44.44 % | 222.22 mL + 277.78 mL |
| 47.5 % | 22.5 | 22.5 | 1 : 1 | 50.00 % | 250.00 mL + 250.00 mL |
| 50 % | 25 | 20 | 5 : 4 | 55.56 % | 277.78 mL + 222.22 mL |
| 60 % | 35 | 10 | 7 : 2 | 77.78 % | 388.89 mL + 111.11 mL |
| 70 % | 45 | 0 | 45 : 0 | 100.00 % | 500 mL + 0 mL |
Three classic alligation problems, worked
| Problem | Stronger | Weaker | Target | Parts | For 100 of batch |
|---|---|---|---|---|---|
| A 2 % ointment from 5 % and 1 % stocks | 5 % | 1 % | 2 % | 1 : 3 | 25 + 75 |
| 70 % isopropanol from 99 % and water | 99 % | 0 % | 70 % | 70 : 29 | 70.71 + 29.29 |
| 4 M hydrochloric acid from 8.9 M and 2.3 M | 8.9 M | 2.3 M | 4 M | 1.7 : 4.9 | 25.76 + 74.24 |
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
- 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.
- 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.
- 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.
