Alligation Calculator - Two-Solution Mixing Ratio

alligation calculator that turns a higher-concentration stock, a lower-concentration stock, a target percent, and a total amount into the parts of each to mix.

Updated: June 20, 2026 • Free Tool

Alligation Calculator

%

Concentration of the stronger stock in percent. Must be greater than the target. Pharmacy stock strengths like 70%, 95%, and 100% are common.

%

Concentration of the weaker stock in percent. Must be less than the target. Water is 0% and dilute stocks are common at 5% to 50%.

%

Percent strength of the mixture you want to make. The alligation rule only works when the target sits strictly between the two stocks.

Total volume (mL) or mass (g) of the final mixture. Used to scale the part ratio into the actual amount of each stock to pipette or weigh.

Results

Parts of Higher Stock
0parts
Parts of Lower Stock 0parts
Higher to Lower Ratio 0
Amount of Higher Stock 0mL or g
Amount of Lower Stock 0mL or g
Mixture Status 0

What Is Alligation Calculator?

An alligation calculator turns a higher-concentration stock, a lower-concentration stock, a target percent, and a total amount into the parts of each stock to mix plus the volume or mass of each to pipette. The parts of the higher stock equal the target minus the lower concentration and the parts of the lower stock equal the higher minus the target, so a student or technician stops doing the cross arithmetic by hand and reads a defensible bench answer from the alligation calculator.

  • Compound a 70% alcohol dilution from 95% and 50% stocks: Target 70% for a pharmacy prep. The tool returns the mL of each to mix.
  • Dilute a strong acid to a working percent: Use 37% HCl and water as 0% to reach a 10% working solution.
  • Blend two syrup strengths to hit a target Brix: Mix two syrup batches of different percent solids to reach a target.
  • Work a homework alligation problem quickly: Plug textbook percents to read the part ratio and the scaled volumes.

Alligation is taught as a shortcut for the algebra of how much of each of two known solutions to mix to land at a third concentration. The arithmetic is simple once you see the cross, but most students slip on the direction of subtraction, so this kind of tool is useful from undergraduate chemistry through pharmacy technician training.

After you read the parts ratio from the alligation cross you still need to know the percent strength of each stock on the same percent w/w scale, and the same percent-by-mass arithmetic that defines a stock solution sits behind a Mass Percent Calculator.

How Alligation Calculator Works

The alligation calculator applies the classical alligation cross in percent. It subtracts the lower stock from the target to get the parts of the higher stock, the target from the higher stock to get the parts of the lower stock, then divides each part by the total parts to scale into the chosen total volume or mass.

Parts higher = Target - Lower; Parts lower = Higher - Target; Amount higher = (parts higher / total parts) x total amount; Amount lower = (parts lower / total parts) x total amount
  • Higher stock concentration (%): Strength of the stronger stock. Must exceed the target.
  • Lower stock concentration (%): Strength of the weaker stock. Must be below the target; pure water counts as 0.
  • Target concentration (%): Strength of the mixture; must lie strictly between the two stocks.
  • Total amount (mL or g): Volume or mass of the final mixture; converts the parts ratio into pipette volume or weigh mass.

The two part values always sum to the difference between the two stocks and reduce to a small integer pair when the stock strengths are on a percent grid.

Mix 70% and 10% to make 50% of 100 mL

Higher stock = 70%, lower stock = 10%, target = 50%, total amount = 100 mL.

Parts higher = 50 - 10 = 40. Parts lower = 70 - 50 = 20. Total parts = 60. Amount higher = (40 / 60) x 100 = 66.67 mL. Amount lower = (20 / 60) x 100 = 33.33 mL.

Mix 66.67 mL of the 70% stock with 33.33 mL of the 10% stock.

This is the classic textbook example from Ansel's pharmaceutical calculations and reproduces the standard alligation cross from the Omni Calculator reference page.

According to Omni Calculator - Alligation, the alligation method sets the parts of the higher stock equal to the target minus the lower concentration and the parts of the lower stock equal to the higher minus the target

