Moving Average Calculator

Calculate the simple (SMA) and exponential (EMA) moving average of a stock or any data series, and whether the latest price is above or below…

Results

Enter your details and click Calculate to see your results.
About This Calculator

Enter closing prices in date order, oldest first, and choose the period. You need at least as many prices as the period. For a 50- or 200-day average use a spreadsheet; this tool suits short averages and learning how they work.

Example

Example: closes of 100, 102, 101, 104, 107, 106, 109 and 111 give a 5-period SMA of 107.40 and an EMA of 107.39. The latest price is 3.35% above the SMA — an uptrend.

Assumptions

SMA = average of the last n prices. EMA starts from the first n-period SMA and then weights each new price by α = 2 ÷ (n + 1), so it reacts faster. This tool gives estimates for learning and planning only and isn't financial, investment or tax advice. Results depend entirely on your inputs — check important decisions with a qualified professional.

Frequently Asked Questions

SMA or EMA — which is better?

EMA reacts faster to new prices; SMA is smoother and less prone to false signals.

What is a golden cross?

When the 50-day moving average rises above the 200-day — traditionally seen as a bullish signal.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile