Simple Moving Average (SMA): Definition, Formula & Calculation

Table of Contents

The Simple Moving Average (SMA) smooths price data into a single line to highlight market trends. It averages prices over set periods, reducing short-term volatility and revealing trend direction. SMA is a core tool in technical analysis across stocks, forex, crypto, and commodities.

Key Takeaways

  • SMA (Simple Moving Average) is the arithmetic average of an asset’s closing prices over a set period, used to smooth volatility and reveal trends.
  • SMA is a lagging indicator that follows price trends rather than predicting them.
  • 10–20 SMA for day trading, 50 SMA for swing trading, 200 SMA for long-term investing.
  • Widely used in stocks, forex, crypto, and commodities to confirm trends.
  • SMA is smoother and better for long-term analysis; EMA reacts faster and is preferred for short-term trades.
  • Reacts slowly, can produce false signals in sideways markets, gives equal weight to old and new data.
  • Combine SMA with indicators like RSI or MACD, or overlay multiple SMAs across timeframes for stronger confirmation.

What Is Simple Moving Average (SMA)?

The Simple Moving Average (SMA) is a tehnical indicator that calculates an asset’s average price over a set number of periods. It gives equal weight to each data point, making it a true average. Traders use SMA to smooth price data, reduce noise, and identify trend direction.

What Is Simple Moving Average (SMA)

Unlike the SMA, other moving averages like the Exponential Moving Average (EMA) and Weighted Moving Average (WMA) assign more weight to recent prices, making them more responsive to new information. The SMA’s equal weighting results in a smoother line but a slower reaction to price changes.

How to Calculate SMA (With Formula & Example)

You can calculate the SMA with a straightforward formula that sums up a set of closing prices and divides them by the number of periods.

Simple Moving Average for Dummies

Think of the SMA as finding the “average” price over a few days. Here’s how it works in three simple steps:

  1. Add: Pick a timeframe (like 5 days) and add up the closing price for each of those days.
  2. Divide: Divide that total sum by the number of days you chose (in this case, 5).
  3. Plot: The result is the SMA for that day. Plot it on a chart to create a single line.

The formula for the Simple Moving Average is:

SMA=nA1​+A2​+…+An​​

Where:

  • An​ is the price of the asset at period n
  • n is the total number of periods
Tip: Avoid relying on SMA alone in volatile or sideways markets—pair it with EMA, RSI, or MACD for better accuracy.

Step-by-Step Calculation Example

To calculate a 5-day SMA for a stock, you add the closing prices for the last five days and divide the total by five.

DayClosing Price ($)5-Day Sum ($)5-Day SMA ($)
1150
2152
3151
4154
5155762152.40
6153765153.00
7156769153.80

For day 5, the calculation is (150+152+151+154+155)/5=152.40. For day 6, the oldest price (150) is dropped, and the new price (153) is added: (152+151+154+155+153)/5=153.00.

Key Characteristics of SMA

The Simple Moving Average has three key characteristics that define its behavior as a trading indicator.

  • Equal Weighting: The SMA assigns an equal weight to every data point in its calculation period. This means the price on day 1 has the same impact as the price on day 20 in a 20-day SMA. This contrasts with an EMA, which gives more significance to recent prices.
  • Lagging Nature: The SMA is a lagging indicator, which means it follows the price trend rather than predicts it. Because it is based on past prices, its signals are delayed. This lag is more pronounced in longer-term SMAs (like the 200-day) than in shorter-term ones (like the 10-day).
  • Timeframe Flexibility: Traders can apply the SMA to any timeframe, from short-term intraday charts to long-term weekly or monthly charts. Shorter SMAs react more quickly to price changes and are suited for short-term analysis, while longer SMAs provide a broader view of the market’s long-term trend.

How Simple Moving Averages Work

Traders use the SMA in three primary ways to analyze market trends and generate trading signals.

  1. Trend Identification: The direction of the SMA line indicates the market trend. An upward-sloping SMA suggests an uptrend, while a downward-sloping SMA indicates a downtrend. A flat or sideways SMA points to a ranging market.
  2. Dynamic Support and Resistance: The SMA line often acts as a dynamic level of support or resistance. In an uptrend, the price may pull back and “bounce” off the SMA, treating it as a support level. In a downtrend, the price may rally to the SMA and find resistance.
  3. Entry and Exit Signals (Crossovers): A crossover occurs when the asset’s price moves from one side of the SMA line to the other, signaling a potential change in trend. A bullish crossover happens when the price moves above the SMA, suggesting an entry signal. A bearish crossover occurs when the price falls below the SMA, suggesting an exit or short-sell signal.

The choice of SMA period depends on the trader’s strategy and time horizon. The best SMAs are the 10-day and 20-day for day trading, the 50-day for swing trading, and the 200-day for long-term investing. Certain periods have become standard in technical analysis for their effectiveness in different market conditions.

