Tendor Tendor

Tendor → Free tools → Safety stock calculator

Free tool · no signup

Safety stock calculator

Safety stock = Z × σ × √lead time. Choose how often you want to avoid a stockout (the service level), enter how much your daily sales swing and your supplier's lead time, and get the buffer to hold, plus the reorder point it implies. If the supplier is sometimes late, add how much the lead time varies and the calculator covers that too.

Work out the average and σ from daily sales

Safety stock
20
units
Reorder point
110

How do you calculate safety stock?

Multiply three numbers: the service-level z-score, the standard deviation of daily demand, and the square root of the lead time in days. Example: 95% service (Z = 1.65), σ = 4 units a day and a 9-day lead time give 1.65 × 4 × 3 = 19.8, so hold 20 units of safety stock.

Service levelZ
90%1.28
95%1.65
99%2.33
97.5%1.96

What if your supplier's lead time varies?

Use the full formula: safety stock = Z × √(L × σd² + d² × σL²), where d is average daily sales and σL is the standard deviation of the lead time in days. Late deliveries often matter more than demand swings: a supplier who is two days late on a product selling 10 a day needs 20 extra units on the shelf.

Same product as above (10 units a day on average, σ = 4, 9-day lead time, 95% service level), with and without a supplier whose deliveries swing by about 2 days:

SupplierWorkingSafety stockReorder point
Always on time (σL = 0)1.65 × 4 × √9 = 19.820110
Swings by about 2 days (σL = 2)1.65 × √(9 × 16 + 100 × 4) = 38.539129

To estimate σL, list the days between order and delivery for your last 5–10 purchase orders from that supplier and take their standard deviation (paste them into the daily-sales box above and read the σ it reports).

Which mistakes make safety stock wrong?

  • Mixing time units. σ must be per day when the lead time is in days. A weekly or monthly σ used with a lead time in days overstates the buffer.
  • Counting stockout days as zero demand. Days you had nothing to sell show 0 sales and pull the average down. Leave those days out of the pasted series.
  • One service level for everything. 99% on every product ties up cash in slow sellers. Keep 97.5–99% for best-sellers and 90% for cheap, slow items.
  • Using the ship date as the delivery date. The lead time runs until the stock can be sold, so include receiving and putting it on the shelf.
  • Setting it once. Demand and suppliers change. Recalculate monthly and before seasonal peaks.

Where do I get daily sales from Shopify?

In the Shopify admin, open Analytics → Reports, open a sales-by-product report, show it by day for the last 30–90 days and export it as a CSV. Copy one product's daily units into the box above. Doing this for a whole catalog by hand gets slow, which is where an app that reads your sales for every product helps.

Next: the reorder point calculator, the Stocky export to reorder plan tool for a whole catalog, or the guide how to calculate a reorder point.

Frequently asked questions

What is the safety stock formula?

Safety stock = Z × σ × √L. Z is the z-score for your service level (1.65 for 95%), σ is the standard deviation of daily demand, and L is the supplier lead time in days.

What service level should I choose?

95% is a common default: you expect to cover demand during 95 out of 100 replenishment cycles. Use 97.5–99% for best-sellers where a stockout is costly, and 90% for slow, cheap items.

How do I find the standard deviation of daily demand?

Paste your daily unit sales for a recent period (30–90 days works well) into the box above and the calculator works it out, along with the average.

How often should I recalculate safety stock?

Monthly for most stores, and before a season that changes demand (Black Friday, summer, a big launch). Recalculate straight away when you change supplier, because the lead time and its reliability change with it.

How does safety stock relate to the reorder point?

Reorder point = average daily sales × lead time + safety stock. Safety stock is the buffer part; the reorder point is the stock level that should trigger a new order.

Does this account for late deliveries?

Yes, if you fill in the lead time variability field. Leave it at 0 when deliveries arrive on time; otherwise enter how many days the lead time typically swings (its standard deviation) and the calculator switches to Z × √(L × σd² + d² × σL²), which covers both demand swings and late deliveries.

Guides on this topic

More free Shopify tools