
Image source: Getty Images
How to calculate volatility
In order to analyze volatility, you need to create a data set that tracks the price or value changes of a stock, your portfolio, or an index at a regular interval (such as daily). If you know a stock's or an index's daily closing price, ideally over a long period of time, then you can compute as a percentage the amount the stock's price or index's value changes from day to day.
Investors use this data to calculate a stock price or index's standard deviation, which is used as a proxy measure for volatility. The best way to calculate standard deviation is to use a spreadsheet program such as Microsoft Excel, so keep reading for a complete example of calculating price or value volatility using Excel.Calculating volatility using Microsoft Excel
While using a large data set is necessary to achieve accuracy by way of statistical significance, here we'll work with just 10 days of closing values for the S&P 500 (SNPINDEX:^GSPC).Â

Chart by author.
- Pro tip: simply drag this formula down to the end of the dataset in row 12 for all values in Column D to populate.
Calculating portfolio volatility
You may be interested in learning how to calculate the volatility of your portfolio, given that most people don't hold just a single stock position. Portfolio volatility is a measure of portfolio risk, meaning a portfolio's tendency to deviate from its mean return. Remember that a portfolio is made up of individual positions, each with their own volatility measures. These individual variations, when combined, create a single measure of portfolio volatility.To calculate the volatility of a two-stock portfolio, you need:- The weight of stock 1 in the portfolio
- The weight of stock 2 in the portfolioÂ
- The standard deviation (volatility) of stock 1Â
- The standard deviation of stock 2Â
- The covariance, or relational movement, between the stock prices of stock 1 and stock 2
Related investing topics
What standard deviation doesn't tell you
The biggest shortcoming to using standard deviation to calculate volatility is that standard deviation measurements are based on the assumption that returns are normally distributed. With normal distribution, also known as a bell curve, more results cluster near the center and fewer results are significantly above or below average.In actuality, stock prices and index values often have asymmetrical distributions and can stay unusually high or low for long periods of time. In addition, a stock's or index's volatility tends to change over time, which challenges the assumption of an unchanging statistical distribution of returns.While performing historical volatility calculations helps to construct a view of how much volatility to expect going forward, investors only have data for what's already occurred. Computing historical data can still be useful because this information can predict how a security's price will move in the future.With price fluctuations normally distributed, the stock's price tends to stay within one standard deviation — its implied volatility — of the stock's current price for 68% of price changes. Calculating the implied volatility of your portfolio and monitoring risk are crucial to make sure your portfolio behaves in the way you expect regardless of market conditions.
Sam Swenson, CFA, CPA has no position in any of the stocks mentioned. The Motley Fool has no position in any of the stocks mentioned. The Motley Fool has a disclosure policy.