1. Guides
  2. Days of inventory remaining

Days of inventory remaining: formula and stockout alerts

How many days until each product runs out, and is that longer than it takes your supplier to restock it? Those two numbers tell you what to reorder today.

The Brand Computer team · 26 October 2026

In short
  • Days of inventory remaining = units available ÷ average units sold per day.
  • Reorder when it falls to your supplier’s lead time plus a few safety days.
  • Work it out per product variant (size, colour), from recent sales, and leave out days the item was out of stock.

The formula

Days of inventory remaining = units available ÷ average units sold per day

Shopify’s “Inventory remaining per product” report uses the same calculation: ending quantity divided by the average quantity sold per day, with the daily average taken from the last 28 days.

Example. A t-shirt in medium has 420 units available. It sold 600 units in the last 30 days, or 20 a day. 420 ÷ 20 = 21 days of inventory remaining.

Source: Shopify Help Center, inventory reports.

From days remaining to a reorder point

Days remaining only matters next to how long a restock takes. If a reorder takes 14 days to arrive and you have 10 days of stock, you are already four days late.

Reorder when days remaining ≤ lead time + safety days

In units, the same rule is:

Reorder point = average units sold per day × (lead time + safety days)

Example. The t-shirt sells 20 a day, the supplier takes 14 days, and you keep 7 safety days for delays. The reorder point is 20 × 21 = 420 units. With 420 available, it is time to reorder.

Safety days cover the gap between plan and reality: a late shipment, a busier week than usual, a supplier who ships short. Products with an unreliable supplier or spiky demand need more.

Where the number goes wrong

Days of inventory vs. days inventory outstanding

Finance teams use a similar-sounding measure, days inventory outstanding (DIO): average inventory ÷ cost of sales × the number of days in the period. DIO is about money: how long, on average, cash sits in stock across the whole business. Days of inventory remaining is about operations: when a specific product runs out. Use DIO to judge whether you are carrying too much stock overall, and days remaining to decide what to reorder this week.

Source: Corporate Finance Institute, days inventory outstanding.

Setting up stockout alerts

  1. Record each supplier’s lead time and the safety days you want. Note the exceptions: the product that ships by sea, the supplier who is always late.
  2. Check every variant every day, not just your best sellers. Today’s slow seller can be next month’s hit.
  3. Alert when days remaining falls to lead time plus safety days. Send a quieter heads-up a week earlier.
  4. Group alerts by supplier, so one purchase order covers everything that needs restocking.
  5. Treat items with more than 120 days of stock as an overstock list. That money is better spent on items running low. (The threshold is a judgement call; set your own.)

Related guides