
Inventory Forecasting: Predict Demand With or Without AI
Published 11 min read
Every stockout is a sale you already paid to attract, and every pallet of overstock is cash you can't spend on anything else. Inventory forecasting is how you avoid both: predicting demand per product, then turning that prediction into when to reorder and how much. This guide gives you the formulas, a worked example you can copy into a spreadsheet tonight, and an honest answer to when AI forecasting tools are worth paying for.
The problem is bigger than it feels from inside a small store. IHL Group estimates that out-of-stocks and overstocks together cost retailers about $1.7 trillion a year, or 6.2% of global retail sales. You won't fix the global number, but the same two failure modes sit in your stockroom, and the fix for both starts with a forecast.
What Is Inventory Forecasting?
Inventory forecasting is estimating how many units of each product you will sell over a future period, then using that estimate to decide when to reorder and how much. Demand forecasting is the first half; inventory planning (what to buy, given stock and lead times) is the second.
You need five inputs, per SKU or variant:
- Sales history, ideally weekly, for at least a year so you can see seasonality.
- Lead time: from placing a purchase order to sellable stock on the shelf, including production, customs and receiving.
- Stock on hand and on order.
- A service level: the share of order cycles in which you want to avoid running out, such as 95%.
- Known events: promotions, launches, price changes, Black Friday.
Inventory Forecasting Methods, From Simplest to Smartest
| Method | How it works | Best for | Main weakness |
|---|---|---|---|
| Moving average | Average of the last N periods | Steady sellers | Lags behind trends and peaks |
| Weighted or exponential smoothing | Recent periods count more | Products with gentle trends | Still blind to seasonality on its own |
| Seasonal index | Scales a base rate by how each month usually sells | Gifts, apparel, anything with a holiday peak | Needs a year or more of clean history |
| Exponential smoothing with trend and season (ETS) | Models level, trend and season together | Most catalogs with two years of data | Black box in a spreadsheet, struggles with sparse items |
| Machine learning | Learns from many SKUs and external signals (price, promotions, traffic) | Large catalogs, frequent promotions | Needs volume and clean data, harder to explain |
| Judgment | Buyer's estimate, informed by analogs | New products, one-off drops | Optimism bias |
For most small and mid-size stores, the first three methods plus safety stock cover most of what matters. Here is the whole thing on one product.
A Worked Inventory Forecasting Example
Say you sell a ceramic mug. Your supplier needs 3 weeks from purchase order to delivery, and the last eight weeks sold:
38, 42, 35, 47, 40, 44, 39, 45 units
Step 1: Base demand with a moving average
A 4-week moving average of the most recent weeks is (40 + 44 + 39 + 45) / 4 = 42 units a week. Short windows react faster, long ones are steadier; four to eight weeks suits weekly data.
Before averaging, remove weeks when the product was out of stock. An empty shelf records zero sales, not zero demand, and averaging it in teaches your forecast to under-order. This "censored demand" trap is the most common error in homegrown forecasts.
Step 2: Seasonality index
A moving average built in October knows nothing about December. Fix that with a seasonality index: average sales in a month divided by average sales across all months.
Last year the mug sold 2,040 units, or 170 a month on average. December sold 340, so its index is 340 / 170 = 2.0 (November's was 1.5). September and October sat at about 1.0, so the 42-a-week base needs no adjustment, and the December forecast is:
42 × 2.0 = 84 units a week.
If your base period itself was seasonal, divide by its index first (deseasonalize), then multiply by the target month's index.
Step 3: Safety stock
Safety stock is the buffer for weeks when demand runs hot or the shipment runs late. The standard formula when demand varies and lead time is steady:
Safety stock = Z × σ × √L
- Z is the service-level factor: 1.28 for 90%, 1.65 for 95%, 1.96 for 97.5%, 2.33 for 99%.
- σ is the standard deviation of demand per period. For the mug's eight weeks it is about 4 units a week.
- L is lead time in the same periods as σ, so 3 weeks, not 21 days.
At 95%: 1.65 × 4 × √3 ≈ 12 units.
The units have to match: mixing a daily σ with a lead time in weeks quietly shrinks your buffer. If lead time also varies, use Z × √(L × σ² + d² × σL²), where d is average demand and σL the standard deviation of lead time. For an importer whose containers take four to eight weeks, that second term dominates.
Step 4: Reorder point
Reorder point = lead-time demand + safety stock = (42 × 3) + 12 = 138 units.
When stock on hand plus stock on order falls to 138, you place the next order.
Now apply the season. In December the mug sells 84 a week, σ grows to about 8 (variability tends to scale with volume), and the reorder point becomes (84 × 3) + (1.65 × 8 × √3) ≈ 275 units. A static 138 would have you ordering late in exactly the weeks that matter most. If your supplier quotes 4 weeks over the holidays, it rises to about 363, which is why our Black Friday checklist says to get holiday lead times in writing.
Step 5: Order quantity
Cover lead time plus the time until your next review (R), plus safety stock, minus what you have:
Order quantity = d × (L + R) + safety stock − on hand − on order
Reviewing weekly with 130 on hand and nothing on order: 42 × 4 + 12 − 130 = 50 units. Minimum order quantities may push this up; just know the extra units are a cash decision, not a forecast.
Step 6: Measure how wrong you were
A forecast you don't score never improves. Track two numbers:
- Weighted absolute percentage error (WAPE): absolute errors divided by actual sales. Forecast 42 a week, sell 38, 47, 40 and 45, and errors total 14 on 170 sold: 8%. Unlike MAPE, it doesn't explode on slow sellers.
- Bias: the sum of forecast minus actual. Consistently positive means you over-order; negative means you stock out. It tells you which way to adjust.
Add sell-through rate: units sold divided by units received. Receive 500 mugs in September, sell 410 by the end of October, and sell-through is 82%. Low sell-through on a SKU you keep reordering is a forecast problem.
The Spreadsheet Method for Small Stores
Everything above fits in a sheet. Export weekly unit sales per SKU from your store, two years if you have them, with week start dates in column A, units in column B and the month number in column C (rows 2–105):
The first six formulas work in both Excel and Google Sheets. The last is Excel only: FORECAST.ETS uses the AAA version of exponential smoothing to model level, trend and season together, and detects the season length automatically when you pass 1. Microsoft notes it is not available in Excel for the web, iOS or Android. Google Sheets offers FORECAST and FORECAST.LINEAR, which fit a straight line, so pair them with the seasonality index above.

Prefer code? The same math on the mug's history:
This works up to a few hundred SKUs. Beyond that, the bottleneck isn't the math; it's the hours spent exporting and cleaning.
Don't forecast every SKU the same way. Sort products by revenue (ABC analysis): the top 20% of SKUs that bring most of your revenue get weekly reviews and a 95–98% service level. The long tail gets a monthly review and 85–90%. Most of the cash tied up in safety stock sits in slow sellers that don't deserve it.
When AI Inventory Forecasting Pays Off
Machine learning forecasting has earned its reputation. In the M5 forecasting competition, built on 42,840 Walmart sales series, the leading entries were machine learning models (mostly LightGBM) that beat the best statistical benchmark by roughly 20%. McKinsey reports that AI-driven forecasting in supply chains can cut forecast errors by 20 to 50%, with up to 65% fewer lost sales from unavailable products.
The gains come from what a spreadsheet can't do: learning across thousands of related SKUs, adding signals such as price changes and promotions, and recalculating nightly without anyone exporting a CSV.
AI forecasting tends to pay off when:
- You carry several hundred SKUs or more, especially with many variants.
- You run frequent promotions that a moving average can't anticipate.
- You sell on several channels or from several warehouses.
- Lead times are long, so a wrong order is expensive to correct.
- Someone spends a day a week on reorder spreadsheets.
It pays off less, or not yet, when:
- You have under a year of history. No model learns a season it has never seen.
- Your catalog is mostly new drops. New-product forecasts come from analogs and judgment, with or without AI.
- Your data is dirty. Mishandled stockouts, returns and bundles teach the model the wrong lessons faster.
- Your volumes are tiny. Three units a month is noise; set a minimum stock level and move on.
Even when it fits, no model predicts a viral TikTok or a port strike. Treat the suggested purchase order as a strong first draft, and keep a human signing it off.
Inventory Forecasting Tools Compared
Pricing below was checked on each vendor's site in November 2026. These tools change plans often, so confirm before you buy.
| Tool | Best for | Platforms | Starting price |
|---|---|---|---|
| Excel FORECAST.ETS / Google Sheets | Small catalogs, learning the math | Any (manual exports) | Included with Excel or free in Sheets |
| Prediko | Shopify brands that want AI planning and purchase orders | Shopify, plus Amazon, TikTok Shop, Walmart | $49/month (under $100K annual GMV) |
| Fabrikatör | Shopify brands replacing reorder spreadsheets | Shopify, Shopify Plus | $79/month (annual revenue up to $500K) |
| Inventory Planner by Sage | Multichannel retailers with several locations | Shopify, Amazon, WooCommerce, BigCommerce, ERPs | Quote, based on inventory volume |
| Netstock | Businesses that plan from an ERP | NetSuite, Sage, Acumatica, Dynamics and 60+ ERPs | From $900/month, billed annually |
Prediko

Prediko is a Shopify-first planning app with AI forecasting, purchase orders, transfers and stock takes, plus an AI agent that runs planning workflows. Pricing is tiered by annual GMV, from $49 a month under $100K, with raw-material forecasting as an add-on.
Fabrikatör

Fabrikatör focuses on forecasting and reorder planning for Shopify merchants, with a 14-day free trial. Its pricing page lists $79 a month for annual revenue up to $500K, while its FAQ quotes different tiers, so check which applies. It suits brands whose question is "what do I reorder this Monday?"
Inventory Planner by Sage

Inventory Planner, now part of Sage, connects to Shopify, Amazon, WooCommerce, BigCommerce and ERPs such as NetSuite and Cin7, and covers multi-location replenishment, transfers and open-to-buy planning. Pricing is quote-based, scales with inventory volume and includes unlimited users. Expect more depth, and more cost, than the Shopify-only apps.
Netstock

Netstock comes from distribution and manufacturing: it plugs into your ERP and plans demand and supply across the business. At $900 a month and up, billed annually, it makes sense once an ERP is your source of truth (see our guide to ecommerce ERP integration).
You may still see Cogsy in older lists; it has been discontinued. If you need stock tracking and multichannel sync more than forecasting, see the best inventory management software for ecommerce.
Common Inventory Forecasting Mistakes
- Averaging stockout weeks into demand. An empty shelf is missing data.
- One reorder point all year. Recalculate before every peak.
- Forecasting at the product level only. You run out of the medium in blue, not of "T-shirt". Forecast per variant.
- Ignoring bundles. A bundle sale consumes its components; forecast component demand.
- Never scoring the forecast. Track WAPE and bias monthly.
Where Your Next Store Fits
Your Next Store isn't an inventory forecasting tool, and it doesn't calculate reorder points for you. What it does is keep the data a forecast starts from clean and accessible.

Stock is tracked per variant, the inventory page flags low-stock and out-of-stock items, and the AI Assistant answers questions such as "which products are low on stock?". Export to CSV for the spreadsheet above, or read and update stock through the inventory API endpoint from a script or planning tool.
Two features target stockouts directly. Restock notifications collect emails on sold-out variants, and that waiting list measures the censored demand from Step 1 that sales history can't. On the Pro plan, stock-based pricing raises a price step by step as stock runs low, so a bestseller's last units earn more while the next delivery is on its way. See pricing for plans.
FAQ
What is the best inventory forecasting method for a small business?
A 4- to 8-week moving average, adjusted by a monthly seasonality index, with safety stock of Z × σ × √lead time. It runs in any spreadsheet and is easy to explain.
How much sales history do I need to forecast inventory?
A few months is enough for a moving average on steady sellers. You need at least one full year to estimate seasonality, and two years for FORECAST.ETS or most AI tools to model a seasonal pattern reliably. For new products, forecast from a similar product's launch curve.
Is AI inventory forecasting accurate?
On large catalogs with clean data it usually beats simple methods, by roughly 20 to 50% fewer errors in the studies above. On small catalogs, sparse sellers and new products the gap shrinks. Score any tool with WAPE and bias against your spreadsheet before you trust it.
The Bottom Line
A good forecast isn't the one that's never wrong; it's the one that tells you how wrong it's likely to be, and holds exactly that much safety stock.
Related Blog Posts

Before you spend more on ads,
check your store.
Get a free 25-point checklist to find what could be holding back your sales, from product pages to checkout.