User Rating 0.0 β˜…β˜…β˜…β˜…β˜…
Total Usage 0 times
Is this tool helpful?

Your feedback helps us improve.

β˜… β˜… β˜… β˜… β˜…

About

Alligation is a centuries-old arithmetic technique for determining the ratio in which two or more ingredients at different concentrations must be combined to yield a mixture at a specified target concentration D. A miscalculation in mixing proportions leads directly to dosing errors in compounding pharmacies, off-spec batches in chemical manufacturing, or failed quality control in food production. This calculator implements both alligation alternate (finding unknown proportions) and alligation medial (finding the resultant concentration from known quantities). It enforces the fundamental constraint that the desired concentration must lie between the lowest and highest component concentrations. Results include the exact ratio, absolute quantities for a given batch size, and a verification check confirming Cresult = D within rounding tolerance.

The alligation alternate method works by computing cross-differences: each component receives parts equal to the absolute difference between the other component's concentration and the target. For multi-component systems, components are grouped above and below the target and paired systematically. This tool assumes ideal mixing (no volume contraction or expansion). For solutions where density changes significantly upon mixing (e.g., ethanol-water), apply density correction factors separately. Pro tip: in pharmacy compounding, always express concentrations in the same units (w/w, w/v, or v/v) before applying alligation.

alligation mixing calculator pharmacy calculator concentration ratio alligation alternate alligation medial solution mixing

Formulas

The alligation alternate method for two components with concentrations C1 (higher) and C2 (lower) to achieve desired concentration D:

Parts of Component 1 = |C2 βˆ’ D| = D βˆ’ C2
Parts of Component 2 = |C1 βˆ’ D| = C1 βˆ’ D
Ratio = Parts1 : Parts2 = (D βˆ’ C2) : (C1 βˆ’ D)

For alligation medial, the resultant concentration from known quantities:

Cavg = nβˆ‘i=1 Ci β‹… Qinβˆ‘i=1 Qi

Quantity for a desired total batch T:

Qi = Partsinβˆ‘i=1 Partsi Γ— T

Where Ci = concentration of component i, Qi = quantity of component i, D = desired target concentration, T = total batch size, n = number of components.

Reference Data

ApplicationComponent AConc. AComponent BConc. BTypical TargetUnit
Pharmacy: Hydrocortisone creamStock cream10%Base cream0%2.5%w/w
Pharmacy: Dextrose IVD50W50%D5W5%12.5%w/v
Pharmacy: Alcohol dilutionAlcohol 95%95%Purified water0%70%v/v
Chemistry: Acid dilutionConc. HCl37%Water0%10%w/w
Chemistry: NaCl salineHypertonic saline23.4%Normal saline0.9%3%w/v
Food: Sugar syrupHeavy syrup65Β°BrixWater0Β°Brix25Β°BrixBrix
Food: Juice blendingConcentrate42Β°BrixWater0Β°Brix11.5Β°BrixBrix
Beverage: Alcohol blendingVodka 40%40% ABVJuice 0%0% ABV12% ABVABV
Agriculture: Fertilizer mixConc. NPK20%NFiller5%N12%Nw/w
Metallurgy: Gold alloy24K gold999‰Base metal0‰750‰fineness
Cosmetics: Essential oilPure oil100%Carrier oil0%2%v/v
Paint: Color mixing (pigment)Full-strength tint100%White base0%15%w/w
Lab: Buffer preparationStock buffer 10Γ—10Γ—DI Water0Γ—1Γ—fold
Fuel: Ethanol blendEthanol E100100%Gasoline E00%10%v/v
Dairy: Milk fat standardizationCream40%Skim milk0.1%3.5%fat %

Frequently Asked Questions

The alligation alternate method requires that the desired concentration D lies between the lowest and highest component concentrations. If D < Cmin or D > Cmax, no positive mixing ratio exists. You would need to source a component with a concentration beyond the current range. The calculator will flag this as an error.
No. Alligation assumes ideal mixing where total volume (or mass) equals the sum of individual volumes (or masses). For systems like ethanol-water, mixing 50 mL of each yields approximately 96.4 mL, not 100 mL. In such cases, work in mass units (w/w) rather than volume units (v/v), or apply a published volume correction factor after computing the ratio.
Components are split into two groups: those with concentration above D and those below D. Each higher-concentration component is paired with each lower-concentration component. For each pair, cross-differences are computed. The parts assigned to each component are then summed across all its pairings. This yields a valid ratio, though not necessarily the unique ratio - multiple valid solutions may exist for systems with more than two components.
Yes. Alligation applies to any system where a measurable property blends linearly by proportion. Common solid applications include mixing metal alloys by fineness (e.g., gold karat blending), combining fertilizer grades by nutrient percentage, and blending powdered pharmaceuticals. Use weight-based concentrations (w/w) for solids.
Alligation alternate solves the inverse problem: given component concentrations and a target, find the mixing ratio. Alligation medial solves the forward problem: given known quantities and concentrations, find the resulting mixture concentration. Medial uses a straightforward weighted average formula: Cavg = βˆ‘Ciβ‹…Qiβˆ‘Qi.
Assign it a concentration of 0. This is standard practice. For example, diluting a 10% stock solution with water (0%) to 2%: parts of stock = 2 βˆ’ 0 = 2, parts of water = 10 βˆ’ 2 = 8, ratio 2:8 or 1:4.