What Is MACD? Moving Average Convergence Divergence Explained

Updated November 2026 · 5 min read

MACD, short for Moving Average Convergence Divergence, is one of the most widely used indicators in technical analysis. It takes two moving averages of price and turns the gap between them into a line you can read at a glance. That one line tells you about both the direction of the trend and how much momentum is behind it.

This guide covers what MACD is made of, how each part is calculated, and how to read it. For trade setups built on MACD signals, see the MACD crossover strategy guide.

The three parts of MACD

MACD is usually shown in a panel below the price chart with three components:

  1. The MACD line. The 12-period exponential moving average (EMA) of price minus the 26-period EMA.
  2. The signal line. A 9-period EMA of the MACD line itself.
  3. The histogram. The MACD line minus the signal line, drawn as vertical bars above or below zero.

There is also a horizontal zero line, which is where the 12 and 26 EMAs are exactly equal.

The name comes from how the two averages behave. When they move apart, they diverge. When they move toward each other, they converge. MACD measures that distance.

How MACD is calculated

Step 1: calculate two EMAs

An exponential moving average is a moving average that gives more weight to recent prices. The 12-period EMA reacts faster. The 26-period EMA reacts slower.

Each EMA is updated with a multiplier of 2 / (N + 1):

Step 2: subtract

MACD line = 12-period EMA - 26-period EMA

Step 3: smooth the result

Signal line = 9-period EMA of the MACD line
Histogram = MACD line - signal line

A worked example

Suppose a stock closes at $106 today, and yesterday's values were:

Update the 12 EMA: 105.00 + 0.154 × (106 − 105.00) = $105.15

Update the 26 EMA: 103.60 + 0.074 × (106 − 103.60) = $103.78

MACD line: 105.15 − 103.78 = 1.37

Update the signal line (multiplier 2 / 10 = 0.2): 1.20 + 0.2 × (1.37 − 1.20) = 1.23

Histogram: 1.37 − 1.23 = 0.14

So the MACD line is positive (the fast average is above the slow one), it sits above its signal line, and the histogram is a small positive bar. All three point to mild upward momentum.

Notice that MACD is measured in dollars, not on a fixed scale like RSI. A MACD of 1.37 on a $106 stock means something very different from a MACD of 1.37 on a $2,000 stock. That is why you cannot compare MACD values across different assets.

How to read MACD

Above or below zero

The zero line tells you which average is on top.

A MACD line crossing zero is the same event as the 12 EMA crossing the 26 EMA.

MACD vs signal line

The signal line is a smoothed version of MACD, so it trails behind.

Crossovers happen far more often than zero-line crosses, which makes them more timely but also noisier.

The histogram

The histogram shows the distance between MACD and its signal line. Growing bars mean momentum is accelerating. Shrinking bars mean it is slowing, even if the trend is still intact. The MACD histogram guide covers this in detail.

Divergence

Like RSI, MACD can diverge from price. If price makes a higher high but MACD makes a lower high, upward momentum is weakening. This is often treated as an early warning rather than a signal on its own. See RSI divergence for the general concept.

What MACD looks like on a chart

In a steady uptrend, you will see the MACD line spend most of its time above zero, with the signal line just under it, and the histogram mostly green or positive. During pullbacks, the MACD line dips toward its signal line and may briefly cross under it before turning back up.

In a sideways market, MACD hugs the zero line and the two lines cross back and forth repeatedly. This is where MACD struggles most.

Common mistakes

Comparing MACD values between stocks. Because MACD is in price units, a value of 5 is not stronger than a value of 2 unless the stocks trade at similar prices.

Trading every crossover. In choppy markets, MACD can cross its signal line every few days, generating many losing trades.

Forgetting about lag. MACD is built from averages of averages. By the time a crossover appears, part of the move has already happened.

Changing settings without reason. The 12/26/9 defaults are not magic, but they are what most traders watch. Custom settings can be useful, but test them before trusting them.

Limitations

MACD lags price, struggles in sideways markets, and has no fixed overbought or oversold levels. It also ignores volume. A sharp one-day price jump, such as an earnings gap, can whip MACD around in ways that do not reflect the longer trend.

How MACD fits with other indicators

MACD is often paired with RSI. RSI shows whether recent moves are stretched on a 0 to 100 scale, while MACD shows trend direction and momentum shifts. When both agree, traders tend to have more confidence. MACD also pairs well with longer moving averages such as the 200-day, which help define the bigger trend that MACD signals should trade with.

How Stupid Simple Trader uses MACD

Stupid Simple Trader uses the standard 12/26/9 MACD in two ways:

Together, MACD can move the signal score by up to 1.5 points in either direction, sitting alongside the moving average and RSI components. You can read more in how Stupid Simple Trader signals work.

Try it

Open a ticker page such as NVDA or BTC-USD to see where MACD currently sits relative to its signal line and zero, and how that feeds into the overall signal.

Frequently asked questions

What are the standard MACD settings?

The standard settings are 12, 26 and 9. The MACD line is the 12-period EMA minus the 26-period EMA, and the signal line is a 9-period EMA of the MACD line. These defaults are used by nearly every charting platform.

Is MACD a leading or lagging indicator?

MACD is built from moving averages, so it lags price. It tends to react faster than a plain moving average crossover because it measures the gap between two averages, but it still confirms moves rather than predicting them.

What does it mean when MACD is above zero?

When the MACD line is above zero, the 12-period EMA is above the 26-period EMA. That means recent prices are, on average, higher than slightly older prices, which is a sign of upward momentum. Below zero means the opposite.

Who created MACD?

MACD was developed by Gerald Appel in the late 1970s. It has since become one of the most widely used indicators in both stock and crypto trading.