OnSumo Tools

Feed Blending Cost Optimizer

Find the lowest-cost ingredient mix that still hits your protein, energy, fiber, and calcium targets.

100% client-side. Inputs stay in your browser (ons-feed-blending-inputs).

Simplified least-cost blend for quick estimates. Professional ration software models digestibility and amino acids in more detail.

Nutrient targets

Ingredients

Name$/tonProtein %MEFiber %Ca %Max %

Cost per ton

$261.38

Total blend cost: $261.38 for 1 ton

Nutrient compliance

Crude protein: 18.75% (≥ 18%)Metabolizable energy: 3.058 Mcal/kg (≥ 2.9 Mcal/kg)Crude fiber: 4.345% (≤ 5%)Calcium: 1.07% (0.9–1.1%)

Blend proportions

Optimal blend

IngredientInclusionCost / tonProteinEnergyFiberCalcium
Corn60.00%$126.005.10%2.041.32%0.01%
Soybean meal27.50%$115.5012.10%0.801.93%0.10%
Wheat bran10.00%$18.501.55%0.221.10%0.01%
Limestone2.50%$1.380.00%0.000.00%0.95%

How this tool works

The feed blending optimizer calculates the least-cost combination of available ingredients that meets the nutritional requirements for a livestock or poultry ration. You enter up to 12 ingredients with their cost per unit and as-fed nutrient profile (dry matter, crude protein, metabolizable energy, crude fiber, calcium, phosphorus). You set minimum and maximum targets for each nutrient in the finished blend and the total batch weight or volume. The optimizer applies a linear programming model to find the ingredient inclusion rates that satisfy all constraints at the lowest total cost per batch. The results table shows inclusion rate, cost contribution, and the final nutrient analysis for each blend versus your targets. Key assumption: nutrient values entered are as-fed values for your specific ingredient samples. Reference-table values for the same commodity can vary by 10-20% from actual tested samples due to moisture content and batch variability. Edge case: conflicting constraints -- such as high crude protein combined with a strict low-phosphorus ceiling -- can eliminate the most cost-effective high-protein ingredients (soybean meal, fish meal) because they naturally carry high phosphorus. The optimizer flags infeasible constraint combinations when no valid blend exists and suggests which constraint relaxation would restore feasibility at the lowest cost penalty.

Worked example

A layer ration might target 18% crude protein and 2.9 Mcal/kg energy. Corn and soybean meal supply energy and protein; limestone and dicalcium phosphate bump calcium. The solver favors more corn when caps allow because it costs less per ton.

Frequently asked questions

  • What is least-cost ration formulation?

    Least-cost ration formulation is a linear programming technique that finds the cheapest combination of feed ingredients that still meets an animal's minimum nutrient requirements. You input ingredient prices and their nutrient profiles (crude protein, energy, fiber, minerals), specify the target minimums and maximums, and the optimizer solves for the blend that satisfies all constraints at the lowest total cost per ton. It is standard practice in commercial swine and poultry feeding, where feed represents 65-75% of total production cost.

  • How accurate is this calculator vs professional feed software?

    This tool is accurate for straightforward two- to four-ingredient blends against basic crude protein and energy targets. Professional software packages like NDS, CNCPS, or Brill Formulation solve for 30-50 nutrients simultaneously, include amino acid balancing (lysine, methionine, threonine), anti-nutritional factor constraints, and palatability adjustments. For commercial rations fed to large groups of livestock, professional software and a nutritionist are worth the cost. This calculator is suited for small operations, farm-mixed rations, and educational use.

  • What if no blend is found?

    No solution means the constraints cannot all be satisfied simultaneously with the ingredients provided. First, check whether your nutrient targets are physically achievable -- some combinations of minimum protein and maximum fiber cannot be met with common ingredients. Second, add more ingredients to give the optimizer more degrees of freedom. Third, check your ingredient nutrient values for data entry errors. Finally, loosen the least critical constraint slightly (such as a maximum inclusion limit) and see if a solution appears. Infeasibility often points to a nutrient target that requires a specialized ingredient not yet listed.

  • How do I enter nutrient requirements correctly?

    Use requirements from published NRC tables (National Research Council) matched to the specific animal species, production stage, and body weight. For example, a growing pig at 25 kg needs roughly 18% crude protein and 3,265 kcal/kg digestible energy; a lactating dairy cow's requirements differ entirely. Enter requirements on a dry matter basis when your ingredient nutrient values are on a dry matter basis, and as-fed basis when using as-fed values -- mixing the two bases produces errors. NRC tables for swine, poultry, beef, dairy, and horses are publicly available and free online.

  • How should I balance energy and protein in a ration?

    Energy and protein must be balanced relative to each other, not just individually. If energy is low relative to protein, animals use dietary protein for energy rather than growth, wasting expensive protein. The energy-to-protein ratio is often expressed as digestible energy (DE) per unit of crude protein. For growing pigs, a ratio of approximately 45:1 (kcal DE per gram CP) is typical. Ruminant rations use a degradable vs undegradable protein split, since rumen microbes metabolize much of the dietary protein before absorption. Imbalance in either direction reduces feed efficiency.

  • Should palatability influence my ingredient choices?

    Yes, especially when introducing new ingredients or formulating rations for young, newly weaned, or stressed animals. An economically optimal blend that animals refuse to eat or consume below target intake has zero practical value. Ingredients with known palatability concerns include canola meal (glucosinolates at high inclusion), cottonseed meal (gossypol limits), distillers grains at over 30% of diet (sulfur off-flavors), and feather meal. A palatability cap -- a maximum inclusion rate below the theoretical optimum -- is standard in commercial formulation for these ingredients.

Related tools