SMA PeriodMarket UseTrading Style Suitability
10-day / 20-dayShort-term trendDay Trading, Swing Trading
50-dayMid-term trendSwing Trading, Position Trading
100-dayLong-term trendPosition Trading, Long-term Investing
200-dayMajor long-term trendLong-term Investing, Macro Analysis
Important: The 50-day and 200-day SMAs are the most widely watched indicators in the stock market. The relationship between these two lines is often used to define major market cycles.

SMA Trading Strategies (With Examples)

Four common and effective trading strategies use the Simple Moving Average.

SMA Trading Strategies

Golden Cross (Bullish Signal)

A Golden Cross occurs when a shorter-term SMA (typically the 50-day) crosses above a longer-term SMA (typically the 200-day). This is a powerful bullish signal that indicates the start of a major long-term uptrend. While traditionally calculated with SMAs, traders also use EMAs to generate this signal for faster confirmation.

  • Example: In 2020, Tesla’s (TSLA) stock experienced a Golden Cross, which preceded a significant and sustained bull run.

Death Cross (Bearish Signal)

A Death Cross is the opposite of a Golden Cross. It happens when a shorter-term SMA (50-day) crosses below a longer-term SMA (200-day). This bearish signal suggests the potential start of a major long-term downtrend. Like the Golden Cross, it can also be calculated using EMAs.

  • Example: Many stocks, including Apple (AAPL), showed a Death Cross before major market downturns, signaling a period of decline.

Price/SMA Crossover

This strategy involves watching for the price to cross above or below a single SMA. A move above the SMA is a buy signal, while a drop below is a sell signal. It is most effective in strongly trending markets but can produce false signals in sideways markets.

SMA Bounce

In a strong uptrend, traders can use the SMA as a dynamic support level. The strategy is to buy when the price pulls back to the SMA line and then “bounces” off it, resuming its upward move. The reverse is true in a downtrend, where the SMA acts as resistance.

SMA vs. EMA: Which Is Better?

Neither the SMA nor the EMA is universally “better”; the best choice depends entirely on your trading style and strategy. The primary difference is speed and responsiveness.

The EMA is generally better for short-term and day traders who need signals that react quickly to the latest price action. By placing more weight on recent data, the EMA identifies trend shifts faster than the SMA, which is crucial for capitalizing on short-term moves.

The SMA is better for long-term investors and swing traders who prioritize a smoother, more stable view of the market. The SMA’s equal weighting filters out more market noise, making it more reliable for confirming major, long-term trends and avoiding false signals from minor volatility.

SMA vs. EMA vs. WMA

The Simple (SMA), Exponential (EMA), and Weighted (WMA) moving averages all differ in their calculation method and responsiveness.

FeatureSimple Moving Average (SMA)Exponential Moving Average (EMA)Weighted Moving Average (WMA)
WeightingEqualExponential (more on recent data)Linear (more on recent data)
ReactivitySlow (smoothest)FastVery Fast (most sensitive)
Best ForIdentifying long-term, stable trendsIdentifying short-term trends; day tradingCatching very early trend shifts
WeaknessSlow to react to price changesProne to more false signals (whipsaws)Most prone to false signals

SMA in Different Markets

The SMA is a versatile tool applicable across various asset classes.

  • Stocks: The 50-day and 200-day SMAs are critical indicators for stock market analysis, used to identify long-term trends and generate Golden Cross/Death Cross signals.
  • Forex: Forex traders often use shorter-term SMAs (like 10, 20, and 50) on intraday charts (e.g., 1-hour or 4-hour) to capture quick trend movements in currency pairs.
  • Cryptocurrencies: Due to high volatility, traders might use a combination of a short-term SMA (e.g., 10-day) to ride momentum and a long-term SMA (e.g., 50-day) to define the overall trend.
  • Commodities: In commodity futures, the SMA helps identify sustained trends driven by supply and demand factors. Long-term SMAs like the 100-day or 200-day are common.

Tools and Platforms for SMA Trading

Numerous trading platforms and charting software offer built-in tools for applying the SMA.

Tools and Platforms for SMA Trading
  • Charting Platforms: TradingView, MetaTrader (MT4/MT5), and NinjaTrader are industry-standard platforms that allow traders to easily add and customize SMAs and other indicators on their charts.
  • Brokerage Apps: Many modern retail brokerage platforms, including Robinhood and ThinkorSwim, provide basic charting tools with SMA indicators.
  • Spreadsheet Software: You can calculate the SMA manually using Google Sheets or Microsoft Excel. This is a useful exercise for beginners to understand the mechanics of the formula.

Advantages of SMA

The primary advantages of using the Simple Moving Average include its simplicity, effectiveness in smoothing market noise, and clarity in trend identification.

  • Simplicity: The SMA is easy to calculate and understand, making it an excellent starting point for beginner traders.
  • Noise Reduction: It filters out random, short-term price fluctuations, providing a clearer view of the underlying trend.
  • Trend Confirmation: It is a reliable tool for confirming the direction and strength of long-term market trends.

