GODS OF SALE ยท KNOWLEDGE CENTER

How to Do Demand Forecasting in E-Commerce?

Demand forecasting is the effort to predict how much of which product can be sold in the coming period, based on past sales and market movements. Its purpose is not to find an exact figure, but to make inventory, cash and advertising decisions with less risk.

On this pageWhy is forecasting necessary?Which data is used?How to do it step by step?Forecast inputs and what they tell youCommon mistakesLimitations: what does it not cover?Frequently asked questionsDoing it with the tool

Why is forecasting necessary?

There are two costly mistakes in e-commerce: running out of stock and being left with unsold goods. The first costs you sales and ranking; the second locks up cash and forces you to erode it with discounts at the end of the season.

The job of demand forecasting is to find the middle ground between these two mistakes. There is no such thing as a perfect forecast; the goal is to keep the cost of error at a manageable level.

Which data is used?

The core input is your own historical sales data: weekly unit counts by product, campaign periods, and the days you were out of stock. Out-of-stock days must always be marked; otherwise you will measure demand lower than it is.

The second layer is the market side: movement in category ranking, competitor price changes and rises in search interest. Your own data shows what has happened; market data shows where it is heading.

How to do it step by step?

1. Clean up the history

Mark days out of stock, one-off bulk orders and unusual campaign days. Uncleaned data produces a wrong baseline.

2. Separate out seasonality

Pull out annually recurring periods as a separate layer; place the trend on top of it.

3. Account for lead time

Your forecast horizon cannot be shorter than your lead time. For a product that arrives in three weeks, a one-week forecast is useless.

4. Set safety stock

Forecasts carry an error margin. For critical products, holding safety stock equal to a certain percentage of demand is cheaper than running out of stock.

5. Compare the forecast with actuals

Measure the deviation at the end of every period. A forecast that is not measured does not improve over time.

Forecast inputs and what they tell you

InputWhat it showsCaution
Historical unit salesBaseline demand levelOut-of-stock days hide demand
SeasonalityRecurring periodsAt least two years of data is required
Category rankingDirection of the marketAffected by personalization
Competitor price movementCompetitive pressureTell apart whether it is lasting or a campaign
Advertising spendArtificial demand increaseThe baseline drops when advertising stops

Common mistakes

1. Not cleaning out-of-stock days. You measure demand lower than it is, and you run out of stock again.

2. Treating campaign sales as normal. Sales on campaign days are not baseline demand.

3. Skipping lead time. An accurate forecast becomes useless because the order came too late.

4. Producing a single scenario. Risk cannot be managed without optimistic and pessimistic scenarios.

Limitations: what does it not cover?

Applying these with awareness lets you set realistic expectations:

A forecast is not a guarantee. It is a probability produced from past data; it changes as a result of off-season events and algorithm changes.

A new product has no baseline. For a product with no sales history, the forecast is based on comparison with similar products and carries a high margin of error.

Competitor plans cannot be known. A competitor's campaign or stock decisions are not visible from outside; they can change the picture in a single move.

The effect of advertising must be separated out. Demand that rises with advertising falls back when advertising stops; it should not be mistaken for baseline demand.

Frequently asked questions

What is demand forecasting in e-commerce?

It is the effort to predict how much of which product can be sold in the coming period, based on past sales and market movements.

How much historical data is needed?

Ideally, at least two years of data are needed to see seasonality. With shorter data, only a short-term trend can be read.

What should I do with the days I was out of stock?

Be sure to mark them and remove them from the forecast base. Otherwise you will measure demand lower than it is.

Can a forecast be made for a new product?

To a limited extent. The history of similar products and category movement are used; since the margin of error is high, it makes sense to keep the first order small.

What should I do if the forecast is wrong?

Measure the deviation and record its cause. A forecast is a process that improves as its errors are measured.

Doing it with the tool

Hermes's Category-Based Demand Forecast feature produces a category-level probability indicator from accumulated price and ranking data. This is not a guarantee; it is an input for decisions.

To check the profitability side of your forecast, use ProfitPulse to check it. A best-selling product is not always the most profitable one.

Last updated: September 10, 2026

Request a free demo