Although there are several ways to measure the volatility of a given security, analysts typically look at historical volatility. Historical volatility is a measure of past performance. Because it allows for a more longterm assessment of risk, historical volatility is widely used by analysts and traders in the creation of investing strategies. (Want to improve your Excel skills? Take Investopedia Academy's Excel Course.)
To calculate volatility of a given security in Microsoft Excel, first determine the time frame for which the metric will be computed. A 10day period is used for this example. Next, enter all the closing stock prices for that period into cells B2 through B12 in sequential order, with the newest price at the bottom. Note that you will need the data for 11 days to compute the returns for a 10day period.
In column C, calculate the interday returns by dividing each price by the closing price of the day before and subtracting one. For example, if McDonald's (MCD) closed at $147.82 on the first day and at $149.50 on the second day, the return of the second day would be (149.50/147.82)  1, or .011, indicating that the price on day two was 1.1% higher than the price on day one.
Volatility is inherently related to standard deviation, or the degree to which prices differ from their mean. In cell C13, enter the formula "=STDV(C3:C12)" to compute the standard deviation for the period.
As mentioned above, volatility and deviation are closely linked. This is evident in the types of technical indicators that investors use to chart a stock's volatility, such as Bollinger Bands, which are based on a stock's standard deviation and the simple moving average (SMA). However, historical volatility is an annualized figure, so to convert the daily standard deviation calculated above into a usable metric, it must be multiplied by an annualization factor based on the period used. The annualization factor is the square root of however many periods exist in a year.
The table below shows the volatility for McDonald's within a 10day period:
The example above used daily closing prices, and there are 252 trading days per year, on average. Therefore, in cell C14, enter the formula "=SQRT(252)*C13" to convert the standard deviation for this 10day period to annualized historical volatility.

How is standard deviation used to determine risk?
Understand the basics of calculation and interpretation of standard deviation, and how it is used to measure and determine ... Read Answer >> 
What is the difference between standard deviation and average deviation?
Understand the basics of standard deviation and average deviation, including how each is calculated and why standard deviation ... Read Answer >> 
How is risk aversion measured in modern portfolio theory (MPT)?
Find out how risk aversion is measured in modern portfolio theory (MPT), how it is reflected in the market and how MPT treats ... Read Answer >> 
What is the difference between standard deviation and Zscore?
Understand the basics of standard deviation and Zscore, and learn how each is calculated and used in the assessment of market ... Read Answer >> 
Which market indicators reflect volatility in the stock market?
Learn the most commonly used technical indicators of stock market volatility that are watched by stock market traders and ... Read Answer >>

Investing
Why Standard Deviation Should Matter to Investors
Think of standard deviation as a thermometer for risk, or better yet, anxiety. 
Investing
The Uses And Limits Of Volatility
Check out how the assumptions of theoretical risk models compare to actual market performance. 
Investing
Tips for investors in volatile markets
Market volatility is inevitable, trying to time the market is extremely difficult. One solution is to invest long term. Find out the best investment strategy to handle the market volatility. 
Investing
Calculating volatility: A simplified approach
Though most investors use standard deviation to determine volatility, there's an easier and more accurate way of doing it: the historical method. 
Investing
Using Historical Volatility To Gauge Future Risk
Use these calculations to uncover the risk involved in your investments. 
Investing
Understanding Volatility Measurements
Learn how to choose a fund with an optimal riskreward combination. Find more information about standard deviation, beta, and more. 
Trading
Trading with Gaussian models of statistics
The study of statistics originated from Carl Friedrich Gauss and helps us understand markets, prices and probabilities, among other applications. 
Investing
Understanding The Sharpe Ratio
The Sharpe ratio describes how much excess return you are receiving for the extra volatility that you endure for holding a riskier asset.

Volatility Ratio
The volatility ratio is a technical measure used to identify ... 
Empirical Rule
The empirical rule is a statistical rule stating that for a normal ... 
Average True Range  ATR
The average true range  ATR is a technical analysis indicator ... 
WideRanging Days
Wideranging days refer to the price range of a stock on a certain ... 
Historical Returns
Historical returns include the tabulation and analysis of past ... 
Breadth Thrust Indicator
A technical indicator used to ascertain market momentum. The ...