# How to Calculate Volatility in Excel (2 Suitable Ways)

Get FREE Advanced Excel Exercises with Solutions!

Volatility is a very common term to the investors of the share market. Itâ€™s a way to get an idea to invest in a new company. It defines the risk of any stock or security. The higher volatility increases the risk of investment and vice-versa.

In this article, we will discuss the volatility and how to calculate this in Excel with proper explanations.

## What Is Volatility?

Volatility is the measure of the fluctuations of return of any stock or security over a time period is called volatility. Volatility is calculated based on the standard deviation or variance of returns over a time period. In the financial market, when the stock index increases or decreases more than 1% over a limited time that is called a volatile market. Simply, volatility is the measure of risk or uncertainty in the stock market.

Types of Volatility:

Volatility is classified into two types. Those are discussed in the below section.

• Historical Volatility:

This calculates volatility based on past information. It predicts the future by analyzing past values. It does not consider future trends, market conditions, or needs. But It is not forward-looking. It is also called historical volatility.

• Implied Volatility:

The implied volatility is forward-looking. It does not care the past performance and considers future expectations. It is also called projected volatility.

## How to Calculate Volatility in Excel? (Both Historical and Implied Volatility)

We already discussed two types of volatility. We will explain the calculation of those two kinds of volatility in Excel with explanations.

### 1. Calculation of Historical Volatility in Excel

Here, we will explain the whole process of calculating the historical volatility. For this, we need to calculate the Standard Deviation. We can calculate the deviation subtraction or LN function of Excel. We will collect stock data from Yahoo Finance.Â Letâ€™s have a look at the below section for details.

ðŸ“Œ Steps:

• We collected the following sample data.

• We added a row on the right side.
• Use the following formula on cell D6.
`=C6/C5-1`

Here, we compared the price of the present day with the previous day and subtracted 1. We can also use the following formula based on the LN function.

`=LN(C6/C5`)Â
• We need to present the data in percentile form. Select range D6:D19.
• Choose Percentage from the Number group of the HomeÂ tab.

Now, increase or decrease the decimal points.

• After that, we will add two new columns to the dataset.

• Put the following formula on cell F6 for standard deviation.
`=STDEV.S(D6:D19)Â `

• Finally, we will use the standard deviation to calculate volatility. We will apply the following formula to cell G6.
`=\$F\$6*SQRT(252)`Â

We calculated the historical volatility. This volatility is also called annualized volatility as we used 252 in the equation. Here, the value of standard deviation is also called daily volatility. If we want to get monthly volatility, we need to use 22. The formula will look like this:

`=\$F\$6*SQRT(22)`Â

### 2. Calculation of Implied Volatility

To calculate implied volatility, we need to follow the Black Scholes Model. Using this model, we will calculate the call option price based on the assumed volatility. Further, we will modify the implied volatility until the call option price matches our expectations.

We will use the following based on the Black Scholes Model:

`V = SN (P1) â€“ N (P2) Ke^(-rt)`

Here,

• S = Price of the stock.
• K = Strike Price.
• r = Risk-free Rate.
• t = Maturity Time.
• e =Exponential term.
• P1 =Conditional Probability,
• P2= Probability of the option to expire on money.
• N(P1), N(P2) = Normal distribution of P1 and P2 respectively.

ðŸ“Œ Steps:

• First, we insert data on Underlaying Price, Strike Price, Volatility, Maturity Time, and Risk-Free-Rate in the dataset for two cases.

The value of volatility is different in the two cases, and the rest are the same.

• Now calculate conditional probability, P1 using the following formula.
Â  `=(LN(C5/C6)+(C8+0.5*C7^2)*C9)/(C7*SQRT(C9))`

`=C10-C7*SQRT(C9)`Â

• Now, we will calculate the normalized distribution on cells C12 and C13 using the following formulas.

For Cell C12:

Â  `=NORM.S.DIST(C10,1)`

For Cell C13:

Â  `=NORM.S.DIST(C11,1)`

We will use the NORM.S.DIST function to calculate the normal distribution in Excel.

• After that, we will calculate the Call Option Price using the formula.
`=C5*C12-C6*EXP(-C8*C9)*C13`Â

• Similarly, we perform calculations for Case 2.

• Now, we add two new rows and set the Target Call Option Price as \$65.

• Use the following formula to get the implied volatility based on the Black Scholes Model.
`=C7+(C16-C14)/(F14-C14)*(F7-C7)Â `

## How to Calculate the Volatility of a Portfolio in Excel

In this section, we will calculate portfolio volatility. For this, we will consider the closing stock price of Microsoft and Tata Motors for the last 10 days. Also, add that weight of Microsoft is 82%, and Tata Motors is 18%. Have a look at the below section.

ðŸ“Œ Steps:

• First, we insert data from Microsoft and Tata Motors into the dataset.

• Then, we add two new columns in the dataset for calculating returns.
• We will apply the formula based on the LN function to get a return.

For Cell D6:

`=LN(C6/C5)`

For Cell F6:

`=LN(E6/E5)`

• Now, we will calculate the weighted return. We will multiply the returns by their weight and sum them.
`=82%*D6+18%*F6Â `

• Then add a new row in the dataset for Portfolio Volatility. Insert the following formula on cell D16.
`=STDEV.S(G6:G14)`

Finally, we get the portfolio volatility. This is also called daily portfolio volatility. If we want monthly or annualized volatility, then we need to multiply by the square root of 22 and 252 respectively.

## Conclusion

In this article, we described the calculation of two types of volatility in Excel. We also discussed how to calculate portfolio volatility. I hope this will satisfy your needs.

## What is ExcelDemy?

ExcelDemy Learn Excel & Excel Solutions Center provides free Excel tutorials, free support , online Excel training and Excel consultancy services for Excel professionals and businesses. Feel free to contact us with your Excel problems.

Alok Paul

Hello, this is Alok. I am working as an Excel & VBA Content Developer at Exceldemy. I want to provide solutions to various Excel-based problems. I completed my study at East West University major in Telecommunications Engineering. I love traveling, reading books, playing cricket.

We will be happy to hear your thoughts

Advanced Excel Exercises with Solutions PDF