MACD Indicator:How to Read the Line, Signal and Histogram

Learn how to read the MACD indicator: the MACD line, signal line and histogram, crossovers, divergence and the 3 ways it misleads, with a 2025 S&P 500 example.

13 min
Updated:
Back to Articles

MACD (moving average convergence divergence) is a momentum indicator that subtracts a 26-period exponential moving average of price from a 12-period one. A 9-period average of that difference forms the signal line, and the histogram shows the gap between the MACD line and the signal line.

On a chart, those three parts appear as two lines and a row of bars beneath the price. They are easy to find and harder to read well. In early 2025, for example, the MACD line crossed below its signal line only after the S&P 500 was already 2.13% below its February 19 high. That delay is built into how the indicator is made.

Below, each part is explained in plain English, followed by crossovers, divergence, a real 2025 episode on the S&P 500 and the three ways MACD misleads.

Key Takeaways

  • The MACD line is the 12-period EMA minus the 26-period EMA. The signal line is a 9-period EMA of the MACD line, and the histogram is the gap between the two.
  • MACD describes momentum in prices that have already happened. It is not a price forecast.
  • Crossovers and divergences are commonly read as signs that momentum is shifting, yet a divergence can persist for a long time while price keeps moving the same way.
  • On the S&P 500 in 2025, the downturn crossover came 2.13% below the February 19 peak and the upturn crossover came 8.31% above the April 8 trough.
  • Raw MACD values scale with the price of the instrument, so readings from different charts are not directly comparable.

What Is the MACD Indicator?

The MACD indicator measures the relationship between two moving averages of price. A moving average is the average closing price over a set number of recent periods, recalculated each period as the newest price arrives and the oldest drops out. MACD compares a fast average with a slow one and reports the difference.

That difference is a measure of momentum, meaning the speed and direction of recent price change. When recent prices rise faster than older ones, the fast average pulls ahead and MACD grows. When the rise slows, the two averages drift back together. The name describes this: the averages converge as they move closer and diverge as they move apart, a separate idea from the divergence between price and MACD covered later.

MACD is not a price forecast. Every input is a past closing price, so MACD is a lagging indicator: a tool that describes a move after it has begun rather than before.

Gerald Appel is widely credited with developing MACD. Thomas Aspray added the histogram in 1986, giving chart readers a visual way to see the gap between the MACD line and its signal line.

How MACD Is Calculated

MACD is built from exponential moving averages. An exponential moving average (EMA) gives the newest price more weight than older prices, so it responds to change faster than a simple average that weights every price equally. The weight on the newest value equals 2 divided by the number of periods plus 1, so a shorter EMA reacts sooner.

The MACD line

The MACD line is the 12-period EMA minus the 26-period EMA. On a daily chart, each period is one trading day. If the 12-period EMA is 6,050 and the 26-period EMA is 6,020, the MACD line is 30. A positive value means the faster average is above the slower one, and a negative value means it is below. The zero line is the horizontal line at a value of 0, where the two EMAs are exactly equal.

The signal line

The signal line is a 9-period EMA of the MACD line itself. Because it is an average of an average, it moves more smoothly than the MACD line and trails behind it. It gives the MACD line a reference point: is the gap between the two price averages above or below its own recent level?

The histogram

The histogram is the MACD line minus the signal line, drawn as vertical bars around the zero line. Bars sit above zero when the MACD line is above the signal line and below zero when it is beneath. The taller the bar, the wider the gap. The histogram adds no new information; it redraws that distance so changes in it are easier to see.

MACD's three parts and their settings

ComponentWhat it isPeriodsWeight on the newest value
12-period EMAThe faster average of closing prices122 / 13 = 15.4%
26-period EMAThe slower average of closing prices262 / 27 = 7.4%
Signal lineA 9-period EMA of the MACD line92 / 10 = 20.0%
HistogramThe MACD line minus the signal lineNoneNone (a difference, not an average)
Source: Money365.Market calculation.

The weights explain why the two price averages behave differently. The 12-period EMA gives the newest close 15.4% of its weight, about twice the 7.4% given by the 26-period EMA. When prices change direction, the fast average turns first, and the MACD line moves because the gap between the two averages is changing.

