EMA (Exponential Moving Average): Meaning, Formula and Example
An EMA, or exponential moving average, is an average of closing prices in which recent days count more than older days. Because of that weighting, it turns sooner and follows price more closely than a simple moving average of the same length. Traders use EMAs to describe the direction of a trend and to compare short and long trends.
Try /ema in StockChat
Instant commands are free, on Android and the web.
How an EMA is calculated
Each day, EMA today = today's price × k + yesterday's EMA × (1 − k), where k = 2 ÷ (days + 1). For a 20-day EMA, k = 2 ÷ 21, about 0.095, so today's price gets about 9.5% of the weight and the rest comes from the previous EMA. Older prices fade out gradually instead of dropping off all at once.
EMA today = price × k + EMA yesterday × (1 − k), k = 2 ÷ (days + 1)EMA versus simple average
A simple moving average gives every day the same weight. An EMA leans toward the latest prices, so after a turn it changes direction sooner. That makes it quicker but also more prone to small wiggles in a choppy market.
Using two EMAs
A common pair is a fast 20-day EMA and a slower 50-day EMA. Price above a rising EMA describes an uptrend. When the 20 EMA crosses above the 50 EMA, it marks a change in the short-term trend; a cross below marks the opposite.
Common mistakes
Every average follows price, so it always turns after price does; treating a cross as an early warning is a mistake. In sideways markets crosses happen often and mean little. Picking a different length after the fact to make a chart look good is another trap.
Example
Say an example stock's 20-day simple average and 20-day EMA are drawn on its chart. When the stock turns up from ₹140, the EMA turns sooner and follows price more closely, because recent days count more. Adding a slower 50-day EMA, the 20 EMA later crosses above the 50 EMA, which marks a change in the short-term trend. It describes the past, not the future; it is a guide, not a forecast.
Frequently asked questions
What is an EMA?
An EMA (exponential moving average) is a moving average of closing prices in which recent days count more, so it reacts faster than a simple average of the same length.
How is an EMA calculated?
EMA today = today's price × k + yesterday's EMA × (1 − k), where k = 2 ÷ (number of days + 1). For a 20-day EMA, k = 2 ÷ 21 ≈ 0.095.
Is an EMA a buy or sell signal?
No. StockChat explains what an EMA means in past data; it is education, not a recommendation. StockChat is not registered with SEBI as an investment adviser or research analyst.
How can I check an EMA on a stock?
Type /ema in the chat of any stock in StockChat. It reads the past data and shows an EMA for it, as education, not a recommendation.