Simple Moving Average (SMA)

Technical Indicators
beginner
8 min read
Updated Mar 8, 2026

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 a foundational tool in technical analysis, widely regarded as the most straightforward and versatile indicator for identifying market trends. At its core, the SMA is an arithmetic mean of a security's closing prices over a specific, predetermined number of time periods. The term "moving" reflects the dynamic nature of the calculation: as each new trading period concludes, the oldest price in the data set is discarded and replaced by the most recent one. This continuous update process creates a smooth line that follows the general path of the price while filtering out the volatile "noise" of short-term market fluctuations. Traders use the SMA to gain a clearer perspective on the underlying momentum of an asset. When the SMA is sloping upward and the current price is trading above the line, the market is generally considered to be in a bullish trend. Conversely, a downward-sloping SMA with the price trading below it signals a bearish environment. By providing a "smoothed" version of the price action, the SMA helps investors avoid being misled by temporary price spikes or emotional market reactions, allowing them to stay focused on the broader direction of the trend. The SMA's simplicity is its primary advantage, but it also defines its character as a "lagging" indicator. Because the calculation is based entirely on historical data, the SMA will always trail the current market price. This lag is more pronounced in longer-term SMAs, such as the 200-day average, which provides a very stable but slow-moving signal. While this means the SMA may not capture the exact beginning of a new trend, it is exceptionally reliable for confirming that a trend has indeed taken hold, making it a favorite tool for trend-following investors and institutional money managers alike.

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 the Simple Moving Average Works

The Simple Moving Average works by applying an equal weight to every data point within its chosen timeframe, creating a balanced representation of the average price over that period. The mechanics of the SMA are purely mathematical, but its power comes from how it interacts with the current price action and other technical indicators. To calculate a 50-day SMA, for example, the closing prices of the last 50 trading days are summed and then divided by 50. This result is then plotted on the chart as a single point, and the process repeats for every subsequent day. One of the most important ways the SMA "works" in a trading strategy is by providing dynamic levels of support and resistance. In a strong uptrend, the price will often pull back toward a major SMA (like the 50-day or 100-day) before bouncing off it and continuing its upward trajectory. Traders view these touches of the SMA as high-probability entry points. Similarly, in a downtrend, the SMA often acts as a ceiling, with the price failing to break above it. The interaction between the price and the SMA is a constant battle between current sentiment and historical average, providing a visual gauge of whether the current move is sustainable or overextended. Furthermore, the SMA works as a powerful filter for overall market health. Many institutional investors follow the "200-day rule," where they only consider long positions in stocks that are trading above their 200-day SMA. This discipline ensures they are always aligned with the long-term momentum of the market. While the SMA is slower to react than the Exponential Moving Average (EMA), which gives more weight to recent prices, many traders prefer the SMA for its reliability and its status as a self-fulfilling prophecy; because so many market participants watch the same major SMAs, the price often reacts precisely at those levels.

How It Is Calculated

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

Common SMA Strategies and Crossovers

Traders employ a variety of strategies based on the interaction of multiple SMAs or the price's relationship to a single average. One of the most famous techniques is the "Moving Average Crossover." This involves plotting two SMAs with different timeframes—one short-term (e.g., 50 days) and one long-term (e.g., 200 days)—on the same chart. 1. Golden Cross: This occurs when the shorter-term SMA crosses above the longer-term SMA. This event is widely celebrated as a major bullish signal, indicating that short-term momentum is accelerating and that a significant long-term uptrend is likely beginning. Many major bull markets in history have been preceded by a Golden Cross on the major indices. 2. Death Cross: This is the opposite of the Golden Cross, occurring when the short-term SMA crosses below the long-term SMA. This serves as a stark bearish warning, suggesting that the trend has turned negative and that a prolonged period of declining prices may be ahead. 3. SMA as a Trend Filter: Beyond crossovers, many traders use a single SMA as a binary filter. If the price is above the 50-day SMA, the bias is long. If it is below, the bias is short or neutral. This simple rule can prevent a trader from fighting against the prevailing market momentum.

Advantages and Limitations of the SMA

