Volatility quantifies how much an asset’s price fluctuates over time, expressed as an annualized percentage. Knowing whether a stock moves 1% or 4% per day fundamentally changes how you size positions, place stops, and select strategies. The calculator above computes historical volatility from closing prices and provides ATR as a practical volatility proxy.
How to Use
| Input | What to Enter | Example |
|---|---|---|
| Closing Prices | Daily closing prices for the asset (paste or enter a series) | $175.20, $177.80, $174.50… |
| Lookback Period | Number of trading days to analyze | 20 |
| Annualization Factor | Trading days per year (252 for stocks, 365 for crypto) | 252 |
The output shows annualized historical volatility as a percentage, daily volatility for single-day risk estimates, and ATR for dollar-based stop placement. Compare the result against the asset’s longer-term average to determine whether current conditions are unusually calm or turbulent.
Formula Explained
Historical Volatility = StdDev(ln(Close_t / Close_{t-1})) × √252
Daily log returns — The natural logarithm of each day’s price ratio (today’s close divided by yesterday’s close) converts raw price changes into continuously compounded returns. Log returns are preferred because they are additive across time and symmetric around zero, unlike simple percentage returns.
Standard deviation — The standard deviation of those log returns measures dispersion. A higher value means daily returns are spread further from the mean. For a 20-day lookback, you compute the standard deviation of the most recent 20 log returns. Shorter lookbacks (10-20 days) capture current market conditions; longer lookbacks (50-252 days) smooth out noise.
Annualization — Multiplying daily standard deviation by √252 (the square root of trading days per year) scales the figure to an annual rate. This makes volatility comparable across different timeframes and assets. For crypto markets that trade every day, use √365 instead.
ATR as a volatility proxy — The ATR position size calculator uses Average True Range, which measures the average daily high-low range including overnight gaps. While not a percentage-based measure, ATR translates directly into dollar terms for stop-loss placement and is often more practical for non-options traders.
Example Calculations
Scenario 1: Moderate Large-Cap Stock
- Asset: AAPL over 20 trading days
- Daily standard deviation: 1.18%
- Annualized HV: 1.18% × √252 = 1.18% × 15.87 = 18.73%
- ATR (14-day): $3.20
An 18.73% annualized volatility is typical for a mega-cap tech stock. With a $25,000 account risking 2%, a trader could reference the ATR of $3.20 to set a stop roughly one ATR away and use the position size calculator to determine share count.
Scenario 2: High-Volatility Growth Stock
- Asset: TSLA over 20 trading days
- Daily standard deviation: 3.16%
- Annualized HV: 3.16% × 15.87 = 50.15%
- ATR (14-day): $11.50
At 50% annualized volatility, TSLA moves nearly three times as much as AAPL daily. Position sizes must shrink proportionally. A trader using the same $25,000 account and 2% risk would hold far fewer TSLA shares to keep dollar risk constant — a principle the portfolio heat calculator enforces across all open positions.
Scenario 3: Cryptocurrency with 365-Day Annualization
- Asset: BTC/USD over 30 days
- Daily standard deviation: 2.84%
- Annualized HV: 2.84% × √365 = 2.84% × 19.10 = 54.24%
Crypto trades every day, so the annualization factor changes to √365. Despite a lower daily standard deviation than TSLA, the additional trading days push BTC’s annualized figure higher. Crypto traders should factor this in when comparing volatility across asset classes.
When to Use the Volatility Calculator
- Before sizing a position — High-volatility assets require smaller positions to maintain consistent dollar risk. Check current volatility before every entry.
- Setting stop distances — Use ATR or daily volatility to place stops at levels that respect normal price movement rather than arbitrary percentages.
- Comparing assets — Annualized volatility provides an apples-to-apples comparison between a $15 biotech stock and a $500 index ETF.
- Detecting regime changes — If 20-day volatility spikes well above the 252-day average, the market has shifted. Adjust your risk-reward expectations and tighten position sizes.
- Options context — Compare historical volatility to implied volatility. When IV is significantly higher than HV, options premiums are elevated — relevant for strategy selection even if you primarily trade shares.
Related Tools
- ATR Position Size Calculator — Converts ATR into a concrete position size by matching your dollar risk to an ATR-based stop distance.
- Position Size Calculator — The foundational tool for determining how many shares or contracts to trade based on account size and risk percentage.
- Risk of Ruin Calculator — Models the probability of account depletion given your win rate, payoff ratio, and risk per trade — all of which volatility directly influences.
Frequently Asked Questions
How do you calculate historical volatility?
Calculate the natural logarithm of each daily return (close-to-close), compute the standard deviation of those log returns over your chosen lookback period, then multiply by the square root of 252 to annualize. A 20-day lookback is standard for short-term trading.
What is the difference between historical and implied volatility?
Historical volatility measures how much an asset actually moved in the past using realized price data. Implied volatility is derived from current options prices and reflects what the market expects future volatility to be. When implied volatility exceeds historical volatility, options are considered relatively expensive.
What is a good volatility percentage for stocks?
Large-cap stocks typically show 15-25% annualized volatility. Growth and small-cap stocks often range from 30-60%. Anything above 60% is considered high volatility. The right level depends on your strategy — mean-reversion strategies favor higher volatility, while trend-following may work better in moderate ranges.
How does ATR differ from standard deviation volatility?
ATR (Average True Range) measures the average daily price range including gaps, expressed in dollar or point terms. Standard deviation volatility uses logarithmic returns and is expressed as a percentage. ATR is simpler and more intuitive for setting stops, while standard deviation is the standard for options pricing and statistical analysis.
Should I use 20-day or 252-day historical volatility?
Use 20-day volatility for short-term trading decisions like position sizing and stop placement. Use 50-day for swing trading context. Use 252-day (one year) for comparing an asset’s long-term risk profile or building a diversified portfolio. Shorter lookbacks react faster to regime changes but are noisier.