Black-Scholes is a pricing model used to determine the fair price or theoretical value for a call or a put option based on six variables such as volatility, type of option (call, put), underlying stock price, time, strike price, and the risk-free rate. It is largely used by options traders who buy options priced under the calculated value and sell options priced higher than the Black-Scholes calculated value.
Assumptions of the Black-Scholes Model:
Some advantages of this model include:
The limitations of this model include:
This blog will elaborate on how you can create an option pricing calculator based on the Black-Scholes model that you can use in your financial (FinTech) applications.
There are five basic inputs (parameters) to set when pricing an option using the Black-Scholes model. They are the following:
Below are some more details and notes concerning individual inputs.
Below is a screenshot of the inputs that we are using to calculate the options price.
SpreadJS includes a comprehensive Calculation Engine that supports 450 built-in functions, custom functions, array functions, dynamic arrays, the formula textbox, localized language function names, statistical functions, financial functions and so much more that you can use to create various calculators needed for your FinTech applications.
To calculate the Call and Put option, we have used the below functions:
Returning to the model, call option (C) and put option (P) prices are calculated using the following formulas:
C = S0 N(d1) - X e-rt * N(d2)
P= X e-rt N(-d2) - S0 * N(-d1)
where N(x) is the standard normal cumulative distribution function, the d1 and d2 are some auxiliary variables, used to simplify the formula.
The formulas for d1 and d2 are:
d1= [ln(S0/X) + t (r + σ2/2)]/ σ √t
d2 = d1 - σ * √t
The above table contains some calculations that would help us to determine the option prices.
After having calculated the auxiliary variables, we can continue to measure the option prices in the correct cells: In our example:
To calculate the Call and Put option prices when the inputs are different from the one above, you can change the inputs in the sheet and see the correct option prices calculated immediately.
Now that we have our model, we can go a step further and look at how the different input parameters affect the results.
We have presented in the table below the changes of Call and Pull Prices when one of the parameters changes and the others are static.
So, in the first part of the table, we have calculated the Call and Put option Price if the Exercise price, time, risk rate, and volatility stay the same (exactly as they are in our Model Inputs table) Stock Price changes. The same logic applies to the other inputs.
Below are some charts that show the effect that the Black-Scholes model inputs have on the Call and Put option.
Stock Price (S0)
The below chart explains how the Call and Put values change if the other inputs are static, and we change the Stock Price from $1 to $200. We notice that the Call Option has no value up until the stock price hits $90. We see the reverse for the Put Option, where its value hits zero once the stock price goes above $120.
Exercise Price (X)
If the other inputs stay static, we see that the Call Value goes down as the Exercise Price increases and the Put Value goes up.
Time to maturity (t)
As the time to maturity increases, when the other inputs are static, the pricing options also increase.
Annual Risk-Free Rate (r)
As the risk-free rate increases, this also increases the required rate of returns. Subsequently, this decreases the value of stocks. We notice a direct relationship. As the risk-free rate increases, the Call Option value increases as well, while the Put Option value decreases its worth.
Annualized volatility (σ)
Volatility expresses the bounce-around the ability of the stock. When the stock volatility rises, so does the call and the Pull value as the stock becomes unpredictable.
The Black-Scholes Model is just one of the many models you can use to calculate the theoretical value of an option. You can use it anytime as you practice your strategies in the financial markets, both as a trader and an investor.
The Black-Scholes model is a theoretical concept. We use it to try and estimate the behavior of the market, as the calculated values coming from this model are very near the real values at the time of expiration. However, when using the model, its assumptions should be taken into consideration as they express the derivation from reality.
Download the example here and follow along.