The primary advantage of the Simple Moving Average is its ability to provide a clean, unambiguous view of the market's direction. It is easy to calculate, widely understood, and available on every trading platform in the world. Its lagging nature, while often criticized, can actually be an advantage in volatile markets because it helps to filter out "whipsaws"—false signals that occur when the price briefly spikes in one direction before reversing. By requiring a sustained price move to change the direction of the SMA, it ensures that traders only act on meaningful shifts in momentum. However, the SMA's main limitation is that it treats every day in the period with equal importance. A price move that happened 49 days ago has the same impact on a 50-day SMA as the price move that happened yesterday. This can make the SMA slow to react to new, fundamentally significant information. Furthermore, moving average strategies tend to perform very poorly in "range-bound" or sideways markets. When a stock is consolidating without a clear trend, the price will frequently criss-cross the SMA, leading to a series of losing "stop-outs" for a trend-following trader. To mitigate these risks, the SMA is best used in combination with other tools like volume analysis or oscillators like the RSI.

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 an essential tool for any technical trader, offering a clear and smoothed perspective on the market's primary direction. Its simplicity is its greatest strength, providing reliable levels of support and resistance and serving as a universal language for describing market trends. While it is inherently a lagging indicator, its ability to confirm a trend's health and filter out temporary noise makes it an indispensable part of a disciplined trading plan. Whether you are using the SMA as a simple trend filter or as part of a complex crossover strategy, its value lies in its objectivity. By removing the emotion from price action and focusing on the historical average, the SMA helps traders stay on the right side of the market's momentum. Ultimately, the most successful investors understand the trade-offs between the stability of the SMA and the responsiveness of other indicators, using the SMA as a steady compass to navigate the often-turbulent waters of the financial markets.

At a Glance

Difficultybeginner
Reading Time8 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.

Congressional Trades Beat the Market

Members of Congress outperformed the S&P 500 by up to 6x in 2024. See their trades before the market reacts.

2024 Performance Snapshot

23.3%
S&P 500
2024 Return
31.1%
Democratic
Avg Return
26.1%
Republican
Avg Return
149%
Top Performer
2024 Return
42.5%
Beat S&P 500
Winning Rate
+47%
Leadership
Annual Alpha

Top 2024 Performers

D. RouzerR-NC
149.0%
R. WydenD-OR
123.8%
R. WilliamsR-TX
111.2%
M. McGarveyD-KY
105.8%
N. PelosiD-CA
70.9%
BerkshireBenchmark
27.1%
S&P 500Benchmark
23.3%

Cumulative Returns (YTD 2024)

0%50%100%150%2024

Closed signals from the last 30 days that members have profited from. Updated daily with real performance.

Top Closed Signals · Last 30 Days

NVDA+10.72%

BB RSI ATR Strategy

$118.50$131.20 · Held: 2 days

AAPL+7.88%

BB RSI ATR Strategy

$232.80$251.15 · Held: 3 days

TSLA+6.86%

BB RSI ATR Strategy

$265.20$283.40 · Held: 2 days

META+6.00%

BB RSI ATR Strategy

$590.10$625.50 · Held: 1 day

AMZN+5.14%

BB RSI ATR Strategy

$198.30$208.50 · Held: 4 days

GOOG+4.76%

BB RSI ATR Strategy

$172.40$180.60 · Held: 3 days

Hold time is how long the position was open before closing in profit.

See What Wall Street Is Buying

Track what 6,000+ institutional filers are buying and selling across $65T+ in holdings.

Where Smart Money Is Flowing

Top stocks by net capital inflow · Q3 2025

APP$39.8BCVX$16.9BSNPS$15.9BCRWV$15.9BIBIT$13.3BGLD$13.0B

Institutional Capital Flows

Net accumulation vs distribution · Q3 2025

DISTRIBUTIONACCUMULATIONNVDA$257.9BAPP$39.8BMETA$104.8BCVX$16.9BAAPL$102.0BSNPS$15.9BWFC$80.7BCRWV$15.9BMSFT$79.9BIBIT$13.3BTSLA$72.4BGLD$13.0B