Moving Average Calculator

Work out SMA and EMA from your own list of prices.

Your numbers

Your prices

Paste one price per line or separate them with commas. Up to a few hundred prices.

Averages

How many prices each average covers.

Results update as you type. Nothing you enter leaves your browser.

Your results

Latest 10-period SMA

$52.03

Last price $54.60 is 4.9% above it.

10-period SMA
$52.03
10-period EMA
$52.69
Prices used
30
5 vs 20 SMA
short above long

A moving average smooths out day-to-day noise so the direction of the prices is easier to see. It's built only from past prices, so it always lags and can't tell you what comes next.

See the full breakdown

Estimates based on your inputs and the assumptions listed below. Not tax, financial or lending advice. Disclaimer

Your full breakdown

Price and moving averages

Each point of the 10-period SMA is the average of the last 10 prices. The EMA gives more weight to recent prices, so it turns sooner.

PriceSMA 10EMA 10
$49.83$51.31$52.79$54.27159131721252930
Bottom axis: price number, oldest first.

Last 10 rows

#PriceSMA 10EMA 10
21$49.50$51.19$50.78
22$49.90$50.86$50.62
23$50.40$50.63$50.58
24$51.10$50.53$50.68
25$51.80$50.55$50.88
26$52.40$50.67$51.16
27$53.00$50.91$51.49
28$53.50$51.17$51.86
29$54.10$51.55$52.26
30$54.60$52.03$52.69
Show all 30 rows
#PriceSMA 10EMA 10
1$50.20--
2$50.80--
3$50.50--
4$51.30--
5$51.90--
6$51.40--
7$52.20--
8$52.80--
9$52.50--
10$53.10$51.67$51.67
11$53.60$52.01$52.02
12$53.20$52.25$52.24
13$52.70$52.47$52.32
14$52.10$52.55$52.28
15$51.60$52.52$52.16
16$51.20$52.50$51.98
17$50.60$52.34$51.73
18$50.90$52.15$51.58
19$50.30$51.93$51.35
20$49.80$51.60$51.07
21$49.50$51.19$50.78
22$49.90$50.86$50.62
23$50.40$50.63$50.58
24$51.10$50.53$50.68
25$51.80$50.55$50.88
26$52.40$50.67$51.16
27$53.00$50.91$51.49
28$53.50$51.17$51.86
29$54.10$51.55$52.26
30$54.60$52.03$52.69

Crossover: 5 vs 20 SMA

Traders call a short average crossing above a long one a bullish crossover, and crossing below a bearish one. Crossovers happen after the move has started and often give false starts in choppy prices.

PriceSMA 5SMA 20
$49.83$51.31$52.79$54.27159131721252930
Bottom axis: price number, oldest first.
Price #What happenedPrice
27Short average crossed above the long average$53.00

How it's calculated

SMA = sum of the last 10 prices / 10. The first SMA appears at price 10.

EMA = price x k + previous EMA x (1 - k), with k = 2 / (10 + 1) = 0.1818. The first EMA starts from the SMA of the first 10 prices.

Things to know

  • Common periods are 20, 50 and 200 days, but none of them is special. Shorter averages react faster and whipsaw more.
  • Price above a rising average is often read as an uptrend, and price below a falling one as a downtrend. These are descriptions of the past, not predictions.
  • Charting sites may seed the EMA differently, so their first values can differ slightly from these until enough prices have passed.
  • This is an educational calculator. It doesn't tell you to buy or sell anything.

Short answer

A simple moving average adds the last N prices and divides by N. An exponential moving average weights recent prices more, using k = 2 / (N + 1), so it reacts faster. Both smooth out noise to show direction, but they're built from past prices and always lag.

Example

For these 30 example prices, the 10-period SMA is $52.03 and the 10-period EMA is $52.69, with the last price at $54.60.

How it's calculated

SMA = (sum of the last N prices) / N. EMA = price x k + previous EMA x (1 - k), with k = 2 / (N + 1), starting from the SMA of the first N prices. A crossover happens when the short average moves from below the long average to above it, or the other way around.

Assumptions

  • Prices are pasted oldest first.
  • The first EMA starts from a simple average, which is the most common method. Some sites start differently, so their earliest values can differ slightly.

Frequently asked questions

How do you calculate a simple moving average?

Add up the closing prices for the period and divide by the number of prices. A 10-day SMA is the average of the last 10 closes, recalculated each day as the oldest price drops off.

What's the difference between SMA and EMA?

An SMA weights every price in the period equally. An EMA gives more weight to recent prices, so it turns sooner when prices change direction and also reacts more to short-lived moves.

What is a moving average crossover?

It's when a shorter average crosses a longer one, such as the 50-day crossing the 200-day. Traders call an upward cross bullish and a downward cross bearish, but crossovers come after a move starts and often give false starts.

Which moving average period should I use?

There's no right one. 20, 50 and 200 days are common because many people watch them. Shorter periods follow prices closely, longer ones smooth more and lag more.

Formulas and figures last checked Nov 5, 2026.

Go deeper

Related guides and calculators