Savvy Nickel LogoSavvy Nickel
Ctrl+K

Moving Average

Trading & Markets
Share:

Moving Average

Quick Definition

A moving average is a technical indicator that calculates the average price of a security over a set number of periods and updates that average as each new period closes. It smooths out daily price fluctuations to reveal the underlying trend. When the current price is above its moving average, the trend is considered up. When it is below, the trend is considered down.

What It Means

Stock prices are noisy. On any given day, a stock can swing 2% or 3% for no fundamental reason. A moving average cuts through that noise by averaging prices over a longer window, giving you a clearer picture of where the stock is actually heading.

Traders and investors use moving averages for three purposes: identifying trend direction, finding entry and exit points, and measuring momentum. A stock trading above its 200-day moving average is in an uptrend. A stock trading below it is in a downtrend. When a short-term moving average crosses above a long-term one, it signals accelerating upward momentum. When it crosses below, momentum is slowing.

As of August 2026, the S&P 500 is trading around $7,674, up about 11.6% year to date. The index is trading above both its 50-day and 200-day moving averages, confirming the uptrend that has persisted since late 2023. The 50-day moving average sits near $7,680, and the 200-day is around $7,350. The fact that the 50-day remains above the 200-day is a bullish signal that traders call a "golden cross."

Moving averages are not predictive. They are descriptive. They tell you what has already happened, smoothed out. The value is in filtering noise so you can see the trend that is already in place, rather than reacting to every daily swing.

How It Works

Simple Moving Average (SMA)

The simple moving average is the most basic form. It adds up the closing prices over a set number of periods and divides by that number. As each new period closes, the oldest price drops off and the newest one enters, causing the average to "move" forward.

Example: A 10-day SMA of a stock with closing prices of $100, $102, $101, $103, $105, $104, $106, $107, $108, $110:

Sum = $1,046. Average = $1,046 / 10 = $104.60

On day 11, if the stock closes at $109, the oldest price ($100) drops off and $109 enters. New sum = $1,055. New average = $105.50.

Exponential Moving Average (EMA)

The exponential moving average gives more weight to recent prices, making it more responsive to new information. The formula uses a smoothing multiplier:

Multiplier = 2 / (Number of periods + 1)

For a 10-day EMA, the multiplier is 2 / 11 = 0.1818. Each day's closing price gets 18.18% weight, and the previous EMA gets 81.82% weight.

The EMA reacts faster to price changes than the SMA. When a stock reverses direction, the EMA turns before the SMA. This makes the EMA preferred by short-term traders, while the SMA is favored by longer-term investors who want a smoother line.

Common Moving Average Periods

PeriodTypical UseSensitivity
5-dayVery short-term tradingHigh
10-dayShort-term swing tradingHigh
20-dayShort-term trendMedium-high
50-dayMedium-term trendMedium
100-dayIntermediate trendMedium-low
200-dayLong-term trendLow

The 50-day and 200-day moving averages are the most widely followed. The 200-day SMA is considered the dividing line between a bull market and a bear market. When the S&P 500 is above its 200-day, the long-term trend is positive. When it falls below, the trend has turned negative.

Moving Average Crossovers

Crossovers are trading signals generated when two moving averages of different lengths intersect:

  • Golden Cross: The 50-day SMA crosses above the 200-day SMA. This is a bullish signal indicating that short-term momentum is accelerating relative to the long-term trend.
  • Death Cross: The 50-day SMA crosses below the 200-day SMA. This is a bearish signal indicating that short-term momentum is deteriorating.

These signals are not perfect. They lag the actual turn in price, sometimes by weeks. They also generate false signals during sideways or choppy markets, where moving averages whipsaw back and forth without a clear trend.

Moving Average as Support and Resistance

In an uptrend, a moving average often acts as support. The stock pulls back to its 50-day or 200-day line and then bounces off it. Traders buy at the moving average, expecting the trend to resume. In a downtrend, the moving average acts as resistance. The stock rallies up to the line and then falls back.

This self-fulfilling behavior happens because millions of traders watch the same moving averages. If everyone expects the 200-day to provide support, enough buyers step in at that level to make it happen.

Real-World Examples

Example 1: The S&P 500 in 2026

As of August 2026, the S&P 500 is trading around $7,674. Here is where the key moving averages sit:

Moving AverageLevelPosition Relative to Price
20-day SMA~$7,720Price below (short-term pullback)
50-day SMA~$7,680Price slightly below
100-day SMA~$7,580Price above
200-day SMA~$7,350Price well above

The index is above its 200-day, confirming the long-term uptrend. But it has dipped below its 20-day and 50-day in August, suggesting a short-term correction within the broader bull market. The 50-day remains above the 200-day, maintaining the golden cross signal that has been in place since early 2024.

Example 2: The Death Cross of 2022

In March 2022, the S&P 500's 50-day SMA crossed below its 200-day SMA, generating a death cross. At the time, the index was around 4,500. It proceeded to fall to a low of 3,577 in October 2022, a decline of about 20%. The death cross did not predict the exact bottom, but it correctly signaled that the trend had turned negative.

The signal was late. The market had already been declining for months before the cross occurred. This is the fundamental limitation of moving averages: they confirm trends after they begin, not before.

Example 3: A Golden Cross in Action

