Implied Default Probability
Calculates the default probabilities that credit spreads imply. Investors in a corporate bond are compensated for the loss they expect from a default, so with a constant default intensity (hazard rate) λ and a share R recovered on default the spread s is about λ (1 - R), the “credit triangle”:
λ = s / (1 - R), P(default within t years) = 1 - e^(-λt)
The spreads are the latest ICE BofA option-adjusted spreads of the US corporate bond indices per rating (AAA to CCC) up to the end date, which need a FRED API key. For a spread of your own, use short_rate_model.get_implied_default_probability. Spreads also pay for liquidity and for the uncertainty of the losses, so these risk-neutral probabilities are higher than the default rates that are observed historically (see get_default_rates); the gap is the credit risk premium.
For more information, see the following book:
- Hull, J.C. (2022). “Options, Futures, and Other Derivatives.” Pearson, 11th edition, chapter 24.
Also known as: implied default probability, hazard rate, credit triangle, risk-neutral default probability.
Implied Default Probability in Python or via the MCP
Install the Finance Toolkit with:
pip install financetoolkit -U
Then call get_implied_default_probability as shown below.
from financetoolkit import FixedIncome
fixedincome = FixedIncome(end_date="2026-11-05", fred_api_key="your_fred_api_key")
fixedincome.get_implied_default_probability()
Or, after setting up the Finance Toolkit MCP, ask:
What default probabilities over 1, 3, 5 and 10 years did US corporate bond spreads by rating imply on 5 November 2026?
Which returns:
| Rating | Spread | Hazard Rate | 1Y Default Probability | 3Y Default Probability | 5Y Default Probability | 10Y Default Probability |
|---|---|---|---|---|---|---|
| AAA | 0.0048 | 0.008 | 0.008 | 0.0237 | 0.0392 | 0.0769 |
| AA | 0.0069 | 0.0115 | 0.0114 | 0.0339 | 0.0559 | 0.1086 |
| A | 0.0077 | 0.0128 | 0.0128 | 0.0378 | 0.0622 | 0.1204 |
| BBB | 0.0116 | 0.0193 | 0.0191 | 0.0564 | 0.0921 | 0.1758 |
| BB | 0.0213 | 0.0355 | 0.0349 | 0.101 | 0.1626 | 0.2988 |
| B | 0.0367 | 0.0612 | 0.0593 | 0.1676 | 0.2635 | 0.4576 |
| CCC | 0.132 | 0.22 | 0.1975 | 0.4831 | 0.6671 | 0.8892 |
Parameters
get_implied_default_probability accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
ratings | list[str] | str | None | The ratings: “AAA”, “AA”, “A”, “BBB”, “BB”, “B” or “CCC”, as a list or a comma-separated string. Defaults to None, every rating. | None, every rating |
recovery_rate | float | The share of the face value recovered on default, the scenario the probabilities assume. Defaults to 0.4, about the average recovery of senior unsecured bonds. | |
horizons | list[float] | str | None | The horizons in years, as a list or a comma-separated string. Defaults to None, which uses 1, 3, 5 and 10 years. | None, which uses 1, 3, 5 and 10 years |
rounding | int | None | The number of decimals to round the results to. Defaults to None. | 2 |