Skip to main content

Simple Moving Average

BeginnerFinance FoundationsAlso known as: SMA, rolling average, trend smoothing, time series average

Finds: A smoothed trend value.

When to use it: Use it to smooth out day-to-day noise in a price or other series so the trend is easier to see.

The formula

SMAk\displaystyle SMA_{k}=1k∑i=0k−1Pt−i\displaystyle =\frac{1}{k}\sum_{i=0}^{k-1}P_{t-i}

In words: SMA = (sum of the last k values) / k

What each symbol means

SMA_kSimple moving average over the last k periodsmoney
P_tValue in the latest periodmoney
kWindow length, the number of periods averagedperiods

Worked example

A share closed at 100, 102, 101, 105, 107 and 110 over six days. What is the 3-day moving average on the latest day?

The last k values105, 107, 110
SMA107.33
The answer

The 3-day moving average is 107.33, below the latest price of 110, which shows the recent upward move.

Want every formula on a few pages?Get the free Cheat Sheet (PDF) →

Calculator

SMA107.33

Keep going