Quick Answer: What Is a Moving Average?

  • A moving average is the average price of a stock over a set number of periods, such as 50 or 200 days, updated as each new price comes in.
  • It smooths out daily price swings so you can see the direction of the trend more clearly.
  • A simple moving average (SMA) gives every price equal weight; an exponential moving average (EMA) gives more weight to recent prices, so it reacts faster.
  • A golden cross happens when a shorter moving average crosses above a longer one; a death cross is the opposite.
  • Moving averages are based on past prices, so they lag. They work best in trending markets and give many false signals in sideways markets.

What You Will Learn

  • What a moving average is and why traders use it
  • How SMA and EMA are calculated, with simple examples
  • What the 20-, 50- and 200-day moving averages show
  • How golden crosses and death crosses work
  • The limits of moving averages and common mistakes

What Is a Moving Average?

A moving average is a trend-following indicator that shows the average price of a stock over a chosen number of periods. It is called "moving" because each day the newest price is added and the oldest is dropped, so the average keeps rolling forward.

On a chart, a moving average appears as a smooth line drawn over the price. When the price is above a rising moving average, the trend is generally considered up; when it is below a falling moving average, the trend is generally considered down.

Moving averages are one of the building blocks of technical analysis. If you are new to the topic, start with our guide on what technical analysis is.

Simple Moving Average (SMA)

The simple moving average adds up the closing prices for a set number of periods and divides by that number.

Example: a stock closes at $10, $11, $12, $13 and $14 over five days. The 5-day SMA is ($10 + $11 + $12 + $13 + $14) ÷ 5 = $12. On day six, the $10 close drops out and the new close is added.

Because every price counts equally, the SMA is smooth and steady, but it is slower to react when the price changes direction.

Exponential Moving Average (EMA)

The exponential moving average gives more weight to recent prices, so it responds faster to new price moves than an SMA of the same length.

The EMA uses a weighting multiplier:

Multiplier = 2 ÷ (number of periods + 1)

EMA = (Today's close − Previous EMA) × Multiplier + Previous EMA

For a 10-day EMA, the multiplier is 2 ÷ 11 ≈ 0.1818. Example: if yesterday's 10-day EMA was $50.00 and today's close is $55.00, today's EMA is ($55.00 − $50.00) × 0.1818 + $50.00 ≈ $50.91. The first EMA value usually starts from a simple moving average. Charting tools calculate all of this automatically.

SMA vs EMA: Side-by-Side Comparison

FactorSimple Moving Average (SMA)Exponential Moving Average (EMA)
WeightingEqual weight for every priceMore weight on recent prices
Reaction speedSlowerFaster
LagMore lagLess lag
False signalsFewer, but laterMore, but earlier
Often used forLong-term trend, such as the 200-dayShorter-term timing, such as the 12- and 26-day

Neither type is better in every case. Many traders use an EMA for short-term timing and an SMA for the bigger picture.

Common Moving Average Periods

PeriodTypical UseWhat It Shows
10 to 20 daysShort termRecent momentum and short swings
50 daysMedium termThe intermediate trend
100 to 200 daysLong termThe major trend; the 200-day is one of the most watched lines

The longer the period, the smoother the line and the greater the lag.

Golden Cross and Death Cross

A golden cross happens when a shorter-term moving average crosses above a longer-term moving average. The best-known version is the 50-day moving average crossing above the 200-day. Many traders read it as a sign that momentum has turned positive.

A death cross is the opposite: the shorter moving average crosses below the longer one. It is often read as a sign that momentum has turned negative.

Keep two points in mind:

  1. Crosses are late signals. Both lines are built from past prices, so by the time they cross, much of the move may already have happened.
  2. Crosses are not instructions. A golden cross does not guarantee a rise, and a death cross does not guarantee a fall. In sideways markets, the lines can cross back and forth, producing "whipsaws".

To understand the bigger market trends these signals try to capture, read our guide on bull and bear markets.

How Traders Use Moving Averages

  • Identifying the trend: price above a rising 200-day line points to a long-term uptrend.
  • Dynamic support and resistance: in an uptrend, a moving average can act as a support zone; in a downtrend, as a resistance zone. Treat these as zones, not exact prices.
  • Confirming other signals: moving averages work well alongside momentum tools. See our guide to the RSI indicator.
  • Checking volume: a move through a key moving average on strong volume is usually more convincing. Learn more in why volume matters in short-term trading.

Limits of Moving Averages and Mistakes to Avoid

  1. Expecting them to predict the future. Moving averages describe what price has done, not what it will do.
  2. Using them in sideways markets. When there is no clear trend, crossover signals often fail.
  3. Waiting for the "perfect" cross. Because they lag, moving averages will not help you buy at the exact bottom or sell at the exact top.
  4. Ignoring fundamentals and news. Earnings and economic data can move prices sharply. Pair charts with our fundamental analysis guide.
  5. Trading without an exit plan. Decide your exit before you enter. See our stop-loss and take-profit guide.

Long-term investors who prefer not to time the market often use a steady approach instead, such as dollar-cost averaging.

Related Articles on Raseed Learn

What Is Technical Analysis? · RSI Indicator Explained · What Is a Candlestick Chart?

Follow the trend on US stocks

Invest in US stocks from $1 with fractional shares. US stock trading fees are 0.5% per trade, with a $0.50 minimum and a $3 maximum.

Explore US Stocks on Raseed →

Frequently Asked Questions

Disclaimer

This article is for educational and informational purposes only. It is not investment advice, nor a recommendation, offer or solicitation to buy or sell any security or digital asset. Investing involves risk, including possible loss of principal. Past performance does not guarantee future results.

Securities brokerage services are provided by Fullerverse (SC) Limited, a securities broker-dealer licensed and regulated by the Financial Services Authority of Seychelles (Licence No. SD152). Fullerverse (SC) Limited is a wholly-owned subsidiary of Raseed Invest Inc. Registered address: House of Francis, Room 302, Ile Du Port, Mahe, Seychelles.

Cryptocurrency services are made available by Raseed Crypto LLC ("Raseed Crypto"), a FinCEN-registered money services business (MSB Registration No. 31000316890439) and a wholly-owned subsidiary of Raseed Invest Inc. Cryptocurrencies are not stocks and your cryptocurrency investments are not protected by either FDIC or SIPC. Cryptocurrency is highly speculative in nature and involves a high degree of risk, including volatile market price swings, market manipulation, flash crashes and cybersecurity risks. Cryptocurrency regulations are continuously evolving, and it is your responsibility to understand and abide by them. Cryptocurrency trading can lead to large, immediate and permanent loss of financial value. You should have appropriate knowledge and experience before engaging in cryptocurrency trading. For additional information, please see our Crypto Risk Disclosures (https://files.raseedcapital.com/disclosures/library/CryptoRiskDisclosures.pdf).

Cryptocurrency services are not offered by, and are not available through, Raseed Invest Limited, which is regulated by the Dubai Financial Services Authority. Products and services referenced in this article are not available in all jurisdictions and are not directed at any person in a jurisdiction where their offer or availability would be contrary to local law or regulation.