CalcWorldHub
Free online calculator · no signup

Wagner–Whitin Dynamic Lot-Sizing Calculator

Find a minimum-cost order schedule for known period demands with setup and inventory-holding costs.

4,000 tools
Wagner–Whitin Dynamic Lot-Sizing Calculator — Setup or ordering cost per order, Holding cost per unit per period, Demand by period, separated by commas and calculation method
Wagner–Whitin Dynamic Lot-Sizing Calculator: inputs and calculation method.

How to use this calculator

Find a minimum-cost order schedule for known period demands with setup and inventory-holding costs.

  1. Enter Setup or ordering cost per order, Holding cost per unit per period, Demand by period, separated by commas. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Operations calculation

How this calculation works

The Wagner–Whitin dynamic lot-sizing model chooses when to order a single item so that known demand in every period is met at minimum setup and inventory-holding cost. The dynamic program compares each possible order period with the later demand it covers, then reconstructs an optimal schedule from the lowest-cost plan.

Inputs and units

setupCost — Setup or ordering cost per order
Enter the fixed cost incurred each time an order or production run starts.
holdingCost — Holding cost per unit per period
Use one consistent currency and period, such as dollars per unit per month.
demands — Demand by period, separated by commas
Enter 1 to 24 known nonnegative period demands in chronological order. Zero-demand periods are allowed.

Formula

Displayed formula

Fj = min over i≤j of [Fi−1 + K + h × Σ(t=i..j)((t−i)dt)].

Method

The cost of ordering in period i to cover demand through period j is the setup cost K plus holding cost h for each unit carried from i to its demand period. The recurrence adds the minimum cost through i−1. Backtracking the minimum-cost choices gives the order periods and quantities.

Worked example

With setup cost 250, holding cost 2 per unit per period, and demands 80, 60, 90, 120, the minimum cost is 860: order 140 units in period 1 and 210 units in period 3.

Assumptions and limits

Assumes one item, known nonnegative demand, no capacity limit or backorders, zero initial inventory, constant nonnegative setup cost, and constant nonnegative holding cost per unit per period. Unit purchase or production cost is omitted because it is assumed constant and does not change the lot timing.

Frequently asked questions

Why is this different from EOQ?

EOQ targets a steady demand rate. Wagner–Whitin uses a finite sequence of known period demands and chooses an order schedule for that horizon.

How are zero-demand periods handled?

They do not trigger an order by themselves. The model may carry inventory through them when an earlier order covers a later positive demand.

Can I use changing setup or holding costs?

This calculator uses one constant setup cost and one constant holding cost for all periods. Use a planning model that supports time-varying costs when those values change.

How do I use the Wagner–Whitin Dynamic Lot-Sizing Calculator?

Enter Setup or ordering cost per order, Holding cost per unit per period, Demand by period, separated by commas. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Wagner–Whitin Dynamic Lot-Sizing?

With setup cost 250, holding cost 2 per unit per period, and demands 80, 60, 90, 120, the minimum cost is 860: order 140 units in period 1 and 210 units in period 3.