In January 2023, the S&P 500 formed a golden cross when the 50-day crossed above the 200-day at approximately 4,000. Over the following 18 months, the index climbed to over 5,500 by mid-2024, a gain of about 37%. The golden cross signaled the start of a sustained uptrend, though it formed weeks after the actual October 2022 bottom.

Example 4: Using Multiple Moving Averages

A trader watching Apple stock (AAPL) in 2026 might use a three-EMA system: the 10-day, 20-day, and 50-day. The rules are simple:

  • When the 10-day is above the 20-day, and the 20-day is above the 50-day, the trend is strongly up. Hold or buy.
  • When the 10-day is below the 20-day, and the 20-day is below the 50-day, the trend is strongly down. Sell or avoid.
  • When the lines are intertwined and crossing frequently, the stock is in a choppy, trendless phase. Stand aside.

This system filters out noise but also keeps you out of sideways markets where no clear trend exists. No moving average system works in all conditions.

Example 5: Moving Average Envelopes and Bollinger Bands

Some traders add bands above and below a moving average to identify overbought and oversold conditions. Bollinger Bands place bands two standard deviations above and below a 20-day SMA. When price touches the upper band, the stock may be overbought. When it touches the lower band, it may be oversold. These are not standalone buy or sell signals but work alongside other indicators like volume and relative strength.

Key Points to Remember

  • A moving average smooths price data to reveal the underlying trend, filtering out daily noise.
  • The two main types are the simple moving average (equal weight to all periods) and the exponential moving average (more weight to recent periods).
  • The 50-day and 200-day moving averages are the most widely followed. The 200-day divides bull markets from bear markets.
  • A golden cross (50-day above 200-day) is bullish. A death cross (50-day below 200-day) is bearish.
  • Moving averages lag price. They confirm trends after they begin, not before. They are descriptive, not predictive.
  • Moving averages work best in trending markets and generate false signals in sideways, choppy markets.
  • In uptrends, moving averages act as support. In downtrends, they act as resistance.

Common Mistakes to Avoid

  • Treating moving averages as crystal balls: A moving average tells you what has happened, not what will happen. A stock above its 200-day can still crash. A stock below it can still rally. Use moving averages as one input among several, not as a standalone trading system.
  • Using too many moving averages: Some traders overlay 5, 10, 20, 50, 100, and 200-day moving averages on a single chart. The result is a mess of crossing lines that confuses rather than clarifies. Pick two or three and learn them well.
  • Ignoring the market context: Moving averages work in trending markets and fail in sideways markets. Before acting on a crossover signal, check whether the market is actually trending or just chopping around. A market correction in a bull market may briefly cross moving averages without changing the long-term trend.
  • Trading every crossover: In choppy markets, moving averages cross back and forth repeatedly, generating a series of false signals. Each false signal costs you money in transaction costs and whipsaw losses. Filter crossovers with other indicators like volume confirmation or trend strength measures.
  • Forgetting that moving averages are backward-looking: By definition, a moving average uses past data. It cannot anticipate a sudden event like an earnings miss, a Fed surprise, or a geopolitical shock. The average will adjust after the fact, but by then the move has happened.
  • Using the wrong period for your time horizon: A day trader using a 200-day moving average will get nothing useful. A long-term investor using a 5-day moving average will be whipsawed constantly. Match the moving average period to your holding period.

Moving averages are a core tool of technical analysis, used alongside volume to confirm trends and volatility to measure risk. They are applied to every major index including the S&P 500, and they help distinguish bull markets from bear markets. Crossovers can signal market corrections or trend reversals, and they relate to 52-week high/low breakouts. For practical guidance on portfolio management, read about how the stock market actually works and when you should sell a stock fund. You can track moving averages using our investment return calculator to see how trend-following strategies would have performed. The SEC provides educational material on technical indicators at SEC.gov.

Frequently Asked Questions

Q: What is the best moving average to use? A: There is no single best moving average. The 50-day and 200-day SMAs are the most widely followed and therefore the most self-fulfilling. Short-term traders prefer the 10-day and 20-day EMAs for faster signals. Long-term investors often use the 200-day SMA as a trend filter. The best choice depends on your time horizon and trading style.

Q: What is a golden cross? A: A golden cross occurs when a short-term moving average (typically the 50-day SMA) crosses above a long-term moving average (typically the 200-day SMA). It is considered a bullish signal indicating that recent momentum is stronger than the longer-term trend. The S&P 500 has been in a golden cross configuration since early 2024.

Q: Do moving average crossovers really work? A: They work in trending markets and fail in sideways markets. Over a full market cycle, a simple 50/200-day crossover system on the S&P 500 has historically captured most of the major trends while avoiding the worst crashes. But it also generates false signals during choppy periods that can erase gains. No moving average system is profitable in all market conditions.

Q: What is the difference between SMA and EMA? A: The SMA gives equal weight to all periods in the calculation. The EMA gives more weight to recent prices, making it more responsive to current market action. The EMA turns faster when prices reverse, which is good for catching turns early but bad for false signals. The SMA is smoother and slower, better for confirming established trends.

Q: Should long-term investors use moving averages? A: Long-term investors can use the 200-day SMA as a trend filter to decide whether to be fully invested or partially defensive. If the S&P 500 is above its 200-day, stay invested. If it falls below, consider raising cash. This simple rule would have kept investors out of the worst parts of the 2008 and 2022 bear markets, though it would also have generated some false exit signals during brief corrections.

Back to Glossary
Financial Term DefinitionTrading & Markets