What Is a Moving Average? Definition and Example

Updated November 2026 · 1 min read

A moving average is the average closing price over a set number of recent periods, recalculated each period so the line moves along with the chart and smooths out day-to-day noise.

Example

A stock closes at $10, $11, $12, $11 and $13 over five days. The 5-day simple moving average is ($10 + $11 + $12 + $11 + $13) ÷ 5 = $11.40. The next day it closes at $14. The oldest price ($10) drops out and the new one comes in: ($11 + $12 + $11 + $13 + $14) ÷ 5 = $12.20. The average has moved up, reflecting the rising trend.

Why it matters

Moving averages are one of the simplest ways to answer the most important question on a chart: which way is the trend? A common reading:

Moving averages also often act as dynamic support in uptrends and resistance in downtrends.

Stupid Simple Trader's signal leans heavily on them: it scores price versus the 200-day SMA, the 50-day SMA and the 20-day EMA, plus the 50/200 cross.

Common misunderstanding

The main misconception is that a moving average is a prediction. It is a summary of the past, so it always lags. In choppy, sideways markets, price crosses back and forth and moving-average signals whipsaw.

Learn more

This page is a quick definition. For calculations, settings and strategies, read the full guides:

Related terms: death cross, MACD (built from two EMAs).

Try it

See price compared with its 20-day, 50-day and 200-day averages on any ticker page, such as /t/SPY.

Frequently asked questions

What is the difference between an SMA and an EMA?

A simple moving average (SMA) weights every price in the period equally. An exponential moving average (EMA) gives more weight to recent prices, so it reacts faster to new moves.

Which moving averages do traders watch most?

The 20-day, 50-day and 200-day are among the most widely followed. The 200-day is commonly used as a dividing line between long-term uptrends and downtrends.

Do moving averages predict price?

No. They are lagging indicators that summarize past prices. They help describe the trend and can act as support or resistance, but they do not forecast.