TSE.
MathematicsFinanceHealthPhysicsEngineeringBrowse all

Finance & Economics · Fixed Income · Fixed Income

Credit Default Swap (CDS) Calculator

Calculates the CDS spread, annual premium, mark-to-market value, and breakeven default probability for a credit default swap contract.

Calculator

Advertisement

Formula

s = CDS spread (in decimal); R = recovery rate (fraction of notional recovered in default); \lambda = risk-neutral default intensity (hazard rate); N = notional principal; s_{market} = current market CDS spread; s_{contract} = contracted CDS spread; D = discount factor (PV of 1 unit paid over remaining life); T = remaining tenor in years. The spread compensates the protection seller for bearing default risk net of expected recovery.

Source: Hull, J.C. (2018). Options, Futures, and Other Derivatives, 10th ed. Pearson. Chapter 25: Credit Default Swaps.

How it works

CDS Mechanics and the Role of the Spread: In a standard CDS contract, the protection buyer pays a running spread — expressed in basis points per annum on the notional — until either a credit event (default, restructuring, bankruptcy) or the contract's maturity. In return, the protection seller compensates the buyer for the loss given default (LGD), which equals the notional multiplied by one minus the recovery rate. The spread is set so that the present value of premium payments equals the present value of the expected contingent payment at inception, making the contract zero-NPV at initiation.

Hazard Rate and Default Probability: Under the risk-neutral framework, the CDS spread is directly linked to the hazard rate (\(\lambda\)), the instantaneous conditional probability of default per unit time, through the relationship \(s \approx \lambda \times (1-R)\), where R is the recovery rate. Rearranging gives \(\lambda = s / (1-R)\). The cumulative default probability over the contract tenor T is then \(P(\text{default}) = 1 - e^{-\lambda T}\). These are risk-neutral (market-implied) quantities calibrated to observed spreads, not necessarily physical default frequencies.

Mark-to-Market Valuation: Once a CDS is entered, changes in the market spread alter its fair value. A protection buyer profits when spreads widen (credit deteriorates) because the protection they locked in at a lower spread becomes more valuable. The simplified MTM formula used here is \((s_{\text{market}} - s_{\text{contract}}) \times N \times D \times T_{\text{remaining}}\), where D is the discount factor over the remaining life. Positive MTM for the buyer indicates an in-the-money position. Full production models use a risky annuity (the sum of risk-adjusted discount factors across payment dates) rather than a simple flat approximation, but this formula provides an accurate first-order estimate for standard contracts.

Worked example

Scenario: A portfolio manager holds $10,000,000 notional of XYZ Corp bonds and wants to hedge default risk with a 5-year CDS. The contracted spread is 150 bps, the recovery rate assumption is 40%, the risk-free rate is 4.5%, and payments are made quarterly.

Step 1 — Annual Premium: Annual premium = 150 bps × $10,000,000 = $150,000 per year.

Step 2 — Quarterly Payment: $150,000 / 4 = $37,500 per quarter.

Step 3 — Hazard Rate: \(\lambda = 0.0150 / (1 - 0.40) = 0.0150 / 0.60 = 0.025\), or 2.50% per year.

Step 4 — Cumulative Default Probability: \(P = 1 - e^{-0.025 \times 5} = 1 - e^{-0.125} = 1 - 0.8825 = 11.75\%\) over the 5-year life.

Step 5 — Mark-to-Market after 2 years: If the market spread has widened to 200 bps and the remaining tenor is 3 years, the discount factor is \(e^{-0.045 \times 3} = 0.8730\). MTM = (200 - 150) / 10,000 × $10,000,000 × 0.8730 × 3 = +$130,950. The protection buyer has a gain because the cost of comparable protection has risen.

Step 6 — Expected Loss: Expected loss = $10,000,000 × (1 - 0.40) × 11.75% = $10,000,000 × 0.60 × 0.1175 = $705,000 over the 5-year horizon.

Limitations & notes

Model Simplifications: This calculator uses a constant flat hazard rate, which assumes a time-homogeneous Poisson default process. In practice, term structure models (e.g., bootstrapped hazard curves) allow the hazard rate to vary over different maturities. The MTM approximation uses a flat discount factor rather than integrating across each payment date's survival probability — full ISDA model implementations are more precise but require iterative numerical methods.

Recovery Rate Uncertainty: The recovery rate is treated as a fixed, known constant here. In reality, recovery rates are highly uncertain and vary across seniority, industry, and economic cycle. The standard ISDA CDS model typically assumes a 40% recovery for senior unsecured debt as a convention, but realized recoveries have ranged from near zero to over 80%.

Counterparty and Basis Risk: CDS contracts carry counterparty credit risk — if the protection seller itself defaults, the hedge fails. Post-2008 reforms pushed standardized CDS to central clearing (CCPs) to mitigate this. Additionally, the CDS-bond basis (difference between CDS-implied spread and bond spread) means hedging with CDS does not perfectly offset bond price risk. This calculator does not model collateral posting, upfront payments used in standard ISDA contracts since 2009, or accrued premium calculations on default.

Accrued Premium on Default: ISDA standard contracts also include an accrued premium from the last payment date to the credit event date. This is omitted here for simplicity but can amount to one full quarterly payment in the worst case.

Frequently asked questions

What does the CDS spread represent in basis points?

The CDS spread, quoted in basis points per annum (1 bp = 0.01%), is the annual cost of credit protection per unit of notional. A 150 bp spread on a $10M notional means the protection buyer pays $150,000 annually. The spread reflects the market's consensus on the reference entity's default risk, adjusted for the expected recovery rate.

How is the implied default probability extracted from a CDS spread?

Under the risk-neutral (market-implied) framework, the hazard rate is calculated as \(\lambda = s / (1-R)\) where s is the spread and R is the assumed recovery rate. The cumulative default probability over tenor T is then \(1 - e^{-\lambda T}\). These probabilities are calibrated to market prices and may differ from historical default frequencies published by rating agencies.

What is a positive vs. negative CDS MTM value?

From the protection buyer's perspective, a positive MTM means the current market spread exceeds the contracted spread — the buyer locked in protection cheaply relative to today's market and could unwind for a profit. A negative MTM means spreads have tightened since inception, making the contract less valuable than its cost. The seller's MTM is the mirror image of the buyer's.

What is the difference between running spread and upfront payment in CDS?

Pre-2009 CDS were typically quoted as pure running spreads. Post the 2009 ISDA 'Big Bang' protocol, investment-grade CDS standardized to 100 bps coupons and high-yield to 500 bps coupons, with an upfront payment (positive or negative) making up the difference from the market spread. This calculator uses the older running-spread convention, which is equivalent and easier to interpret conceptually.

Can CDS be used to speculate rather than hedge?

Yes. Naked CDS — where the buyer holds no underlying bond exposure — are purely speculative positions expressing a view on credit deterioration. Buying CDS without owning the underlying bond profits if the reference entity's credit quality worsens (spreads widen) or if default occurs. This practice was controversial during the 2008 financial crisis and is regulated or restricted in some jurisdictions, particularly for sovereign CDS in the European Union.

Last updated: 2025-01-15 · Formula verified against primary sources.