Moving Average Calculator: EMA Update
Calculate an EMA update from price, previous EMA and period. Also covers SMA and WMA formulas by hand, period choice and seeding. Zero entries become presets.
This moving average calculator updates an exponential moving average, or EMA, by blending the latest price with the previous average for your chosen period. It shows Current EMA and Smoothing Multiplier, the weight given to the latest price. You must already know the previous EMA. The form cannot calculate a simple moving average or detect crossing events from a price history. Zero or blank price and previous-average entries can silently become preset values.
The EMA update in plain numbers
An EMA blends the latest price with the previous average. The smoothing multiplier controls how much of the latest price enters that blend. For a period N, this tool uses multiplier = 2 ÷ (N + 1), then current EMA = previous EMA + multiplier × (current price − previous EMA). The constants belong to this EMA convention.
The Current Price label describes today’s closing price, and Previous EMA describes yesterday’s value. Those labels suit a daily calculation. If you are checking another chart interval, every input must refer to the same interval and price source. The calculator does not choose a chart or retrieve either value for you.
Fidelity’s EMA explanation describes the recursive update: the previous average carries earlier price information forward, while newer prices receive greater weight. TradingView’s documentation gives the period-based weighting convention. The result is a smoothed description of prices already supplied, not a future price estimate.
Worked example: carry an existing average forward
Use these made-up values: Current Price ₹110, Previous EMA ₹100 and EMA Period 9. The calculation is multiplier = 2 ÷ (9 + 1) = 0.2, then EMA = (110 − 100) × 0.2 + 100 = ₹102. The average moves only part of the way towards the new price.
| Example input or result | Value | Meaning |
|---|---|---|
| Current Price | ₹110 | Assumed latest close |
| Previous EMA | ₹100 | Assumed previous value for this same period |
| EMA Period | 9 | Assumed number of chart bars |
| Smoothing Multiplier | 0.2 | Weight applied to the latest price |
| Current EMA | ₹102 | Updated average |
For a second fictional bar, assume a new close of ₹115 and carry ₹102 into Previous EMA, keeping EMA Period at 9. The next EMA is (115 − 102) × 0.2 + 102 = ₹104.60. Replacing the previous average with the previous close would answer a different question and break the sequence.
A period means chart bars, not always days
On a daily chart each completed bar represents a day’s observation. On an intraday chart it represents that chart’s interval. Keep the prior EMA from the immediately preceding completed bar. A value taken from an unfinished bar can change before the bar closes, so record whether you are checking a final value or an interim one.
Changing EMA Period without replacing Previous EMA is another common mismatch. The previous value must have been calculated with the period you now enter. A prior short-period average cannot initialise a longer-period update just because both values are shown on the same chart.
Also keep the instrument consistent. A cash-index close, a futures close and an option premium describe different price series. An index EMA does not calculate the option’s price change. The currency mark displayed by the tool is formatting; it does not convert the data or reconcile different instruments.
Why the multiplier is rounded differently from the EMA
The multiplier card rounds its display to three decimal places. The update uses the full fraction before the current EMA is rounded to two decimal places. If you recompute using the shortened multiplier shown on the card, a small difference can appear. Keep the full fraction during your calculation and round the final value.
For an additional made-up check, take period 20, previous EMA ₹100 and price ₹110. The exact multiplier is 2 ÷ 21. The card shows 0.095, while the current EMA is ₹100.95 after rounding. Multiplying by the displayed 0.095 is only an approximation to the internal fraction.
EMA and simple moving average answer different calculations
A simple moving average, or SMA, is the arithmetic average of the prices in a chosen window. Fidelity’s SMA guide explains this equal-weight method. An EMA retains earlier information through its previous value and gives the newest observation more weight. You cannot reconstruct an SMA from only the latest price and previous EMA.
An initial EMA also needs a starting convention. Fidelity describes using an SMA for the first calculation. This form begins later in that process: it accepts an existing previous EMA and performs the next update. It does not build the initial average from historical closes.
For example, a fresh calculation from a short price list may differ from a chart that began its EMA much earlier. Before treating a difference as an error, match the starting history, price field, instrument, period and rounding. The form cannot inspect those settings.
What the result can tell you about a chart
The updated EMA can help you check an individual chart value. It cannot establish that a trend will continue or that price will return to the line. Fidelity notes that moving averages lag price and are not designed to identify exact turning points. More sensitivity to recent prices also means more short-term changes.
A crossover between moving averages requires both series and their earlier relationship. This form does not supply their histories. A current price above an EMA is only a comparison at that observation; it does not prove a crossover occurred on that bar.
If you are examining related indicators, the MACD calculator concerns differences between moving averages, while the Bollinger Bands calculator concerns bands around an average. The RSI calculator addresses average gains and losses.
How to calculate a simple moving average by hand
The form above updates an EMA only. It cannot take a list of prices, so it cannot give you a simple moving average (SMA). The SMA is easy to work out yourself: add the last N closing prices and divide by N.
Made-up example with N = 5 and closes of 100, 102, 101, 105 and 107. The sum is 515, so the 5-bar SMA is 515 ÷ 5 = 103. When the next close is 109, drop the oldest close (100) and add 109. The new sum is 102 + 101 + 105 + 107 + 109 = 524, so the SMA becomes 524 ÷ 5 = 104.8. The window slides forward one bar at a time, which is why it is called a moving average.
In a spreadsheet, put closes in column B and use =AVERAGE(B2:B6) for the first 5-bar value, then copy it down. A calculator that only needs the latest N closes is the quickest check on a chart reading.
SMA, EMA and WMA compared
| Type | How it weights prices | Formula idea | Lag |
|---|---|---|---|
| SMA | Every bar in the window counts equally | Sum of N closes ÷ N | About (N − 1) ÷ 2 bars on a steady trend |
| EMA | Newer bars count more, older bars fade without ever dropping out | Previous EMA + 2 ÷ (N + 1) × (price − previous EMA) | About (N − 1) ÷ 2 bars on a steady trend, similar to an SMA of the same N |
| WMA (linear) | Weights rise in a straight line, newest bar has the largest weight | Sum of price × weight ÷ sum of weights | About (N − 1) ÷ 3 bars on a steady trend, lower than the SMA |
One reference states that on a steadily trending series, an SMA lags by about (N − 1) ÷ 2 bars while a linear WMA lags by about (N − 1) ÷ 3 bars. That is why shorter-lag averages react faster, and also why they give more false turns in a sideways market.
Weighted moving average example
For a linear WMA with N = 5, the newest close gets weight 5, the one before gets 4, and so on down to weight 1 for the oldest. The weights add up to 5 + 4 + 3 + 2 + 1 = 15. Using the same made-up closes (oldest to newest: 100, 102, 101, 105, 107): 100×1 + 102×2 + 101×3 + 105×4 + 107×5 = 100 + 204 + 303 + 420 + 535 = 1,562. Divide by 15 to get 104.13 after rounding. The SMA of the same closes was 103, so the heavier weight on recent prices pulls the WMA higher in this rising example.
The weighted moving average indicator page covers it further.
How the first EMA value is seeded
An EMA needs a previous EMA, so the very first value has to come from somewhere. A common choice is to use the SMA of the first N closes as the starting point. Some platforms instead start from the first close, or from a longer warm-up of history. The seed fades over time but never disappears completely in the maths, so two charts that began on different days can show slightly different values for a long time.
Example: with N = 5, multiplier = 2 ÷ 6 = 0.3333. Seed the EMA with the SMA of 103. With a new close of 109, the next EMA is 103 + 0.3333 × (109 − 103) = 105. You can reproduce this in the calculator above by entering price 109, previous EMA 103 and period 5. All prices are illustrative.
Choosing the moving average period
There is no correct period. Shorter periods follow price closely and change direction often. Longer periods are smoother and slower. Traders commonly look at 20, 50 and 200 bars, but that is habit, not a rule. Pick the period that matches the holding time you plan, test it on past data in your own record, and keep it fixed while you review.
- Weekly to daily: a 10-week average covers 10 × 5 = 50 trading days, so it is close to a 50-day average on a daily chart. Weeks with holidays have fewer days, so the match is approximate.
- Intraday: period means bars. A 20-period average on a 5-minute chart looks back 20 × 5 = 100 minutes of trading.
- Keep the same setting across instruments when comparing, otherwise a difference in period is mistaken for a difference in the market.
The how to use moving averages guide and the golden cross entry cover how traders read the 50 and 200 averages, and where those readings fail.
Reading a moving average on the Nifty chart
A close above a moving average only tells you where that close sat relative to the average on that bar. In trending phases price tends to stay on one side of the line, and in sideways phases it crosses back and forth. A crossover between two averages is a delayed signal because both are built from past prices. None of this predicts the next move.
If you use averages in trades, record the period, the instrument, the chart interval and whether you acted on the bar close or intrabar. A bar close above the line does not mean your order filled at the line. Your journal can then show whether trades taken on average-based setups really did better than your other trades. The moving average crossover guide has more on that.
Moving average versus average price
People searching for a "moving average cost" calculator often mean the average buy price of a position built in several purchases. That is a different calculation: total money spent divided by total quantity. For crypto, the crypto average calculator does it. The moving average here is a chart indicator of price, not your cost.
Moving average calculator questions
Sources
- Fidelity: EMA method; Fidelity: simple averages; TradingView: EMA weighting. Checked 15 Oct 2026.
Related Topics
Related Articles
IPO Timeline Calculator
IPO timeline in India from close to listing: T+3 steps, last-day cut-off times, holidays and SME issues. The calculator itself still uses an older schedule.
Absolute Returns Calculator: Total Gain or Loss
Absolute return calculator with formula, worked rupee examples and a comparison with CAGR and XIRR. Learn when absolute return misleads, such as for SIPs.
Options Rollover Calculator
Work out the debit or credit of rolling an option from premiums and lots. Learn roll up, down and out, charges, STT, and futures rollover cost and percentage.
Trading Expectancy Calculator: Formula and Example
Trading expectancy calculator (EV per trade) from win rate, average win and average loss. See R-multiples, profit factor, sample size and low win-rate examples.
Trading Emotion Tracker: Review Feelings and Plan Discipline
Free trading emotion tracker. Log the mood, intensity and plan discipline behind a trade, get a simple rule-based score, and keep a record to review later.
Revenge Trading Detector: Check Your Next Decision
Revenge trading signs, the psychology behind it and a free manual detector. The score uses your answers only, and its rupee cards use assumed amounts.
The trading journal for every Indian trader, from Nifty and Bank Nifty F&O to stocks. Each style gets its own Trade Analysis page, with P&L in rupees.
- Journal every style: One Trade, Scalping, Intraday, Swing, Positional
- Import the trade file from Zerodha, Upstox, Dhan, Angel One, Groww or any broker
- AI mentor finds your repeat mistakes
- Behavioural analytics catch tilt early
- Trading calendar with P&L heatmap
- Pre-trade checklist flags risks
Free plan · Pro yearly ₹1,999 · No broker login needed