How to Read MACD on a Chart

Reading MACD means answering two questions at once: where is the MACD line relative to its signal line, and where is it relative to zero? The histogram then shows whether the gap between the two lines is widening or narrowing.

Reading the chart

What you seeWhat it describesHow it is commonly interpreted
MACD line above the signal lineThe gap between the fast and slow averages is above its own recent averageCommonly read as a sign that upward momentum is building
MACD line below the signal lineThe gap between the fast and slow averages is below its own recent averageCommonly read as a sign that downward momentum is building
MACD line above zeroThe 12-period EMA is above the 26-period EMACommonly read as recent prices running ahead of longer-run prices
MACD line below zeroThe 12-period EMA is below the 26-period EMACommonly read as recent prices running behind longer-run prices
Histogram bars growingThe distance between the MACD line and the signal line is wideningCommonly read as current momentum strengthening
Histogram bars shrinkingThe distance between the two lines is narrowingCommonly read as current momentum fading
Price makes a new high while MACD makes a lower high (bearish divergence)Price is rising with less upward momentum than at its previous highCommonly read as a sign that upward momentum is weakening
Price makes a new low while MACD makes a higher low (bullish divergence)Price is falling with less downward momentum than at its previous lowCommonly read as a sign that downward momentum is fading

Every row describes momentum, not destination. A MACD line above zero says the recent average price is above the longer-run average; it says nothing about next week. If shrinking histogram bars reach zero, the lines have crossed, which follows from the arithmetic rather than from a prediction.

MACD Crossovers: Signal Line and Zero Line

A crossover is the moment one line moves from one side of another to the other. MACD produces two kinds, and they describe different things.

Signal-line crossovers

A signal-line crossover happens when the MACD line crosses its own 9-period average. A move from below the signal line to above it is commonly read as a sign that upward momentum is building, and a move from above to below as a sign that downward momentum is building. On the histogram, this is the moment the bars flip from one side of zero to the other. Because the signal line is built to stay close to the MACD line, these crossovers come often, which makes them the faster and noisier of the two types.

Zero-line crossovers

A zero-line crossover happens when the MACD line itself crosses zero, the moment the 12-period EMA moves above or below the 26-period EMA. A move above zero is commonly read as a sign that recent prices have moved ahead of longer-run prices, and a move below zero as the reverse.

Zero-line crossovers react later, because they need the two price averages themselves to swap places. In the 2025 example below, they came after the matching signal-line crossovers on both the way down and the way up. Neither type says what price will do next. Both describe what the averages have already done.

MACD Divergence: Bullish and Bearish

Divergence, in the chart-reading sense, is a disagreement between price and the indicator. Price moves to a new extreme, but the MACD line does not follow it there.

Bearish divergence

A bearish divergence appears when price makes a new high while the MACD line makes a lower high than at the previous peak. Price is still rising, but the gap between the fast and slow averages is smaller than before. Chart readers commonly interpret this as a sign that upward momentum is weakening beneath a rising price.

Bullish divergence

A bullish divergence is the mirror image. Price makes a new low while the MACD line makes a higher low. Price is still falling, but with less downward momentum than at the previous low, which is commonly read as a sign that downward momentum is fading.

How long a divergence can last

A divergence can persist for a long time while price keeps moving the same way. Momentum can soften for weeks during a steady climb while price goes on making new highs. A divergence describes a change in the pace of a move; it does not say when, or whether, the move ends. Spotting one also involves judgement, because the reader chooses which earlier peak or trough to compare against.

MACD on the S&P 500 in 2025: A Worked Example

The S&P 500 index fell sharply between February and April 2025, then recovered into May. The table below shows the crossovers MACD produced on daily closing prices over that stretch, using the default settings of 12, 26 and 9.

MACD (12, 26, 9) on the S&P 500, February to May 2025

