Nikhil Sharma Tools
Free tool · No signup

Reorder before the stockout, not after.

Out-of-stock does not just lose the sale. It drops you out of Google Shopping and AI shopping results, and getting momentum back takes weeks. I built the inventory system for the brand I run ops for; this is the same math it uses.

-Safety stock (units)
-Reorder point (units)
-Days until reorder

The formula

Safety stock = (max daily sales × max lead time) − (avg daily sales × avg lead time). It absorbs the double bad luck of a demand spike during a supplier delay.

Reorder point = (avg daily sales × avg lead time) + safety stock. When on-hand crosses this number, place the PO that day, not next week.

Why stockouts cost more than the missed orders

The obvious cost of running out is the revenue you do not capture that week. The larger cost is what happens around it. Out-of-stock products get filtered out of Google Shopping and increasingly out of AI shopping results. Ad sets pointing at a dead product keep spending. Organic rankings for the product page soften while it sits unavailable, and they do not snap back the day inventory lands.

Which is why a reorder point is not really an inventory metric. It is a visibility metric with an inventory formula behind it.

The formula, and what each part is protecting you from

Two calculations. The first sizes your buffer:

Safety stock = (max daily sales x max lead time)
             - (avg daily sales x avg lead time)

This covers the scenario that actually causes stockouts, which is rarely a single problem. It is a demand spike happening at the same time as a supplier delay. Sizing the buffer against your worst observed demand and your worst observed lead time together prices in that overlap.

The second sets the trigger:

Reorder point = (avg daily sales x avg lead time) + safety stock

When on-hand inventory crosses that number, the purchase order goes out that day. Not at the end of the week, not after the next planning meeting. The whole point of computing it in advance is to remove the decision from the moment.

A worked example

You sell 12 units a day on average, spiking to 25 on your best days. Your supplier averages 18 days, but has taken as long as 28.

Safety stock  = (25 x 28) - (12 x 18) = 700 - 216 = 484 units
Reorder point = 216 + 484 = 700 units

At 700 units you reorder. That buffer looks large, and it is: it is the honest cost of a supplier whose lead time swings by ten days. If that number is uncomfortable, the fix is a more reliable supplier or a second source, not a smaller buffer. Shrinking the buffer does not reduce the risk, it just moves the cost from inventory to stockouts.

Where to find these numbers in Shopify

What this calculation does not handle

It assumes demand is roughly stable. That assumption breaks in three places, and each needs a manual override:

Recalculate quarterly at minimum. Lead times drift, suppliers change, and a reorder point built on last year's numbers will quietly stop protecting you.

Common questions

How do I calculate a reorder point?
Reorder point equals average daily sales multiplied by average lead time in days, plus safety stock. Safety stock is commonly calculated as maximum daily sales times maximum lead time, minus average daily sales times average lead time. When on-hand inventory reaches the reorder point, the purchase order should go out that day.
Why does stocking out cost more than the lost sales?
Out-of-stock products are filtered out of Google Shopping and AI shopping results, advertising pointed at them continues to spend, and organic rankings for the product page soften while it is unavailable. Those effects persist after inventory arrives, so recovery takes longer than the stockout itself.
How much safety stock should I hold?
Enough to cover a demand spike and a supplier delay occurring together, which is the combination that actually causes stockouts. The formula uses your maximum observed daily sales and maximum observed lead time. If the resulting buffer feels too large, the underlying problem is usually an unreliable supplier rather than the calculation.
Where do I find lead time and sales data in Shopify?
Average and maximum daily sales come from Analytics, then Reports, then Sales by product, using a 90 day window so a single promotion does not distort the average. Lead times come from your own purchase order history, measured from PO sent to stock actually available to sell, which includes receiving and putaway.
Does this work for seasonal products?
Not without adjustment. The calculation assumes roughly stable demand, so before a peak season you should recalculate using peak-period demand rather than an annual average. Planned launches and promotions are known demand and should be added on top rather than waiting for the reorder point to react.
How often should I recalculate?
Quarterly at minimum, and before any seasonal peak. Supplier lead times drift, demand shifts, and a reorder point built on last year's figures will stop protecting you without giving any warning that it has.

Read next on the blog

Get new tools and posts in your inbox

Occasional notes on Shopify, paid ads, and AI in commerce. No spam.

Thanks - check your inbox to confirm.

Want the free AI Shopping Checklist PDF instead? →