Inventory math

EOQ with Safety Stock Calculator

The classic order-size formula, made honest: your buffer stock sits under every order cycle and pays holding cost year-round.

Average inventory = EOQ ÷ 2 + safety stock, where EOQ = √(2 × annual demand × order cost ÷ holding cost). The EOQ formula alone understates what you really hold, because the safety buffer never cycles down — it sits beneath every order. At 12,000 units a year, $50 per order, and $4 holding cost, EOQ is about 548 units; add a 350-unit buffer and average inventory is 548 ÷ 2 + 350 ≈ 624 units, costing about $2,495 a year to hold. Size the buffer with the safety stock calculator, then use this to see the true cost of your ordering policy.

EOQ with Safety Stock Calculator — your numbers

Economic order quantity

547.72

Average inventory (units)

623.86

Annual holding cost

$2,495.45

Estimate only. Results reflect exactly the numbers you enter — verify against your own accounting before making pricing decisions.

Embed this calculator on your site — free →

Worked examples

Mid-volume SKU with an overseas buffer

Annual demand 12000
Cost per order $50.00
Holding cost $4.00
Safety stock 350
Economic order quantity 547.72
Average inventory (units) 623.86
Annual holding cost $2,495.45

Order 548 at a time; the 350-unit buffer pushes true holding cost to ~$2,495 a year.

Expensive-to-hold product, lean buffer

Annual demand 4800
Cost per order $30.00
Holding cost $12.00
Safety stock 100
Economic order quantity 154.92
Average inventory (units) 177.46
Annual holding cost $2,129.52

A $12 holding cost argues for small orders (155 units) and a tight 100-unit buffer.

Frequently asked questions

Does safety stock change the EOQ itself?

No — and that surprises people. The economic order quantity balances ordering cost against the holding cost of the cycling half-order, while safety stock is a constant layer underneath that the order size doesn’t touch. The buffer changes your average inventory and annual holding cost, not the optimal amount to order each time. That is exactly why quoting EOQ costs without the buffer understates reality.

Why is average inventory EOQ ÷ 2 plus the buffer?

Each order cycle starts with a full order quantity on top of the buffer and drains to just the buffer before the next delivery lands, so the cycling portion averages half the order size. The safety stock, by design, is still there at the low point. With a 548-unit order and a 350-unit buffer you swing between 898 and 350, averaging about 624 units on hand at any moment.

How should I size the safety stock input?

From your demand and lead-time variability, not a round number. The max-minus-average method is the practical version: worst realistic daily sales times worst realistic lead time, minus the average case. Compute it in the safety stock calculator and paste the result here; a buffer picked by gut feel is usually either double what you need (cash asleep) or half (stockouts anyway).

When is EOQ with safety stock not the right model?

When its assumptions break: strongly seasonal or lumpy demand, supplier MOQs far above the computed EOQ, perishables with shelf-life limits shorter than the order cycle, or one-off buys for a product you won’t restock. In those cases use it as a sanity check rather than a rule — and recompute each season with that period’s demand rate instead of a single annual figure.

Related calculators

Part of the Inventory collection.