# Credit Valuation Adjustment (CVA) Excel Model

Price the credit risk of a derivatives counterparty. The model builds expected exposure from trade scenarios, applies collateral and default risk, and tests which collateral threshold is acceptable.

- Canonical: https://finamodel.com/templates/counterparty-credit-valuation-adjustment
- Excel download: https://finamodel.com/templates/counterparty-credit-valuation-adjustment.xlsx
- Category: Capital Markets
- Model type: Credit model
- Difficulty: Advanced
- Audiences: Credit & risk, Bankers & advisors, Investors & analysts, Counterparty credit risk managers, XVA and derivatives pricing desks, Collateral and CSA negotiation teams, Bank treasury and valuation control analysts
- Tags: cva, counterparty-risk, derivatives, collateral, csa, xva

## Overview

A unilateral credit valuation adjustment (CVA) model for one derivatives netting set. The starting case is a fictional bank facing one counterparty with three trades: a pay-fixed swap, a receive-fixed swap and a basis swap. The risk-free value of the set is $4.2m, and all amounts are in USD millions.

For each of twelve quarters there are five weighted scenarios of signed trade values. The model nets the trades, applies either fixed collateral or a threshold with a haircut, and averages positive exposure only after that step. Quarterly hazard rates give survival and marginal default probability, and loss is exposure times loss given default, discounted. A sensitivity sheet stresses hazard, recovery and collateral, and a threshold sheet tests five CSA thresholds against limits.

In the case CVA is about $0.162m, so the credit-adjusted value is $4.038m, a 3.86% reduction. Against a $0.085m CVA cap and an $8m collateral limit, the loosest feasible threshold is $2m. Each quarter's scenario probabilities must sum to one before the loss engine runs.

## What's included

- Sixty weighted scenarios of signed trade values over twelve quarters
- Netting of three trades in one netting set
- Fixed collateral or threshold collateral with a haircut
- Expected positive exposure averaged after collateral
- Quarterly hazard rates, survival and marginal default probability
- Discounted loss by quarter with recovery
- Unilateral CVA and credit-adjusted value
- Stresses for higher hazard, lower or higher recovery and collateral cases
- CSA threshold test against a CVA cap and peak collateral limit
- Exposure bridge from scenarios to quarterly loss

## Put a price on counterparty risk

CVA turns the chance that a counterparty defaults into a dollar adjustment. You see how much credit risk reduces the fair value of your derivatives.

## Collateral that matters

Compare fixed collateral, a threshold and no collateral on the same scenarios. The model shows how each choice changes exposure and loss.

## Negotiate the CSA

Test several unsecured thresholds against a maximum CVA and a collateral demand limit. The loosest threshold that meets both is shown.

## Workbook structure

### Credit review

CVA and credit-adjusted value.

- Unilateral CVA
- CVA as a share of value
- Collateral mode and threshold

### CVA

Discounted default loss by quarter.

- Expected exposure
- Hazard, survival and marginal PD
- Fair value reconciliation

### Exposure scenarios

Signed trade scenarios before netting.

- Scenario probability
- Trade values
- Posted collateral

### Exposure bridge

Scenario to loss bridge.

- Probability sum check
- Fixed and threshold exposure
- Active expected exposure

### Credit sensitivities

Credit and collateral stresses.

- Hazard multiplier
- Recovery cases
- Collateral cases

### Threshold terms

CSA threshold comparison.

- CVA by threshold
- Peak collateral face
- Feasible threshold and chart

## Frequently asked questions

### What is a credit valuation adjustment?

CVA is the reduction in a derivative's value to reflect the risk that the counterparty defaults. It equals expected exposure times the chance of default times loss given default, discounted. Banks report it and charge it in pricing.

### How is exposure measured?

For each quarter the model takes five weighted scenarios of trade values. It nets the trades, subtracts collateral and keeps only positive amounts. It averages after that step, which is why expected exposure is higher than expected value less collateral.

### How does the threshold test work?

Each threshold changes how much collateral the counterparty must post. A lower threshold cuts CVA but raises collateral demand. The model shows which thresholds meet both the CVA cap and the collateral limit.

### What does the model not include?

It is unilateral, so it ignores your own default risk. Scenarios are a synthetic fixture, not a Monte Carlo simulation. Market, liquidity and operational risk are not included, and all data are fictional.

### Can I use my own netting set?

Yes. Enter trade scenarios, probabilities, collateral, hazard rates and recovery in the blue cells. Each quarter needs five unique scenarios with probabilities that sum to one.

## Related templates

- [Credit Rating Model](https://finamodel.com/templates/credit-rating-model)
- [CDS-Implied Default Probability Model](https://finamodel.com/templates/finawork-006-market-implied-default-probability)
- [Interest Rate and Cross-Currency Swap Valuation Model](https://finamodel.com/templates/finawork-008-swap-cash-flow-valuation)
