Moving Average Calculator - SMA, EMA, WMA

Use this moving average calculator to compare SMA, EMA, or weighted averages from an ordered series and review latest trend direction.

Updated: June 10, 2026 • Free Tool

Moving Average Calculator

Paste closing prices or observations in oldest-to-newest order, separated by commas, spaces, or line breaks.

Number of observations in each moving-average window.

Choose equal weighting, exponential smoothing, or linearly weighted recent values.

Results

Latest Average
0value
Previous Average 0value
Point Difference 0points
Percent Difference 0%
Data Points Used 0values
EMA Smoothing Constant 0%
Direction 0

What Is Moving Average Calculator?

A moving average calculator turns an ordered series of prices or observations into a smoothed average that updates as new values arrive. Use it when you want to compare short-term price action with a calmer trend line, check whether a stock's latest closes are moving above or below their recent average, review sales data without one noisy day dominating the view, or test whether SMA, EMA, or WMA changes the same dataset in a meaningful way.

  • Stock trend review: Paste daily closing prices and choose a 20, 50, or 200 period window to see how the latest average compares with the prior one.
  • Portfolio notes: Compare a moving average with actual return metrics before writing an investment journal entry.
  • Operations smoothing: Use the same method on weekly sales, order counts, or cash receipts when the values are ordered in time.
  • Method comparison: Run SMA, EMA, and WMA on one series to see how recency weighting changes the latest result.

A moving average does not value a business, set a target price, or measure total return. It only summarizes a time series. That narrow job is useful because trend conversations often get messy when a single price jump, earnings reaction, or thin trading day pulls attention away from the larger pattern.

Enter values from oldest to newest. The calculator then computes the latest moving average, the prior comparable average, the point change, the percent change, the number of parsed values, and a simple direction label. Treat that direction as a summary of the average itself, not as a trading recommendation.

When your smoothed price review needs a return comparison, the Average Return Calculator helps translate performance history into an average gain or loss.

How Moving Average Calculator Works

The calculator applies the selected moving-average method to the most recent complete window, then compares that result with the prior window or prior EMA step.

SMA = sum(latest n values) / n; EMA_t = price_t x (2 / (n + 1)) + EMA_(t-1) x (1 - 2 / (n + 1)); WMA = sum(value x linear weight) / sum(weights)
  • values: The ordered numeric series, such as closing prices or weekly observations, entered from oldest to newest.
  • n: The period length, or the number of observations used in the moving-average window.
  • SMA: Simple moving average. Every value in the window receives equal weight.
  • EMA: Exponential moving average. The smoothing constant is 2 divided by n plus 1, so smaller periods react faster.
  • WMA: Weighted moving average. This calculator applies linear weights so the newest value in the window receives the largest weight.

The previous average gives the result context. A latest SMA of 107.6667 is more useful when you know whether the prior comparable average was 105.3333, 107.6000, or 112.0000. The point and percent differences express that movement without asking you to compare windows manually.

For EMA, the calculator seeds the first EMA with the SMA of the first full period, then updates that average with each later value. This is a common practical approach because the first EMA needs a starting value before exponential smoothing can begin.

Three-period SMA example

Values: 101, 102, 104, 103, 105, 108, 110. Period: 3. Method: SMA.

Latest SMA = (105 + 108 + 110) / 3 = 107.6667. Previous SMA = (103 + 105 + 108) / 3 = 105.3333.

Point difference = 2.3333 and percent difference = 2.22%.

The recent three-value average is rising versus the prior three-value average, but the result still lags the last value of 110.

According to Charles Schwab, a simple moving average adds closing prices over a chosen period and divides by the number of trading days.

After checking whether the average is rising or falling, the Holding Period Return Calculator can measure the actual gain across the same ownership window.

Key Concepts Explained

These four ideas help you decide which method and period fit the question you are asking.

Window length

The period controls how much history enters each result. A short window reacts quickly but can jump around. A long window changes slowly and can hide fresh reversals.

Equal weighting

SMA treats every value in the window the same. That makes it easy to explain, audit, and compare across a spreadsheet or trading journal.

Recency weighting

EMA and WMA give newer values more influence. They can react faster after a price break, but faster movement also means more sensitivity to short-term noise.

Lag

Moving averages are based on past values, so they lag the latest observation. Lag is not a bug; it is the cost of smoothing a noisy series.

Many chart platforms plot several averages at once, such as a short average and a long average. This calculator focuses on the latest and previous values for one method at a time. That keeps the result auditable: you can paste the same series, switch methods, and see exactly which average changed.

If your main task is a non-time-series grade, score, or blended quantity, a standard average may be more appropriate than a rolling method. Moving averages only make sense when the order of values matters.

If you need a custom weighting scheme instead of this calculator's linear WMA, the Weighted Average Calculator is a better fit for manually assigned weights.

How to Use This Calculator