DateEventS&P 500
close
Distance
from peak or trough
Feb 19, 2025Closing high before the decline6,144.15Peak
Feb 21, 2025MACD line crosses below the signal line6,013.132.13% below the peak
Feb 26, 2025MACD line crosses below zero5,956.063.06% below the peak
Mar 21, 2025MACD line crosses back above the signal line during the decline5,667.56The index later fell a further 12.08% to the trough
Apr 8, 2025Closing low of the decline4,982.7718.90% below the peak
Apr 15, 2025MACD line crosses above the signal line5,396.638.31% above the trough
May 2, 2025MACD line crosses above zero5,686.6714.13% above the trough
Source: Money365.Market internal index price data (S&P 500); Money365.Market calculation (MACD 12, 26, 9 on daily closes).

Both turns were confirmed only after a sizeable part of the move had happened. The MACD line crossed below its signal line when the index was already 2.13% below its high, and it crossed back above when the index was already 8.31% above its low. The zero-line crossovers came later still, at 3.06% below the peak and 14.13% above the trough. The size of the delay varied between the two turns, but it was present at both. This is what a lagging indicator looks like in practice.

Not every crossover in between marked a turn. On March 21, the MACD line crossed back above its signal line while the decline was still under way, and the index then fell a further 12.08% to its April 8 low. Between January 15 and June 30, 2025, the MACD line crossed its signal line 11 times. Twice, from February 12 to 13 and from April 21 to 22, a crossover reversed on the very next trading day.

MACD values on other charting tools can differ slightly from these, depending on how each tool starts its averages. This is one historical episode on one index. It is not a pattern, and it is not evidence that any way of reading MACD leads to better results. Past performance does not indicate future results.

Where MACD Misleads

MACD misleads in three ways, and each follows from how the indicator is built.

Lag

MACD is built entirely from past prices, so it confirms moves after they start. The 12-period EMA needs a run of closes in a new direction before it pulls away from the 26-period EMA, and the signal line trails further behind. That is why the 2025 upturn was confirmed only once the index had already climbed 8.31% from its low. Shorter settings reduce the lag but do not remove it, because every average still looks backwards.

Whipsaws in sideways markets

A whipsaw is a crossover that quickly reverses, so the line crosses one way and then straight back. Whipsaws are a particular problem in a trading range, a period when price moves sideways between a rough ceiling and floor without a clear trend. In a range the two EMAs sit close together, so small price moves can push the MACD line back and forth across its signal line.

Even the first half of 2025, which held a sharp decline and a rebound, produced 11 signal-line crossovers, two of which reversed the next trading day. The March 21 crossover pointed toward strengthening momentum while the index went on to fall a further 12.08%. At the moment it happens, a crossover that lasts and one that soon reverses look the same on the MACD panel.

Values that scale with price

MACD is measured in the same units as price. A MACD reading of 30 on an index near 6,000 means the two averages are about half of one percent apart. The same reading on a $60 stock would mean they are half the stock's price apart. Raw MACD values therefore cannot be compared across instruments, or across long periods on one instrument whose price has changed a great deal.

The percentage price oscillator (PPO) handles this by expressing the same gap between the two EMAs as a percentage of the slower average, which puts readings on a large index and a low-priced stock on a common scale.

MACD Settings: What 12, 26 and 9 Mean

The numbers 12, 26 and 9 are the lengths of the fast EMA, the slow EMA and the signal line. They are the default on most charting tools. On a daily chart they count trading days; on a weekly chart they count weeks, so the same settings describe momentum over a much longer stretch.

Changing the settings moves MACD along a single trade-off. Shorter settings put more weight on the newest prices, react faster and produce more crossovers, including more that reverse quickly. Longer settings react slower and produce fewer crossovers, at the cost of more lag. The weights in the calculation table show the mechanism.

No setting suits every market or time frame, and settings chosen because they fitted past prices well may fit the next stretch of prices poorly.

MACD vs RSI

The relative strength index (RSI) is another widely used momentum indicator, and the two measure different things. MACD measures the gap between two moving averages and has no upper or lower bound, so its scale depends on the price of the instrument. RSI is bounded between 0 and 100 and is commonly used to describe overbought and oversold readings near the top and bottom of that range.

