curatedapi

Implied volatility calculator

The volatility at which the Black-Scholes-Merton formula gives an option's market price, pinned between proven bounds.

The option's market price. A ratio of two decimals such as "0.08/12" is accepted.
The underlying's price now. A ratio of two decimals such as "0.08/12" is accepted.
The option's strike price. A ratio of two decimals such as "0.08/12" is accepted.
Time to expiry in years. Write days as a ratio, such as "30/365". A ratio of two decimals such as "0.08/12" is accepted.
Risk-free interest rate per year in percent, continuously compounded.
Dividend yield per year in percent, continuously compounded.
Call or put. Options: call: the right to buy; put: the right to sell
More options: rounding and decimals
Precision and rounding
Rounding mode applied once to each result. Default half_even.
Round results to this many digits after the decimal point.
Round results to this many significant digits.

Examples

Result: A six-month call on a stock at 42, strike 40, 10% rate, priced at 4.759422

Implied volatility percent
Implied volatility per year. Unit: percent.
19.999996 rounded
Implied volatility
The same as a decimal.
0.200000 rounded

Rounding: Half even, 6 decimal places. Calculator finance/implied-volatility@1.

How it is calculated

the σ with BlackScholes(S, K, T, r, q, σ) = option price

Turns an option's price back into the volatility that explains it. The Black-Scholes price rises with volatility, so a price inside the option's possible range matches exactly one volatility. It is found here by closing in on it and then proving that the price is too low just below and too high just above, so the digits returned are correct. A price outside the possible range is refused with the reason.

  • The model is for European options, which can be exercised only at expiry. An American option is worth at least as much, and more when early exercise can pay.
  • Rates are continuously compounded and per year, and time is in years. A rate quoted with annual compounding, R, is ln(1 + R) continuously compounded.
  • For an option on a future (Black-76), give the futures price as spot and set dividend_yield_percent equal to risk_free_rate_percent.
  • Volatilities from 0.01% to 1,000% a year are searched.

References

Results follow each calculator's documented rules and the sources listed. They are not financial, tax or legal advice. Check that the rules fit your case before you rely on a result. See the terms.

Use it from your code

POST /v1/calc/finance/implied-volatilityVersion 1
curl https://api.curatedapi.com/v1/calc/finance/implied-volatility \
  -H "Authorization: Bearer $CURATEDAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "option_price": "4.759422",
    "spot": "42",
    "strike": "40",
    "time_to_expiry_years": "0.5",
    "risk_free_rate_percent": "10",
    "option_type": "call"
  }'
The same call in Python
import os

import requests

payload = {
    "option_price": "4.759422",
    "spot": "42",
    "strike": "40",
    "time_to_expiry_years": "0.5",
    "risk_free_rate_percent": "10",
    "option_type": "call",
}
response = requests.post(
    "https://api.curatedapi.com/v1/calc/finance/implied-volatility",
    headers={"Authorization": f"Bearer {os.environ['CURATEDAPI_KEY']}"},
    json=payload,
    timeout=10,
)
print(response.json()["result"])
The same call in JavaScript
const payload = {
    "option_price": "4.759422",
    "spot": "42",
    "strike": "40",
    "time_to_expiry_years": "0.5",
    "risk_free_rate_percent": "10",
    "option_type": "call",
};
const response = await fetch("https://api.curatedapi.com/v1/calc/finance/implied-volatility", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CURATEDAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify(payload),
});
console.log((await response.json()).result);

MCP tool calc_finance_implied_volatility at https://mcp.curatedapi.com. Inputs, outputs and errors in the API reference.

Put it on your website

<div data-curatedapi-widget="finance/implied-volatility" data-key="capi_public_…"></div>
<script src="https://widgets.curatedapi.com/v1/widget.js" async></script>

Use a public key registered for your site. Calculations are billed like API calls. How widgets work.

Related calculators

Add this calculator to your website

Paste two lines into your page and your visitors get this calculator. Each use counts as one call on your plan, the same as the API.

Free for up to 1,000 uses a month. 50,000 uses a month cost $9.00 on the Starter plan.