Alligation Calculator

Find the exact ratio and amounts of two concentrations needed to make a target mixture.

Alligation mixture calculation
Enter two source concentrations and a target between them. Add a total amount to calculate exact quantities.

About the alligation calculator

Alligation is a compact method for finding how much of two ingredients with different strengths must be combined to reach a concentration between them. It is widely used in pharmacy compounding, laboratory solution preparation, food production, beverage blending, and any process where two known concentrations create one target concentration. This calculator implements alligation alternate, the form used to determine a mixing ratio. It does not change units, so all three concentration values must use the same basis, such as percent by mass, percent by volume, grams per liter, or milligrams per milliliter. The calculation starts by subtracting the target concentration from the higher concentration. That difference gives the number of parts of the lower-strength solution. Next, the lower concentration is subtracted from the target. That difference gives the number of parts of the higher-strength solution. Therefore the lower-to-higher mixing ratio is (high minus target) : (target minus low). If a total batch amount is supplied, each side of the ratio is divided by the sum of both parts and multiplied by the total. The two calculated amounts always add back to the requested batch size. For example, mixing a 5 percent solution and a 20 percent solution to obtain 12 percent gives 8 parts of the lower solution and 7 parts of the higher solution. For a 1,000 mL batch, that becomes approximately 533.33 mL and 466.67 mL. A weighted-average check confirms the final strength: the concentration contributed by each portion, divided by total volume, equals 12 percent. The target must lie strictly between the two source concentrations. A target outside that interval cannot be reached by combining only those two materials, while a target equal to one source requires none of the other source. Real mixtures can also change volume or density when combined, so this arithmetic assumes additive quantities and compatible concentration definitions. For regulated pharmacy or analytical work, use appropriately calibrated equipment, account for purity and density where required, and follow the governing preparation procedure. Used with consistent units and realistic inputs, alligation provides a fast, transparent way to plan a two-component blend and independently verify its proportions.

Alligation examples

These examples use the same difference method for laboratory, pharmacy, and food mixtures.

InputsResultUse
5 and 20 to make 12; total 1,000 mL8 : 7; 533.33 mL and 466.67 mLAlcohol solution blend
0.9 and 10 to make 3; total 500 mL7 : 2.1; 384.62 mL and 115.38 mLSaline preparation
10 and 50 to make 30; total 2 L20 : 20; 1 L and 1 LSugar solution blend
1 and 5 to make 2.5; total 200 g2.5 : 1.5; 125 g and 75 gCream compounding

How to use the alligation calculator

  1. Enter the lower concentration and the higher concentration using the same concentration unit.
  2. Enter a target concentration that falls strictly between the two source concentrations.
  3. Optionally enter the total volume or mass of the finished mixture.
  4. Select Calculate mixture to see the ratio and, when a total is provided, both required amounts.

Alligation calculator FAQ

What is the alligation formula?

The lower-to-higher ratio is (high concentration minus target) : (target minus low concentration). These cross-differences weight each source so their combined concentration equals the target.

Why must the target be between the source concentrations?

A blend is a weighted average of its ingredients, so it cannot be weaker than both sources or stronger than both sources. Use a different source concentration when the desired value is outside the available range.

Can I use units other than percent?

Yes, provided every concentration uses the same unit and basis. The total amount may be any suitable mass or volume unit because the calculated portions retain that unit.

Is alligation the same as dilution?

Dilution is a special mixing case in which one source often has zero concentration. Alligation is broader because both starting materials may contain the solute at nonzero strengths.

Does the calculator account for volume contraction?

No, it assumes the entered amounts are additive and that concentration behaves as a linear weighted average. For mixtures with significant contraction, expansion, or density changes, use a validated physical model or final-volume adjustment.