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.5 | 31.714844 |
| 4 | 31.297975 |
| 5 | 30.838409 |
| 6 | 30.388618 |
| 7.5 | 29.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.