Groundlearn / Guides / Credit valuation adjustment
Credit valuation adjustment (CVA): a worked example
What counterparty credit risk costs on a derivative, computed step by step from exposure, discounting, default probability and recovery.
What CVA measures
When you trade an over-the-counter derivative, the other side might default while the trade is worth something to you. Credit valuation adjustment (CVA) is the market price of that risk: the expected loss from counterparty default, deducted from the risk-free value of the portfolio.
It is a loss on the exposure you would have at the moment of default, so two things drive it: how much you are owed (exposure) and how likely and how severe a default is (credit).
- LGD is loss given default, one minus the recovery rate.
- EE(t) is the expected exposure at time t: the average of the positive part of the portfolio value, since you only lose when the counterparty owes you.
- DF(t) is the discount factor to time t.
- Q(t) is the probability the counterparty has survived to time t, so Q(ti−1) − Q(ti) is the probability of defaulting in period i.
Worked example
Take a three-year swap with an illustrative expected exposure profile: $150,000 at one year, $180,000 at two, and $90,000 at three. The profile rises at first, then falls as the swap gets closer to maturity. Use the same discount factors as in our swap valuation guide, a recovery rate of 40% (so LGD is 60%), and a constant default intensity of 2% a year, which gives survival Q(t) = e−0.02t.
| Year | EE ($) | DF | Default probability in year | CVA contribution ($) |
|---|---|---|---|---|
| 1 | 150,000 | 0.9662 | 1.980% | 1,722 |
| 2 | 180,000 | 0.9281 | 1.941% | 1,946 |
| 3 | 90,000 | 0.8890 | 1.902% | 913 |
Each contribution is LGD × EE × DF × default probability. The three add up to a CVA of about $4,581, or roughly 4.6 basis points of the $10m notional. A 2% intensity with 60% LGD corresponds to a credit spread of about 120 basis points a year (intensity × LGD).
What changes the number
- Collateral. If variation margin and initial margin cut the exposure by 80%, CVA falls by the same fraction here, to about $916. This is the economic reason margin rules exist. See our initial margin guide.
- Credit quality. Doubling the default intensity to 4% takes CVA to about $8,923, slightly less than double because survival probabilities also fall.
- Recovery. A lower recovery rate raises LGD and CVA in proportion.
- Maturity and netting. Longer trades have more time to go wrong, and netting agreements reduce exposure by letting gains and losses offset.
- Wrong-way risk. The formula above assumes exposure and default are independent. If the counterparty is more likely to default exactly when it owes you the most, such as a bank selling protection on its own sovereign, the true CVA is higher.
CVA, DVA and the other adjustments
CVA looks at the counterparty's default. Debit valuation adjustment (DVA) is the mirror image, reflecting the chance that you default while owing them money, and it reduces the liability's value. Funding valuation adjustment (FVA) captures the cost of funding uncollateralised positions. Together with margin valuation adjustment and capital costs, these are often called XVA.
Fair value accounting under IFRS 13 and US GAAP requires credit risk to be reflected in derivative valuations, and the Basel framework has a separate capital charge for the volatility of CVA. Practices differ by institution, so treat this guide as the concept, not a statement of any firm's methodology.
Common exam traps
- Using the full notional or the full mark-to-market instead of the positive expected exposure.
- Forgetting LGD, or applying it to the wrong quantity.
- Confusing the probability of default in a period with the cumulative probability to that date.
- Assuming CVA is always a cost. DVA, the mirror effect, works in the opposite direction on the party's own credit.
- Treating CVA as a capital charge. CVA is a valuation adjustment; regulatory capital for CVA risk is a separate calculation.
Educational content only. This is not financial, investment, legal or regulatory advice. Figures are illustrations, not market data. Check the official source for your own exam or regulator before relying on any rule described here.
See it product by product in OTC Learn
OTC derivatives explained one product at a time, with collateral and clearing covered alongside swaps, forwards, credit and commodity. Free on Android.
About OTC LearnRelated guides
- Valuing an interest rate swap: a three-year worked exampleDiscount factors, the par swap rate and the value of a 4% swap, step by step.
- Initial margin and the uncleared margin rules, explainedWho has to post it, how it is sized, and why the phase-in dates matter.
- Expected shortfall versus VaR: what changes in the tailWhy regulators moved from 99% VaR to 97.5% expected shortfall, with normal and fat-tailed numbers.