Moving Average Calculator
Calculate Simple Moving Average (SMA), Exponential Moving Average (EMA), Cumulative Moving Average (CMA), and Weighted Moving Average from a series of data points.
Inputs
Results
Simple Moving Average (SMA)
23
Exponential Moving Average (EMA)
23.87
How to Use This Calculator
- Enter the time series data points and the desired window size.
- Select moving average type: simple (SMA), exponential (EMA), or weighted (WMA).
- Review the smoothed series values and lag introduced by the window.
- Use shorter windows to detect trends sooner; use longer windows for noise reduction.
- Compare SMA vs. EMA to determine which better tracks your data underlying trend.
How the result changes with Period 10
| Period 10 | Simple Moving Average (SMA) | Exponential Moving Average (EMA) |
|---|---|---|
| -800,000 | -266,652.33 | -399,989.13 |
| -300,000 | -99,985.67 | -149,989.13 |
| 300,000 | 100,014.33 | 150,010.87 |
| 800,000 | 266,681 | 400,010.87 |
What each input means
- Period 1
- Value for the first time period in your data series.
- Period 2
- Value for the second time period.
- Period 3
- Value for the third time period.
- Period 4
- Value for the fourth time period.
- Period 5
- Value for the fifth time period.
- Period 6
- Value for the sixth time period.
- Period 7
- Value for the seventh time period.
- Period 8
- Value for the eighth time period.
- Period 9
- Value for the ninth time period.
- Period 10
- Value for the tenth time period.
- Window Size
- Number of periods to include in each moving average window.
- EMA Smoothing Factor
- Smoothing constant for EMA calculation. Standard value is 2. Higher = more weight on recent data.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersPeriod 1 = 10, Period 2 = 12, Period 3 = 15, Period 4 = 14 = 12 input(s) provided
- Calculate Simple Moving AverageSimple Moving Average23 = 23
- Calculate Exponential Moving AverageExponential Moving Average23.8672 = 23.8672
- Calculate Cumulative Moving AverageCumulative Moving Average18 = 18
- Calculate Weighted Moving AverageWeighted Moving Average24.1667 = 24.1667
Engine last updated . Checked against 1 independently-derived test — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Time Series Decomposition Calculator
Decompose monthly time series data into trend, seasonal, and residual components using additive or multiplicative decomposition methods.
Data ScienceCohort Analysis Calculator
Analyze user cohort retention over time. Calculate monthly retention rates, churn rates, estimated customer lifetime value (LTV), and total cohort revenue.
Data ScienceSMA & EMA
5-point simple and exponential moving average for a mini price series.
Supply ChainDemand Forecast Calculator
Forecast demand using moving average, weighted MA, and exponential smoothing.
More in Math & Statistics.