# Historical Volatility Calculator

Historic Volatility Calculator
Enter daily stock prices as a comma separated
list, old to new. Do not end list with a comma.

S.D. of Logarithmic Returns (N-1):
S.D. of Logarithmic Returns (N):
Mean Absolute Deviation:

The annualized volatility of stock prices can be calculated from historical data using several formulas. If you are inputting the annual volatility into the Black-Scholes formula, you use the standard deviation of the logarithmic returns since the Black-Scholes model assumes that stock prices are distributed log-normally. (And thus their returns are distributed normally.)

For other models or applications, you may use the mean absolute deviation of the daily returns. The mean absolute deviation is more robust than the standard deviation because extreme values are not squared.

To convert fluctuations in daily returns to an annual number, you multiply by the square root of 252, which is the number of trading days in a year. The equations are explained below and built into the calculator on the left. To compute historical volatility with the calculator, simply enter the daily stock prices (not the daily returns) as a comma separated list starting with the oldest price.

### Standard Deviation of Logarithmic Returns (Black-Scholes)

To compute the Black-Scholes volatility from historical stock price data, you first compute the daily logarithmic returns. If Xi and Xi+1 are consecutive prices, then the ith logarithmic return is

Li = ln(Xi+1/Xi)

If there are N + 1 stock prices, then there will be N returns. The standard deviation of these returns can be calculated by dividing by N (population standard deviation formula) or by N - 1 (sample standard deviation formula). Both are given in the calculator above.

To get the annualized volatility, multiply the standard deviation by sqrt(252) = 15.8745.

### Mean Absolute Deviation from the Mean

Another statistical measure of dispersion is the mean absolute deviation from the mean. If {p1, p2,..., pk} is a collection of k data points and their arithmetic average is p, then the MAD is given by the equation

MAD = (1/k)Σj=1...k |pj - p|

To compute the volatility of stock prices with this measure of dispersion, you first compute the daily returns Ri with the formula

Ri = (Xi+1 - Xi)/Xi

Then you find the mean absolute deviation of these returns and annualize the number by multiplying by 15.8745.