Skip

Moving Average Calculator (SMA, EMA)

Moving Average Calculator (SMA, EMA): free, instant and precise. Enter your values and the results update live.

What if? Simulation

The curve recalculates the result for every value of the chosen input, all others unchanged. The dot is your current case.

Formula shown and computed in your browser. Updated November 2026.

Full calculator on Kalqo

Formula

SMA = Σ last n prices / n ; EMAₖ = α·Pₖ + (1 − α)·EMAₖ₋₁, α = 2 / (n + 1) ; the EMA starts from the first SMA

Worked example

With these values

Prices, separated by spaces
22 24 23 25 27 26 28 30 29 31 33 32
Period (number of values)
5

The calculator gives

Exponential moving average
30.838409
Simple moving average
31

These values are only an illustration. Replace them with yours in the form above.

How "Exponential moving average" changes with "Period (number of values)"

Period (number of values)Exponential moving average
2.531.714844
431.297975
530.838409
630.388618
7.529.391804

All other values stay as in the example.

When to use it

  • Compare a simple and an exponential average over the same series of prices.

Limits of this calculation

  • An indicator summarises past prices only; it does not predict the next move.
  • The result depends on the time frame, the data source and the number of values entered.

Official and scientific sources

How to use this calculator

Change any value: results update as you type. Copy a result with one click, or share a link that keeps all your values.

Questions

How is the result calculated?

The calculator applies this rule: SMA = Σ last n prices / n ; EMAₖ = α·Pₖ + (1 − α)·EMAₖ₋₁, α = 2 / (n + 1) ; the EMA starts from the first SMA

Is it free?

Yes. It is free, needs no account, and works on phone and desktop.

Are my numbers stored?

Everything runs in your browser. Nothing you type is sent to a server.