Why a fixed threshold is not enough
A low stock alert is a notification sent when a product's available quantity falls below a set value. Most stores start with the same threshold for the whole catalog, say 5 units. That works badly for two reasons:
- a product selling 4 units a day, from a supplier that delivers in 10 days, will be sold out long before the restock arrives if you only react at 5;
- a product selling 2 units a month still has two months of cover at 5, so the alert becomes noise that people learn to ignore.
The right threshold depends on how fast the product sells and how long it takes to get it back on the shelf. This article is about preventing stockouts. The opposite problem, selling units you do not have, needs different tools, described in our article on preventing overselling.
Calculating the threshold from sales velocity
The correct threshold is called the reorder point. The most common formula, which Shopify also uses in its own guide on the subject, is:
reorder point = average daily sales × lead time in days + safety stock
The three numbers to collect
- Average daily sales: units sold over the last 28 or 56 days divided by the number of days. Leave out days when the product was out of stock, or the average will come out lower than real demand.
- Lead time: from the moment you send the order to the supplier until the goods are received into stock, not until they leave the supplier.
- Safety stock: the buffer for above-average sales days and late deliveries. The simple method is
(max daily sales × max lead time) − (average daily sales × average lead time).
An example
A product sells 3 units a day on average, 5 at most. The supplier usually delivers in 10 days, 14 at worst. Safety stock: 5 × 14 − 3 × 10 = 40. Reorder point: 3 × 10 + 40 = 70. When availability drops to 70 units, it is time to order.
The simple method tends to overestimate safety stock when peaks are rare. If holding stock is expensive, use a lower multiplier or the statistical method based on the standard deviation of sales. For most small stores the simple method is enough.
Store lead time and safety stock as product or variant metafields, or in a Google Sheet with one row per SKU. That keeps the calculation readable and editable by whoever handles purchasing.
Alerts with Shopify Flow, Make or Zapier
The setup we use splits the job in two: a periodic calculation that updates thresholds, and a real-time alert that compares them with availability.
The alert in Shopify Flow
The Product variant inventory quantity changed trigger starts when a variant's quantity changes, whether from an order, a manual adjustment or an app. It also exposes inventoryQuantityPrior, the quantity before the change. Use a double condition:
- current quantity less than or equal to the threshold;
- previous quantity greater than the threshold.
With the second condition the alert fires once, when the threshold is crossed, instead of on every following sale. Two details from the documentation: the trigger also runs for products with inventory tracking turned off, so filter for tracked ones; and draft orders do not reduce availability until they are converted into orders. If you have never built a workflow, start with our practical Shopify Flow guide.
The calculation in Make or Zapier
Calculating average sales means reading hundreds of order lines, which Flow is not designed for. A Make scenario scheduled once a night can read the last 28 days of orders with the Shopify modules or an API call, sum units per SKU, apply the formula and write the updated threshold to the metafield or sheet. Zapier can do the same, and it also has an Updated Inventory trigger for the alert side, but with many orders the task count grows quickly. For a wider comparison of how to split work between the two tools, see Shopify Flow vs Make.
Draft purchase order for the supplier
An alert says you need to order. A draft order says what and how much. The order quantity can be calculated as target cover minus current stock, for example 30 days of sales plus safety stock minus units on hand, rounded up to the supplier's minimum multiple.
In practice:
- each product has a metafield or column with the supplier and the supplier's item code;
- the scenario groups products below threshold by supplier;
- for each supplier it creates a draft email or a row in an orders sheet with codes, quantities and last purchase price;
- a person checks and sends it.
We advise against sending orders to suppliers automatically. A sales spike caused by a pricing error, a return recorded twice or a product you are phasing out all produce wrong orders that then have to be cancelled by hand.
Seasonal products and promotions
A moving average looks backwards. If you sell three times as much in November, the last four weeks of October underestimate demand. Two simple fixes:
- a multiplier field per product or category, set by hand before peak periods (for example 2.5 for the three weeks before Christmas);
- excluding exceptional promotion days from the average, so a 40% discount does not inflate the threshold for months afterwards.
For products being phased out, set a flag that excludes them from alerts entirely.
Weekly stock summary
Besides the immediate alert, a weekly summary helps with planning. In Flow you can use the Scheduled time trigger, which repeats daily, weekly or monthly, together with the Get product variant data action to read variants. For a richer report, a Make scenario writing to a sheet is more convenient:
- SKUs below threshold and estimated days of cover;
- SKUs out of stock and for how many days;
- SKUs with more than 120 days of cover, which is cash sitting still;
- open supplier orders and expected arrival dates.
Measure results with two numbers compared month on month: stockout days for your best sellers, and the value of goods with more than 120 days of cover. If the first goes down without the second going up, the thresholds are working.
When to move to an inventory system
This setup holds up well while the catalog is a few hundred SKUs and suppliers are few. It becomes fragile when:
- you manage several warehouses with transfers between them;
- you need lots, expiry dates or serial numbers;
- you sell on several channels with shared stock, as covered in our article on selling on Shopify and Amazon together;
- supplier orders need confirmations, partial deliveries and invoice matching.
At that point an inventory management system or an inventory planning app does these calculations natively, and the automations described here become a temporary bridge. The broader picture of useful automations for an online store is in our ecommerce automations guide. If you want thresholds, alerts and draft orders set up on your catalog, that is typical work for our Zapier and Make automation service.
- scorte
- magazzino
- shopify flow
- make
- riordino fornitori
- punto di riordino
- automazione ecommerce
- inventario
Frequently asked questions
How do I calculate the low stock threshold for a product?
Multiply average daily sales by the number of days the supplier needs to deliver, then add safety stock. With 3 units a day, a 10-day lead time and 9 units of safety stock, the threshold is 39.
Does Shopify alert me automatically when a product is running low?
Not with a ready-made per-product threshold. With Shopify Flow you can build a workflow that starts when a variant's quantity changes and sends an email or message when it drops below the value you set.
Shopify Flow or Make for inventory alerts?
Flow is enough for the per-variant alert. Make is useful when you need to compute sales velocity from many orders, read a sheet of supplier data or prepare a grouped order to send by email.
Can the supplier order go out without human review?
It can, but for a small store we advise against automatic sending. A draft to approve prevents wrong orders caused by an unusual spike, a badly recorded return or a product being discontinued.
Sources
- Product variant inventory quantity changed — Shopify Help Center
- Scheduled time — Shopify Help Center
- Safety Stock vs Reorder Point: Differences & Formulas — Shopify
- Shopify app modules — Make
- Shopify integrations — Zapier
Related articles
Automation · 6 min read
Shopify Flow: a practical guide with 10 ready-made workflows for your store
How Shopify Flow works, plus ten workflows explained with triggers, conditions and actions for orders, customers, inventory and fraud risk, chosen for small and mid-sized stores.
Digital Systems · 7 min read
Prevent ecommerce overselling with inventory reservations and concurrency control
An implementation model for separating physical, available and reserved stock, allocating the last unit atomically, and reconciling errors across sales channels.
E-commerce · 7 min read
Selling on Shopify and Amazon together: how to sync inventory and orders
How to sync inventory and orders between Shopify, Amazon and other marketplaces: source of truth, connectors, stock buffers, returns and error checks.
