Explainer · Swing Trading

How to Calculate ATR: Average True Range, Step by Step

Learning how to calculate ATR by hand makes the number on your chart readable. It averages each day's true range, and true range counts the overnight gap that a plain high-low range leaves out.

AI-assisted, reviewed by John James → 5 min read Published

Short answer

True range is the largest of today's high minus today's low, the high minus yesterday's close, and yesterday's close minus the low, each taken as an absolute value. ATR is the average of true range over a set number of days, 14 by common default, usually smoothed as (previous ATR x 13 + today's true range) / 14.

A stock closes at $51.00. Overnight, news lands, and the next day it opens higher and trades between $52.10 and $52.90. The day’s high-low range is 80 cents. Yet the stock traveled $1.90 from the last close to the top of that day. True range is built to catch the bigger figure. For each day, take three distances: high minus low, high minus the previous close, and the previous close minus the low, all as absolute values. The largest is that day’s true range. Average it over 14 days and you have ATR.

Why three distances?

Because of gaps. A plain range only sees what happened between the open and the close of one session. If a stock jumps overnight and then drifts in a tight band, the high minus the low looks calm, even though anyone holding the stock felt a much larger move, and the measure would quietly understate how far the price can travel from one close to the next.

The two extra distances fix that. High minus the previous close catches a gap up. The previous close minus the low catches a gap down. On a normal day with no gap, high minus low wins.

Absolute values matter here. A distance can’t be negative. If the previous close sits above today’s high, high minus close comes out negative, so drop the minus sign and keep the size.

How do you work out true range over several days?

One day at a time. Write down the previous close, the high and the low, run the three subtractions, and keep the largest. Here are three hypothetical days.

Look at Day 2. The session itself was the quietest of the three, an 80-cent range, yet its true range is the largest. The gap is why.

Days 1 and 3 are ordinary. No gap worth mentioning, so high minus low carries the day both times.

How does the 14-day smoothing work?

ATR comes from J. Welles Wilder Jr., who set it out in his 1978 book New Concepts in Technical Trading Systems. The 14-period setting is his. So is the smoothing, which carries the old ATR forward: multiply yesterday’s ATR by 13, add today’s true range, and divide by 14.

A $1.90 day pulled the average up by three cents. Smoothing is meant to do that. One wide day moves ATR only a little, and it takes a run of wide days to move it a lot, so the number describes the stock’s recent habit and doesn’t jump around every time a single session misbehaves.

Why doesn’t your number match the chart?

Settings. Many chart platforms let you pick the averaging method, and some use a simple average of the last 14 true ranges in place of the smoothing. The two methods give slightly different values. Both are fair averages of the same true ranges.

The start date matters too. Smoothed ATR keeps a faint memory of every day since the calculation began, so two charts that started on different dates can disagree slightly even with the same setting. Small gaps like that don’t change how you use it.

How do you compare ATR across stocks?

Divide by the price. A dollar ATR on its own can’t tell a cheap stock from an expensive one, so a $1.53 ATR on a $52.50 stock and the same dollar figure on a stock priced several times higher describe very different amounts of movement, and putting them side by side in dollars would mislead you about which one is jumpier.

As a share of price, it’s comparable.

That stock’s average true range is about 2.9% of its price, gaps counted. A stock running at a higher percentage needs a wider stop for the same setup.

How do you set a stop with ATR?

Pick a multiple and measure down from the entry. Two ATRs below a long entry is one common choice. The arithmetic is short.

The appeal is that the stop adapts. A volatile stock gets more room, and a quiet one gets less. It also keeps the stop outside the stock’s normal daily wobble.

A fixed ATR multiple doesn’t know where the chart’s turning points are, though. The other common approach puts the stop under the last swing low and uses a fraction of ATR only as a buffer; where to put the stop on a swing trade works through that method.

How do you size the position from an ATR stop?

Divide your risk budget by the stop distance. Say you risk $200 per trade.

Round down, always. Rounding up puts you over budget. That $200 is one R, the unit for measuring the result, so a trade stopped out at $49.44 costs about 1R and R-multiples let you compare it with every other trade on the same scale. The swing trade risk calculator runs this division for you.

With a large ATR, the stop widens and the share count shrinks, so the $200 at risk holds steady across stocks that move very differently.

What doesn’t ATR tell you?

Direction, for a start. ATR measures size, not direction. A stock falling steadily and a stock rising steadily can show the same ATR, and the number has no view on which way the next move goes.

It also lags. Because it averages the past, ATR after a quiet spell will be small, and a stop set at 2 ATR from that small figure can be tight going into an event that changes the stock’s behavior overnight. Earnings are the obvious case. ATR says nothing about the size of the gap at a report, which can be far larger than any ordinary day, and planning a swing trade around earnings covers what to do with the date on the calendar.

Swing points still decide where a stop makes sense. Swing highs and swing lows mark the prices that would prove a trade idea wrong, and ATR is best used to size the room around those levels.

Readers also ask

Is a higher ATR good or bad?

Neither. A higher ATR says the stock has been covering more ground per day, gaps included, so stops need more room and each share carries more risk. It says nothing about which way the price will go next, and a rising ATR can come with a rally just as easily as with a selloff.

Can ATR be used on intraday or weekly charts?

Yes. The same formula works on any bar length: true range is worked out per bar, using the prior bar's close, and then averaged. A 14-period ATR on a weekly chart covers fourteen weeks, so it usually reads larger than the daily figure for the same stock, and the two should not be mixed in one stop rule.

What does ATR as a percentage of price tell you?

Dividing ATR by the share price turns a dollar figure into a share of price, which lets you compare a low-priced stock with an expensive one. Two stocks with the same dollar ATR can move very differently in percentage terms, and the percentage is what matters for comparing how jumpy they are.