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.
Smoothed result
Points
10
Results
8
Latest avg.
68.33
| Period | Original | Average |
|---|
Results update as you edit.
How the moving average calculator works
- Paste a value series with optional labels, one observation per line.
- Choose a rolling window and a simple, weighted, or exponential calculation.
- 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
| Feature | Online Tool Store | Omni Calculator | Good Calculators |
|---|---|---|---|
| Simple, weighted, and exponential (EMA) methods | All three, one tool | SMA only | SMA only (separate EMA tool) |
| Paste a full labeled data series | Unlimited rows, label + value per line | Fixed 3 price fields | Flat number list, no labels |
| Chart of original vs. smoothed series | Yes, built in | ✗ | ✗ |
| Download aligned results | CSV export | Not available | Not 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
| Method | Best for | Behavior |
|---|---|---|
| Simple | Stable trend summaries | Every observation has equal weight |
| Weighted | Responding sooner to recent movement | Newer observations receive more weight, decreasing linearly |
| Exponential | Fastest 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 |