iLearnFintech Glossary Formulas Cases Sandboxes
Investing/Derivatives

Swaps

8 min readCoreUpdated December 2026
In short

A swap is a deal to exchange two streams of payments. In the most common kind, an interest rate swap, one side pays a fixed rate and the other a floating rate on the same notional amount. Companies use swaps to turn floating-rate debt into fixed or the reverse; banks use them to manage interest rate risk.

What it is

In an interest rate swap, two parties agree on a notional amount and a period. One pays a fixed rate on that amount (the fixed leg), the other pays a floating rate that resets regularly (the floating leg). Only the difference changes hands; the notional itself never moves.

Floating rates are usually tied to an overnight benchmark such as SOFR in dollars or €STR in euros. The fixed rate that makes a new swap worth zero to both sides is the swap rate.

After it starts, a swap gains or loses value as rates move. Paying fixed behaves like having borrowed long-term at a fixed rate: it gains when rates rise.

Other swaps: a currency swap exchanges interest and principal in two currencies, useful for a company that borrows in one currency but earns in another. A credit default swap, despite its name, is really insurance against default.

Because each side depends on the other to pay for years, swaps carry counterparty risk. Most standard swaps are now cleared through a central clearing house that collects margin.

The intuition

Two neighbours: one has a floating-rate mortgage and wants certainty, the other a fixed-rate one and expects rates to fall. They agree that each will pay the other's interest. Neither moves house or changes bank. A swap does the same thing with a bank in the middle.

LenderCredit lineFernway BikesPays a fixed 5.3%in totalSwap bankSwap counterparty SOFR + 1.5% fixed 3.8% SOFR SOFR in and SOFR out cancel: (SOFR + 1.5%) + 3.8% − SOFR = 5.3%
Fernway pays SOFR + 1.5% on its credit line. In the swap it pays a fixed 3.8% and receives SOFR. The SOFR payments cancel, leaving a fixed cost of 5.3% whatever happens to rates.

The math

\[\text{Net payment (fixed payer)} = N \times (k - L_t) \times \Delta t\]
\[\text{All-in cost} = (L_t + m) + (k - L_t) = k + m\]

Where

\(N\)
Notional amount
\(k\)
Fixed swap rate
\(L_t\)
Floating rate for the period
\(m\)
The margin the borrower pays its lender above the floating rate
\(\Delta t\)
Length of the period in years

In words: Paying fixed and receiving floating turns a floating-rate loan into a fixed-rate one: the floating parts cancel out.

An example

Fernway's $60 million credit line costs SOFR + 1.5%. To protect its budget it enters a swap: it pays a fixed 3.8% and receives SOFR on $60 million.

SOFRLoan costSwap: Fernway pays (+) or gets (−)All-in cost
3%4.5%+0.8% ($480,000)5.3%
4%5.5%−0.2% ($120,000)5.3%
5%6.5%−1.2% ($720,000)5.3%

Whatever SOFR does, Fernway pays 5.3%.

In Python

Fernway's cost with and without the swap at three levels of SOFR.

notional, fixed, margin = 60_000_000, 0.038, 0.015

for sofr in [0.03, 0.04, 0.05]:
    loan = sofr + margin
    swap_net = fixed - sofr              # Fernway pays fixed, receives SOFR
    print("SOFR", sofr, "| swap net $", round(notional * swap_net), "| all-in", round((loan + swap_net) * 100, 1), "%")

In the real world

The LIBOR scandal, 2012

For decades most floating-rate loans and swaps were tied to LIBOR, an interest rate based on what a panel of banks said they would pay to borrow. In June 2012 Barclays agreed to pay £290 million in penalties in the UK and US after admitting that it had submitted false rates. Other banks followed. The benchmark was phased out and replaced by rates based on real transactions, such as SOFR; the last US dollar LIBOR panel ended on 30 June 2023. A swap is only as fair as the rate it is tied to.

Think about it

A company swapped its floating-rate loan into a fixed 3.8%. Then the floating rate fell to 1%, and its chief executive calls the swap "a terrible bet". Is that fair?

Show a model answer

Only if the goal was to bet. The swap was meant to fix the cost, and it did: the company pays what it planned. With hindsight, staying floating would have been cheaper, but nobody knew that in advance, and had rates jumped instead, the swap would have saved it. The fair questions are whether the company should have fixed all of its debt or only part, and whether it understood that ending the swap early would now cost money.

Reading the result

Look at what a company's debt costs after its swaps, not before. Notes on derivatives tell you how much of the debt is fixed and how swap values have moved.

Good signs

  • Using swaps to match debt to the business's needs
  • Knowing the all-in cost after swaps
  • Checking who the counterparty is and how collateral works

Watch out

  • Using swaps to bet on rates instead of hedging
  • Forgetting that ending a swap early can cost money
  • Ignoring the floating rate a swap is tied to

Remember

  • A swap exchanges payment streams on a notional amount.
  • Pay fixed, receive floating: turns floating debt into fixed.
  • Swaps gain or lose value as rates move, like bonds.

Check yourself

Question 1 of 2A company pays a fixed 4% and receives floating on $10 million. This year the floating rate is 5%. What happens?

Question 2 of 2A company has a floating-rate loan and fears rising rates. Which swap helps?

Read more

  • John C. Hull, Options, Futures, and Other Derivatives: chapter on swaps

Spotted a mistake or have a wish?

Tell us in a line or two. The page name is sent along automatically.