Guide · Shopify inventory
How to find Shopify products that are about to stock out
Divide each variant's stock by the units it sells a day to get its days of cover, then compare that with your supplier's lead time. Any variant with less cover than the lead time needs ordering now. Work per variant, use a recent sales window, and leave out variants Shopify doesn't track inventory for.
How do you calculate days of stock left?
Days of cover is stock on hand divided by units sold per day, and units per day is the units sold in a recent window divided by the days in that window. The reorder quantity is what you'd sell during the lead time plus the cover you want once the order lands, minus what you already have.
The example below uses made-up figures to show the arithmetic.
| Step | Calculation | Result |
|---|---|---|
| Units per day | 90 units sold over 30 days | 3 a day |
| Days of cover | 24 in stock divided by 3 a day | 8 days |
| Compare with lead time | 8 days of cover against a 14-day lead time | Reorder now |
| Reorder quantity | 3 a day times (14 + 30 days), minus 24 in stock | 108 units |
When should you reorder a product?
When its days of cover is no longer than your supplier's lead time, because whatever you order today arrives after the stock is gone. Datae sorts variants into four groups: out of stock, reorder now (cover at or under the lead time), reorder soon (within two weeks of the lead time) and fine. Out-of-stock best sellers come first, because they are losing sales today.
Before a promotion or a seasonal peak, recent sales understate what is coming. Order for more cover than usual, or plan from the same weeks last year, which you can pull from your Shopify orders.
Why does a low-stock threshold miss products about to run out?
A fixed threshold such as 'under 10 units' treats a variant that sells five a day the same as one that sells one a month. The first is two days from empty; the second has most of a year. Sales speed is what matters, and it has to be judged per variant, since one size or colour usually sells far faster than the rest.
Leave out variants with inventory tracking switched off. Shopify reports their stock as zero, so they look out of stock when they are made to order, dropshipped or bundled.
Which sales window should you use?
The last 30 days suits most products. Use a longer window for slow sellers, where 30 days holds too few sales to trust, and watch for seasonality, where last month says little about next month. A variant that was out of stock for part of the window looks slower than it is, so its reorder quantity will come out low.
How do you build a restock list by hand?
A spreadsheet does the job if you redo it every week.
- Export current stock per variant from Products, Inventory, Export.
- Export units sold per variant for the last 30 days from Analytics, Reports (a sales by product variant report).
- Join the two by SKU or variant in a spreadsheet, and drop variants that are untracked, archived or draft.
- Add columns for units per day, days of cover and reorder quantity using the formulas above, with your real lead time.
- Sort by days of cover, lowest first, and order everything at or under the lead time.
- Repeat weekly, and sooner before a promotion.
How does Datae find products about to stock out?
Ask, or run the restock plan skill. Datae computes units per day, days of cover and a reorder quantity for every tracked variant that sold in the window. These are calculated in code from your orders and stock, not estimated by the AI. Out-of-stock and reorder-now variants come first, variants with tracking off are counted separately, and low-stock items that sold nothing are listed under 'don't reorder'.
It assumes a 14-day lead time and 30 days of stock after the order lands until you tell it your real lead time. It can add the restock to your task list, and a weekly scheduled run keeps the list current.
- Install Datae. Shopify is connected from the start, so there is nothing else to set up.
- Run the restock plan skill with / in the chat, or ask one of the questions below.
- Tell it your supplier's lead time if it isn't 14 days.
What can you ask Datae?
Install Datae, open the chat and paste one in. The answer comes from your own store's data.
- “Which of my best sellers will run out of stock in the next two weeks at the current sales rate?”
- “My supplier lead time is 21 days. Which variants do I need to reorder now, and how many units?”
- “What is selling slowly and tying up the most inventory?”
Related
Common questions
What lead time does Datae assume?
14 days, with 30 days of stock to have once the order arrives, unless you tell it otherwise. Say your real lead time in the chat and it recalculates.
Does the restock plan work across several locations?
The restock plan uses total stock across your locations. Ask for an inventory optimization to see stock by location and where a transfer between them would help.
What is Datae?
An AI store manager that lives inside your Shopify admin. Ask about your store, ads, SEO or email and it pulls the live numbers, explains them, adds what needs doing to a task list and prepares the fix.
Can Datae change my store without asking?
Only if you turn on Autopilot. Datae installs read-only, and by default every change it prepares waits for you to approve it in Tasks. Switch on Autopilot in Settings and it makes the fixes it finds itself: safe fixes only (product SEO titles and descriptions, Klaviyo segments and draft campaigns), or everything within your limits (also discounts inside your margin floor, Pinterest Pins and social posts). Every change is listed in Tasks with the reason and undoes in a click for 30 days. Switch Autopilot off at any time.
Ask your store its first question
Free plan, no credit card. Datae installs read-only.