SMA & EMA
5-point simple and exponential moving average for a mini price series.
Inputs
Results
SMA(5)
10.44
How to Use This Calculator
- Enter five consecutive price observations from oldest (t-4) to newest (t).
- Adjust the EMA smoothing factor -- higher values weight recent prices more heavily.
- Compare the SMA (equal-weight average) with the EMA (exponentially weighted) to see how the smoothing factor affects trend detection.
How the result changes with Price t-1
| Price t-1 | SMA(5) |
|---|---|
| 100,000,000,000 | 20,000,000,008.28 |
| 350,000,000,000 | 70,000,000,008.28 |
| 650,000,000,000 | 130,000,000,008.28 |
| 900,000,000,000 | 180,000,000,008.28 |
What each input means
- Price t-4
- Oldest observation.
- Price t-3
- Second-oldest price observation in the series.
- Price t-2
- Middle price observation in the five-point series.
- Price t-1
- Second-most-recent price observation.
- Price t
- Latest observation.
- EMA smoothing
- Higher = more weight on latest price.
How this is calculated
Formula
SMA(n) = Σ(prices) / n | EMA = α × Price + (1 − α) × Previous EMAEngine last updated . Checked against 1 independently-derived test — how we verify calculators.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Moving Average Calculator
Calculate Simple Moving Average (SMA), Exponential Moving Average (EMA), Cumulative Moving Average (CMA), and Weighted Moving Average from a series of data points.
Supply ChainDemand Forecast Calculator
Forecast demand using moving average, weighted MA, and exponential smoothing.
Data ScienceA/B Test Calculator
Determine statistical significance of A/B test results. Calculate z-score, p-value, conversion lift, and whether your variant beats the control at your chosen confidence level.
Data ScienceClustering Quality Score Calculator
Evaluate clustering quality using silhouette score, Calinski-Harabasz index, Davies-Bouldin index, and Dunn index from cluster distance metrics.
More in Math & Statistics.