Code tool

Moving Average Calculator

Calculate SMA, WMA and EMA for an ordered numeric series.

In-browser processingNo account requiredPrivacy details ↗

Enter numbers from oldest to newest, separated by commas, spaces or new lines.

Choose a period from 1 to the number of values and a method.

SMA is the window mean. WMA weights the oldest value 1 and newest N, divided by N(N+1)/2.

EMA uses α=2/(N+1), seeded with the first N-value SMA; earlier rows have no result.

Up to 10,000 finite numbers with magnitude ≤1e100. Results use 12 significant digits; rounding is display-only. Browser floating-point arithmetic can lose precision for values of very different magnitudes.

All calculations stay in this browser.

A QUICK WALKTHROUGH

How to use this tool

  1. Enter numbers from oldest to newest, separated by commas, spaces or new lines.
  2. Choose a period from 1 to the number of values and a method.
  3. Calculate

Moving Average Calculator

SMA is the window mean. WMA weights the oldest value 1 and newest N, divided by N(N+1)/2. EMA uses α=2/(N+1), seeded with the first N-value SMA; earlier rows have no result. Up to 10,000 finite numbers with magnitude ≤1e100. Results use 12 significant digits; rounding is display-only. All calculations stay in this browser. Browser floating-point arithmetic can lose precision for values of very different magnitudes.

GOOD TO KNOW

Common questions

Moving Average Calculator?

SMA is the window mean. WMA weights the oldest value 1 and newest N, divided by N(N+1)/2.