SAPFree calculatorPDF, Excel, Word exportSAP S/4HANA

SAP Economic Production Quantity (EPQ) Lot Size Calculator

SAP offers lot sizing procedures such as fixed lot size, replenish to maximum stock level and period lot sizing, but it does not tell you the economically best lot. This calculator gives you the EPQ and EOQ so you can set the fixed lot size or rounding value with a reason behind it.

Your numbers

units/year
currency

Machine setup labor, scrap on startup and lost capacity value per run.

currency
% of unit cost

Capital, storage, insurance and obsolescence, typically 15 to 30 percent.

units/year

How many units the line could make per year if running only this part.

Your results

Economic production quantity
1,618
Optimal in-house lot size, larger than EOQ because stock builds while the line runs.
Annual setup plus holding cost
$5,340
Holding cost per unit per year
$4
Basic EOQ (instant replenishment)
1,401
Valid when the whole lot arrives at once, as for purchased parts.
Production adjustment factor
0.75
One minus demand rate over production rate.
Production runs per year
14.8324
Run length at full rate
6 days
Calendar days of continuous production for one lot.

Classical model: constant demand, constant production rate, no capacity conflicts. Use it as a starting point and round to a practical lot, pallet or shift.

Save results:

EPQ vs setup cost per run

Sweeps Setup cost per production run from 10 to 1000, holding your other inputs fixed.

Lot size review across your materials

Optional: we can show how lot size recommendations look when computed from your own SAP cost and demand data.

Optional. The tool and every export work without this. No spam.

How to use this calculator

Enter annual demand, the cost to set up one run, unit standard cost, holding cost rate and the production rate. The output is the optimal lot and the resulting annual cost. Move the setup cost to see the effect of a SMED project, or compare scenarios by exporting each result.

  • Use the standard cost from the costing run (CK11N or CK13N) for unit cost.
  • Setup cost should include lost throughput on a bottleneck work center.
  • If production rate is far above demand, EPQ approaches the basic EOQ.

The formulas

EOQ equals the square root of (2 times demand times setup cost divided by holding cost per unit). For in-house production the EPQ divides the holding cost by (1 minus demand over production rate), since inventory builds up more slowly than the lot size while the machine is running. Annual cost is setup cost times runs plus average inventory times holding cost, where average inventory is half the lot times the adjustment factor.

Mapping the result to SAP

In the MRP 1 view choose a lot sizing procedure. For a fixed lot, use procedure FX and enter the value in Fixed Lot Size (MARC-BSTFE). For a constrained lot, use the minimum and maximum lot size fields (MARC-BSTMI, MARC-BSTMA) and rounding value (MARC-BSTRF). Procedure EX (lot for lot) is correct when setup is negligible, and period lot sizing (WB, MB, TB) groups requirements in time buckets instead.

  • Round the EPQ to a pallet, bin or shift multiple and key it as the rounding value.
  • Recheck after cost changes, since setup and holding rates shift the answer by the square root.

Common mistakes

The biggest error is using an unrealistically small setup cost, which pushes toward lot for lot and produces many short runs on a constrained resource. Another is ignoring shelf life, minimum campaign sizes or tool life, any of which can override the economic answer.

  • The cost curve is flat near the optimum, so a lot 20 percent off costs only a few percent more.
  • Always compare against capacity: many small lots may be infeasible even if cheaper on paper.

Frequently Asked Questions

What is the difference between EOQ and EPQ?

EOQ assumes the whole lot arrives at once, as in purchasing. EPQ assumes the lot is produced gradually while demand is being served, so average inventory is lower and the optimal lot is larger.

Which SAP lot sizing procedure uses the result?

Fixed lot size (FX) with the Fixed Lot Size field is the direct match. You can also feed the value into the rounding value or the minimum lot size fields, depending on the planning policy.

Should I use lot for lot instead?

Lot for lot (EX) is reasonable when setup cost is small, demand is lumpy or the item is made to order. For stable demand with real setup costs, an economic lot normally lowers total cost.

How often should lot sizes be reviewed?

Review annually or when setup time, cost of capital or demand changes materially. A SMED project that halves setup time cuts the optimal lot by roughly 30 percent.

If you want lot sizes recalculated across thousands of SAP materials from live cost and demand data, Netray can build that as a reviewed, read-only analysis before anyone updates the material master.