Credit Default Swap Analysis — CDS Pricing, Basis & Hedging with AI
CDS mechanics (premium leg vs protection leg), credit event types (ISDA 2014), par spread calculation, upfront payment and running coupon conversion, CDS duration (risky annuity), CDS-bond basis and negative basis trades, CDX.NA.IG and iTraxx Europe index products, and using CDS for portfolio credit risk hedging. With real 5Y BBB CDS at 80bps.
Educational content, not professional advice — AI output and figures here can be wrong. Verify before you rely on it. Full disclaimer →
CDS Mechanics: What You Are Actually Trading
A credit default swap transfers the credit risk of a reference entity (the "reference entity" whose default triggers the contract) between two counterparties. The protection buyer pays a periodic premium — the CDS spread, quoted in basis points per annum — to the protection seller. In return, if a defined credit event occurs before contract maturity, the protection seller compensates the buyer for the loss: in physical settlement, the buyer delivers defaulted bonds and receives par value; in cash settlement (now standard under ISDA 2009 Big Bang Protocol), the seller pays par minus the recovery rate determined by the CDS auction. No exchange of principal at inception — the CDS is an unfunded credit derivative.
This simplicity makes CDS the primary tool for credit risk transfer in professional markets. Bond portfolios can be hedged without selling bonds (avoiding tax events and transaction costs). Credit risk can be taken synthetically without the constraints of the cash bond market (issuance size, settlement mechanics, repo availability). CDS also allow credit positions to be disaggregated from interest rate risk — buying protection on a BBB corporate gives a pure credit view without the duration exposure of the underlying bond. For credit portfolio managers, single-name CDS and CDX index products are as fundamental as swaps are to rates desks. See also XVA and CVA for the counterparty credit risk aspects of CDS and derivatives analysis with Claude.
Credit Events: The ISDA Definitions
A CDS only pays out on a defined credit event. The ISDA 2003 and 2014 definitions specify six potential credit event types, of which most CDS contracts include three to five:
- Bankruptcy: Voluntary or involuntary insolvency proceedings. Universally included.
- Failure to Pay: Failure to make a scheduled payment on any borrowed money above the payment requirement (typically $1M). Universally included.
- Restructuring (R, MR, MM): The most contested type. Full Restructuring (R) includes any debt restructuring. Modified Restructuring (MR, North American standard) limits deliverable obligations to those maturing within 30 months of contract maturity post-event. Modified Modified Restructuring (MM, European standard) extends this to 60 months. The more restrictive the restructuring definition, the lower the CDS spread (the protection covers fewer scenarios).
- Obligation Acceleration / Default: Cross-default triggers. Less commonly included in standardized CDS.
- Repudiation/Moratorium: Government or sovereign entities disputing debt obligations. Primarily in sovereign CDS.
The Restructuring debate: North American IG CDS are typically SNAC (Standard North American Contract) with no restructuring — only bankruptcy and failure to pay. European CDS typically include MM restructuring. This definitional difference creates a systematic basis between North American and European CDS markets that must be accounted for when comparing spreads across geographies.
Par Spread Calculation
The par spread is the spread that makes the CDS value zero at inception — the break-even premium. The calculation equates the present value of the premium leg (what the buyer pays) to the present value of the protection leg (what the seller provides).
Premium Leg PV = Σᵢ [S/4 × Q(tᵢ) × D(tᵢ)]
Protection Leg PV = Σᵢ [(1 − R) × (Q(tᵢ₋₁) − Q(tᵢ)) × D(tᵢ)]
Where S is the par spread, Q(t) is the survival probability at time t derived from the credit curve, D(t) is the risk-free discount factor, R is the recovery rate (market convention: 40% for senior unsecured IG, 25% for HY), and (Q(tᵢ₋₁) − Q(tᵢ)) is the marginal default probability in each quarter. Setting Premium PV = Protection PV and solving for S gives the par spread. For a 5Y BBB corporate with 80bps par spread, this implies: annual hazard rate ≈ S / (1-R) = 80 / 60 = 133bps ≈ 1.33% annual default probability.
Upfront Payments and Running Coupon Convention
Since the ISDA 2009 Big Bang standardization, most CDS trade with a standardized coupon of 100bps (investment grade) or 500bps (high yield), regardless of the market par spread. If the market spread differs from the standard coupon, an upfront payment compensates:
Upfront Payment ≈ (Par Spread − Standard Coupon) × Risky Duration × Notional
For a 5Y IG CDS at 80bps par spread with standard 100bps coupon and risky duration ≈ 4.5 years: Upfront ≈ (80 − 100) × 0.045 = −0.9% of notional. The protection buyer receives 0.9% upfront (because the standard coupon they pay is above the fair market spread). For a wider credit at 180bps par spread: Upfront ≈ (180 − 100) × 0.045 = +3.6% paid by the protection buyer. This standardization dramatically simplifies the market, enabling CDS to be netted and cleared through CCPs (LCH CDSClear, ICE Clear Credit) without the complexity of negotiating bespoke spreads on each trade.
Risky Duration and Hedge Ratios
Risky duration (also called the ISDA Risky DV01 or simply "duration" in CDS contexts) is the dollar change in CDS MTM per 1bp widening in par spread, expressed as a percentage of notional. It equals the risk-free duration adjusted downward for survival probability:
Risky Duration ≈ Σᵢ [0.0001/4 × Q(tᵢ) × D(tᵢ)]
For 5Y BBB at 80bps par spread: Risky Duration ≈ 4.5 years. For a 5Y IG name at 30bps: Risky Duration ≈ 4.9 years (higher survival probability means less adjustment). For a distressed name at 800bps: Risky Duration ≈ 3.5 years (significant survival adjustment).
Hedge sizing: to hedge $10M notional of a corporate bond with DV01 of $5,000/bp using 5Y CDS with risky duration 4.5 years (CDS DV01 = $4,500/bp per $1M notional): CDS notional needed = $5,000 / ($4,500/$1M) = $1.11M. This ensures a 1bp widening in credit spreads generates matching P&L in the CDS position and the bond position.
The CDS-Bond Basis
The basis is defined as: CDS-Bond Basis = CDS Par Spread − Bond Z-spread
A zero basis implies the synthetic (CDS) and cash (bond) markets price the same credit risk identically. In practice, the basis is non-zero due to:
- Cheapest-to-deliver (CTD) option: In physical settlement, the protection buyer can deliver any eligible obligation of the reference entity. This option has value when the cheapest deliverable bond trades below the specific bond the investor holds, creating a systematic positive basis in normal markets.
- Repo/funding cost: Carrying the bond on repo costs funding spread; CDS requires no funded position. For cash investors paying above SOFR for financing, this creates a negative basis contribution.
- Accrued interest on default: CDS protection buyers receive par on default but lose the accrued coupon on the bond; in cash, the defaulted bond sells inclusive of accrued. This typically creates a positive basis contribution.
- Supply-demand imbalances: Large short-selling in CDS markets (protection buying) pushes CDS spreads above Z-spreads → positive basis. Large synthetic credit demand (protection selling) pushes CDS below bond spreads → negative basis.
The Negative Basis Trade
A negative basis trade exploits a situation where CDS spread < bond Z-spread — i.e., the bond is cheap relative to the synthetic market. Trade construction: buy the cash bond + buy CDS protection on the same name. This creates a position that is credit-risk-hedged (the CDS protection covers bond default) while earning the carry: Carry = Z-spread − CDS spread = Basis. For our benchmark: 5Y BBB bond Z-spread = 95bps, CDS par spread = 80bps, negative basis = −15bps. Negative basis trade carry = 15bps per annum (ignoring funding cost).
Economics: the trade earns 15bps per year but requires funded bond position. Funding cost = SOFR + 10bps (repo spread). All-in carry = 15bps − 10bps = 5bps. This is not rich on an absolute basis, but it is nearly credit-risk-free carry — the key attraction. Risk: the basis can widen further if bond markets become illiquid or if forced selling hits the cash bond. CDS-bond basis turned sharply negative in 2020 and again during 2022-2023 rates volatility, creating both opportunity and risk for basis traders.
CDS Index Products: CDX and iTraxx
CDS index products provide standardized baskets of single-name CDS with daily liquidity that dwarfs single-name markets. The primary instruments:
- CDX.NA.IG: 125 investment-grade North American reference entities, quarterly coupons at 100bps standard, 5Y and 10Y tenors. Used for macro IG credit hedges and for replicating IG bond index exposure synthetically.
- CDX.NA.HY: 100 high-yield North American names, 500bps standard coupon. HY credit exposure without bond purchase constraints.
- iTraxx Europe: 125 European IG names, European credit benchmark.
- iTraxx Crossover: 75 sub-investment-grade European names, the European equivalent of CDX HY.
New series roll every 6 months — the on-the-run series contains current constituents that still meet the index eligibility criteria. The off-the-run series from prior periods continue to trade but at lower liquidity. For portfolio hedging: a $100M IG corporate bond portfolio can be hedged with approximately $100M CDX.NA.IG protection, adjusted for the difference in duration between the portfolio and the index. The index DV01 is known precisely; the portfolio DV01 is calculated from individual bond durations. Hedge ratio = Portfolio DV01 / CDX DV01.
CDS Curve: Term Structure of Credit Risk
A CDS curve plots par spreads across maturities (1Y, 2Y, 3Y, 5Y, 7Y, 10Y) for the same reference entity. The shape of the curve encodes market expectations about credit risk over time:
- Normal (upward sloping): Spreads increase with maturity. Credit risk is expected to be higher in the future than today — consistent with a stable issuer where default risk accumulates over time.
- Flat curve: Spreads similar across maturities. Market assigns similar credit risk at all horizons — often seen for medium-grade credits or stable industries.
- Inverted curve: Short-dated spreads exceed long-dated spreads. Critical signal: the market believes near-term default risk is materially higher than long-term survival. Inverted CDS curves often precede actual defaults by 6-18 months. For example, a 1Y CDS at 400bps versus 5Y at 250bps implies the market believes if the company survives the next 1-2 years, the longer-term credit risk normalizes — typical for issuers with near-term refinancing risk or covenants triggers.
Claude Prompts for CDS Analysis
The following prompts use our benchmark parameters: 5Y BBB corporate CDS at 80bps par spread, CDX.NA.IG at 70bps (Series 43), bond Z-spread 95bps creating a −15bps negative basis.
- "Calculate the par spread and premium/protection leg PVs for a 5Y CDS on a BBB corporate: par spread 80bps, recovery 40%, risk-free curve flat at 4.5%. (1) Extract quarterly survival probabilities Q(t) from the 80bps flat CDS spread assuming constant hazard rate: h = -ln(Q(t))/t where spread ≈ h × (1-R). (2) Compute the premium leg PV for each quarterly payment date (t = 0.25, 0.5, ..., 5.0) using PV = Σ [0.0020 × Q(t) × D(t)] where D(t) = e^(-4.5%×t). (3) Compute protection leg PV = Σ [0.60 × (Q(t-1) - Q(t)) × D(t)]. (4) Verify that premium leg PV = protection leg PV at an 80bps par spread. Show the full quarterly table."
- "Calculate the upfront payment for a 5Y BBB CDS: market par spread = 80bps, standardized coupon = 100bps, estimated risky duration = 4.52 years, $10M notional. (1) Is this a payment TO or FROM the protection buyer? (2) Calculate upfront in dollars. (3) What does this imply about the MTM value of an existing 5Y CDS bought 6 months ago at 100bps par spread, now that market spread has tightened to 80bps? (4) If spreads tighten further to 60bps, what is the additional MTM gain? Use risky duration as the DV01 approximation."
- "Analyze the negative basis trade for this BBB corporate: 5Y bond Z-spread = 95bps, 5Y CDS par spread = 80bps. (1) What is the CDS-bond basis? (2) Construct the negative basis trade — specify the bond leg ($10M notional, assume full par funding) and CDS leg (protection buyer on $10M notional). (3) Calculate gross carry = Z-spread − CDS spread. (4) Deduct funding cost: bond financed at SOFR + 12bps, SOFR = 4.5%, so funding cost = 4.62%. Bond coupon = 6.0% (Z-spread 95bps above 5Y Treasury at 5.05%). Net carry from bond position = 6.0% − 4.62% = 1.38%. CDS protection premium outflow = 80bps (standard coupon) net of upfront received. What is the all-in carry on the negative basis trade? (5) What scenarios make this trade lose money?"
- "Analyze the CDX.NA.IG Series 43 hedge for a $100M IG corporate bond portfolio: CDX.NA.IG trading at 70bps (5Y). Portfolio has a weighted average credit spread duration of 4.8 years; CDX has risky duration of 4.9 years. (1) Calculate portfolio DV01: $100M × 4.8 years × 0.0001 = $48,000/bp. (2) Calculate required CDX notional for a perfect DV01 hedge: Portfolio DV01 / CDX DV01 per $1M = $48,000 / ($4,900/$1M × 1M) = $48,000 / $490 per $M × $1M = ??? — show the full calculation. (3) What is the cost of the hedge per annum (CDX premium at 70bps)? (4) How does the hedge perform if spreads widen 50bps uniformly: P&L on bond portfolio vs. P&L on CDX hedge?"
- "Interpret this inverted CDS curve for a BB-rated industrial issuer: 1Y CDS at 420bps, 3Y CDS at 310bps, 5Y CDS at 250bps, 10Y CDS at 220bps. (1) What does the curve inversion imply about the market's view of near-term default risk vs. long-term? (2) Extract implied annual default probabilities from each maturity assuming 40% recovery. (3) What specific near-term risk factors might explain a 420bps 1Y spread for a BB issuer — what would you look for in the issuer's balance sheet and maturity profile? (4) How would a bond portfolio manager use this CDS curve to choose between 3Y bonds and 7Y bonds from this issuer?"
- "Build a CDS hedge for a credit portfolio with idiosyncratic risk: I hold $20M of bonds in an issuer with a 5Y CDS at 180bps and a $50M position in CDX.NA.IG (protection buyer) at 70bps. The CDX.NA.IG basket includes this issuer at a 0.8% weight. (1) What is my effective single-name CDS exposure net of the CDX position? (2) If this issuer's CDS widens from 180bps to 350bps while the CDX index remains at 70bps, what is my net P&L? (3) Should I buy additional single-name protection to supplement the CDX hedge? Calculate the optimal additional single-name CDS notional."
- "Compare CDS across restructuring definitions for a European corporate issuer: the bond has Z-spread 145bps. The issuer's CDS trades at 130bps under MM (Modified Modified Restructuring, European standard) and 120bps under SNAC (No Restructuring, North American standard). (1) Why does MM CDS trade 10bps wider than SNAC? (2) What is the CDS-bond basis under each definition? (3) Which CDS contract is the better hedge for a holder of the issuer's EUR-denominated bonds if restructuring risk is the primary concern? (4) How does the 2014 ISDA Credit Definitions update change the treatment of governmental restructuring vs. the 2003 definitions?"
- "Calculate the break-even recovery rate implied by CDS and bond pricing: 5Y CDS par spread = 80bps, risk-free rate = 4.5%, bond price = 98.50 (2.5% coupon, 5Y maturity, Z-spread = 95bps). (1) If the market assumes 40% recovery in CDS pricing, what is the implied hazard rate? (2) What recovery rate would make the CDS and bond markets consistent in their pricing of credit risk — solve for R such that bond price = bond floor + credit risk adjustment consistent with the 80bps CDS spread? (3) What does a gap between CDS-implied and bond-implied recovery tell us about the relative cheapness of the bond vs. CDS?"
CDS in Portfolio Risk Management
For portfolio managers, CDS provide a tool to actively manage credit risk without transacting in the more cumbersome cash bond market. Key applications: (1) hedging concentrated single-name exposures against credit deterioration, (2) adding credit exposure synthetically when attractive bonds are unavailable or at premium prices, (3) expressing credit curve views (long 5Y protection, short 10Y protection on the same name), and (4) basis trading when cash and synthetic markets diverge. The evolution of CCP clearing (mandatory for standardized CDS under Dodd-Frank and EMIR) has significantly reduced counterparty credit risk in CDS markets, lowering the CVA costs associated with CDS hedging programs. See XVA explained for the CVA implications of uncleared CDS positions.
For related fixed income risk analytics, see fixed income analysis with Claude and SA-CCR regulatory capital for credit derivatives. For multi-factor credit risk modeling, see quant finance tools.
Frequently Asked Questions
How is a CDS par spread calculated?
The CDS par spread is the periodic premium that equates the PV of the premium leg to the PV of the protection leg at inception. Premium leg PV = Σ (spread/4 × survival probability × discount factor); Protection leg PV = Σ (LGD × marginal default probability × discount factor). Solving for spread gives the par spread. For a 5Y BBB credit at 80bps, this implies an annual hazard rate of approximately 1.33% (= 80bps / 60% LGD), consistent with observed BBB historical default rates.
What is the CDS-bond basis and why does it matter?
The CDS-bond basis = CDS par spread − bond Z-spread. A zero basis implies the synthetic and cash markets price the same credit risk identically. In practice, the basis is non-zero due to: the cheapest-to-deliver option in physical settlement (systematic positive bias), funding costs of the cash bond position (negative bias), restructuring definition differences, and supply-demand imbalances. Negative basis (CDS < Z-spread) creates negative basis trade opportunities — buy bond + buy CDS protection — earning nearly credit-risk-free carry equal to the basis, net of funding cost.
What is risky duration in a CDS context?
Risky duration (CDS DV01) is the dollar change in CDS MTM for a 1bp widening in par spread, as a percentage of notional. It equals risk-free duration adjusted down for survival probability — approximately 4.5 years for a 5Y BBB CDS at 80bps. Risky duration is the key tool for sizing CDS hedges: CDS notional needed = Bond DV01 / (CDS risky duration × 0.0001 × notional).
How do CDS index products work?
CDS index products (CDX.NA.IG, CDX.NA.HY, iTraxx Europe, iTraxx Crossover) are standardized baskets of single-name CDS trading with high liquidity. CDX.NA.IG contains 125 IG North American names; new series roll every 6 months. Portfolio managers use CDX products to hedge macro credit risk across large bond portfolios without trading individual names, to add synthetic credit exposure, or to express views on the credit cycle. The hedge ratio accounts for the duration difference between the bond portfolio and the CDX index.
What does an inverted CDS curve signal?
An inverted CDS curve — short-dated spreads wider than long-dated — signals near-term distress risk. If 1Y CDS trades at 420bps while 5Y trades at 250bps, the market believes there is elevated near-term default probability (possibly from refinancing risk, covenant triggers, or near-term debt maturity) but lower long-term risk conditional on surviving the near-term stress. Inverted CDS curves typically precede actual defaults by 6-18 months and should prompt immediate fundamental re-examination of near-term liquidity, debt maturity profile, and covenant compliance.
Connect Claude to live financial data via MCP — EDGAR, FDIC, BIS, CME and 18 more.
New guides & tools — free
Get notified when we add new MCP servers, finance AI guides, and eval results.