Automia Digital transformation for business
AI & technology12 Feb 2026Automia

Forecasting demand for purchasing from sales data

Ordering stock on gut feeling means best-sellers run out early while slow sellers sit in the warehouse. This guide shows how to forecast demand from your own sales data and calculate reorder points and suggested quantities for each item.

Forecasting demand for purchasing from sales data

Ordering stock is the biggest money decision many stores make every week, yet it is often based on feel: this style seems to sell well, so order a lot. The familiar result is best-sellers running out early and slow sellers piling up in the warehouse. Demand forecasting from your own sales data needs no complex model and still leads to much better decisions.

What is demand forecasting

Demand forecasting estimates how many units of each item will sell in the coming weeks, based on past sales, recent trends and seasonality. From the forecast you work out when to order and how much, allowing for how long the supplier takes to deliver.

4 steps of demand forecasting

4 steps to forecast demand from sales data

Step 1: Clean the data

Remove cancelled and returned orders from sales. More importantly, mark the days an item was out of stock: zero sales on those days does not mean zero demand, only that there was nothing to sell. If you do not separate them, the forecast will be lower than reality and you will keep under-ordering.

Step 2: Calculate sales velocity

Take average weekly sales over the last few weeks, giving recent weeks slightly more weight to catch trends. For items with many variants such as fashion, calculate per colour and size code, like the grid view in fashion inventory management.

Step 3: Adjust for seasons and events

If you have last year's data, see how sales changed in the same period compared with the weeks before, and apply a similar change. Add uplift for known events such as big marketplace sale days, livestreams and ad campaigns.

Example: weekly sales and a 4-week forecast for one item

Step 4: Reorder point and quantity

The reorder point is the stock level at which you must order now so new stock arrives before you run out. A simple formula: weekly sales times weeks of lead time, plus safety stock. The order quantity usually covers a period you choose, such as four to six weeks of sales.

Suggested purchase table

The table does not only say what to order; it also shows slow sellers to deal with. In the example, VA2507-DEN-S sells very slowly against its stock, so consider a discount or including it in a promotion instead of ordering more.

The role of AI in forecasting

With a few dozen items, these steps work in a spreadsheet. With thousands of items, several channels and several warehouses, forecasting models and AI calculate automatically, spot trends across product groups and explain why a forecast changed. But the principles stay the same: clean data, separate out-of-stock days, and a person approves in the end. The buyer knows things the data does not yet, such as a supplier about to raise prices or a celebrity wearing the style.

Common mistakes

  • Ordering by style total, not by size and colour: the total is right but one size is overstocked and another short.
  • Forgetting lead time: ordering when almost out, so stock arrives after a week of lost sales.
  • Looking only at the last week: one big livestream week pushes the forecast far too high.
  • Ignoring stock in transit: ordering again before the last order has arrived.

Measuring accuracy

Each month, compare the forecast with actual sales for key items. A forecast is never exactly right; the goal is a shrinking error that is not biased one way. If the forecast is always below actual sales, you may not have removed all out-of-stock days.

What you need to start

You need sales data per item, from every channel, for at least a few months, and correct stock levels. That is why forecasting sits at the last stage of the roadmap for digital transformation for SMEs: once orders are in one place and stock is synced, forecasting has a foundation to run on.

Demand forecasting and purchase suggestions are part of Automia's applied AI solution, reading data from the shared sales and warehouse system.

Frequently asked questions

How do we forecast new items with no sales history? Use sales of similar items in the same group and price range for the first weeks, then adjust quickly once real sales come in.

How often should forecasts run? Weekly suits most stores, matching the rhythm of supplier orders.

Zalo