ATR Calculation in Excel Calculator
Calculate True Range and Average True Range from OHLC data, compare Wilder smoothing with simple moving average, and visualize volatility instantly. This premium tool is designed to mirror the exact logic many traders build in Excel.
Interactive ATR Calculator
Paste matching lists of highs, lows, and closes. Use commas, spaces, or new lines. The calculator returns the latest ATR, the most recent True Range, and a row by row breakdown you can replicate in Excel.
Results and Volatility Chart
The chart plots True Range and ATR together so you can see whether current movement is expanding or cooling relative to the rolling average.
Ready to calculate
Enter at least one full period of OHLC values, then click Calculate ATR. Results will appear here.
How to do ATR calculation in Excel the right way
Average True Range, usually shortened to ATR, is one of the most practical volatility indicators used by traders, analysts, and spreadsheet power users. If you want to measure how much a market typically moves over a period, ATR is one of the cleanest tools available. It does not try to predict direction. Instead, it tells you how much price is moving. That makes it useful for position sizing, stop placement, market screening, and comparing volatility across time.
When people search for atr calculation in excel, they are usually trying to solve one of three problems. First, they want the exact formula for True Range. Second, they want to know how to turn that series into Average True Range inside Excel. Third, they want a reliable method that matches what charting platforms display. This guide walks through all three in a practical way and explains how to avoid the mistakes that produce mismatched ATR values.
What ATR measures
ATR measures market volatility by averaging the True Range over a chosen number of periods. The key word is true. A simple daily range only looks at High – Low. That misses overnight gaps, which can materially increase actual movement. True Range fixes that by considering the current high and low relative to the previous close.
The Excel logic behind True Range
Suppose your worksheet uses this structure:
- Column A: Date
- Column B: High
- Column C: Low
- Column D: Close
- Column E: True Range
- Column F: ATR
In row 2, if it is your first row of price data, you often set True Range equal to High – Low because there is no previous close. In cell E2, that is:
=B2-C2
In row 3 and below, use the full True Range formula. In Excel, that is commonly written as:
=MAX(B3-C3,ABS(B3-D2),ABS(C3-D2))
This formula compares the intraday range with the two gap aware ranges. It is the standard way to compute True Range in Excel, Google Sheets, and most data models.
How to calculate ATR in Excel
Once the True Range column exists, ATR is simply an average of True Range values, but there are two common methods:
- Simple Moving Average ATR: each ATR value is the arithmetic mean of the last N True Range values.
- Wilder ATR: the initial ATR is the average of the first N True Range values, and subsequent values use a smoothing formula.
Wilder smoothing is the version most charting software uses. If your Excel results do not match your platform, this is usually the first place to check.
Excel formula for simple moving average ATR
If your period is 14 and True Range starts in column E, the first full 14 period ATR appears on the 15th row of data if row 2 is your first price row. In the ATR column, you could use:
=AVERAGE(E2:E15)
Then the next row would become:
=AVERAGE(E3:E16)
This version is easy to audit, easy to explain, and especially useful for teaching or quick validation. The tradeoff is that it can react a little differently from popular trading platforms if those platforms use Wilder smoothing.
Excel formula for Wilder ATR
Wilder ATR begins with a simple average, then uses a recursive formula. For a 14 period ATR:
- First ATR = average of first 14 True Range values
- Next ATR = ((Previous ATR x 13) + Current TR) / 14
That means if the first ATR is in F15, you could use:
=AVERAGE(E2:E15)
Then in F16:
=((F15*13)+E16)/14
Copy that down the sheet and you have the classic ATR used in technical analysis software.
Worked example of atr calculation in excel
The following sample shows actual values and the resulting True Range calculations. These are not theoretical placeholders. They are numeric examples so you can check your own spreadsheet logic.
| Row | High | Low | Prev Close | High-Low | |High-Prev Close| | |Low-Prev Close| | True Range |
|---|---|---|---|---|---|---|---|
| 1 | 48.70 | 47.79 | n/a | 0.91 | n/a | n/a | 0.91 |
| 2 | 48.72 | 48.14 | 48.16 | 0.58 | 0.56 | 0.02 | 0.58 |
| 3 | 48.90 | 48.39 | 48.61 | 0.51 | 0.29 | 0.22 | 0.51 |
| 4 | 48.87 | 48.37 | 48.75 | 0.50 | 0.12 | 0.38 | 0.50 |
| 5 | 48.82 | 48.24 | 48.63 | 0.58 | 0.19 | 0.39 | 0.58 |
Notice how the True Range is not always just the high minus low. In some markets, especially around earnings, economic releases, or major overnight news, the gap relative to the previous close can dominate. That is why ATR is more useful than a plain range measure.
Comparison of ATR periods using the same data
Period length changes how sensitive ATR is. Shorter settings react faster. Longer settings smooth more noise. The table below shows example outputs from the same sample set used in the calculator.
| ATR Period | Method | Interpretation | Typical Use Case | Response Speed |
|---|---|---|---|---|
| 7 | Wilder | More responsive to recent volatility spikes | Short term swing trading and tactical stops | Fast |
| 14 | Wilder | Industry standard balance between noise and stability | General chart analysis and risk sizing | Medium |
| 20 | SMA or Wilder | Smoother reading that filters more short term bursts | Position trading and broad volatility benchmarking | Slower |
Why your Excel ATR may not match your chart
Many people build a spreadsheet, compare the result to TradingView, MetaTrader, Thinkorswim, or another platform, and then assume their formula is wrong. Often, the formula is fine. The mismatch comes from methodology or data handling. Here are the most common causes:
- Different smoothing method: using SMA instead of Wilder ATR.
- Wrong previous close reference: pointing to the wrong cell when computing True Range.
- Insufficient warmup history: Wilder smoothing becomes more stable with more historical rows.
- Rounded source data: if your sheet uses two decimals but the platform stores more precision, the final ATR can differ slightly.
- Session differences: regular hours data and extended hours data can produce different highs, lows, and closes.
Best Excel setup for reliable ATR work
If you want dependable results, structure your workbook so formulas are transparent and easy to audit. A practical approach is:
- Import or paste clean OHLC data into dedicated columns.
- Create a True Range helper column rather than nesting too much logic in one cell.
- Place the ATR period in a separate input cell, such as H1, so formulas can reference it dynamically.
- Use absolute references where needed, such as $H$1 for the period.
- Document whether you are using Wilder or SMA ATR.
If your period is stored in H1 and True Range is in column E, the first dynamic SMA ATR formula could look like:
=AVERAGE(INDEX(E:E,ROW()-$H$1+1):E15)
Advanced Excel users can also build ATR with structured references inside an Excel Table, which makes formulas easier to maintain when new rows are added.
How traders use ATR after calculating it
ATR is not just a spreadsheet exercise. Once you can calculate it, you can use it to make better risk decisions. Common applications include:
- Stop loss placement: for example, 1.5 x ATR below entry for a long position.
- Position sizing: reducing share count when ATR is high to keep dollar risk stable.
- Volatility filtering: screening for instruments with expanding ATR to find active markets.
- Target setting: estimating realistic intraday or swing movement ranges.
- Comparative analysis: evaluating whether a market is currently quiet or unusually active relative to its own history.
One of the strongest benefits of ATR is that it converts raw price movement into a consistent volatility framework. A stock moving 2 points per day may be highly volatile if it trades at 20, but fairly calm if it trades at 500. ATR gives context.
Useful tips for atr calculation in excel
- Keep raw data separate from calculated columns.
- Use named ranges if you share the workbook with others.
- Avoid manual edits in formula cells.
- Check for blank rows or text values before averaging.
- Use conditional formatting to highlight volatility expansions.
Common mistakes beginners make
The first mistake is using the current close instead of the previous close in the True Range formula. The second is averaging fewer rows than the chosen period. The third is assuming ATR is directional. ATR rising does not mean price will go up. It means movement is increasing. A falling ATR does not predict a drop. It usually means the market is becoming less volatile.
Another common issue is forgetting that ATR values are price based, not percentage based. A 2.00 ATR means the instrument has moved an average of about 2 price units over the lookback method you selected. To compare across assets with very different prices, many analysts also compute ATR as a percent of price.
Authoritative resources on volatility and market risk
While ATR itself is a trading indicator, the broader concept of volatility and investor risk is covered by reputable public institutions. For foundational reading, review the U.S. Securities and Exchange Commission investor education glossary on volatility at Investor.gov. The U.S. Commodity Futures Trading Commission provides educational material on derivatives, leverage, and market risk at CFTC.gov. For an academic perspective on market data and financial analysis, explore resources from the NYU Stern School of Business.
Final takeaway
If you understand the sequence of steps, atr calculation in excel is straightforward. First compute True Range. Then choose either a rolling average or Wilder smoothing. Finally, validate your output against your data source and charting method. Once your template is correct, ATR becomes one of the most reusable tools in your workbook. You can apply it to stocks, futures, forex, ETFs, and even custom datasets.
The calculator above gives you a fast way to test values before you build or audit your own spreadsheet. If you want your Excel model to match most trading platforms, select Wilder smoothing, use clean OHLC data, and make sure each True Range row references the previous close correctly.