Workspace /D6 CDS Pricer
D6

CDS Pricer

Price a credit default swap year by year from a constant hazard rate: probabilities of survival and default, expected loss, the protection and premium legs, the par spread and the upfront payment against a standard coupon.

Learning focus: a CDS is fairly priced when the present value of expected default losses (the protection leg) equals the present value of premiums paid while the reference entity survives (the premium leg); any gap from the standard coupon is settled upfront.

Contract
yrs
bp
Credit
%
%
Discounting
%
Par credit spread
1.2245%
122.45 bp
Approximate spread
1.2000%
hazard × (1 − recovery) = 120.00 bp
Upfront payment
0.9692%
Protection buyer pays the seller: 96,918.79
Price per 100
99.0308
PV of protection leg
528,647.95
5.2865% of notional
RPV01 (risky annuity)
4.3173
PV of the coupon leg at 1.00%: 431,729.16
Value of a 1 bp spread move
4,317.29
Buyer gains when the spread widens
Survival to year 5
90.3921%
Default by year 5: 9.6079%
Expected loss, undiscounted
576,475.22
Year by year
YearHazardSurvival to year endPOD (conditional)POD (from today)Loss given defaultExpected lossDFPV of expected lossPremium PV per 1% coupon
12.00%98.0000%2.0000%2.0000%6,000,000.00120,000.000.9709116,504.8595,145.63
22.00%96.0400%2.0000%1.9600%6,000,000.00117,600.000.9426110,849.2890,526.91
32.00%94.1192%2.0000%1.9208%6,000,000.00115,248.000.9151105,468.2586,132.40
42.00%92.2368%2.0000%1.8824%6,000,000.00112,943.040.8885100,348.4381,951.22
52.00%90.3921%2.0000%1.8447%6,000,000.00110,684.180.862695,477.1577,973.00
Total9.6079%576,475.22528,647.95431,729.16

The PV of expected loss column sums to the protection leg. The last column sums to the premium leg at a 1% coupon, so the par spread is the first total divided by the second, times 1%. Premiums are paid at year end only while the reference entity survives; this version leaves out the premium accrued between the last payment and a default, which would raise the premium leg slightly.

Survival and default by year

With a constant hazard rate, survival falls by the same proportion each year. Survival and cumulative default are complements, so each year they add to 100%.