Start with clean ordered data, then choose the method and period that match your review horizon.

  1. 1 Paste the series: Enter prices or observations from oldest to newest. Commas, spaces, semicolons, and line breaks are accepted.
  2. 2 Choose the period: Use a smaller period for a short-term check and a larger period for a slower trend view.
  3. 3 Pick SMA, EMA, or WMA: Use SMA for a plain equal-weighted average, EMA for exponential smoothing, or WMA for linear recency weighting.
  4. 4 Read the latest and prior averages: Compare the two values before reacting to the direction label.
  5. 5 Review the difference: Use the point and percent difference to judge whether the move is material for your data scale.

Suppose a stock closed at 50, 51, 49, 52, 54, and 53. With a four-period EMA, the calculator seeds from the first four values, applies a 40% smoothing constant, and returns a latest EMA of 52.34. That says the smoothed value rose from the prior EMA, even though the last close dipped from 54 to 53.

Benefits of Using This Calculator

A moving average calculator is most useful when it improves a specific decision or review process.

  • Cleaner trend notes: Summarize a price series without letting one volatile observation carry the whole conversation.
  • Method discipline: Use the same period and method across assets so comparisons are based on a consistent rule.
  • Faster audit trail: Keep the entered series, method, and period together when checking a spreadsheet or chart-platform value.
  • Risk review support: Pair trend smoothing with drawdown, return, and volatility checks before making portfolio notes.
  • Business data smoothing: Apply the same rolling method to sales, customer counts, or cash-flow observations when the sequence is time ordered.

The benefit is not that a moving average makes a decision for you. It helps separate the question of trend direction from the question of whether the asset, project, or series is worth acting on. For investing, that means pairing the average with return, drawdown, fees, liquidity, and position size.

The calculator also helps expose method sensitivity. If SMA, EMA, and WMA tell different stories on the same series, the dataset may be near a turning point or simply too noisy for a single smoothed line to carry much weight.

A rising average can still hide painful pullbacks, so the Maximum Drawdown Calculator gives useful risk context before you rely on a smoothed trend.

Factors That Affect Your Results

The same formula can produce very different readings when inputs, periods, and market context change.

Data order

Values must be entered oldest to newest. Reversing the order changes EMA and WMA because both methods care about recency.

Period choice

A 5-period average and a 200-period average answer different questions. Choose the period before reviewing the result so the method does not chase a preferred conclusion.

Gaps and outliers

Missing observations, splits, one-time shocks, or bad exports can distort the smoothed value. Clean the series before relying on the output.

Market regime

Moving averages tend to read more clearly in directional markets and can give mixed messages in sideways price action.

  • Moving averages use past data. They can summarize a trend, but they do not forecast future prices or remove investment risk.
  • This calculator does not adjust for dividends, stock splits, trading costs, taxes, liquidity, or benchmark selection.
  • The WMA option uses simple linear weights. Other platforms may use different weighted-average conventions.

Use the result as one input in a broader review. A rising average with a large drawdown may tell a different story from a rising average with shallow pullbacks. A falling average after a one-day price shock may need another period of data before it says much about the durable trend.

For business metrics, document the data cadence. Do not mix daily observations with weekly observations in one series unless you have converted them to a consistent interval.

According to CME Group, simple and exponential moving averages are common technical-analysis calculations that appear as lines above or below price.

According to Fidelity Investments, the simple moving average is the average price over a specified period and is plotted bar by bar as the value changes.

When you are comparing trend smoothing with chart levels, the Fibonacci Retracement Calculator provides another technical-analysis reference point for the same price series.

moving average calculator showing pasted prices, SMA, EMA, WMA, latest average, previous average, and trend direction
moving average calculator showing pasted prices, SMA, EMA, WMA, latest average, previous average, and trend direction

Frequently Asked Questions

Q: How do you calculate a simple moving average?

A: Add the values in the selected window, then divide by the number of values. For a 5-period SMA, add the latest five observations and divide by five. When a new observation arrives, drop the oldest value and repeat the calculation.

Q: What is the difference between SMA and EMA?

A: SMA gives every value in the window equal weight. EMA updates a prior average with a smoothing constant, so newer values affect the result more. EMA often reacts faster, while SMA is easier to audit by hand.

Q: Which moving average period should I use?

A: Use the period that matches your review horizon. Short periods react faster and are noisier. Long periods smooth more data and lag more. Many investors compare several periods, but the period should be chosen before interpreting the result.

Q: Can moving averages predict price changes?

A: No. Moving averages summarize past values and lag the latest observation. They can help describe trend direction or smooth noise, but they should not be treated as forecasts, promises, or stand-alone trading rules.

Q: What data should I enter in this calculator?

A: Enter an ordered numeric series from oldest to newest. Daily closing prices are common for stocks, but the same calculation can work for weekly sales, order counts, or other time-ordered observations with a consistent interval.

Q: Why does the EMA result differ from the SMA result?

A: EMA gives more influence to recent values through its smoothing constant. When the latest observations are rising or falling quickly, EMA usually moves sooner than SMA. When the series is flat, the two methods may be close.