Simple Moving Average (SMA)

Guides 2025-11-10 15:51

What is Simple Moving Average (SMA)?

Simple Moving Average (SMA) refers to a stock’s average closing price over a specified period. The reason the average is called “moving” is that the stock price constantly changes, so the moving average changes accordingly. SMA is one of the core indicators in technical analysis and is usually the easiest moving average to construct.

Simple Moving Average (SMA)

The aim of all moving averages is to establish the direction in which the price of a security is moving based on previous prices. Since SMA is constructed using past closing prices, it is a lag indicator. It means that it simply displays a previous trend, but it is not predictive of future prices.

SMA is often compared to EMA, which is the exponential moving average. The difference is that EMA places greater emphasis on recent prices, while SMA places equal weight on all data points. It usually results in the SMA line being much smoother.

Moving Averages Excel Model

* By submitting your email address, you consent to receive email messages (including discounts and newsletters) regarding Corporate Finance Institute and its products and services and other matters (including the products and services of Corporate Finance Institute's affiliates and other organizations). You may withdraw your consent at any time.
This request for consent is made by Corporate Finance Institute, 801-750 W Pender Street, Vancouver, British Columbia, Canada V6C 2T8. www.corporatefinanceinstitute.com. [email protected]. Please click here to view CFI`s privacy policy.

Understanding Simple Moving Average

Simple Moving Average (SMA)

The chart above shows how the price of Amazon’s stock (NASDAQ: AMZN) changed over a 1-year period using a 50-day SMA. The 50-day SMA is represented using the purple line, which indicates the overall trend of how the price is moving. As described above, since SMA is an average of the prices over a specified time period, it does not react as drastically as the actual prices.

The concept can be observed during the February 2020 earnings announcements. Even though Amazon reported amazing earnings that hiked its stock price to open at around $2,000, the SMA still stayed relatively similar and only increased by a little bit.

Simple Moving Average (SMA)

Above, a 10-day SMA was used. Since the SMA line was only calculated based on the previous 10 days’ stock price, the line follows price changes a lot more than the 50-day SMA shown in the previous chart.

Simple Moving Average (SMA)

Above, a 200-day SMA was used. Since the line represents an average of the previous 200 days’ closing prices, the line is a lot smoother and is not easily influenced by price fluctuations.

Calculating the Simple Moving Average

The equation for SMA is quite simple. It is just the average closing price of a security over the last “n” periods.

Simple Moving Average (SMA)

Let us give a quick and easy example. Suppose Company A posted the following closing stock prices:

Day (n)Prices (P)
1$10
2$12
3$9
4$10
5$15
6$13
7$18
8$18
9$20
10$24

Using a 5-day SMA, we can calculate that at Day 10 (n=10), the 5-day SMA is $18.60.

SMA = (13 + 18 + 18 + 20 + 24) / 5 = 18.60

Using a 10-day SMA, we can calculate that at Day 10 (n=10), the 10-day SMA is $14.90.

SMA = (10 + 12 + 9 + 10 + 15 + 13 + 18 + 18 + 20 + 24) / 10 = 14.90

Compared with Day 10’s closing price of $24, the 5-day SMA of $18.60 was a lot closer than the 10-day SMA of $14.90. It is once again because the 5-day SMA is a shorter period, which follows the price more closely, whereas the 10-day SMA considers more historical data.

Trading Strategies Using Simple Moving Average

1. Buying and selling on SMA intersections

Technical traders often use SMAs to time their buy and sell trades. They perform their analysis by looking at when the stock price line intersects the SMA line. To understand it better, let us look at the Amazon example again with the 10-day SMA line.

Simple Moving Average (SMA)

Looking at the graph above, we can see that when the price surpasses the SMA line, the prices often trend upward for some time. It is often used as a buy indicator for technical traders. However, when the price intersects and falls below the SMA line, we see a downtrend in prices for a bit as well. It may sometimes be a good indicator to sell.

However, investors must be careful when trying to time the intersections, as the SMA is based on historical information and lags behind real-time data.

2. SMA crossover strategy

SMA crossover strategy is another technical strategy used for entering and closing trades. The strategy is done by plotting two SMA lines based on two different time frames. Looking at when the lines cross over, it helps certain traders time their trades. The most popular moving averages for longer-term investors are the 50-day and 200-day SMAs. For shorter-term investors, the 10-day and 20-day SMAs are often used as well.

Simple Moving Average (SMA)

Above, we are looking at Amazon again with 10-day (purple) and 20-day (green) SMA lines. When the 10-day line first crossed above the 20-day line, an investor who bought the stock would ideally capitalize on a two-month upward trend. If the investor sold it right when the 10-day line crossed under the 20-day line, they would’ve exited their position before a couple of months of an overall downtrend.

Share to:

This content is for informational purposes only and does not constitute investment advice.

Curated Series

SuperEx Popular Science Articles Column

SuperEx Popular Science Articles Column

This collection features informative articles about SuperEx, aiming to simplify complex cryptocurrency concepts for a wider audience. It covers the basics of trading, blockchain technology, and the features of the SuperEx platform. Through easy-to-understand content, it helps users navigate the world of digital assets with confidence and clarity.

Unstaked related news and market dynamics research

Unstaked related news and market dynamics research

Unstaked (UNSD) is a blockchain platform integrating AI agents for automated community engagement and social media interactions. Its native token supports governance, staking, and ecosystem features. This special feature explores Unstaked’s market updates, token dynamics, and platform development.

XRP News and Research

XRP News and Research

This series focuses on XRP, covering the latest news, market dynamics, and in-depth research. Featured analysis includes price trends, regulatory developments, and ecosystem growth, providing a clear overview of XRP's position and potential in the cryptocurrency market.

How do beginners trade options?How does option trading work?

How do beginners trade options?How does option trading work?

This special feature introduces the fundamentals of options trading for beginners, explaining how options work, their main types, and the mechanics behind trading them. It also explores key strategies, potential risks, and practical tips, helping readers build a clear foundation to approach the options market with confidence.

What are the risks of investing in cryptocurrency?

What are the risks of investing in cryptocurrency?

This special feature covers the risks of investing in cryptocurrency, explaining common challenges such as market volatility, security vulnerabilities, regulatory uncertainties, and potential scams. It also provides analysis of risk management strategies and mitigation techniques, helping readers gain a clear understanding of how to navigate the crypto market safely.