Warehouse & Inventory

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

Enter details

Demand history (oldest first)
#Demand (units)Remove
1
2
3
4
5
6
7
8

Result

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%

Forecast vs actual

PeriodActualSMA forecastSMA errorWMA forecastWMA error
1120————
2135————
3128————
4142127.714.312913
515013515136.213.8
6138140-2143.7-5.7
7155143.311.7142.712.3
8160147.712.3148.511.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

  1. Enter Demand history, Periods to average, Also calculate weighted moving average.
  2. Use “+ Add row” for every additional item, box or line.
  3. Read the result instantly – it updates as you type, with a breakdown below the main figure.
  4. 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.

Inputs
Demand history (oldest first)8 lines
Periods to average (N)3
Also calculate weighted moving average (weights 1, 2 … N, newest highest)Yes
Results
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 history (oldest first)
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.

Related tools