Simple Moving Average (SMA)

Technical Indicators
beginner
4 min read
Updated Feb 22, 2025

What Is a Simple Moving Average (SMA)?

A Simple Moving Average (SMA) is a technical indicator that calculates the average price of a security over a specific number of periods, smoothing out price data to identify the trend direction.

The Simple Moving Average (SMA) is the most basic and widely used technical indicator. It is simply the arithmetic mean of a security's price over a given period. As the name suggests, it "moves" because as new data comes in, the oldest data point drops off. The primary purpose of the SMA is to smooth out short-term price fluctuations ("noise") to reveal the underlying trend. If the SMA is sloping up, the trend is bullish. If it is sloping down, the trend is bearish. Unlike the Exponential Moving Average (EMA), which gives more weight to recent prices, the SMA assigns equal weight to all prices in the period. This makes the SMA slower to react to sudden price spikes, which can be a benefit (avoiding false signals) or a drawback (late entry/exit) depending on the trading strategy.

Key Takeaways

  • The SMA is calculated by adding up the closing prices for a set number of periods and dividing by that number.
  • It is a lagging indicator, meaning it reacts to price changes that have already occurred.
  • Common timeframes include the 50-day (intermediate trend) and 200-day (long-term trend) SMAs.
  • Traders use SMAs to identify support and resistance levels and potential trend reversals.
  • The "Golden Cross" and "Death Cross" are famous signals generated by SMA crossovers.

How It Is Calculated

SMA = (P1 + P2 + ... + Pn) / n Where: P = Price (usually closing price) n = Number of periods

Common SMA Strategies

Traders use SMAs in several ways: 1. **Trend Filter:** Ideally, you want to buy when the price is above the SMA and sell/short when it is below. The 200-day SMA is the industry standard for defining the long-term bull or bear market. 2. **Support and Resistance:** Popular SMAs (like the 50-day or 200-day) often act as dynamic support levels in an uptrend (price bounces off them) or resistance in a downtrend. 3. **Crossovers:** * **Golden Cross:** When a short-term SMA (e.g., 50-day) crosses *above* a long-term SMA (e.g., 200-day). This is a strong bullish signal. * **Death Cross:** When the short-term SMA crosses *below* the long-term SMA. This is a major bearish signal.

Real-World Example: Calculating a 5-Day SMA

Let's calculate the 5-day SMA for a stock with the following closing prices: Day 1: $10 Day 2: $11 Day 3: $12 Day 4: $11 Day 5: $13

1Step 1: Sum the prices. 10 + 11 + 12 + 11 + 13 = 57.
2Step 2: Divide by the number of periods (5). 57 / 5 = 11.4.
3Step 3: The 5-day SMA is $11.40.
4Step 4: Next day (Day 6), price is $14. Remove Day 1 ($10), add Day 6 ($14). New sum is 61. New SMA is 12.2.
Result: The SMA moved from 11.4 to 12.2, reflecting the rising price trend.

SMA vs. EMA

Choosing between Simple and Exponential Moving Averages depends on your goal.

FeatureSimple Moving Average (SMA)Exponential Moving Average (EMA)
WeightingEqual weight to all days.Higher weight to recent days.
ResponsivenessSlow; lags price significantly.Fast; reacts quickly to recent moves.
Best ForLong-term trend identification; support/resistance.Short-term trading; catching rapid momentum shifts.

Important Considerations

The biggest limitation of the SMA is lag. Because it is based on historical data, it will always trail the current price. In a fast-moving market, an SMA signal might arrive too late to be profitable. Additionally, in a sideways or "choppy" market, the price may frequently cross above and below the SMA, generating numerous false signals (whipsaws).

FAQs

It depends on your timeframe. Day traders often use 9, 20, or 50-period SMAs on minute charts. Swing traders use 20 or 50-day SMAs. Long-term investors focus on the 200-day SMA. There is no "magic" number; it depends on the trend you are trying to capture.

The 200-day SMA is widely considered the dividing line between a long-term bull market and a bear market. Institutional investors often use it as a key filter—buying only when the market is above the 200-day average.

Yes. Technical analysis concepts like the SMA work on any asset with price and volume history, including stocks, forex, and crypto. Many crypto traders use the 20-week SMA as a "bull market support band."

A flat or horizontal SMA indicates a lack of trend. The market is ranging or consolidating sideways. Moving average strategies typically perform poorly in these conditions, leading to whipsaws.

It is a lagging indicator. It tells you what prices have done in the past. It confirms a trend that is already established rather than predicting a trend before it starts.

The Bottom Line

The Simple Moving Average is a foundational tool in the technical analyst's toolkit. Its simplicity is its strength, offering a clear, smoothed visual of the market's direction without complex calculations. While it is slower to react than its exponential cousin, the SMA provides reliable levels of dynamic support and resistance and serves as an excellent filter for determining the overall health of a trend. Whether used alone or as part of a crossover strategy, the SMA helps traders stay on the right side of the market's momentum.

At a Glance

Difficultybeginner
Reading Time4 min

Key Takeaways

  • The SMA is calculated by adding up the closing prices for a set number of periods and dividing by that number.
  • It is a lagging indicator, meaning it reacts to price changes that have already occurred.
  • Common timeframes include the 50-day (intermediate trend) and 200-day (long-term trend) SMAs.
  • Traders use SMAs to identify support and resistance levels and potential trend reversals.