Moving Average Forecast Calculator
Enter past demand for at least three periods and choose how many recent periods to average. The calculator gives the simple moving average forecast for the next period, an optional weighted moving average, and the in-sample forecast error (MAD and MAPE).
Also known as: simple moving average calculator · weighted moving average forecast · demand forecasting calculator · 3 month moving average calculator · MAPE calculator
Result
- MAD (simple MA)
- 11.1 units
- MAPE (simple MA)
- 7.4%
- Bias (simple MA)
- 10.3 units
- Next-period forecast (3-period WMA)
- 154.7 units
- MAD (weighted MA)
- 11.3 units
- MAPE (weighted MA)
- 7.5%
Forecast vs actual
| Period | Actual | SMA forecast | SMA error | WMA forecast | WMA error |
|---|---|---|---|---|---|
| 1 | 120 | — | — | — | — |
| 2 | 135 | — | — | — | — |
| 3 | 128 | — | — | — | — |
| 4 | 142 | 127.7 | 14.3 | 129 | 13 |
| 5 | 150 | 135 | 15 | 136.2 | 13.8 |
| 6 | 138 | 140 | -2 | 143.7 | -5.7 |
| 7 | 155 | 143.3 | 11.7 | 142.7 | 12.3 |
| 8 | 160 | 147.7 | 12.3 | 148.5 | 11.5 |
| 9 (next) | — | 151 | — | 154.7 | — |
Moving averages lag behind trends and do not model seasonality. If demand is clearly rising or seasonal, consider a trend or seasonal method.
Results are estimates for planning. Confirm final rates, rules and charges with your carrier or authority.
How to use the Moving Average Forecast Calculator
- Enter Demand history, Periods to average, Also calculate weighted moving average.
- Use “+ Add row” for every additional item, box or line.
- Read the result instantly – it updates as you type, with a breakdown below the main figure.
- Use “Copy link” to share the exact calculation, or “Copy results” to paste it into an email, quote or invoice.
Moving Average Forecast Calculator formula
SMA forecast for period t = (D(t−1) + D(t−2) + … + D(t−N)) ÷ N
WMA forecast = Σ (weight × demand) ÷ Σ weights, weights 1 … N with the newest period = N
Error = actual − forecast; MAD = average |error|; MAPE = average (|error| ÷ actual) × 100
About the Moving Average Forecast Calculator
A moving average forecast predicts next period's demand as the average of the most recent N periods. It is one of the simplest and most widely used demand-forecasting methods for stable items, because it smooths out random ups and downs without needing any software beyond a spreadsheet.
The window N controls the trade-off: a short window (2–3 periods) reacts quickly to changes but is noisy, while a long window (6–12 periods) is smooth but slow to follow real shifts. A weighted moving average gives recent periods more influence – here weights rise linearly from 1 for the oldest to N for the newest.
To judge accuracy, the calculator forecasts each past period from the N periods before it and compares with what actually happened. MAD (mean absolute deviation) shows the typical error in units, MAPE expresses it as a percentage of demand, and bias shows whether forecasts are systematically too high or too low.
Worked example
Here is the calculation for the sample values pre-filled in the moving average forecast calculator above.
| Demand history (oldest first) | 8 lines |
|---|---|
| Periods to average (N) | 3 |
| Also calculate weighted moving average (weights 1, 2 … N, newest highest) | Yes |
| Next-period forecast (3-period SMA) | 151 units |
|---|---|
| MAD (simple MA) | 11.1 units |
| MAPE (simple MA) | 7.4% |
| Bias (simple MA) | 10.3 units |
| Next-period forecast (3-period WMA) | 154.7 units |
| MAD (weighted MA) | 11.3 units |
| MAPE (weighted MA) | 7.5% |
| Demand (units) |
|---|
| 120 |
| 135 |
| 128 |
| 142 |
| 150 |
| 138 |
| 155 |
| 160 |
Who uses this tool
- Small businesses forecasting monthly sales for purchasing.
- Inventory planners producing quick baseline forecasts for stable SKUs.
- Students learning time-series forecasting and error measures.
- Analysts comparing window lengths before choosing a forecast setting.
Tips to save cost and avoid mistakes
- Try several window lengths and keep the one with the lowest MAD or MAPE on your data.
- Use demand (orders), not sales, if stock-outs capped what you could sell.
- Remove one-off spikes such as a bulk order before forecasting, or they will distort several periods.
- A consistently positive bias on rising demand means the average is lagging – consider exponential smoothing with trend.
- Use MAD to size safety stock: σ ≈ 1.25 × MAD for normally distributed errors.
Moving Average Forecast Calculator – frequently asked questions
How do you calculate a 3-period moving average forecast?
Add the last three periods' demand and divide by three. For 138, 155 and 160 the forecast for the next period is 151.
What is the difference between simple and weighted moving average?
A simple moving average gives every period in the window equal weight; a weighted moving average gives more weight to recent periods so it responds faster to change.
What is MAPE and what is a good value?
Mean absolute percentage error is the average error as a percentage of actual demand. Lower is better; what counts as good depends heavily on how volatile the item is.
How many periods should I use?
Choose the window that gives the lowest error on your history. Short windows suit changing demand, long windows suit stable, noisy demand.
Can a moving average forecast seasonal demand?
Not well. It averages across the season and lags behind peaks; use seasonal indices or a seasonal smoothing method instead.