Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceProbability & MeasureStochastic ModelsMarket MicrostructureGuide
Fixed Income
Bond Lab
Yield Curve
LabRates desk
Duration & Convexity
Treasury Futures Lab
Interest Rate Swap Lab
Callable Bond Lab
Immunization Lab
LabALM desk
Connected Guides
  • Interest rate swaps
  • Spot rates, forward rates and the yield curve

© 2026 Quant Sandbox · A study aid for quantitative finance

Privacy & dataNo cookies

This site does not use cookies and asks for no personal data. It keeps a few small settings in your browser's local storage — your chosen theme and language, the sidebar layout, and your progress and answers in the Guides — so it remembers them on your next visit. This data never leaves your device; clearing your browser storage removes it. Inputs you change can also be captured in the page URL, so you can share or bookmark a specific setup. The site uses Vercel Web Analytics, a privacy-friendly, cookieless service that records only anonymous, aggregated usage (such as page views) without identifying you or tracking you across other sites.

Interest rate swap

A swap exchanges a fixed rate for a floating one. Shape the curve, lock the fixed rate, then move the curve and watch the two legs separate.

Swap terms

Payments per year
Your side
Par swap rate
3.721%
Fixed rate
3.721%

The fixed rate follows the par rate, so the swap is worth zero. Lock it to see what happens when the curve moves after the trade.

Predict

Lock the fixed rate first, then predict how a curve move changes the swap's value.

Cash-flow ladder

Floating legFixed legNet payment

DateForwardDiscount factorPV floatingPV fixedNet
0.5y2.98%0.9853146,707−183,310−37,148
1y3.17%0.9699153,972−180,446−27,295
1.5y3.38%0.9538161,035−177,450−17,209
2y3.38%0.9380158,361−174,504−17,209
2.5y3.84%0.9203176,511−171,2205,750
3y3.84%0.9030173,190−167,9985,750
3.5y4.22%0.8844186,487−164,52824,829
4y4.22%0.8661182,635−161,13124,829
4.5y4.22%0.8482178,864−157,80324,829
5y4.22%0.8307175,170−154,54424,829
Value and risk
Mark-to-market
0
DV01 (+1 bp)
+4,472
PV floating leg
1,692,933
PV fixed leg
1,692,933

Lock the fixed rate to split later value changes by curve node.

Key-rate DV01

The buckets add up to +4,472; moving the whole curve 1 bp gives +4,472.

Par curve

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 — 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 — Zero-coupon rates, bootstrapping from par yields, implied forward rates and the shape of the curve.