i What this calculator does

This calculator works out the MACD line, signal line, and histogram from your 12-period EMA, 26-period EMA, and previous signal line value, the core building blocks of the MACD indicator.

Enter your 12-period EMA, 26-period EMA, and prior signal line value, and the calculator returns the MACD line, signal line, and histogram, see our guide on how MACD actually works for more context.

🧮
MACD Trading Calculator
Enter your EMA values below

This calculator is for educational purposes only and uses a simplified single-step signal line smoothing. Not financial advice.

↗ Calculation Result
Calculation Breakdown
Full transparency on how this result was calculated.
MACD line, signal line, and histogram

How to use the MACD Calculator

The inputs carry workable values from the start. Nothing has to be entered to get a number on screen.

  1. 1. 12-Period EMA
  2. 2. 26-Period EMA
  3. 3. Previous Signal Line Value (0 if first calculation)

The result panel reports:

  • MACD Line 12-EMA minus 26-EMA
  • Signal Line 9-period EMA of MACD
  • Crossover Status Based on current values

Alongside the headline figures, the calculator reports macd line, signal line, histogram, crossover status. Those are the numbers that usually explain why the headline result came out where it did.

The steps that produced the number are listed below it, which is what makes the output verifiable.

Where the result will inform a real decision, it is worth running the calculation at more than one set of inputs. A single figure tells you what happens if your assumptions hold exactly; a range tells you how much room there is for them not to.

Keep a record of the inputs you used alongside the result. Six months later the figure on its own tells you nothing about what you assumed to reach it.

See also: Beta Calculator and Bollinger Bands Calculator.

Share this calculator:WhatsApp

Frequently asked questions

What do the MACD line and signal line crossovers actually mean?

When the MACD line crosses above the signal line, it's generally read as bullish, suggesting upward momentum may be building, when it crosses below, it's generally read as bearish, suggesting downward momentum may be building, neither crossover guarantees a sustained move.

What does the histogram show that the lines alone don't?

The histogram visually represents the gap between the MACD line and signal line, a growing histogram suggests momentum is accelerating in the current direction, a shrinking histogram suggests momentum may be weakening, even before an actual crossover occurs.

Why does this calculator ask for 12 and 26-period EMAs specifically?

12 and 26 periods are the conventional default settings established when MACD was developed, the MACD line itself is simply the 12-period EMA minus the 26-period EMA, this calculator lets you enter those two EMA values directly if you've already calculated them.

Does MACD work the same way across different timeframes?

The underlying calculation applies identically to any timeframe, though shorter timeframes generally produce more frequent but noisier signals, while longer timeframes produce fewer but generally more significant ones.

How is MACD different from RSI?

MACD tracks the relationship between two moving averages and isn't bounded to a fixed range, RSI is bounded between 0-100 and focuses specifically on the ratio of average gains to losses, many traders use both together as a cross-check on momentum.

Want to embed this calculator on your site?

Embed this calculator

Free to use on your own site. Copy the code below and paste it where you want the calculator to appear.

<iframe src="https://www.tradeanswers.co.za/embed/macd-calculator.html"
        width="100%" height="570" style="border:0;max-width:520px"
        title="MACD Calculator - TradeAnswers" loading="lazy"></iframe>
<p><a href="https://www.tradeanswers.co.za/macd-calculator.html">MACD Calculator</a> by <a href="https://www.tradeanswers.co.za/">TradeAnswers</a></p>