So the two answer slightly different questions. MACD describes the direction and size of the gap between a fast and a slow average, while RSI places the balance of recent gains and losses on a fixed scale. Neither is better in general. They are different summaries of the same past prices, so neither escapes the lag that comes from looking backwards.

MACD FAQ

Is MACD a leading or lagging indicator?

MACD is a lagging indicator. It is built from moving averages of past prices, so it confirms moves after they start rather than anticipating them. In the 2025 S&P 500 example, the upturn crossover came when the index was already 8.31% above its April 8 low.

What does the MACD histogram show?

The histogram shows the MACD line minus the signal line. Bars above zero mean the MACD line is above the signal line, and bars below zero mean it is beneath. Growing bars show the gap widening and shrinking bars show it narrowing. When the bars reach zero, the lines have crossed.

What does it mean when MACD crosses zero?

When the MACD line crosses zero, the 12-period EMA has moved above or below the 26-period EMA. A move above zero means recent prices are averaging higher than longer-run prices. It describes a change in momentum that has already happened, not a forecast.

What are the best MACD settings?

The common default is 12, 26 and 9. No setting suits every market or time frame. Shorter settings react faster and produce more crossovers, while longer settings react slower and produce fewer, with more lag.

Can MACD predict price?

No. MACD describes momentum in prices that have already happened. A crossover or divergence summarises how recent prices have moved relative to older ones, and price can keep moving in either direction afterwards, as the March 21, 2025 crossover showed.

Was this article useful?

About the Author

Founder and Lead Developer of money365.market. Dedicated to delivering independent, data-driven financial education and analytical insights. His work focuses on breaking down complex market dynamics and economic data into clear, objective educational resources without commercial solicitations.

Important Disclaimer — Not Investment Advice

Disclaimer: This article is provided by Money365.Market for general information and educational purposes only. It is not financial advice, a personal recommendation, or an inducement to buy, sell, or invest in any security or product. Capital is at risk and the value of investments can go down as well as up; past performance does not indicate future results. You should seek independent advice from an FCA-authorised adviser before making any financial decision.

Read the full disclaimer — 7 further points, including total-loss risk, our regulatory status and conflicts of interest

Nothing here is an offer or a solicitation to buy or sell anything, and reading it creates no advisory or fiduciary relationship between you and Money365.Market. Any decision you take is your own.

  • You can lose money — including all of it. Individual companies can and do fail, and some of the assets discussed can fall to zero. Only commit money you can afford to lose, and never borrow to invest on the strength of anything you read here.
  • Forecasts are opinion, not fact. Any valuation model, scenario, fair-value range, estimate or other forward-looking statement is illustrative, rests on assumptions that may prove wrong, and is never a price target, a forecast of actual outcomes, or a promise of any return.
  • Published at a point in time. Figures were believed accurate on the publication or last-updated date shown above and are not maintained afterwards; we are under no obligation to update them. Market and company data comes from third-party sources and is provided without warranty of accuracy, completeness or timeliness.
  • We are not regulated. Money365.Market is not authorised or regulated by the UK Financial Conduct Authority, is not registered with the U.S. Securities and Exchange Commission or FINRA as an investment adviser or broker-dealer, and is not a tax adviser. We hold no licence to give personal financial advice and do not do so.
  • Interests and independence. Money365.Market is not affiliated with, endorsed by or sponsored by any company, fund, exchange or platform mentioned, and is not paid to feature them. The author may hold positions in securities or assets discussed. The site earns revenue from advertising, subscriptions and, where labelled, affiliate links; this does not influence what we publish.
  • Your jurisdiction matters. Tax treatment, contribution limits, product availability and investor protections differ by country and can change. Speak to a qualified tax professional for tax matters, and to a locally licensed adviser if you are outside the UK.

Full terms: Disclaimer · Terms of Service · Privacy Policy

The Smartest 5 Minutes You'll Spend on Money This Week

Subscribe and get 1 month FREE PRO PLAN — plus our weekly market brief with real data, zero fluff.

Due today: $0.00 • After 30 days: $9.99/mo • Cancel anytime