Formula & Calculator

Simple Moving Average (SMA)

Calculates the average closing price of a crypto asset over a set number of recent periods, smoothing out short-term price noise.

CryptoTradingTechnical Analysis

Simple Moving Average Calculator Technical Indicator

SMA = Σ(Closing Prices) / n
SMA = average price over n periods  ·  Σ = sum of closing prices  ·  n = number of periods
⟹ Solve SMA, Sum, n
price
periods
price
Please fix the errors above.
Solve for:
Presets:
SMA
SMA: Sum: n:
✓ Copied!
SMA Value Gauge
Low Mid High
SMA = Sum of Closing Prices / n  ·  Used to smooth price data and identify trends.

Interpretation

SMA = Σ(Closing Prices) / n. The average price over a period. Used to identify trends and to smooth price data. A basic technical indicator.

SMA = Σ(Closing Prices) / n
Simple Moving Average (SMA)

Variables

SymbolQuantityUnit
SMASimple moving averagecurrency
Closing PricesSum of closing prices over the period
nNumber of periods

What it means

The Simple Moving Average (SMA) is a technical indicator that calculates the average price over a specific period (e.g., 20 days). It is used to identify trend direction and to generate buy/sell signals (e.g., when price crosses above/below the SMA). It is a lagging indicator, so it follows price movements. SMAs are widely used in technical analysis, often combined with other indicators. Understanding SMA is fundamental for any trader using technical analysis.

Worked example

Simple Moving Average – Two Detailed Examples

Real‑World
Scenario: A trader calculates the 5‑day SMA for BTC closing prices: 60,000, 61,000, 59,500, 62,000, 61,500. SMA = (60000+61000+59500+62000+61500) / 5 = 304,000 / 5 = 60,800. This smooths out daily volatility to identify the trend direction. The trader uses SMA as a support/resistance level.
ParameterValue
Prices (5-day)60000,61000,59500,62000,61500
n5
1Sum = 60,000 + 61,000 + 59,500 + 62,000 + 61,500 = 304,000
2SMA = 304,000 / 5 = 60,800
Result 60,800 ✓ 5‑day SMA
Scenario: For ETH, 5‑day closes: 3000, 3100, 2950, 3050, 3000. SMA = (3000+3100+2950+3050+3000)/5 = 15100/5 = 3020. This provides a baseline for the trend. The trader compares current price to SMA to gauge momentum.
ParameterValue
Prices3000,3100,2950,3050,3000
n5
1Sum = 15,100; SMA = 15,100/5 = 3,020
Result 3,020 ✓ ETH SMA
Insight: SMA is the average of prices over a specified period. It is a simple trend‑following indicator that helps identify support and resistance levels.

Common mistakes

  • SMA: Simple Moving Average – averages closing prices over n periods.
  • n: The number of periods – must be consistent.
  • Lagging indicator: SMA lags behind price action.
  • Different timeframes: Use consistent period lengths (e.g., daily, hourly).

Applications

Simple Moving Average (SMA) calculates the average of closing prices over a specified number of periods, smoothing out price fluctuations. This is one of the most basic and widely used technical indicators. Traders use SMA to identify trends, to generate buy/sell signals, and to set support/resistance levels. It is also used in the construction of other indicators like MACD. By understanding SMA, traders can make more informed decisions. It is a foundational tool for technical analysis.

  • Identifying the direction of the trend (uptrend/downtrend)
  • Setting dynamic support and resistance levels
  • Generating crossover signals (e.g., Golden Cross, Death Cross)
  • Filtering out short‑term price noise
  • Foundation for other indicators (MACD, Bollinger Bands)

Frequently Asked Questions

Q01How do I calculate the Simple Moving Average of a cryptocurrency's price over a specific number of recent periods, and what does it tell me about the trend?
A01

SMA = Σ(Closing Prices) / n. It smooths out short-term price fluctuations by averaging the closing prices over a set number of periods. A rising SMA indicates an uptrend, while a falling SMA suggests a downtrend.

Q02What is the most common period length used for SMA in crypto trading?
A02

The most commonly used periods are 20-day (short-term), 50-day (medium-term), and 200-day (long-term). Traders often look at crossovers between these to identify trend changes, like the "golden cross" (50-day crossing above 200-day).

Q03Why is SMA considered a lagging indicator?
A03

Because it is based on past prices. It only reflects the average of historical data, so it does not predict future movements. It confirms a trend that has already started, which is why it is used in conjunction with other indicators.

Q04How can I use SMA to identify support and resistance levels?
A04

In an uptrend, the SMA often acts as dynamic support, with price bouncing off it. In a downtrend, it can act as resistance. Traders watch for price touching the SMA and then continuing in the trend direction.

Q05What is the difference between SMA and EMA?
A05

SMA gives equal weight to all prices in the period. EMA gives more weight to recent prices, making it more responsive to new information. SMA is slower to react to price changes, while EMA is faster.

Q06Can I use SMA on different timeframes (e.g., hourly vs. daily)?
A06

Yes, SMA can be calculated on any timeframe – 1-minute, 1-hour, daily, weekly, etc. The choice depends on your trading strategy. Short-term traders use shorter periods, while long-term investors use longer ones.

Q07What happens to the SMA when the price makes a sudden large move?
A07

The SMA will gradually move towards the new price level over the next periods. The larger the period, the slower the adjustment. This is why SMA is less suitable for volatile markets.

Q08Is SMA useful for all types of assets or only cryptocurrencies?
A08

It is a universal indicator used for stocks, forex, commodities, and crypto. It works for any asset with historical price data.