According to Wikipedia - Alligation, alligation is a historical arithmetic method that places the target percent at the center of a cross and the two stock percents at the ends to read the parts along the diagonals

The percent numbers you type into the alligation cross come from the percent w/v or percent w/w recipes that a Percent Solution Calculator prepares, so the percent-of-solute-in-solvent arithmetic feeds the stocks that alligation then blends.

Key Concepts Explained

Four ideas come up every time you set up an alligation problem: what the rule really says, how to read the cross, where the rule fails, and why a parts ratio beats a single ratio.

Alligation alternate for two solutions

Alligation alternate is the classical mixture rule that sets the parts of one stock equal to the difference between the target and the other stock. The cross layout puts the target in the middle and the two stock strengths at the corners, so the diagonal differences read out the parts.

Alligation medial versus alternate

Alligation medial solves the inverse problem: given a mixture of two known parts at known strengths, return the strength of the mixture. Alternate is the forward problem: given two stocks and a target, return the parts ratio. Both rules share the percent arithmetic but the inputs swap roles.

Stock strengths must bracket the target

The rule only works when the target sits strictly between the two stocks. If the target equals one stock or lies outside the bracket, no two-solution mixture with positive parts can land at that target, and the calculator surfaces the error in the status line.

Parts are dimensionless, amounts need a total

The parts ratio is unitless, so 40 parts of higher and 60 parts of lower can be 40 mL and 60 mL, 40 g and 60 g, or 40 mol and 60 mol depending on the unit you are working in. Picking a total amount turns the ratio into a single pipette volume for that unit.

These four ideas cover a typical undergraduate chemistry homework set on alligation, so the calculator pairs naturally with the dilution and percent tools. When the lower stock is pure water at 0% the rule collapses to C1V1 = C2V2, and the same dilution arithmetic sits behind a Dilution Formula Calculator.

How to Use This Calculator

Five quick steps take you from two stock bottles and a percent target to the exact mL or g of each to measure. The defaults match a classic textbook problem so the first answer is useful without changing anything.

  1. 1 Enter the higher stock percent: Percent strength of the stronger stock. Pharmacy examples use 95% alcohol, 37% HCl, or 70% isopropyl alcohol.
  2. 2 Enter the lower stock percent: Percent strength of the weaker stock. Pure water is 0%; dilute stocks run 5% to 50%.
  3. 3 Enter the target percent: Percent strength of the mixture you want to make. The target must lie strictly between the two stocks.
  4. 4 Enter the total amount: Total volume (mL) or mass (g) of the final mixture. This converts the parts ratio into an actual pipette or weigh amount.
  5. 5 Read the parts ratio and amounts: Read the parts of each stock, the reduced higher:lower ratio, and the volume or mass to pipette.

For 70% and 10% stocks at a 50% target with 100 mL total, the calculator returns 40 parts of 70%, 20 parts of 10%, a 2:1 ratio, 66.67 mL of the 70% stock, and 33.33 mL of the 10% stock.

Once the prep is mixed you can record the dilution factor from the higher stock to the final mixture for a lab notebook, and the same ratio-of-final-to-initial arithmetic that a Dilution Factor Calculator reports sits behind the same workflow.

Benefits of Using This Calculator

The tool turns a published alligation cross into a specific mL or g for your exact stocks and total, so you stop re-doing the arithmetic on scratch paper.

  • Skip the diagonal subtraction by hand: Type two stock percents and a target percent and read both the parts and the amounts.
  • Match USP compounding practice: The cross layout and parts-to-volume scaling match the United States Pharmacopeia compounding standards for two-solution preparations.
  • Surface invalid setups before you pipette: If the target is outside the bracket of the two stocks, the status line flags the error before you measure anything.
  • Scale the parts ratio to any total amount: Whether you compound 10 mL of a 10% buffer or 5 L of a 30% syrup, the same parts ratio scales to the total amount.
  • Move between percent strength and dilution setups: The same alligation rule covers water (0%) plus a concentrated reagent, two strengths of the same solvent, or two syrup batches.
  • Hand off to a downstream percent or molarity tool: The mix percent feeds a percent-solution, mass-percent, or molarity workflow without recomputing parts.

