Racklipedia
Racklify
​
Software

How To Build An E-commerce Sales Forecast Using Historical Data

Updated October 27, 2026
Published October 27, 2026

Forecasting

Definition

Estimating future spend, traffic, sales, conversions, or other campaign outcomes using historical data and assumptions.

Overview

Forecasting Estimating future spend, traffic, sales, conversions, or other campaign outcomes using historical data and assumptions. For e-commerce teams, this means converting past sales, traffic, and promotional information into SKU-level and channel-level forecasts to guide buying, inventory, and fulfillment.


Building a practical e-commerce sales forecast requires four steps: prepare data, select a method, generate baseline forecasts, and translate outputs into operational plans. Each step has logistics implications — warehousing, inbound scheduling, labor, and carrier capacity planning.


Step 1 — Prepare And Clean Your Data


Good forecasts start with good data. Pull at least 12–24 months of historical orders, returns, cancellations, web-traffic metrics, and promotion flags. Standardize SKUs, remove returns double-counts, and map sales to fulfillment locations so the forecasted demand can be routed correctly to each warehouse.


Step 2 — Choose A Forecasting Method


Match method to SKU behavior:

  • Stable SKUs: Use simple moving averages or exponential smoothing for low-variance demand.
  • Seasonal SKUs: Use Holt-Winters or seasonal decomposition models that capture yearly or weekly patterns.
  • Promotional SKUs: Use causal regression that includes promotion and price as predictors.
  • New SKUs: Use analog forecasting (map to similar SKUs) or build a bottoms-up forecast from marketing plans and expected conversion rates.


Step 3 — Generate The Baseline And Scenarios


Create a baseline forecast (the most-likely case) and at least two scenarios (optimistic and pessimistic). For e-commerce, scenario inputs commonly vary by traffic lift, conversion rate changes, and average order value. Scenario planning avoids one-off scramble when marketing outperforms expectations.


Step 4 — Translate Forecasts Into Fulfillment Actions


Convert SKU forecasts to operational plans:

  • Replenishment Orders: Calculate order quantities per vendor using lead time and safety stock driven by forecast variance.
  • Inbound Scheduling: Book carrier capacity and dock time for expected receipts.
  • Labor Plans: Convert forecasted pick-and-pack lines into shift schedules and temporary staff hires.
  • Slotting And Space: Reserve fast-moving SKUs in pick faces and plan for temporary bulk storage during peaks.


Key Metrics To Track


Monitor forecast performance with these KPIs:

  • MAPE (Mean Absolute Percentage Error): Overall accuracy percentage across SKUs and time windows.
  • Bias: Systematic over- or under-forecasting that indicates model or input issues.
  • Service Level: On-time fulfillments versus target, to ensure forecasts support business SLAs.


Practical Example


An online electronics seller prepares for a fall promotion. Historical weekly sales for headphones show strong pre-holiday increases plus sharp spikes on promotion weeks. The team extracts 24 months of SKUs and maps past promotions, web-traffic spikes, and CPC spends. They run a regression model where promotions and traffic predict sales, then generate a baseline and a promotion uplift scenario. The fulfillment team uses the uplift scenario to pre-book inbound pallets, secure weekend pick teams, and convert secondary storage into temporary bulk lanes for faster pick rates.


Tips To Improve Forecast Quality


  • Keep Forecasts Granular: SKU-by-location forecasts reduce stock transfers and improve fill rates.
  • Refresh Frequently: Re-run models weekly or after major marketing events to capture shifts quickly.
  • Include External Signals: Add web traffic, ad spend, and market trends to improve responsiveness to campaigns.
  • Collaborate: Align merchants, marketing, and operations with a short S&OP cadence around major events.


In short, the Forecasting process for e-commerce turns historical sales and assumptions into operational plans that drive buying, inbound scheduling, labor, and slotting. Good data, matched methods, scenario planning, and tight integration with fulfillment systems are the practical levers that convert forecasts into reliable operations.

Sources And Additional Reading (4)

More from this term
Looking for a 3PL?

Compare warehouses on Racklify and find the right logistics partner for your business.