Swaps: exchanging interest rates and currencies
A swap trades one stream of payments for another. This lesson follows an interest rate swap year by year, shows how a borrower turns a floating loan into a fixed one, values a swap after rates move by treating it as two bonds, and describes currency swaps and the risks. A calculator shows the cash and the value.
- Level
- Beginner
- Reading time
- About 23 minutes
- Know this first
- Futures, margin and mark-to-market
By the end you will be able to:
- describe a plain interest rate swap, its notional, fixed and floating sides
- follow the net payments of a swap year by year
- show how a swap turns a floating-rate loan into a fixed-rate one
- value a swap after rates move as a floating bond less a fixed bond
- describe currency, commodity and credit default swaps
- explain why notional amounts overstate risk, and name the main risks of swaps
Trading one stream of payments for another
The previous two lessons dealt with contracts that settle at one date: an option at expiry, a future at the end of each day. A swap is an agreement to exchange streams of payments over several years. The most common is the interest rate swap, in which one side pays a fixed rate and the other pays a floating rate, both on the same notional amount. The notional is only used to work out the payments and is never itself handed over.
Swaps are among the largest markets in finance. The Bank for International Settlements reported that notional amounts outstanding of over-the-counter derivatives stood at $846 trillion at the end of June 2025, and that 79% of that was interest rate contracts, a category in which swaps are a large part. This lesson explains how a plain swap works, follows the payments, shows why a borrower might use one, values a swap after rates move by treating it as two bonds, and describes currency swaps and the risks. A calculator does the arithmetic. The last lesson’s idea of marking a contract to market returns here.
The plain swap, year by year
In a plain interest rate swap, one party, the fixed payer, agrees to pay a fixed rate such as 4% on the notional every year. The other, the floating payer, pays a rate that is reset to a benchmark each period. Only the difference is paid, so in each period one side hands over the net amount. Nothing is paid on the day the swap starts if the fixed rate is set at the market rate for that length of swap.
The floating benchmark used to be LIBOR. All US dollar LIBOR settings ended on 30 June 2023, and the New York Federal Reserve reports that its replacement is SOFR, the Secured Overnight Financing Rate, a broad measure of the cost of borrowing cash overnight against Treasury securities.
Take a notional of $10 million, a fixed rate of 4% and an invented path for the floating rate. The fixed payer pays 400,000 every year. The table shows what is received and the net.
| Year | Floating rate that year | Pays fixed (4%) | Receives floating | Net to the fixed payer |
|---|---|---|---|---|
| 1 | 3.2% | 400,000 | 320,000 | −80,000 |
| 2 | 3.8% | 400,000 | 380,000 | −20,000 |
| 3 | 4.6% | 400,000 | 460,000 | +60,000 |
| 4 | 5.1% | 400,000 | 510,000 | +110,000 |
| 5 | 4.3% | 400,000 | 430,000 | +30,000 |
| Total | +100,000 |
The fixed payer lost in the first two years, when the floating rate was below 4%, and gained in the last three. Over the five years the net is +100,000. The fixed payer wins if floating rates turn out higher than the fixed rate on average, and the floating payer wins if they turn out lower. The two sides always balance, as with futures: a gain for one is a loss for the other.
Why anyone does this
The most common use is to change the nature of a loan. A company borrows $10 million at SOFR + 1.5%, so its interest bill rises and falls with rates. It would rather know its cost. It enters a swap in which it pays 4% fixed and receives SOFR. Whatever SOFR is, the SOFR it receives pays the SOFR it owes on the loan, and what is left is 1.5% on the loan and the 4% fixed on the swap, a total of 5.5%.
| Floating rate (SOFR) is | Loan costs (SOFR + 1.5%) | Swap pays the borrower | Net cost to the borrower |
|---|---|---|---|
| 2.0% | 3.5% | −2.0% | 5.5% |
| 4.0% | 5.5% | +0.0% | 5.5% |
| 6.0% | 7.5% | +2.0% | 5.5% |
The cost is 5.5% in every row. The company has swapped a floating-rate loan into a fixed-rate one without touching the loan, and without the lender needing to agree. The reverse is just as common: a bank with fixed-rate assets, such as mortgages, can pay fixed and receive floating to match its floating-rate funding. Others use a swap to bet that rates will go one way, which is a different purpose with the same contract.
Change the swap
The calculator below sets up a swap seen from the fixed payer and shows two things. On the left is the cash over the life of the swap if the floating rate averages what you choose. On the right is what the swap is worth after one year, if the market rate for the years left has by then moved to the level you choose. Payments are annual and rates are the same for every maturity.
On $10,000,000 over 5 years, paying 4.00% fixed and receiving a floating rate that averages 3.50% nets −$50,000 a year and −$250,000 over the life. If, after one year, the market rate for the remaining 4 years is 3.00%, the fixed side is worth $10,371,710 against $10,000,000 for the floating side, so the swap is worth −$371,710 to the fixed payer, −3.72% of the notional.
Five experiments. First, leave the settings alone: $10 million for 5 years, paying 4% and receiving a floating rate that averages 3.5%. The net is −50,000 a year and −250,000 over the life. With the market rate for the four years left at 3%, the fixed side is worth 10,371,710 against 10,000,000 for the floating side, so the swap is worth −371,710 to the fixed payer.
Second, raise the floating average to 5.5%. The holder now gains +150,000 a year, +750,000 over the life. Third, return the floating rate to 3.5% and raise the market rate to 5%. The swap is now worth +354,595 to the fixed payer, since the 4% it pays is below what the market now asks. Fourth, set the length to 10 years and the market rate back to 3%. The loss grows to −778,611, because the gap lasts longer. Fifth, set the fixed rate to 3%, equal to the market rate. The swap is worth 0, nothing, though the payments over the life still net +250,000 if the floating average is 3.5%. Raising the notional to $40 million with the first settings multiplies the value to −1,486,839.
What a swap is worth after rates move
On the day it starts, a swap at the market fixed rate is worth nothing to either side. After that, rates move and the swap has a value. The easiest way to see it is that the fixed payer is in effect short a fixed-rate bond and long a floating-rate bond. A floating-rate bond that has just reset is worth its par amount. So the swap is worth the par amount less the value of the fixed-rate bond that the fixed payer in effect has issued.
After one year the example has four years left. If the market rate for four years is 3%, a bond paying 4% on 10 million is worth 400,000 a year for four years plus 10,000,000 at the end, all discounted at 3%, which is 10,371,710. The floating side is worth 10,000,000. The swap is worth 10,000,000 − 10,371,710 = −371,710 to the fixed payer. The fixed payer is stuck paying 4% when the market asks for 3%.
| Market rate for the 4 years left | Value of the swap to the fixed payer |
|---|---|
| 2% | −761,546 |
| 3% | −371,710 |
| 4% | 0 |
| 5% | +354,595 |
| 6% | +693,021 |
The value is zero when the market rate equals the fixed rate, and it moves further from zero as rates move away from it or the time left grows. A shortcut is worth knowing: the value is the gap between the two rates times the notional, times the present value of one unit received every year for the years left. For 1 percentage point on 10 million over four years at 3%, that is 1% × 3.717 × 10,000,000 = 371,710. Banks and exchanges mark swaps to market in this way, and a swap that has lost value needs collateral to cover it, just as a future needs margin.
Currency swaps and others
A currency swap exchanges payments in two currencies. Unlike an interest rate swap, the principal is usually exchanged at the start and handed back at the end, since the two amounts are in different currencies. One of the first well-known swaps was between IBM and the World Bank on 25 August 1981, arranged by Salomon Brothers. According to one case study it gave the World Bank low-cost funding that was not possible through direct borrowing, and it is often cited as the start of a market that is now huge.
Other swaps follow the same pattern. A commodity swap exchanges a fixed price for a floating price of oil or gas. A credit default swap pays the buyer if a borrower defaults, in return for regular premiums, and works like insurance on a bond. An equity swap exchanges the return on a share or index for an interest rate. What they share is that each side gets a cash flow it prefers in exchange for one it does not.
Size, risk and what could go wrong
The headline figure of $846 trillion is a notional amount, which is only a yardstick for the payments, and it is much larger than the money at risk. The BIS gross market value, the cost of replacing all the contracts at current prices, was $21.8 trillion, about 2.6% of the notional. Even that is a gross figure, since many positions offset each other.
The main risk in a swap is counterparty risk: that the side who owes the net payment does not pay. Swaps used to be private agreements with only a promise behind them. After the financial crisis of 2008, standard swaps were moved to central clearing houses, which stand between the two sides and collect margin much as in futures, and others are secured by collateral. A second risk is basis risk, where the swap does not match the loan it is meant to hedge. A third is that a swap is a binding contract: a company that uses one to fix its borrowing cost cannot enjoy a fall in rates, and has to post collateral if rates fall and the swap loses value. The last lesson looks at what happened when such risks were not controlled.
What this lesson leaves out
- Invented numbers. The notional, rates, years and the floating-rate path in the examples are invented. No rate here is a market quote.
- A plain swap. Real swaps have day counts, payment dates and conventions the lesson ignores, and the calculator uses annual payments.
- A flat curve. The calculator uses one rate for all maturities. Real swap rates differ by maturity.
- No credit risk in the values. The valuations assume both sides pay. Real valuations adjust for the chance they do not.
- One viewpoint. The figures are for the fixed payer. The floating payer has the opposite sign.
- Not advice. The lesson explains how swaps work and does not say whether a company should use one.
Common mistakes
Thinking the notional is exchanged
In an interest rate swap it is only used to work out the payments.
Reading the notional as the money at risk
The amount at risk is the net payments and the cost of replacing the swap, far less than the notional.
Forgetting that only the difference is paid
In each period one side pays the net amount.
Assuming a swap is free to leave
Leaving early means paying or receiving the swap’s current value.
Ignoring counterparty risk
The side owing money might not pay, which is why clearing and collateral exist.
Treating a hedge as a gain
A swap that fixes a rate also gives up the benefit if rates fall.
Questions to answer
1. A swap on a notional of $10 million has a fixed rate of 4%. What does the fixed payer pay each year?
Show the working
4% of 10,000,000 = 400,000.
2. The floating rate is 3.5%. What is the net to the fixed payer for the year?
Show the working
350,000 − 400,000 = −50,000.
3. Over the five years in the first table, what is the total net to the fixed payer?
Show the working
+100,000, which is the sum of −80,000, −20,000, +60,000, +110,000 and +30,000.
4. A company has a loan at SOFR + 1.5% and swaps to pay 4% and receive SOFR. What does it pay in total?
Show the working
5.5%, whatever SOFR is.
5. What is the fixed side worth after one year when the market rate for four years is 3%?
Show the working
400,000 a year for four years plus 10,000,000, discounted at 3%, which is 10,371,710.
6. What is the floating side worth, and what is the swap worth to the fixed payer?
Show the working
The floating side is worth 10,000,000. The swap is worth −371,710.
7. The market rate rises to 5%. What is the swap worth?
Show the working
+354,595 to the fixed payer.
8. What does the BIS gross market value of $21.8 trillion against a notional of $846 trillion show?
Show the working
Only about 2.6% of the notional is the cost of replacing the contracts, so notional overstates risk.
9. What ended on 30 June 2023?
Show the working
All US dollar LIBOR settings. SOFR replaced it as the dominant US dollar benchmark.
Where this is used
- A company turns a floating-rate loan into a fixed-rate one.
- A bank matches the fixed-rate income on its mortgages to its floating-rate funding.
- An insurer matches the interest rate sensitivity of its assets to its long-term payments.
- A multinational borrows in one currency and swaps into another that it needs.
- An airline fixes the price of fuel with a commodity swap.
- A bond investor buys a credit default swap to protect against a default.
Key terms
- Swap
- An agreement to exchange streams of payments over several periods.
- Notional
- The amount on which payments are calculated, not itself exchanged in an interest rate swap.
- Fixed payer
- The side that pays a fixed rate and receives a floating rate.
- Floating rate
- A rate reset each period to a benchmark such as SOFR.
- SOFR
- The Secured Overnight Financing Rate, which replaced US dollar LIBOR.
- Currency swap
- A swap of payments in two currencies, with principal usually exchanged at the start and end.
- Credit default swap
- A contract that pays the buyer if a named borrower defaults.
- Counterparty risk
- The risk that the other side does not pay.
- Central clearing
- Having a clearing house stand between the two sides of a trade and collect margin.
- Gross market value
- The cost of replacing all contracts at current prices.
Questions people ask
Is a swap the same as a loan?
No. A swap exchanges payments on a notional that is not lent. It can change the nature of a loan, but does not provide funds.
Why do the two sides not just borrow in the form they want?
Often they can, but a swap can be cheaper, quicker or more flexible than refinancing.
What is the fixed rate on a new swap?
The rate at which the swap is worth zero to both sides at the start, set by market rates for that length.
What happens when LIBOR ended?
Contracts were moved to SOFR-based rates, with an adjustment so that payments stayed as close as possible.
Can an individual use a swap?
Mostly not directly. Swaps are contracts between companies, banks and institutions, though a person with a fixed-rate mortgage has a similar position.
Are swaps safe?
They can reduce risk when used to hedge. Used to speculate, or without enough collateral, they can produce large losses.
Sources and review
- Bank for International Settlements, OTC derivatives statistics at end-June 2025, for notional amounts outstanding of $846 trillion, interest rate derivatives at 79 percent of that, and gross market value of $21.8 trillion. The page gives two different figures for one smaller category, which are not used here.
- Federal Reserve Bank of New York, ARRC: SOFR transition, for the end of all US dollar LIBOR panel settings on 30 June 2023 and for SOFR as the broad measure of overnight borrowing secured by Treasury securities that replaced it.
- IBS Case Development Centre, Currency rate swap between IBM and the World Bank, for the swap of 25 August 1981 arranged by Salomon Brothers. The page does not name the currencies, so the lesson does not either.
- John Hull, Options, Futures, and Other Derivatives, for the valuation of a swap as the difference between a fixed-rate bond and a floating-rate bond, and for the account of counterparty risk and central clearing. Cited from memory.
Review note: the market size, the end of dollar LIBOR and the 1981 swap were read on the pages named above. The explanation of how swaps are cleared and collateralised after 2008, and the comparative-advantage argument, are from general knowledge and were not re-read. The notional, rates, years and floating-rate paths in the examples are invented, and the calculator assumes annual payments, a flat curve and no credit risk, which real swaps do not. Every dollar figure was recomputed in code by a second method.
How the numbers were checked: each fact taken from a source was read from that source or from the summary named, and every number worked out in this lesson was recomputed in code by a second method. The prices in the examples come from invented share prices and rates, so they show how the method works and are not quotes from any market.
The calculator in this lesson was checked by running its script and an independent calculation side by side at the starting settings and at every setting used in the experiments, and the two agreed.