Limitations of SMA

The main limitations of the SMA are its lagging nature, its potential for false signals in non-trending markets, and its equal weighting system.

  • Lagging Indicator: Because it is based on past data, the SMA always reacts after the market has already started moving, which can lead to delayed entry and exit signals.
  • False Signals: In sideways or ranging markets, the price can frequently cross back and forth over the SMA, generating numerous false signals (whipsaws).
  • Ignore Recent Price Action: The SMA’s equal weighting gives the same importance to old price data as it does to new data. Critics aligned with the Efficient Market Hypothesis (EMH) argue this is inefficient.

Advanced SMA Concepts

Beyond the basics, traders can use the SMA in more sophisticated ways.

  • Adaptive SMA: An Adaptive SMA is a type of moving average that automatically adjusts its calculation period based on market volatility. It becomes faster in trending markets and slower in ranging markets.
  • Multi-Timeframe Overlays: A trader might overlay a long-term SMA (e.g., 200-day) onto a short-term chart (e.g., 1-hour) to ensure their intraday trades align with the major market trend.
  • Combining SMA with Other Indicators: The SMA is most powerful when used in conjunction with other indicators like the Relative Strength Index (RSI) or the Moving Average Convergence Divergence (MACD). This combination helps confirm signals and reduce the likelihood of acting on false positives.

Bottom Line

The Simple Moving Average (SMA) smooths price action and provides clear signals for trends, support, and resistance. It is easy for beginners to learn and remains a core tool for experienced traders. For best results, use the SMA with other indicators like RSI or MACD, and practice on a demo account before trading live.

Frequently Asked Questions (FAQ)

Which is better EMA or SMA?

Neither is universally better. The EMA reacts faster to recent price changes, making it ideal for short-term traders, while the SMA is smoother and better for long-term trend confirmation.

Which simple moving average is best?

The best SMA depends on your strategy: 10-day and 20-day for short-term trades, 50-day for swing trading, and 200-day for long-term trend analysis.

Do day traders use EMA or SMA?

Day traders often prefer the EMA because it reacts quickly to price changes, but some still use short-term SMAs (like the 10-day or 20-day) for smoother signals.

What is an example of a simple moving average?

If a stock closes at $10, $12, $11, $13, and $14 over 5 days, the SMA is (10+12+11+13+14) ÷ 5 = $12.

Does Golden Cross use EMA or SMA?

Traditionally, the Golden Cross uses SMAs (50-day crossing above 200-day), but many traders also apply EMAs for faster signals.

Which is better, 20 EMA or 50 EMA?

The 20 EMA is more responsive and better for short-term trading, while the 50 EMA is slower and works better for identifying mid-term trends.

Should I use EMA or SMA for swing trading?

Swing traders often use the SMA (20-day or 50-day) to identify stable mid-term trends, but some combine it with EMAs for faster confirmation.

How do you do a moving average for dummies?

Pick a time frame, add the closing prices, and divide by the number of days. For example, a 5-day SMA adds 5 closing prices and divides by 5.

Start Your Days Smarter!

['related_posts']

Subscribe to stay updated

High-Risk Investment Notice:  Website information does not contain and should not be construed as containing investment advice, investment recommendations, or an offer or solicitation of any transaction in financial instruments. It has not been prepared in accordance with legal requirements designed to promote the independence of investment research, and it is not subject to any prohibition on dealing ahead of the dissemination of investment research. Nothing on this site should be read or construed as constituting advice on the part of Volity Trade or any of its affiliates, directors, officers, or employees.

Please note that content is a marketing communication. Before making investment decisions, you should seek out independent financial advisors to help you understand the risks.

Services are provided by Volity Trade Ltd, registered in Saint Lucia, with the number 2024-00059. You must be at least 18 years old to use the services.

Trading forex (foreign exchange) or CFDs (contracts for difference) on margin carries a high level of risk and may not be suitable for all investors. There is a possibility that you may sustain a loss equal to or greater than your entire investment. Therefore, you should not invest or risk money that you cannot afford to lose. The products are intended for retail, professional, and eligible counterparty clients. For clients who maintain account(s) with Volity Trade Ltd., retail clients could sustain a total loss of deposited funds but are not subject to subsequent payment obligations beyond the deposited funds. Professional and eligible counterparty clients could sustain losses in excess of deposits.

Volity is a trademark of Volity Limited, registered in the Republic of Hong Kong, with the number 67964819.
Volity Invest Ltd, number HE 452984, registered at Archiepiskopou Makariou III, 41, Floor 1, 1065, Lefkosia, Cyprus is acting as a payment agent of Volity Trade Ltd.

Volity Trade Ltd. does not offer services to citizens/residents of certain jurisdictions, such as the United States, and is not intended for distribution to or use by any person in any country or jurisdiction where such distribution or use would be contrary to local law or regulation.

Copyright: © 2025 Volity Trade Ltd. All Rights reserved.