Weighted Moving Average Calculator

Calculate demand forecasts using a weighted moving average. Assign custom weights to recent periods for more responsive demand projections.

e.g.: 100, 110, 120 (must match number of weights)
e.g.: 1, 2, 3 (higher weight = more recent, higher importance)

Weight Strategies

WMA Forecast
113.3
Using 3 periods with weighted average
SMA Comparison
110.0
Simple equal-weight average
EMA (Exponential MA)
108.1
Alpha = 0.3 (smoothing factor)
Trend Direction
Rising
WMA vs EMA: +5.2 units

Weighted Contribution Analysis

PeriodDemandWeight% of TotalContribution
P11001.0016.7%100.00
P21102.0033.3%220.00
P31203.0050%360.00
WMA Forecast113.3

Weight Distribution & Sensitivity

Recent Period Weight
50.0%
% of total weight on most recent data
Oldest Period Weight
16.7%
% of total weight on oldest data
Weight Range
33.3%
Difference in influence between newest & oldest
Forecast Approach
High recent bias
sensitive to latest data

Forecast Comparison

Average Historical Demand
110.0
3 periods
WMA vs Historical Avg
+3.3
Forecast direction relative to history
Planning notes, formulas, and examples

About the Weighted Moving Average Calculator

The Weighted Moving Average (WMA) forecast assigns different weights to each of the last N demand periods, allowing you to emphasize more recent data. Unlike a simple moving average that weights all periods equally, WMA lets you control how much influence each period has on the forecast.

Typically, the most recent period receives the highest weight, the next most recent gets a lower weight, and so on. The forecast equals the sum of each period's demand multiplied by its weight, divided by the sum of all weights.

This calculator lets you enter demand values and corresponding weights for up to six periods. It normalizes the weights and computes the weighted average forecast for the next period.

Use the result to compare operating scenarios, pressure-test assumptions, and rerun the model when volumes, rates, or service targets change.

When This Page Helps

When demand is changing, giving more weight to recent periods produces a more responsive forecast than a simple moving average. This calculator makes it easy to experiment with different weight schemes to find the combination that best tracks your demand pattern.

How to Use the Inputs

  1. Enter demand values for recent periods (most recent last).
  2. Enter corresponding weights for each period (highest weight for most recent).
  3. The calculator normalizes weights so they sum to 1.
  4. Review the weighted moving average forecast.
  5. Adjust weights to increase or decrease responsiveness to recent changes.
  6. Validate by comparing forecasts to subsequent actual demand.
Formula used
Forecast = Ī£(w_i Ɨ D_i) / Ī£(w_i) Where: w_i = Weight assigned to period i D_i = Demand in period i Ī£(w_i) = Sum of all weights (used for normalization)

Example Calculation

Result: Forecast = 113.3

Weighted sum = (100Ɨ1) + (110Ɨ2) + (120Ɨ3) = 100 + 220 + 360 = 680. Sum of weights = 1 + 2 + 3 = 6. Forecast = 680 / 6 = 113.3. The most recent period (120) has the most influence.

Tips & Best Practices

  • A common weight scheme is 1, 2, 3 for three periods Ć¢ā‚¬ā€ giving triple weight to the most recent period.
  • Weights don't need to sum to 1 Ć¢ā‚¬ā€ the calculator normalizes them automatically.
  • For trending demand, progressively heavier weights on recent data improve tracking.
  • Compare WMA results to SMA to see if the added complexity improves accuracy.
  • Use error metrics (MAD, MAPE, MSE) to objectively evaluate different weight schemes.
  • WMA is a good stepping stone between simple moving average and exponential smoothing.

Weight Schemes in Practice

Common weight schemes include linear (1, 2, 3, ..., N), triangular, and custom patterns. Linear weights are the most popular because they are intuitive and provide a good balance between responsiveness and stability. More aggressive schemes concentrate weight heavily on the last 1–2 periods.

WMA vs Exponential Smoothing

Both methods emphasize recent data, but they differ in implementation. WMA uses explicit weights for a fixed window. Exponential smoothing implicitly weights all historical data with exponentially decaying influence controlled by a single parameter. For most applications, exponential smoothing is preferred for its simplicity.

When to Use WMA

WMA is most useful when you have strong domain knowledge about how much each past period should influence the forecast. For example, if the last two months are highly relevant but earlier months are unreliable due to a known disruption, you can zero out their weights. This flexibility is WMA's key advantage.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • SMA gives equal weight to all periods in the average. WMA assigns custom weights, typically giving more importance to recent periods. This makes WMA more responsive to demand changes than SMA.