Moving Average Calculator
Forecast next-period demand from the average of your most recent periods.
Moving Average Forecast Template — free, works offline, formulas included.
What Is a Moving Average? (And Why Should You Care?)
A moving average is the simplest way to forecast next period's demand: take the last few periods, average them, and call that your forecast. No trend adjustment, no seasonality correction, no statistics degree required — just recent history, smoothed out.
The reason it's still used, decades after fancier methods came along, is that it works fine for a lot of products. Demand isn't always trending or spiking — plenty of SKUs just sell at a roughly steady clip with some week-to-week noise. For those, a moving average smooths the noise without overcomplicating the forecast. It's usually the first thing a planner tries before reaching for exponential smoothing or anything more involved.
Where it falls short: it treats every period in the window identically, old and recent alike, so it lags behind real shifts in demand. If sales are climbing, a moving average will always trail slightly behind reality. That tradeoff — simplicity for responsiveness — is the whole story of this method.
How Does It Work?
Pick a window size — 3 periods, 6 periods, 12 periods — and average just that many of the most recent data points, ignoring everything older. A shorter window reacts faster to recent changes but jumps around more; a longer window is smoother but slower to notice a real shift.
Real-World Example
Historical demand: 100, 120, 110, 130, 125 (oldest to newest)
Window (N): 3
The forecast for the next period is the average of the 3 most recent values.
Try a 5-period window on the same data instead (which, with only 5 points, means averaging everything):
The wider window pulls the forecast down slightly, because it's now including the older, lower demand periods that the 3-period window left out. Neither answer is "correct" — the right window size depends on how quickly this product's demand actually changes.
Key Assumptions & Limitations: When Does This Work?
This method assumes demand is roughly stable, without a strong upward or downward trend and without meaningful seasonality — it has no mechanism to account for either. It also assumes older periods within the window are just as relevant as recent ones, which is rarely quite true.
If demand is trending, a moving average will consistently under-forecast during growth and over-forecast during decline — it always lags. If demand is seasonal, a moving average will smooth right over the seasonal pattern instead of capturing it, unless the window happens to span a full season. In either case, Weighted Moving Average or Exponential Smoothing usually does better.
5 Ways People Get Moving Average Wrong
Using a window that's too wide. Averaging 12 months when demand shifts meaningfully month to month buries real signal under a pile of stale history. The forecast barely reacts to anything recent.
Using a window that's too narrow. Swing the other way — a 2-period average on noisy demand — and the forecast jumps around as much as the raw data did, defeating the point of smoothing it in the first place.
Applying it to trending demand without adjustment.A plain moving average has no way to see a trend coming; it just reports where demand has been. On a fast-growing SKU, that means under-forecasting every single period.
Ignoring seasonality entirely. A window that doesn't span a full seasonal cycle will average summer and winter demand together into a number that describes neither well.
Never checking forecast accuracy. Picking a window size once and never validating it against actual outcomes means you might be carrying a bad forecast for years. Run the results through MAD or MAPE periodically to see how far off you actually are.
Industry Benchmarks & Context
There's no universal "right" window size — it depends on how volatile the demand is and how far ahead you need to see. As a starting point, retail planners often use a 3-4 period window for fast-moving SKUs (weekly or monthly granularity) and a 6-12 period window for slower, steadier items where short-term noise matters less than the underlying level. Whatever you start with, check the forecast's actual error with MAD or MAPE and adjust the window based on what you see, not on a rule of thumb alone.
Next Steps & Related Tools
Once you have a baseline forecast, refine and use it:
- Try weighting recent periods more — Weighted Moving Average gives recent demand more influence without fully committing to Exponential Smoothing.
- Check accuracy — MAD and MAPE tell you how far off this forecast has actually been running.
- Feed it into ordering decisions — a demand forecast is only useful once it's driving an EOQ or reorder point calculation.
- Weighted Moving AverageGive recent periods more say than older ones.
- Exponential SmoothingA more responsive alternative that weights recent demand automatically.
- Mean Absolute % ErrorCheck how accurate this forecast actually turned out to be.
- Economic Order QuantityFeed the forecast into an order-size decision.
Learn More
Books:
- Forecasting: Principles and Practice by Rob J Hyndman and George Athanasopoulos (free online)
Standards & curricula:
- APICS (ASCM) CSCP certification curriculum (demand planning module)
General references for further study, not endorsements — verify course availability and content directly with the provider.
Interview Preparation
Questions like these come up in supply chain and operations interviews — here's how to answer them.
What is a moving average forecast, in one sentence?
The forecast for the next period is simply the average of the N most recent actual demand values — no weighting, no trend or seasonality adjustment.
How would you explain a moving average to a new hire with no forecasting background?
Take your last few weeks of sales, average them, and guess next week will look about the same. It's the same instinct as checking the last few days' weather to guess tomorrow's.
What happens to the forecast as you widen the window size N?
A wider window smooths out noise more but reacts more slowly to real shifts in demand — it pulls in more old, potentially stale periods and dilutes the influence of what just happened.
When would a moving average not be the right tool?
When demand has a clear trend or seasonal pattern — a plain moving average has no mechanism to capture either and will consistently lag behind a trending series or average right over a seasonal cycle.
Why does a moving average lag behind trending demand?
Because every period in the window is weighted equally, a run of increasing demand pulls the average up only gradually, so the forecast always sits behind where actual demand currently is.
Frequently Asked Questions
- What window size (N) should I use?
- There's no universal answer — shorter windows (3-4 periods) react faster but are noisier, longer windows (6-12 periods) are smoother but slower to catch real shifts. Test a few sizes against actual outcomes using MAD or MAPE.
- Can I use a moving average for seasonal products?
- Not reliably, unless your window happens to span a full season — otherwise it will average high and low season demand together into a number that fits neither.
- Why does my moving average forecast always seem to lag behind actual sales?
- That's expected behavior, not a bug — a moving average only reports where demand has recently been, so on a trending product it will systematically under-forecast during growth and over-forecast during decline.
- How is this different from a weighted moving average?
- A plain moving average treats every period in the window equally; a weighted moving average lets you assign more influence to recent periods, which usually tracks a trend more closely.