Formula: Alligation Blending Reference Equation
- highConcentrationPct: High Concentration Pct (%)
- lowConcentrationPct: Low Concentration Pct (%)
- targetConcentrationPct: Target Concentration Pct (%)
- finalTotalVolumeMl: Final Total Volume (mL)
Compound intermediate % concentrations using the pharmacy Alligation method.
Not on this page, which takes exactly two. With three or more stocks there is usually no single answer, because many combinations reach the same target. One workable approach is to pair each stock above the target with one below it, solve each pair separately, and combine the pairs. Many people simply choose two stocks and set the rest aside.
It prints the raw differences, 30 minus 10 and 70 minus 30, without reducing them. The ratio 20 to 40 is the same as 1 to 2, and either form gives the same volumes. Reducing the ratio by hand is useful when you want a quick mental check: one third strong stock and two thirds weak stock for the default.
That dilution equation is the special case where the weak stock is 0%, such as water or a plain base. Enter 0 in the low box and the page agrees with it exactly. Alligation is more general because it handles a weak stock that already contains some of the active ingredient, as the default 10% stock does.
Ethanol and water contract slightly when mixed, so measured volumes do not add up exactly. The calculation assumes they do. For a precise final volume, measure the calculated stock volume into a volumetric vessel and add water up to the mark, rather than measuring both and pouring them together. The concentration then matches your intended volume percent much more closely.
The target must lie strictly between the two stocks. A blend can never be stronger than its strongest ingredient or weaker than its weakest, so asking for 80% from 70% and 10% stocks has no answer. Check that the high and low boxes are not swapped, then either change the target or choose a stock that brackets it.
Yes, if your percentages are weight in weight. Enter the batch weight in the final volume box and read both outputs as grams, ignoring the mL label. The ratio is identical. What you cannot do is mix bases: if strengths are by weight, measure by weight, and if they are by volume, measure by volume.
The arithmetic does not care, but the chemistry sometimes does. Some concentrated acids and bases release heat when diluted and are always added slowly to the diluent, never the other way round. Follow the handling instructions for your specific chemicals. The calculator only tells you the amounts, not a safe sequence for combining them.
Change only the final volume box. The parts stay the same and both volumes shrink together. Setting a final volume of 60 mL with the default strengths gives 20 mL of 70% stock and 40 mL of 10% stock, which makes it easy to check the mix before preparing the full 500 mL.
Not directly, since this page asks for a target and returns volumes. To find the strength of a mixture you have, multiply each volume by its strength, add the two, and divide by the total volume. For example, 20 mL of 70% and 40 mL of 10% gives 14 plus 4, or 18, divided by 60, which is 30%.
A 100% concentrate sits 70 points above the 30% target, while the 10% stock sits only 20 points below it. The volumes are inversely proportional to those distances, so the concentrate gets 20 parts against 70. That works out to 111.11 mL of concentrate and 388.89 mL of 10% stock in the 500 mL batch.
Because it moves the mixture less per millilitre. In the 42% preset the strong stock is only 12 points above the 30% target, so each millilitre of it adds very little strength. The blend needs 312.5 mL of it against 187.5 mL of the 10% stock. A 100% concentrate, much further from the target, needs far less.
Out of the box the calculator is asked to make 500 mL of a 30% solution from two stocks, one at 70% and one at 10%. It answers with 166.67 mL of the strong stock and 333.33 mL of the weak one, and it shows the working as 20 parts to 40 parts.
Those parts come from two subtractions. The target minus the weak stock, 30 minus 10, gives 20 parts of the strong stock. The strong stock minus the target, 70 minus 30, gives 40 parts of the weak one. That makes 60 parts in all. Spread 500 mL across 60 parts and each part is 8.33 mL. Twenty of them make 166.67 mL and forty make 333.33 mL.
You can check any answer the same way, by counting the active ingredient. Take a small version of the blend: 20 mL of 70% stock holds 14 mL of active, and 40 mL of 10% stock holds 4 mL. That is 18 mL of active in 60 mL of mixture, which is exactly 30%. If your own check does not come out at the target, an input is wrong.
The odd part of alligation is the crossover. The strong stock gets the number that belongs to the gap between the weak stock and the target, and the weak stock gets the gap on the strong side. It feels backwards until you think about which ingredient sits closer to where you want to end up.
In the default the target of 30% is only 20 points above the weak stock but 40 points below the strong one. It is closer to the weak stock, so the blend has to be mostly weak stock. The crossover gives the weak stock the bigger number, 40, and that is what makes the mix two thirds weak and one third strong.
This is a balance, like a seesaw. Each stock pulls the mixture toward its own strength, and the volumes have to be in inverse proportion to the distances so the pulls cancel at the target. The page's formula, V_high = V_total × (Target − Low) / (High − Low), is the same balance written as a fraction.
The two alternative scenarios on this page keep the weak stock at 10% and the target at 30% and only change the strong stock. Because the target minus the weak stock is still 20, the strong stock keeps its 20 parts in both. What moves is the weak stock's share.
With a 42% strong stock, the weak stock gets 42 minus 30, or 12 parts. The ratio is 20 to 12, and the strong stock now dominates. You need 312.5 mL of it and 187.5 mL of the 10% stock. The strong stock is only 12 points above the target, so a lot of it is needed to pull the mix up.
With a 100% concentrate the weak stock gets 70 parts against 20. The blend is 111.11 mL of concentrate and 388.89 mL of 10% stock. A pure concentrate is so far above the target that a small amount does the job.
The practical lesson: the closer your strong stock is to the target, the more of it you use. If the strong stock is expensive and you have a choice of strengths, using the most concentrated one usually saves material.
Set the low concentration to 0% and the page becomes a simple dilution calculator. Keeping the 70% stock and 30% target, the parts become 30 of stock to 40 of water, so the stock is three sevenths of the batch and water is four sevenths. This gives the same answer as the familiar C1 × V1 = C2 × V2.
A common lab job shows the idea in a single batch: 100 mL of 70% ethanol from 95% ethanol and water. Enter 95, 0, 70 and 100 and the page gives 73.68 mL of 95% stock and 26.32 mL of water, from 70 parts to 25.
Here the real world departs from the arithmetic. Ethanol and water shrink a little when mixed, so the two measured volumes will give you slightly less than 100 mL. The calculation assumes volumes simply add. For volume percent mixtures of liquids that contract, the usual bench practice is to measure the stock, then add water up to the final volume mark rather than pouring in the calculated water volume. Treat the diluent figure as a guide in that case and the final volume as the fixed point.
Alligation does not care what kind of percentage you use, as long as all three percentages are the same kind. Mixing a 10% w/v stock with a 50% v/v stock and asking for a w/w target produces a number, but it means nothing.
The units of the answer follow from the units of the percentages. With w/v or v/v strengths and volumes, the outputs are millilitres, as labelled. With w/w strengths, such as two ointment strengths compounded together, the parts are parts by weight. The page still prints mL, but you should read the figures as grams and enter the final batch as a weight. A 500 g batch of a 30% ointment from 70% and 10% bases needs 166.67 g and 333.33 g.
Density matters only if you switch between the two. Weighing a liquid when the calculation was done by volume, or measuring a cream by volume when the strengths are by weight, is where most compounding errors in this kind of problem come from.
Pharmacy students learn alligation as a little grid, and it is worth being able to draw it when there is no screen to hand. Write the strong stock at the top left and the weak stock at the bottom left. Put the target in the middle. Then subtract along each diagonal, ignoring signs, and write the answers on the right.
For the default, 70 sits top left, 10 bottom left and 30 in the centre. The diagonal from 70 through 30 gives 40, written bottom right. The diagonal from 10 through 30 gives 20, written top right. Read across each row: the top row says 20 parts of the 70% stock, the bottom row says 40 parts of the 10% stock. These are the same two numbers the page prints.
The grid then becomes a share. Add the right hand column, 60 parts here, divide the batch by it, and multiply by each row. Doing this once by hand is a good way to catch a typing error in the boxes, because the parts are small whole numbers you can hold in your head while you check the screen.
The grid also shows the impossible cases at a glance. If the target is not between the two stocks, one diagonal crosses zero and the numbers stop making physical sense.
Alligation only works when the target lies between the two stock strengths. The page enforces this: the low stock must be below the high stock, and the target must sit strictly between them. Anything else returns a message asking you to fix the inputs instead of a volume.
Ask for 80% from 70% and 10% stocks and the page refuses. No amount of mixing can push a blend above its strongest ingredient, so the only fixes are a stronger stock or a lower target.
Ask for 5% from the same stocks and it refuses for the same reason in the other direction. To get below 10% you need a weaker diluent, such as water at 0%. A target exactly equal to one stock is also refused, because then no blending is needed: you simply use that stock.
The page also expects the strong stock in the High box. Enter the two the wrong way round and you get the same message. If you see it, check the order of the boxes before changing any numbers.
The parts do not depend on the batch size, only on the three strengths. Change the final volume and both outputs scale together. A 60 mL batch of 10% from 20% and 5% stocks, for example, comes out at 5 parts to 10, or 20 mL and 40 mL.
The two decimal places on figures such as 166.67 mL are arithmetic, not a measuring instruction. Choose the vessel that suits the volume. A measuring cylinder will not resolve the hundredths, and the error of the vessel usually matters far more than the rounding. Making a slightly larger batch often lets you hit round, measurable volumes with the same ratio.
If the result needs to be exact, for example for a stock used in later calculations, prepare the blend and then check its strength by an independent method where one exists. Alligation tells you what to mix. It does not confirm that the stocks were the strength printed on their labels.