Converter tool

MRP Material Requirements Planner

Explode a multi-level bill of materials into period-by-period gross requirements, projected balances, planned receipts and releases with lot-for-lot, EOQ, POQ, Silver-Meal or Wagner-Whitin lot sizing.

One row per item and parent

1. Items and bill of materials

Or paste the table

One row per item, period and type

2. Demand and scheduled receipts

Or paste the table

What the planner does

Method and limits

Items are processed level by level (low-level code = longest chain from a top item). For each item: gross requirements are the independent demand plus the planned releases of its parents times the quantity per, divided by one minus the scrap fraction; the balance is netted against on-hand stock less allocations, scheduled receipts and safety stock; the lot rule turns net requirements into planned receipts; releases are those receipts moved earlier by the lead time. A release that would fall before period 1 is placed in period 1 and reported as past due.

Capacity is not checked, there is no rough-cut load, and a product that contains itself is rejected. Up to 300 items and 60 periods.

MRP Material Requirements Planner

Operator: Abdulla Al Fahad. How tools are built and checked

Material requirements planning answers three questions for every part in a product: how many will be needed, when, and when must the order go out to have them on time. The answer cascades down the bill of materials. Ten bicycles due in period 8 need frames, which need tube, and the tube has a three-period lead time, so the tube order has to leave in period 5.

This page does that arithmetic from two tables: items with their bill-of-materials rows and ordering rules, and a schedule of demand and orders already placed. It nets requirements against stock period by period, sizes the lots by the rule you pick for each item, offsets the releases by lead time, and flags the ones that would have had to go out before today.

Key features

  • Multi-level bills of materials with quantity per parent and scrap percent, processed by low-level code, so an item used at two levels is planned once, after all its parents
  • Six lot rules per item: lot for lot, fixed quantity, EOQ, periodic order quantity, Silver-Meal and Wagner-Whitin
  • On-hand stock, allocations, safety stock, scheduled receipts and independent demand on any item, over up to 60 periods and 300 items
  • Exception messages for past-due releases and for scheduled receipts that arrive earlier than needed, pegging to the parent orders, and a lot-size cost comparison for any item

The items table, the demand table and the netting logic

The items table has one row per item and parent, with columns item, parent, qty_per, scrap_pct, lead_time, lot_rule (l4l, foq, eoq, poq, sm or ww), lot_param, setup_cost, holding_cost, safety_stock, on_hand and allocated. An item made into several parents gets one row for each parent; its lead time, lot rule and costs are read from the first row of the item that fills them. Top-level products have no parent. Lot_param is the lot size for fixed quantity and the number of periods covered for POQ.

The demand table has columns item, period, type and qty. Type demand adds independent demand, which is the master production schedule for finished goods and also service-part demand for a component. Type receipt records an order already on its way. Period 1 is the first period of the horizon, and lead times count in the same periods.

How it works

Items are sorted by low-level code, the longest chain from any top item, so every parent is finished before its components. For each item the gross requirement in a period is its independent demand plus the planned releases of each parent in that period times the quantity per, divided by one minus the scrap fraction. The balance starts at on-hand minus allocated, takes scheduled receipts and subtracts gross requirements, and wherever it would fall below safety stock the shortfall is a net requirement.

The lot rule turns the net requirements into planned receipts. Lot for lot orders each shortfall exactly. A fixed quantity or the EOQ, sqrt(2 x average net requirement x setup / holding) rounded to a whole unit, orders whole multiples and carries the surplus forward. POQ covers a fixed number of periods per order, taken from the item or derived as EOQ divided by average demand. Silver-Meal keeps adding periods to an order while the average cost per period falls. Wagner-Whitin solves the cheapest plan exactly by dynamic programming. A planned receipt in period t is released in period t minus the lead time.

Holding cost in the comparison is charged on the units carried past the end of each period, setup cost on each order. A release that would fall before period 1 is placed in period 1 so the components are still planned, and reported as past due.

Common use cases

  • A planner compares rules on the ten-week series and finds that lot for lot costs 800 because it pays eight setups, while an order every three weeks costs 565, 29% less, with no holding beyond three periods.
  • Silver-Meal and Wagner-Whitin both cost 535 on the same series but get there differently: four orders of 65, 50, 70 and 85 units against three orders of 115, 70 and 85, so the cheaper-looking rule is not always the one with fewer orders.
  • The bicycle example asks for 60 bikes in period 4, 40 in 5 and so on to 90 in period 11. With 20 on hand the first release is 40 bikes in period 3, and the frame, which has a two-period lead time and 35 already on order, needs its first release of 35 in period 2.
  • In the same plan tube has a three-period lead time and a 15-unit safety stock. Orders needed in periods 2, 3 and 4 would have to be released in periods -1, 0 and 1, so all 465 are placed in period 1 and two past-due exceptions appear.
  • The 150 wheels already on order for period 2 are flagged because the balance of 60 covers demand until period 3, so that receipt could be rescheduled out by a period.

