Moving Average Calculator
Compute SMA and EMA for any data series — stocks, prices, or any time series.
MA What is a Moving Average?
A moving average (MA) is a statistical technique that calculates the average of a sliding window of data points over a time series. As new data arrives, the window moves forward — the oldest value drops out and the newest enters. The result is a smoother curve that filters out short-term noise and highlights the underlying trend.
Moving averages are among the most widely used tools in technical analysis of financial markets. Traders use the 20-day, 50-day, and 200-day moving averages to identify support and resistance levels, trend direction, and potential reversal points. When a shorter-period MA crosses above a longer-period MA (a “golden cross”), it is interpreted as a bullish signal; the opposite (a “death cross”) is bearish.
The two most common types are the Simple Moving Average (SMA) — which gives equal weight to every data point in the window — and the Exponential Moving Average (EMA) — which gives more weight to recent values via an exponentially decaying multiplier. SMA is simpler and more stable; EMA is more responsive to recent price changes but also noisier.
Beyond finance, moving averages appear everywhere: smoothing COVID case counts, sensor noise reduction in engineering, demand forecasting in supply chain, and signal processing in audio and image analysis. Any time you have noisy time-series data and want to see the trend, a moving average is the first tool to reach for.