Saved

Press the star next to a tool's name to save it.

All my tools

Alligation Calculator

Use this alligation calculator to find how much of two ingredients to mix for a target strength, or the weighted average strength of a mixture, with a built-in check.

Restored your last values ·

For alligation alternate, enter the strengths of two ingredients, the strength you want and the total quantity, and get the amount of each. For alligation medial, list the quantity and strength of each ingredient to get the strength of the mix.

Everything is worked out in your browser. Nothing you type is sent anywhere.

–

–

Choose what you want and fill in the boxes, then press Calculate.

An alligation calculator solves mixing problems. It finds how much of each of two ingredients you need to reach a target strength, such as a percentage, a price or a density, and it works out the strength of a mixture when you know the amount and strength of each ingredient.

How to use the alligation calculator

  1. Choose what you want.
  2. For amounts, enter the two strengths, the target and the total quantity.
  3. For a mixture, list each quantity and strength.
  4. Press Calculate.

Two kinds of alligation

There are two forms. Alligation medial is used to find the quantity of a mixture given the quantities of its ingredients, and it is merely a matter of finding a weighted mean [1]. Alligation alternate is used to find the amount of each ingredient needed to make a mixture of a given quantity, by organizing the ingredients into high and low pairs that are traded off [1]. The calculator offers both.

The mixing equation

The page writes the balance as Aa + Bb = Cc, where A and B are the quantities of the ingredients, a and b are their strengths, C is the quantity of the mixture and c is its strength [1]. Using this formula you can solve for any of the six variables [1]. For two ingredients that make a mixture of quantity C, A + B = C, so the amounts follow from A = C (c − b) / (a − b), our own algebra from the page's formula.

The cross-wise rule

In the alternate method the distance of each ingredient from the target is given to the other ingredient. The page's milk example shows it: the difference of 3 percent from the desired 1 percent goes to the low-fat milk, and the difference of one half of a percent goes to the whole milk [1]. In general the ratio of the first to the second ingredient equals the distance of the second from the target, divided by the distance of the first, which is our own reduction of that example.

Worked example, alternate

Make 8 ounces of 1 percent milk from whole milk at 3 percent and low-fat milk at half of one percent. The page gives 1.6 ounces of whole milk and 6.4 ounces of low-fat milk [1]. Check: 1.6 × 0.03 + 6.4 × 0.005 = 0.08, and 8 × 0.01 = 0.08, so the balance holds [1]. Enter 3, 0.5, 1 and 8 and the calculator gives the same amounts.

Worked example, medial

The page's medial example mixes half a unit of cola at 120 grams of sugar per litre, a quarter of a unit of lemon-lime soda at 100 and a quarter of a unit of orange soda at 150. The average is 122.5 grams per litre [1]. Enter the three lines 0.5 120, 0.25 100 and 0.25 150 to get it.

When the target is out of range

A mixture can never be stronger than its strongest ingredient or weaker than its weakest, so the target must lie between the two strengths. If it does not, the calculator says so. The page also notes that with more than two ingredients there may be multiple feasible answers [1], since the extra ingredients leave freedom in the split. This calculator therefore handles two ingredients in alternate mode.

Where it is used

Alligation is a staple of pharmacy, brewing, cooking and trade. A pharmacist uses it to dilute a cream from one strength to another. A grocer uses it with prices to blend two grades of coffee. A farmer uses it to mix feeds of different protein content. The same arithmetic applies whenever a property mixes in proportion to quantity.

Mixing prices

The same rules work for prices. Suppose coffee at 12 dollars a kilogram is blended with coffee at 8 dollars to sell at 10 dollars. The distances from the target are 2 and 2, so equal amounts of each are needed. For a target of 9 dollars, the distances are 3 and 1, so the cheaper coffee takes three parts to one of the dearer, our own example of the cross-wise rule. Enter the prices as strengths and the batch size as the total to get the weights.

Diluting a solution

To dilute a 70 percent solution to 20 percent using water at 0 percent, enter 70, 0 and 20 with the total you want. The result is the amount of concentrate and the amount of water. Water is simply an ingredient of strength zero, which makes alligation a handy way to plan dilutions.

Checking the answer

The check line confirms that the strength-weighted amounts equal the target times the total, which is the balance Aa + Bb = Cc. If the two sides do not match to the digits shown, there is an error in your entries.

Tips for accurate results

Keep the units of strength the same for both ingredients, and check that the quantities use one unit, such as litres or kilograms. If you need whole numbers of containers, round the result at the end and then recompute the strength of the actual mixture with the medial mode. That second step shows how far the rounding moves you from the target, which matters most in pharmacy and chemistry.

Common mistakes

  • Using percentages that add to more than the whole. Strengths and quantities need consistent units.
  • Choosing a target outside the range. It must lie between the two strengths.
  • Mixing mass and volume strengths. Use the same basis for both ingredients.
  • Forgetting the total. The two amounts add up to the total quantity.

What next

Use this often? Add Alligation to your Home screen.

Frequently asked questions

What is an alligation calculator?

A tool for mixing problems: it finds the amounts of two ingredients for a target strength, or the strength of a mixture.

What is alligation alternate?

It finds the amount of each ingredient needed to make a mixture of a given quantity and strength.

What is alligation medial?

It finds the strength of a mixture from the quantities and strengths of its ingredients, a weighted mean.

What is the formula?

Aa + Bb = Cc, where A and B are quantities, a and b strengths, C the total and c the target strength.

Why must the target lie between the strengths?

A mixture cannot be stronger than its strongest ingredient or weaker than its weakest.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Physics & Science Tools