OnSumoTools

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 does the Feed Blending Cost Optimizer work step by step?

What does a typical Feed Blending Cost Optimizer result look like?

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

  • How do I account for ingredient digestibility differences in the optimizer?

    Use digestible nutrient values rather than total nutrient content in your ingredient database. For protein, input digestible crude protein or ileal digestible amino acids instead of crude protein, which includes indigestible fractions. For energy, use metabolizable energy (ME) or net energy (NE) values calibrated to your species, not gross energy. This ensures the optimizer compares ingredients on a biologically available basis, preventing least-cost formulas that deliver nutrients the animal cannot absorb.

  • Can the optimizer handle multiple nutritional targets simultaneously?

    Yes. Linear programming solvers handle dozens of simultaneous constraints. Input minimum and maximum bounds for protein, energy, fiber, calcium, phosphorus, lysine, methionine, and any other nutrients critical to your production system. The optimizer finds the blend that satisfies all constraints at minimum cost, or reports which constraints are mutually incompatible if no feasible solution exists.

  • What happens when ingredient prices make the optimal blend infeasible?

    If the cheapest ingredient combination still exceeds your budget target, the optimizer flags the cost constraint as infeasible and suggests which nutritional target to relax. For example, reducing target protein by one percentage point may open up lower-cost ingredient substitutions that bring the blend within budget. Alternatively, you can expand the ingredient list to include alternatives not initially considered, such as wheat middlings, bakery meal, or imported protein sources.

  • How often should I reoptimize feed blends in a commercial operation?

    Daily reoptimization is standard practice in large poultry and swine operations where ingredient prices fluctuate and feed volume is high. For smaller operations (under 1,000 head), weekly or bi-weekly reoptimization balances the administrative cost of reformulation against potential savings. During periods of high commodity price volatility, increase optimization frequency to capture short-term arbitrage opportunities between protein sources or energy grains.

  • Can I use this tool for pet food or specialty animal feed formulation?

    Yes, but verify that your ingredient database includes bioavailability factors specific to dogs, cats, or exotic species. Pet food regulations in 2026 require minimum digestible nutrient levels, not total nutrients, so use AAFCO-approved ingredient profiles or species-specific NRC tables. For specialty feeds (reptiles, zoo animals), consult veterinary nutritionists to ensure your constraint set reflects the unique physiology and anti-nutritional sensitivities of the target species.

  • How do I incorporate by-product ingredients with variable composition?

    Use rolling average nutrient values based on recent lab analysis, and add a safety margin to critical nutrients. If distillers grains protein content ranges from 26 to 30 percent across suppliers, use 27 percent in the optimizer and cap inclusion at a rate where variability will not cause nutritional shortfalls. For high-value or high-risk by-products, require supplier certificates of analysis and update ingredient profiles monthly to track shifts in composition.

Related tools

Feed is the biggest bill on most farms

For many livestock operations, feed makes up well over half of the running cost. Small changes in the mix can save real money, as long as the animals still get what they need.

The optimizer searches for the cheapest blend that meets your targets. Pick an animal preset, add your ingredients with their price and nutrient values, and it tests combinations in 5 percent steps.

How the search works

It's a simple least-cost solver. It tries blends, throws out the ones that miss a nutrient target and keeps the cheapest that passes. You can add or remove ingredient rows as your supplies change.

Each result shows compliance badges for the nutrients you set, like protein and energy, so you can see at a glance what's met and what's short. A pie chart shows the share of each ingredient.

  • Update prices often, since ingredient costs move
  • Set realistic minimums and maximums for each ingredient
  • Check the badges before you mix a full batch

Getting better inputs

A solver is only as good as the numbers it gets. Pull nutrient values from a lab report on your own grain or hay when you can. Book values are averages, and your batch may run higher or lower in protein and moisture.

Keep a short list of the ingredients you can really buy nearby. Adding a cheap option you can't source just gives you a blend you can't make. And re-run the tool whenever a delivery price changes, because the cheapest mix last month may not be the cheapest today.

Small farms often find the biggest savings by swapping one pricey protein source for a mix of two cheaper ones. Try it with a few what-if runs.

What it doesn't know

Real feed has quirks. Ingredients differ in digestibility, moisture and quality from batch to batch. Some can't be fed in large amounts or must be balanced with minerals and vitamins.

If no blend meets every target, the tool tells you. Loosen a limit, add another ingredient or check a price. Always confirm a final ration with a nutritionist or vet, especially for young or breeding animals.

Your data stays in the browser.