How to use this tool

  1. Load the items table, or press Load bicycle example.
  2. Load the demand table and scheduled receipts.
  3. Set the planning horizon in periods.

Example

Ten weeks of net requirements, setup cost 100, holding cost 1 per unit per week

35, 30, 40, 0, 10, 40, 30, 0, 30, 55

Cost of each lot rule

Lot for lot: 8 orders, cost 800
EOQ 73: 4 orders, cost 717
POQ every 3 weeks: 3 orders, cost 565
Silver-Meal: 4 orders, cost 535
Wagner-Whitin: 3 orders, cost 535 (the minimum possible)

Tips for best results

  • Pick an item in the record selector: when it has parents, a pegging table beneath its record lists which parent order created each period's gross requirement.
  • Compare lot rules for one item at a time: the comparison uses that item's net requirements after stock, scheduled receipts and safety stock, not its gross demand.
  • Give a purchased part a lot rule of fixed order quantity with its supplier's pack size in lot_param, and a made part lot for lot, then look at the exceptions before changing anything.
  • Type a different setup cost in the comparison box to see how sensitive the best rule is to it, without editing the items table.

Common pitfalls

Planned releases in the first periods are only as good as the lead times. A past-due message means the plan is infeasible as stated, not that the arithmetic failed.

Component quantities are not rounded. A scrap percent can give fractional requirements such as 5,510.2 spokes; round in your purchasing step if parts are whole.

Capacity is not checked and the page has no rough-cut load. A plan with feasible material can still overload a machine.

EOQ and POQ use the average net requirement over the whole horizon, so a horizon with a long empty tail lowers the average and the lot size.

Common errors and how to fix them

The bill of materials loops back on itself (Frame, Tube).
An item appears among its own components, directly or through another item. Remove the row that closes the loop.
The bill of materials names the component "Spoke", which has no row in the items table.
Every part named as a component needs a row in the items table, with its own lead time and lot rule, even if all values are 0.

Best practices

  • Run the plan with lot for lot first, then change rules item by item, so you can attribute each change in releases to one decision.
  • Keep lead times in the same periods as the demand: a weekly lead time of 2 with monthly demand periods plans every release in the wrong place.

How the lot rules differ on the same demand

Lot for lot never holds stock and pays a setup for every shortfall. A fixed or EOQ lot of 73 pays fewer setups but carries units for several weeks: on the ten-week series it needs 4 orders and holds 317 unit-weeks, for a cost of 717. The periodic rule groups demand into 3-week blocks, which for this series is nearly the cost-balancing choice, at 565.

Silver-Meal looks ahead until the average cost per period turns up, and Wagner-Whitin looks at every possible grouping at once. Wagner-Whitin is guaranteed to be at least as cheap as every other rule for the same requirements, so the gap between a rule and Wagner-Whitin shows how much a simpler rule leaves on the table.

Past-due releases

When a lead time is longer than the time left, a planned receipt would have to be released before the first period. The page does not hide this by shifting the demand. It moves the release into period 1 so the parts below it are still planned, lists each affected receipt as an exception with the period it should have been released, and leaves the decision to expedite, split the order or move the demand to you.

Frequently asked questions

How do I check the table against a textbook?

The lot-size comparison reproduces the classic ten-week exercise: with demand of 35, 30, 40, 0, 10, 40, 30, 0, 30 and 55, a setup cost of 100 and a holding cost of 1, lot for lot costs exactly 800, the product of 8 orders and 100, and no other rule beats the Wagner-Whitin cost of 535.

Can an item have independent demand and also be a component?

Yes. Add demand rows for the component itself; they are added to the requirements that come from its parents.

What happens to allocated stock?

Allocated quantity is subtracted from on-hand before netting, because it is already promised to another order. Only the free stock covers requirements in the plan.

Is this a replacement for an ERP system?

No. It is a planning calculator for one run: no inventory transactions, no multiple plants, no capacity planning and no firm-planned orders. Use it to size lots, test a bill of materials or teach the logic.