# Interest Rate Swap: Par Rate, MTM and Key-Rate DV01

Price a fixed-for-floating interest rate swap on an editable curve: par rate, cash-flow ladder, mark-to-market after the curve moves and key-rate DV01.

## About this tool

An interest rate swap exchanges fixed-rate payments for floating-rate payments on the same notional. This lab prices a plain-vanilla swap on a curve you can edit: the par swap rate that makes it worth zero, every payment on both legs, how the swap gains or loses value when the curve moves after the trade, and its sensitivity to each part of the curve.

## Frequently asked questions

### What is the par swap rate?

The fixed rate at which the present value of the fixed leg equals that of the floating leg, so the swap is worth zero when it is traded. On a single curve it equals (1 − P(T)) divided by the annuity, the sum of discount factors times the accrual periods.

### Why does a payer swap gain when rates rise?

The payer pays a fixed rate and receives floating. When the curve rises, expected floating payments rise while the fixed payments stay the same, so the payer receives more than was priced in. A payer swap behaves like being short a fixed-rate bond.

### What is DV01 for a swap?

The change in the swap's value when rates move by one basis point. The lab bumps every curve quote by 1 bp and revalues the swap; key-rate DV01 bumps one quote at a time to show which maturities drive the risk.

### How is a swap like a bond portfolio?

Receiving fixed is like holding a fixed-coupon bond financed by issuing a floating-rate note. The floating-rate note is worth par at each reset, so the swap's value moves like the fixed bond's price, with the same sign of duration.

## Learn the theory

- [Interest rate swaps](https://quantsandbox.dev/guide/fixed-income/interest-rate-swaps): Fixed and floating legs, the swap as two bonds, the par swap rate from discount factors, valuing an existing swap and DV01.
- [Spot rates, forward rates and the yield curve](https://quantsandbox.dev/guide/fixed-income/yield-curve): Zero-coupon rates, bootstrapping from par yields, implied forward rates and the shape of the curve.

Open the interactive tool: https://quantsandbox.dev/interest-rate-swap
