Least-Cost Feed Mix Calculator (Two Ingredients)

When two ingredients can both meet a ration's requirements, one mix is cheapest. This calculator treats each nutrient minimum and the inclusion limit as bounds on the share of ingredient A, finds the range of mixes that meet them all and picks the cheapest one.

Results are estimates. Follow local agronomy advice and product labels.

Inputs

%
%
%
%

Results

Ingredient A in the cheapest mix
20%
Ingredient B
80
%
Cost of the mix
$0.30
Cost of the batch
$300.00
Crude protein of the mix
16
%
Energy of the mix
13.4
Feasible share of A
20% to 100%

    RefAGR-LIV-002
    MethodLinear programme in one variable: each nutrient limit bounds the share x of ingredient A; cost is linear, so the optimum is at an end of the feasible range
    Currency, unitsUSD, SI
    Date2026-11-24

    Working

    Money amounts are plain numbers shown in the currency chosen at the top of the page (symbol only; nothing is converted and no exchange rates are used). Other quantities are calculated in SI base units and converted from the units you choose.

    1. Limits on the share of Ax·A + (1 − x)·B ≥ requirementProtein: share of A ≥ 20%; Energy: share of A ≤ 200%
    2. Feasible range20% ≤ x ≤ 100%
    3. Cheapest pointcost = x·price A + (1 − x)·price BA is dearer, so use as little as allowed: x = 20%, cost = $300.00 per tonne

    Why the answer sits on a limit

    With two ingredients, cost changes in a straight line with the share of A, so the cheapest feasible mix always sits at one end of the feasible range: as little of the dearer ingredient as the binding requirement allows. Commercial least-cost formulation solves the same kind of problem with many ingredients and nutrients by linear programming. Enter nutrient contents and requirements on the same basis (as-fed or dry matter) and prices per unit of the same mass.

    Assumptions and limits

    • Nutrient contents add linearly in a mix.
    • Prices are delivered prices on the same mass basis as the nutrient values.

    References

    • Pond, W. G., Church, D. C., Pond, K. R. and Schoknecht, P. A., Basic Animal Nutrition and Feeding, 5th ed., Wiley, 2005 (least-cost ration formulation).
    • Hillier, F. S. and Lieberman, G. J., Introduction to Operations Research, 10th ed., McGraw-Hill, 2015 (linear programming).

    Questions

    What is the cheapest 16% protein mix of soybean meal and maize?
    With 44% and 9% protein and prices of 0.50 and 0.25 per kg, 20% soybean meal and 80% maize, costing 300 per tonne and supplying 13.4 MJ/kg.
    What if no mix is feasible?
    The two ingredients cannot meet every limit together; for example a high-protein requirement with a low maximum on the protein source. Add a third ingredient or change a limit.

    Results depend on the figures you enter and on the assumptions listed above; field, animal and product conditions vary. Read the disclaimer.