Online Tool Store Online Tool Store

Moving Average Calculator

Calculate simple, weighted, or exponential (EMA) moving averages from labeled data, compare trends on a chart, and export aligned results as CSV.

🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.

Time series

Paste labels and values

Use label, value or enter numbers only. Blank lines are ignored.

Average type

Weighted gives the newest point the greatest weight. Exponential (EMA) reacts fastest to recent changes.

Smoothed result

Original data and moving average chartA line chart comparing the source series with its moving average.
OriginalMoving average

Points

10

Results

8

Latest avg.

68.33

PeriodOriginalAverage

Results update as you edit.

How the moving average calculator works

  1. Paste a value series with optional labels, one observation per line.
  2. Choose a rolling window and a simple, weighted, or exponential calculation.
  3. Review the smoothed chart and table, then download the aligned CSV.

FAQ

What does the window size mean?

It is the number of consecutive observations included in each rolling calculation. A larger window produces a smoother series but reacts more slowly to changes.

What is the difference between simple, weighted, and exponential?

A simple moving average (SMA) gives every point in the window equal influence. Weighted (WMA) assigns weights 1 through n, so newer observations influence the result more. Exponential (EMA) applies a smoothing factor of 2/(n+1) to every new point on top of the previous EMA value, so it reacts fastest of the three to recent changes.

How do you calculate a moving average?

Add up n consecutive values and divide by n for a simple moving average, then slide the window forward one point at a time - drop the oldest value and include the new one. This tool does that automatically for every row once you paste your data.

What is EMA 12 and EMA 26?

They are exponential moving averages calculated with a 12-period and a 26-period window - the two windows used to build the MACD indicator. Set Window size to 12 or 26 and Average type to Exponential to calculate either one from your own data.

What is a 50-day EMA?

A 50-period exponential moving average calculated from daily closing prices. Paste 50 or more daily values, set Window size to 50, and choose Exponential to calculate it here.

Why are the first rows blank?

A trailing moving average needs a complete window. For example, a 3-point average begins on the third observation, so the first two rows have no result - this applies to all three methods.

Is my time-series data uploaded?

No. Parsing, calculation, charting, and CSV creation all happen locally in your browser.

How we compare

FeatureOnline Tool StoreOmni CalculatorGood Calculators
Simple, weighted, and exponential (EMA) methods All three, one toolSMA onlySMA only (separate EMA tool)
Paste a full labeled data series Unlimited rows, label + value per lineFixed 3 price fieldsFlat number list, no labels
Chart of original vs. smoothed series Yes, built in
Download aligned results CSV exportNot availableNot available

Choose Online Tool Store when you have a labeled time series and want SMA, WMA, or EMA plus a chart and CSV export in one pass - use a dedicated calculator only if you need just a single quick SMA on a handful of numbers.

Simple vs. weighted vs. exponential smoothing

MethodBest forBehavior
SimpleStable trend summariesEvery observation has equal weight
WeightedResponding sooner to recent movementNewer observations receive more weight, decreasing linearly
ExponentialFastest reaction to new data (e.g. EMA 12/26 for MACD)Each new point is blended with the previous EMA using a 2/(n+1) smoothing factor

Explore related tools

Embed this tool

Paste this on your own site — it stays free, and every file still stays in your visitor's browser, not yours or ours.