45 / Operations & risk
Inventory: EOQ, reorder points and safety stock
Inventory models separate the quantity decision from the reorder trigger. Economic order quantity balances ordering and holding costs under a simple operating model; a reorder point can add protection against uncertain demand during replenishment lead time.
The business question
How much should be ordered, and when should a replenishment order be released?
- Set a transparent replenishment policy for a regularly consumed spare part or packaging material.
- Explore the cost and stock consequences of a chosen cycle-service target.
How the method works
In the basic EOQ model, ordering a larger batch reduces the number of orders per year but increases average cycle stock. Relevant annual ordering cost is demand divided by order quantity times cost per order. Relevant cycle-stock holding cost is half the order quantity times annual holding cost per unit. Minimising their sum gives the EOQ; purchase cost is excluded only when unit price does not change with quantity.
A reorder point answers a different question: release replenishment when inventory position reaches expected demand during lead time plus safety stock. Inventory position includes stock on hand plus stock on order minus backorders, so repeatedly ordering merely because on-hand stock is low can create excess replenishment.
With fixed lead time and independent daily demand, lead-time demand has mean equal to daily mean times lead-time days and standard deviation equal to daily standard deviation times the square root of days. A normal quantile then targets the probability of avoiding a stockout during a replenishment cycle. This cycle-service probability is not the same as the percentage of demand filled immediately. Variable lead time, intermittent demand, minimum-order quantities and perishability need adjusted policies.
The calculation
| Symbol | Meaning |
|---|---|
| D, K, h | Annual demand, cost per replenishment order and annual holding cost per unit. |
| mean_d, sigma_d | Daily demand mean and standard deviation, estimated from relevant demand rather than censored sales alone. |
| L, z | Fixed lead time in days and standard normal quantile for the chosen cycle-service target. |
A worked business example
ILLUSTRATIVE SCENARIO
Illustrative industrial consumable: demand is regular enough for an EOQ and normal lead-time approximation.
Inputs
- 12,000 units per year over 250 operating days; R200 per order and R20 annual holding cost per unit.
- Daily mean 48 units; daily standard deviation 10 units; fixed lead time 5 operating days.
- Chosen cycle-service target 95%, giving z = 1.644854.
Work through the numbers
- EOQ = sqrt(2 × 12,000 × 200 / 20) = 489.897949 units, suggesting a feasible batch near 490.
- Mean lead-time demand = 48 × 5 = 240 units.
- Lead-time standard deviation = 10 × sqrt(5) = 22.360680 units.
- Safety stock = 1.644854 × 22.360680 = 36.780045 units.
- Continuous reorder point = 276.780045 units; rounding upwards gives a whole-unit trigger of 277.
The values follow the entered cost horizon and demand model. They are not an assurance that 95% of all individual unit demand will be filled without delay.
Explore the decision
Explore order size and safety stock. The live explorer has its own example inputs; it is separate from the worked calculation above.
Enable JavaScript to use this calculator. The worked example and executable Python remain available.
Apply it at work
- Collect uncensored demand, operating-day lead times, order costs, holding costs and physical ordering constraints.
- Check whether demand is regular, lead time is stable and the EOQ cost structure is a reasonable approximation.
- Choose a service metric, estimate the lead-time demand distribution and simulate feasible batch and trigger choices.
- Pilot the policy and monitor stockouts, fill rate, cycle service, obsolete stock, cash tied up and ordering effort.
Check these assumptions
- The EOQ illustration assumes steady known annual demand, instantaneous full replenishment and no quantity price discount.
- Ordering and holding costs use a consistent annual horizon and represent relevant incremental costs.
- The safety-stock calculation assumes fixed lead time, independent daily demand and a suitable normal approximation.
- The service target is cycle service, and inventory position is accurately recorded.
Common mistakes and how to avoid them
- Mixing monthly demand with annual holding cost produces an incorrect quantity even when the formula is entered correctly.
- Sales during stockouts can understate true demand and make a low reorder point appear justified.
- A normal fixed-lead-time formula can badly misrepresent intermittent demand or highly variable supplier delays.
How this can help the business
- A stated cost-and-service policy can make replenishment decisions reviewable rather than dependent on arbitrary stock buffers.
- Sensitivity to lead time and demand variability can reveal whether supplier reliability deserves attention alongside warehouse stock.
Choose feasible batch and trigger values that meet the explicitly chosen service measure at acceptable total inventory cost, then validate them on out-of-sample demand and actual lead times.
When to use another approach
Use empirical lead-time demand simulation, intermittent-demand methods or a newsvendor model for different demand, lead-time or single-period conditions.
Reproduce the worked example in Python
The code is self-contained for this example. Dependencies and run instructions are included with the downloadable notebook.
Show executable code and recorded output
from math import sqrt, ceil
from scipy.stats import norm
annual_demand, order_cost, annual_holding = 12000, 200, 20
eoq = sqrt(2*annual_demand*order_cost/annual_holding)
daily_mean, daily_sd, lead_days = 48, 10, 5
z = norm.ppf(0.95)
safety_stock = z*daily_sd*sqrt(lead_days)
reorder_point = daily_mean*lead_days+safety_stock
print("EOQ units:",round(eoq,3))
print("Safety stock units:",round(safety_stock,3))
print("Whole-unit reorder trigger:",ceil(reorder_point))
print("Target metric: 95% cycle service under the model")Recorded output
EOQ units: 489.898 Safety stock units: 36.78 Whole-unit reorder trigger: 277 Target metric: 95% cycle service under the model
Sources and further reading
Concepts are linked to primary teaching or technical sources. The business examples are illustrative applications, not reported client results.