January 2026: I am moving Macroption to new system. Account login and checkout are paused for a few days. See more details. To get a calculator, contact me directly.

MACD Formula

MACD charts consist of two lines: MACD Line and Signal Line.

MACD Line Formula

MACD Line = Short EMA - Long EMA

Short EMA = exponential moving average of closing price with a shorter period length

Long EMA = exponential moving average of closing price with a longer period length

Signal Line Formula

Signal Line = exponential moving average of MACD Line