Skip to content
Finance Lessons
🤝

Counterparty Risk & XVA

A loan is a one-way bet on whether you get paid back. A swap is a two-way one: today it is an asset, tomorrow a liability, and either side can default while it is worth something to the other. Counterparty risk is the discipline of pricing that — measuring how much could be at stake, shrinking it with netting and collateral, and charging for the rest through the alphabet soup of XVA the 2008 crisis forced onto every trading desk.

The cost of who you trade with, taught from first principles to desk-grade practice. See why a derivative is a two-way credit relationship that loans never are, measure counterparty exposure through time with current exposure, expected exposure (EE/EPE) and potential future exposure (PFE), and read the hump-shaped profile of a swap against the rising profile of an FX forward. Then crush that exposure with close-out netting and a CSA — variation margin, initial margin, thresholds, minimum transfer amounts and haircuts — and learn to price what is left: CVA (the charge for their default), DVA (the benefit of your own), and the whole post-2008 XVA family (FVA funding, MVA margin, KVA capital, ColVA). Finish with wrong-way risk, and the great migration from bilateral trading to central clearing, default waterfalls and SA-CCR. Worked numbers, exposure-profile and XVA-waterfall islands, and a graded final exam throughout.

Walk onto any derivatives desk and you will hear a question that never comes up when you buy a stock or a bond on an exchange: what happens if the person on the other side of this trade doesn’t pay? When you sign a five-year swap, you are not just taking a view on rates — you are entering a multi-year credit relationship with whoever sold it to you. They might go bust while the swap is worth a fortune to you. Worse, you might go bust while it is worth a fortune to them. Counterparty credit risk is the risk that the other party to a derivative defaults before settling what they owe — and unlike a loan, the amount they owe can swing from zero to enormous and back again as markets move.

This is the expert capstone of the risk track. You already know how to build a swap from its legs, value it off a curve, and price the credit risk of a bond or a CDS. Here you put all of it together to answer the question a real risk officer, an XVA desk, or a clearing-house treasurer is paid to answer: given everything I trade with this counterparty, how much could I lose if they fail, how do I shrink that, and what should I charge for what remains?

By the end you’ll measure a counterparty’s exposure profile, knock it down with netting and a CSA, price the CVA/DVA on what survives, walk the full XVA waterfall from risk-free to all-in, spot wrong-way risk before it bites, and explain exactly how central clearing reshapes — but never quite removes — the cost of who you trade with.

In this topic

  1. 1 What Is Counterparty Risk? Why a derivative is a two-way credit relationship a loan never is: settlement vs replacement risk, why exposure swings sign, and how 2008 turned counterparty risk into a front-office discipline. 14 min
  2. 2 Measuring Exposure: EE, EPE & PFE Exposure is replacement cost, max(value, 0), and it is uncertain — so we track it through time with current exposure, expected exposure (EE/EPE) and potential future exposure (PFE), and read the hump of a swap against the rising profile of an FX forward. 16 min
  3. 3 Netting & Collateral: Crushing the Exposure How close-out netting collapses a whole book to a single number, and how a CSA — variation margin, initial margin, thresholds, minimum transfer amounts and haircuts — crushes the exposure that is left down to the margin period of risk. 16 min
  4. 4 CVA: The Price of Default The credit valuation adjustment is the market price of counterparty risk — exposure × default probability × loss given default, integrated over time — plus its mirror image DVA on your own credit, and the paradox that your liabilities look better as your credit gets worse. 16 min
  5. 5 The XVA Family: FVA, MVA, KVA The post-2008 alphabet soup of valuation adjustments — funding (FVA), initial-margin funding (MVA), capital (KVA) and ColVA — assembled into the waterfall that turns a textbook risk-free price into the price a desk actually charges. 16 min
  6. 6 Wrong-Way Risk & Central Clearing When exposure and default probability rise together — wrong-way risk — and the great post-2008 migration to central counterparties: novation, the default waterfall, initial vs variation margin, the uncleared-margin rules, and SA-CCR capital. 16 min
  7. 7 Final Exam: Counterparty Risk & XVA A graded, one-shot final exam over the whole course: counterparty vs loan credit risk, exposure measurement (EE/EPE/PFE and the swap-hump vs FX-rising profiles), netting and collateral (VM/IM/threshold/MTA/haircut), CVA and DVA, the XVA family (FVA/MVA/KVA/ColVA) and its waterfall, wrong-way risk, and central clearing with its default waterfall and SA-CCR. 30 min

Mark course as finished

Done with every lesson? Lock it in — your progress is saved on this device.