RWCRealWorldCalculatorTurn real numbers into real insights.

Material Purchase Planner Calculator

Choose a low-cost combination of pack sizes to meet a required quantity.

The interactive calculator loads above this explanation when JavaScript is available.

How to use the material purchase planner calculator

Choose a low-cost combination of pack sizes to meet a required quantity. Enter the known values, choose units where offered, and read the live result and breakdown.

Worked example

This example uses the following inputs. Currency amounts are illustrated in USD.

Required quantity
23
Each line: pack name | quantity | price
Small | 5 | 12 Large | 12 | 25

Lowest pack cost: 50 USD

Method

Dynamic programming checks whole-pack combinations and minimizes purchase price subject to meeting the required quantity. Equal-cost combinations prefer less excess.

What to watch for

Unlimited availability, fixed prices, quantities to two decimals; delivery and order minimums excluded. All quantities use the same unit.

Assumptions and references

Unlimited availability, fixed prices, quantities to two decimals; delivery and order minimums excluded. All quantities use the same unit.

Formula implementation: v0.8.0. Examples are checked against the calculation engine; specialist professional review is not claimed. How we check calculations.

Report a problem with this calculator

Related calculators