curatedapi

Black-76 calculator for options on futures

The Black (1976) price and Greeks of a European option on a future or forward: commodity and bond futures options, caps, floors and swaptions.

The futures or forward 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.
Volatility per year in percent (20 for 20%).
Risk-free interest rate 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

Example: A nine-month call at the money: future at 19, 28% volatility, 10% rate

Price
The option's value.
1.701051 rounded
Delta
Change in the price for a change of 1 in the underlying price.
0.508636 rounded
Gamma
Change in delta for a change of 1 in the underlying price.
0.079745 rounded
Vega
Change in the price for one percentage point more volatility.
0.060455 rounded
Theta
Change in the price over one calendar day, other things equal.
-0.002626 rounded
Rho
Change in the price for one percentage point more interest.
-0.012758 rounded
D1
The model's d1.
0.121244 rounded
D2
The model's d2.
-0.121244 rounded

Rounding: Half even, 6 decimal places. Calculator finance/black-76@1.

How it is calculated

call = e^(−rT)·(F·Φ(d1) − K·Φ(d2)); put = e^(−rT)·(K·Φ(−d2) − F·Φ(−d1)); d1 = (ln(F/K) + σ²·T/2) / (σ·√T), d2 = d1 − σ·√T

Values a European option on a futures or forward price with Black's 1976 model. It is the Black-Scholes formula with the forward price in place of the spot price and the whole payoff discounted, and is the market standard for options on commodity and interest-rate futures. The answer has the price, the Greeks with respect to the forward price, and d1 and d2.

  • 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.
  • vega and rho are the change for a move of one percentage point in volatility or the rate; theta is the change over one calendar day (the yearly figure divided by 365).
  • rho here is −T × price ÷ 100: with the forward price held fixed, the rate only discounts the payoff.

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/black-76Version 1
curl https://api.curatedapi.com/v1/calc/finance/black-76 \
  -H "Authorization: Bearer $CURATEDAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "forward": "19",
    "strike": "19",
    "time_to_expiry_years": "0.75",
    "volatility_percent": "28",
    "risk_free_rate_percent": "10",
    "option_type": "call"
  }'
The same call in Python
import os

import requests

payload = {
    "forward": "19",
    "strike": "19",
    "time_to_expiry_years": "0.75",
    "volatility_percent": "28",
    "risk_free_rate_percent": "10",
    "option_type": "call",
}
response = requests.post(
    "https://api.curatedapi.com/v1/calc/finance/black-76",
    headers={"Authorization": f"Bearer {os.environ['CURATEDAPI_KEY']}"},
    json=payload,
    timeout=10,
)
print(response.json()["result"])
The same call in JavaScript
const payload = {
    "forward": "19",
    "strike": "19",
    "time_to_expiry_years": "0.75",
    "volatility_percent": "28",
    "risk_free_rate_percent": "10",
    "option_type": "call",
};
const response = await fetch("https://api.curatedapi.com/v1/calc/finance/black-76", {
  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_black_76 at https://mcp.curatedapi.com. Inputs, outputs and errors in the API reference.

Put it on your website

<div data-curatedapi-widget="finance/black-76" 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.