Once you have the mL or g number, measure each stock into a clean vessel, mix, and verify the final percent with a refractometer or assay if the prep is critical.

If you need to convert the percent strengths into moles per liter for an analytical prep, the same gram-to-mole stoichiometry that defines molarity sits behind a Grams to Moles Calculator.

Factors That Affect Your Results

Four variables move the parts ratio and pipette amounts the most, plus two caveats when the target is not a percent w/w or w/v.

Difference between higher stock and target

A larger gap shrinks the parts of the lower stock and grows the parts of the higher stock, which directly changes the ratio and the higher-stock volume.

Difference between target and lower stock

A larger gap grows the parts of the higher stock, so a target close to the lower stock needs proportionally more of the higher stock.

Stock strength bracket around the target

A wider bracket (95% vs 0%) produces a more extreme ratio than a narrow bracket (60% vs 50%), so a narrow bracket limits the menu of targets you can hit.

Total amount of the final mixture

The total amount scales both pipette volumes proportionally. Halving the total halves each pipette volume but leaves the ratio unchanged.

  • The rule assumes percent is linear on the amount you measure. For percent w/v the solute volume is small and the rule is a good approximation, but for percent w/w with dense solutes an alligation cross can drift a few tenths of a percent.
  • The calculator treats the two stocks as pure solutions of the same solute. Mixing reagents that react, or stocks with impurities or stabilizers, will drift from the alligation answer; verify reactive or buffered systems with an assay.

If the bench answer disagrees with a refractometer or assay, re-check the stock percents, confirm the units (w/w vs w/v), and confirm the stocks are miscible in the proportions you are mixing.

According to United States Pharmacopeia (USP) Compounding Standards, pharmacy technicians use alligation calculations to determine the quantities of two stock preparations of known strength needed to compound an intermediate-strength preparation

When the prep has to be reported in molarity instead of percent, the same percent-to-molar conversion that fixes a lab notebook entry sits behind a Percentage Concentration to Molarity Calculator.

alligation calculator interface showing higher stock percent, lower stock percent, target percent, total amount, and the computed parts and volumes of each stock
alligation calculator interface showing higher stock percent, lower stock percent, target percent, total amount, and the computed parts and volumes of each stock

Frequently Asked Questions

Q: What is the alligation method formula?

A: The alligation formula sets the parts of the higher-concentration stock equal to the target percent minus the lower percent, and the parts of the lower-concentration stock equal to the higher percent minus the target. Multiply each part by a scale factor that makes the two scaled volumes sum to the desired total volume or mass.

Q: How do you solve alligation step by step?

A: Write the higher stock and lower stock percents in a cross with the target percent in the center. Subtract along each diagonal to get the parts of the opposite stock, then divide each part by the total parts and multiply by the desired total volume to get the pipette amount of each stock.

Q: When should I use the alligation method?

A: Use the alligation method whenever you need to mix exactly two solutions of known percent strength to land at an intermediate percent. It is the standard approach in pharmacy compounding, in chemistry teaching labs, and in any process where two strengths of the same reagent need to be blended to a target.

Q: What is the difference between alligation alternate and alligation medial?

A: Alligation alternate solves the forward problem: given two stocks and a target percent, return the parts of each to mix. Alligation medial solves the inverse problem: given a mixture of two known parts at known percents, return the percent strength of the mixture. This calculator solves the alternate form.

Q: Can alligation be used for three or more solutions?

A: Standard alligation handles exactly two solutions. For three or more stocks, you solve a system of linear equations on the parts and the percents, or you apply alligation sequentially by mixing two stocks at a time and using the resulting mixture as a virtual stock for the next mix.

Q: Does alligation work for percent concentration only?

A: The cross arithmetic works for any linear concentration scale, including percent weight per weight, percent weight per volume, percent volume per volume, and even simple mixing ratios. The same parts-of-higher and parts-of-lower rule applies as long as the unit you are tracking scales linearly with the amount measured.