Alligation Calculator
How it Works
01Enter Two Stocks
Concentrations of high and low strength.
02Set Target
Target concentration between the two stocks.
03Cross-Subtraction
Classic alligation alternate parts.
04Mix Volumes
Returns volumes of each stock per final volume.
What is an Alligation Calculator?
The Alligation Calculator uses the alligation alternate method to determine the proportions of two stock solutions (or solid mixtures) needed to produce a desired intermediate concentration. Classic pharmacy compounding tool: e.g., mix 5% and 20% creams to make 10%, or combine 50% and 90% alcohol to get 70% disinfectant. The output is a parts ratio that scales to any final batch size.
Inputs: high stock %, low stock %, and target %. Output: parts of high + parts of low (and exact amounts in g, mL, or oz when batch size is given). Used by hospital pharmacy compounders, veterinary medication preparers, lab solution makers, and home brewers/distillers blending alcohol percentages.
How to Use the Calculator
The Math Behind It
Cross-subtraction (the "alligation grid"):
- Parts of high stock = Target − Low stock
- Parts of low stock = High stock − Target
- Total parts = (Parts high) + (Parts low)
Then for batch size B: Amount high = B × Parts high / Total parts; Amount low = B × Parts low / Total parts. Works for any units (mass, volume) as long as both stocks use the same unit.
Worked Example
Make 100 g of 10% hydrocortisone cream from 5% and 20% stocks:
- Parts of 20% (high) = 10 − 5 = 5 parts
- Parts of 5% (low) = 20 − 10 = 10 parts
- Total = 15 parts → 5/15 = 33.3% from 20% stock; 10/15 = 66.7% from 5% stock
- For 100 g: 33.3 g of 20% + 66.7 g of 5%
- Verify: (33.3 × 0.20 + 66.7 × 0.05) / 100 = 0.10 = 10% ✓
Who Uses It
Technical Reference
The classic 4-square layout:
High% → Target − Low% = parts High ⬊ ⬈ Target% ⬈ ⬋ Low% → High% − Target = parts Low
Common pharmacy applications:
- Topical hydrocortisone: Combine 1% and 2.5% to get custom strength
- Alcohol blending: 90% IPA + diluent for 70% disinfectant
- Saline: 0.9% NaCl + 3% NaCl for hypertonic prep
- Insulin diluent: Standard concentration adjusted for pediatric dosing
- Veterinary doxycycline: Compound to species-appropriate concentrations
Key Takeaways
Alligation is faster than algebra for two-component blending — cross-subtract, get parts, scale to batch. Works for percent w/w, w/v, v/v, ABV, or any other concentration unit as long as both stocks share the unit. The target must lie strictly between high and low — you cannot extrapolate.
Frequently Asked Questions
Can I use alligation with three stocks?
What if I want a target below the low stock?
Does it work for v/v as well as w/w?
What about temperature corrections for alcohol?
Why use alligation instead of C₁V₁ = C₂V₂?
Is alligation still taught in pharmacy school?
Disclaimer
Alligation assumes ideal mixing without volume contraction or chemical reaction. For analytical-grade compounding (especially alcohol blending), measure stocks at the same temperature and verify final concentration with hydrometer or assay. For prescription compounding, USP <795> and <797> standards apply — follow institutional SOPs.