Moving Average Calculator
Calculate Simple Moving Average (SMA), Exponential Moving Average (EMA), and Weighted MA from a data series. Detect crossover signals and MACD with step-by-step results.
Extended More scenarios, charts & detailed breakdown ▾
Professional Full parameters & maximum detail ▾
Moving Averages
Signals
Statistics
How to Use This Calculator
Enter a comma-separated data series (e.g., 10,12,13,15,14,16) and choose a window size. The calculator shows the current SMA value and trend direction. Use the Exponential MA tab to apply an EMA with a custom smoothing factor. The Compare tab shows SMA vs EMA side by side. The Professional tab adds WMA, crossover detection, MACD, and standard deviation of the MA series.
Formula
SMA = (sum of last N values) / N • EMA = α × current + (1−α) × previous EMA • MACD = short SMA − long SMA
Example
Data: 10,12,13,15,14 with window 3 → SMA values: 11.67, 13.33, 14.0 → Current SMA = 14.0 → Trend = Uptrend ↑
Frequently Asked Questions
- An SMA takes the arithmetic mean of the last N data points, where N is the window size. Each new point uses the same calculation, sliding the window forward by one period.
- An EMA gives more weight to recent data using a smoothing factor α. Formula: EMA = α × current + (1−α) × previous EMA. Higher α = more responsive to recent changes.
- SMA treats all periods equally within the window. EMA reacts faster to recent changes because it applies exponentially decreasing weights, making it better for detecting short-term trends.
- A Golden Cross occurs when a short-term MA crosses above a long-term MA, signaling a potential bullish (upward) trend. The opposite, a Death Cross, signals a bearish trend.
- MACD (Moving Average Convergence Divergence) is the difference between a short-period MA and a long-period MA. A positive MACD means the short MA is above the long MA, suggesting upward momentum.