TRADING
Average True Range (ATR) Calculator — Measure Volatility for Stop Losses
By Worldtickers ·
Use our free Average True Range calculator to measure volatility and set data-driven stop losses. Enter high, low, and close prices to calculate ATR and apply it to position sizing and trailing stops.
This average true range (atr) calculator — measure volatility for stop losses tool focuses on use our free Average True Range calculator to measure volatility and set data-driven stop losses. Enter high, low, and close prices to calculate ATR and apply it to position sizing and trailing stops. Use it to size trades, compare risk levels, estimate market exposure, and review entries, exits, volatility, leverage, and stop levels before committing capital.
Average True Range Calculator
Average True Range
Calculate True Range and ATR as a percentage of price
What Is ATR?
The Average True Range (ATR) is one of the most versatile and widely used volatility indicators in technical analysis. Developed by J. Welles Wilder Jr. in his 1978 book "New Concepts in Technical Trading Systems," ATR measures the average magnitude of daily price swings for an asset over a specified period. Unlike a simple range calculation that only considers the current day's high and low, ATR incorporates gaps between sessions by using the previous close in its calculation, giving a more complete and honest picture of actual volatility.
The genius of ATR lies in its simplicity and adaptability. It works for any asset class — stocks, forex, commodities, crypto, indices — and on any timeframe. It automatically adjusts to changing market conditions: expanding during volatile periods and contracting during calm ones. This adaptive quality makes ATR particularly valuable for stop-loss placement, because it ensures your stop distance reflects current market conditions rather than an arbitrary fixed percentage that might be too tight in volatile markets and too wide in quiet ones.
ATR is expressed in the same units as the price of the asset — dollars for stocks, pips for forex, points for indices. A stock trading at $200 with an ATR of $5 typically moves about $5 per day (including gaps). This absolute value is what makes ATR so practical for position sizing and stop-loss calculation: you can directly translate the ATR value into dollar risk per share, which feeds directly into your position sizing formula.
How to Use This Calculator
This ATR calculator takes three price inputs — high, low, and close — along with the previous session's close and a lookback period to compute the Average True Range.
High, Low, Close (Current Period)
Enter the highest price, lowest price, and closing price for the current trading period (typically a day). These three values define the trading range for the period. The high and low capture the full extent of price movement, while the close represents where the market settled.
Previous Close
Enter the closing price of the previous trading period. This is essential for the True Range calculation because it allows ATR to capture gaps. If the current high is higher than the previous close, the gap between the previous close and the current high is part of the true range. Without this value, gaps would be invisible to the volatility calculation.
ATR Period
Enter the number of periods to average. The standard default is 14 periods. A 14-period ATR on a daily chart averages the true ranges of the last 14 trading days. Shorter periods make ATR more responsive to recent volatility changes; longer periods produce a smoother, more stable reading. For day trading, 7 to 14 periods is common; for swing trading, 14 to 20; for position trading, 20 to 50.
The Formula Explained
The True Range formula is: True Range = Max(High − Low, |High − Previous Close|, |Low − Previous Close|).
This takes the largest of three values. The first (High − Low) is the simple intraday range. The second and third capture gaps by measuring the absolute distance from the previous close to the current high or low. If there is no gap, the simple range dominates and the True Range equals High − Low. If there is a gap up, the second value (|High − Previous Close|) dominates. If there is a gap down, the third value (|Low − Previous Close|) dominates.
The ATR is then calculated as a smoothed average of True Ranges. Wilder's original method uses an exponential smoothing: ATR_today = ((ATR_yesterday × (n − 1)) + True Range_today) / n, where n is the ATR period. For the first ATR calculation, a simple average of the first n True Ranges is used. This smoothing gives more weight to recent True Ranges while maintaining stability, making the ATR responsive to changing conditions without being overly reactive to single-session spikes.
Using a concrete example: if yesterday's ATR (14-period) was $4.50, today's True Range is $6.00, and the period is 14, today's ATR = ((4.50 × 13) + 6.00) / 14 = (58.50 + 6.00) / 14 = $4.61. The ATR increased slightly because today's range was larger than the average, pulling the smoothed average upward. If today's range had been $3.00 (below average), the ATR would have decreased.
Real-World Examples
Example 1: Setting a Stop Loss
A trader buys a stock at $150 with a 14-day ATR of $4.50. Using a 2x ATR stop loss, the stop is placed at $150 − (2 × $4.50) = $141. This means the trader is giving the stock room equal to twice its average daily swing. If the stock drops to $141, the trade is closed for a loss of $9 per share. The 2x ATR multiple is a common default — it is wide enough to survive most normal fluctuations but tight enough to limit losses if the trade goes wrong.
Example 2: Position Sizing
A trader with a $25,000 account wants to risk 1% per trade ($250). The stock has an ATR of $3.75, and the trader uses a 2x ATR stop ($7.50 per share). Position size: $250 / $7.50 = 33 shares. Total position value: 33 × entry price. If the stock is $100, the position is $3,300 — about 13% of the account. If the ATR were $7.50 instead, the position size would be $250 / $15 = 16 shares, or about 6.4% of the account. The higher volatility produces a smaller position, keeping dollar risk constant.
Example 3: Trailing Stop
A trader buys a stock at $80 with an ATR of $2.50. The initial 2x ATR trailing stop is at $75. The stock rallies to $95 over several weeks, and the trailing stop moves up to $95 − $5 = $90. The stock then pulls back to $91 — the stop is not triggered. The stock resumes its rally to $100, and the stop moves to $95. If the stock then drops below $95, the position is closed with a $15 gain per share. The trailing ATR stop automatically adapted to the stock's price level and maintained a consistent risk distance throughout the trade.
Tips and Limitations
Choose the Right ATR Multiple for Your Style
The ATR multiple determines how wide your stop is. A 1.5x ATR stop is aggressive — it will be triggered more often by normal noise but will produce smaller losses when triggered. A 3x ATR stop is conservative — it gives the trade more room but risks larger losses. Day traders often use 1.5x to 2x ATR; swing traders use 2x to 3x ATR; position traders may use 3x to 5x ATR. The right multiple depends on your timeframe, the asset's typical volatility, and your risk tolerance. Start with 2x ATR and adjust based on your hit rate — if you are being stopped out too often, increase the multiple.
ATR Is Absolute, Not Percentage
A $5 ATR on a $50 stock (10%) is very different from a $5 ATR on a $500 stock (1%). Always convert ATR to a percentage of the current price when comparing volatility across assets of different price levels. ATR in absolute terms is useful for position sizing and stop placement on a single asset; percentage conversion is necessary for cross-asset comparison.
ATR Lags During Rapid Volatility Changes
ATR is a smoothed average, which means it lags behind sudden volatility spikes. During a flash crash or news-driven gap, ATR will not immediately reflect the full extent of the volatility expansion. If you are trading during extreme events, consider using a shorter ATR period or manually adjusting your stops to account for the current conditions rather than relying solely on the smoothed ATR reading.
Combine with Other Indicators
ATR alone does not tell you the direction of the trend — it only measures volatility. Combine ATR with trend indicators (moving averages, trendlines), momentum indicators (RSI, MACD), and support/resistance levels to form a complete trading plan. ATR-based stops work best when placed on the correct side of the trend: below support for long trades, above resistance for short trades, with the ATR multiple ensuring adequate room for normal fluctuations.
Frequently Asked Questions
What is the Average True Range (ATR)?
The Average True Range (ATR) is a technical indicator that measures the volatility of an asset by calculating the average of its true ranges over a specified period. Developed by J. Welles Wilder Jr. in 1978, ATR captures the typical magnitude of daily price swings, including gaps. Unlike simple range calculations that only use the current day's high and low, ATR accounts for gaps between sessions by incorporating the previous close, giving a more complete picture of actual trading range and volatility.
What is the True Range?
True Range is the largest of three values: (1) current high minus current low, (2) absolute value of current high minus previous close, and (3) absolute value of current low minus previous close. The three values ensure that gaps between sessions are captured. If a stock closes at $100 and opens the next day at $105, the simple range (high minus low) might only show $2 if the stock traded between $105 and $107, but the True Range would be $5 ($105 − $100 = $5 using the second calculation), capturing the gap that the simple range misses.
How do traders use ATR for stop losses?
ATR-based stop losses are one of the most practical applications of the indicator. The most common approach is to set your stop loss at a multiple of ATR below your entry price (for long positions) — typically 1.5x to 3x ATR. This ensures your stop is wide enough to survive normal price fluctuations while still protecting against a genuine reversal. A stop placed at 2x ATR below entry means you are giving the trade room equal to twice the average daily swing. This is a data-driven alternative to arbitrary stop distances like '5% below entry' or '$2 below entry'.
What is the default ATR period?
The default ATR period used by Wilder and most charting platforms is 14 periods. For daily charts, this means the 14-day ATR, which averages the true ranges of the most recent 14 trading days. Shorter periods (7 to 10) make ATR more responsive to recent volatility changes, while longer periods (20 to 50) produce a smoother, more stable ATR that is less affected by individual large-range days. The 14-period default is a good general-purpose setting, but you should adjust the period based on your trading timeframe and the asset's typical volatility profile.
Is ATR the same as volatility?
ATR and volatility are closely related but not identical. ATR measures the average magnitude of daily price ranges in absolute dollar terms (or pips for forex, points for indices). Volatility, as measured by standard deviation of returns, measures the dispersion of returns as a percentage. A $500 stock with a $10 ATR has a daily range of about 2%, while a $50 stock with a $3 ATR has a daily range of about 6% — the second stock is more volatile even though its ATR is smaller in dollar terms. Use ATR for stop-loss placement and position sizing in dollar terms; use percentage volatility for comparing assets of different price levels.
How does ATR change in different market conditions?
ATR expands during volatile, trending, or crisis markets and contracts during calm, sideways markets. During the 2008 financial crisis, the ATR of the S&P 500 expanded to levels 5 to 10 times higher than normal. During quiet bull markets, ATR can shrink to very low levels. This adaptive quality is ATR's greatest strength — it adjusts to current conditions automatically, which is why ATR-based stops widen during volatile periods (giving trades more room) and tighten during calm periods (locking in gains more quickly).
Can ATR be used for position sizing?
Yes, and this is one of the most important uses of ATR. The ATR-based position sizing formula is: Position Size = (Account × Risk %) / (ATR × Multiplier). If you have a $10,000 account, risk 1% per trade ($100), the ATR is $2, and you use a 2x ATR stop ($4), your position size is $100 / $4 = 25 shares. This ensures that your dollar risk per trade is consistent regardless of the asset's volatility. A more volatile asset (higher ATR) produces a smaller position; a less volatile asset (lower ATR) produces a larger position.
What is the difference between ATR and Bollinger Bands for measuring volatility?
ATR measures the average true range in absolute price terms, while Bollinger Bands measure volatility as the standard deviation of closing prices around a moving average, expressed as bands above and below the average. ATR uses the full range of each day (including gaps via the true range calculation), while Bollinger Bands use only closing prices. ATR is generally preferred for stop-loss placement because it captures the actual trading range, while Bollinger Bands are more useful for identifying overbought/oversold conditions and volatility squeezes.
What is a trailing ATR stop?
A trailing ATR stop is a stop-loss level that moves with the price, always maintaining a distance of a specified ATR multiple from the highest price reached since entry. For example, if you buy a stock at $100 with a 2x ATR trailing stop, and the ATR is $3, your initial stop is $94. If the stock rallies to $110, your stop moves up to $104 ($110 − $6). If the stock then drops to $105, your stop stays at $104 (it does not move down). The trailing ATR stop automatically adapts to changing volatility and locks in profits as the trend extends.