i What this calculator does
This calculator works out the Simple (SMA) or Exponential (EMA) Moving Average from your entered price points, giving you the smoothed average traders use to identify trend direction.
Enter your recent closing prices (oldest first) and choose SMA or EMA, and the calculator returns the moving average value, widely used to identify golden cross and death cross signals.
This calculator is for educational purposes only. Enter prices in chronological order, oldest first.
How to use the Moving Average Calculator
It works immediately. Change one value, leave the others, and the difference belongs to that change.
- 1. Price 1 (oldest)
- 2. Price 2
- 3. Price 3
- 4. Price 4
- 5. Price 5 (most recent)
- 6. Type
The result panel reports:
- Latest Price Most recent entry
- Period Data points used
Alongside the headline figures, the calculator reports price vs ma, period, sma, ema. Those are the numbers that usually explain why the headline result came out where it did.
The method is visible: the steps sit directly below the result.
One caution worth stating. A calculator answers exactly the question you pose to it, and the quality of the answer is set entirely by the inputs. Figures taken from a single period, an optimistic forecast, or a sample too small to be meaningful will produce a precise number that is not a reliable one. Where the result will inform a real decision, run it at several plausible inputs and treat the spread as the answer rather than any single figure.
The same applies to comparisons. A figure is informative against a benchmark, a sector average or the same measure over the company's own history, and much less so on its own. That context is what turns a number into a judgement.
See also: Beta Calculator and Bollinger Bands Calculator.
Frequently asked questions
What's the difference between SMA and EMA?
SMA (Simple Moving Average) weights every price point in the period equally, EMA (Exponential Moving Average) weights recent prices more heavily, making it react faster to new price action, many short-term traders prefer EMA for this responsiveness.
How many periods should I use for a moving average?
This depends entirely on your trading style, shorter periods (like 9 or 20) react faster and suit shorter-term trading, longer periods (like 50 or 200) smooth out noise and suit longer-term trend identification, the 50 and 200-period combinations are widely watched for golden cross and death cross signals.
Does this calculator handle both SMA and EMA?
Yes, select your preferred type, for EMA, the calculator uses the standard smoothing formula that weights the most recent price most heavily, for SMA, it simply averages all entered prices equally.
Can I use this for any market, not just forex?
Yes, the underlying calculation applies identically to any instrument with price history, shares, indices, crypto, and commodities alike, simply enter the relevant closing prices for your chosen instrument.
Why do moving averages lag behind current price?
Because they're calculated from historical price data, by definition, a moving average can only reflect where price has already been, not predict where it's going next, this lag is a mathematical certainty, not a flaw specific to any particular calculation method.
Want to embed this calculator on your site?
Embed this calculator
Free to use on your own site. Copy the code below and paste it where you want the calculator to appear.
<iframe src="https://www.tradeanswers.co.za/embed/moving-average-calculator.html"
width="100%" height="750" style="border:0;max-width:520px"
title="Moving Average Calculator - TradeAnswers" loading="lazy"></iframe>
<p><a href="https://www.tradeanswers.co.za/moving-average-calculator.html">Moving Average Calculator</a> by <a href="https://www.tradeanswers.co.za/">TradeAnswers</a></p>
