# How Swaps Work

> A swap is a trade in which two parties exchange, at regular intervals over an agreed period, cash flows calculated by methods agreed in advance. Depending on what is exchanged, swaps are divided into interest rate swaps, cross-currency swaps, commodity swaps, and other types.

- URL: https://www.derivatives-compass.org/en/product-basics/swaps/
- Area: Product Building Blocks › Basic Structures
- Last reviewed: 2026-11-26
- 日本語版: https://www.derivatives-compass.org/ja/product-basics/swaps/index.md

A corporate treasurer who wants to fix the interest rate on a loan uses a swap.

**Prerequisites**

- [What Is a Derivative?](https://www.derivatives-compass.org/en/product-basics/what-is-a-derivative/) — Builds on the three basic forms of derivatives and the idea of a notional amount.
- [Forwards and Futures](https://www.derivatives-compass.org/en/product-basics/forwards-and-futures/) — Builds on the forward commitment and how its payoff at maturity is worked out.

## Key points

- A swap exchanges payments calculated by an agreed method, on each payment date.
- An interest rate swap does not exchange principal, while a cross-currency swap often does.
- Many swaps can be viewed as a bundle of forwards and are worth zero at the start.

## What the contract sets

A [swap](https://www.derivatives-compass.org/en/glossary/swap/) is a type of [derivative](https://www.derivatives-compass.org/en/glossary/derivative/) in which future [cash flows](https://www.derivatives-compass.org/en/glossary/cash-flow/) (payments of money) are exchanged, calculated by an agreed method[^jpx-swap].

Consider a fictional [interest rate swap](https://www.derivatives-compass.org/en/glossary/interest-rate-swap/) between Company A and Bank F, exchanging a [fixed rate](https://www.derivatives-compass.org/en/glossary/fixed-rate/) for a [floating rate](https://www.derivatives-compass.org/en/glossary/floating-rate/). The contract mainly sets the following four things.

| Item                                                                                | In this example                                                                                                             | Meaning                                                                                                                                       |
| ----------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| [Notional amount](https://www.derivatives-compass.org/en/glossary/notional-amount/) | 5 billion yen                                                                                                               | The principal amount used as the basis for calculating the payments                                                                           |
| Term                                                                                | 4 years                                                                                                                     | The length of time from the start of the trade to its end                                                                                     |
| Payment dates and calculation periods                                               | Payment dates are once a year, from 1 year to 4 years after the start                                                       | A payment date is a day on which payments are made; a calculation period is the time between two payment dates, used to calculate one payment |
| How payments are calculated                                                         | Company A pays the notional amount times a fixed rate of 2% a year; Bank F pays the notional amount times the floating rate | How each party calculates the amount it pays                                                                                                  |

## Payments on each payment date

Company A is the fixed payer (the party that pays the fixed rate). On each of the four payment dates, from 1 year to 4 years after the start, it pays 100 million yen (5 billion yen × 2%). The amount it receives depends on the floating rate for each payment date. This example uses the floating rate at the start of each calculation period[^soa-floating]. When the trade is made, only the amount received after 1 year is known. The amounts for 2 to 4 years are not yet set.

**Figure 1: Payments on each payment date, seen by Company A**

Payments of Company A, the fixed payer, in a swap with a notional amount of 5 billion yen and a fixed rate of 2% a year. The amount after 1 year is 120 million yen, assuming the floating rate at the time of the trade is 2.4%. The amounts after 2 to 4 years are not yet set, so their arrows are drawn the same length as the fixed-rate payments as a guide and do not show an amount.

When both parties owe each other amounts on the same payment date, one party may pay only the difference instead of both paying in full[^soa-net]. If the floating rate for the first year is 2.4%, Bank F owes 120 million yen. Netted against the 100 million yen Company A owes, Bank F only pays Company A 20 million yen.

> **For systems professionals: Contract terms and the state of each payment date**
>
> The four terms of the contract (notional amount, term, payment dates and calculation periods, and how payments are calculated) are held as one set per trade. If you hold the payments on each payment date as "set" or "not yet set", the amount received at the floating rate needs a process that updates it to "set" once the floating rate for that calculation period is fixed.

## Main types

A swap's name depends on what is exchanged[^jpx-swap]. The typical ones exchange different kinds of interest in the same currency, or interest and other payments in different currencies[^shiru-types].

| Type                                                                                  | What is exchanged                                                                                                   | Principal exchanged?                                               |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| Interest rate swap                                                                    | Different kinds of interest in the same currency (such as fixed and floating)                                       | No[^shiru-402]                                                     |
| [Cross-currency swap](https://www.derivatives-compass.org/en/glossary/currency-swap/) | Interest in different currencies, and often principal                                                               | Often yes[^shiru-types]                                            |
| Commodity swap                                                                        | A quantity of a commodity times a fixed price, against the same quantity times the market price on the payment date | No (amounts of quantity times price are paid)[^columbia-commodity] |

Among interest rate swaps, the exchange of a fixed rate for a floating rate is the most typical form[^shiru-types]. The [OIS](https://www.derivatives-compass.org/en/glossary/ois/) (overnight index swap) is also a kind of interest rate swap.

The similarly named [FX swap](https://www.derivatives-compass.org/en/glossary/fx-swap/) is a different trade from a cross-currency swap. There are also swaps linked to equities or commodities[^columbia-types]. For credit risk, the trade is the [credit default swap](https://www.derivatives-compass.org/en/glossary/credit-default-swap/) (CDS).

Go deeper: [Cross-Currency Swaps](https://www.derivatives-compass.org/en/fx/cross-currency-swap/)

## A bundle of forwards and the value at the start

### Viewing a swap as a bundle of forwards

Many swaps can be viewed as a bundle of [forward contracts](https://www.derivatives-compass.org/en/glossary/forward-contract/) (trades that fix a future purchase or sale today), one for each payment date[^columbia-forward].

Take a fictional commodity swap, where the payments are easy to follow. On each payment date, one party receives the value of 10,000 units of a commodity at the market price on that date. It pays 50 million yen, calculated at a fixed price of 5,000 yen per unit.

If the price on a payment date is 5,500 yen per unit, this party gains a net 5 million yen. If the price is 4,500 yen, it loses a net 5 million yen. These amounts are the same as for a forward contract to buy 10,000 units at 5,000 yen per unit on that payment date, settled by paying only the difference without delivering the commodity. With four payment dates, the swap is four forward contracts with different delivery dates, bundled together at the same fixed price.

> **Deep dive: Valuing a commodity swap with forward prices**
>
> Consider a commodity swap on $$N$$ units in which, on the $$i$$-th payment date, one party receives the market price $$S_i$$ on that date and pays a fixed price $$X$$. Let $$F_i$$ be today's price of a forward contract for delivery on the $$i$$-th payment date, and $$d(0, i)$$ the [discount factor](https://www.derivatives-compass.org/en/glossary/discount-factor/) to that date. Receiving the market price $$S_i$$ on the $$i$$-th payment date has the same value today as receiving $$F_i$$ on the same date. So the value of a swap with $$M$$ payment dates is given by the following formula[^columbia-commodity-value].
>
> $$
> V = N \sum_{i=1}^{M} d(0, i)\,(F_i - X)
> $$
>
> The fixed price $$X$$ is normally set so that this $$V$$ is zero. If the forward price $$F_i$$ differs across payment dates, the difference from $$X$$ is positive on some dates and negative on others, and the discounted total is zero.

### Value at the start

In many swaps, the fixed rate or price is set so that, at the start of the trade, the [present values](https://www.derivatives-compass.org/en/glossary/present-value/) of what each party will receive are equal[^soa-zero]. This means that, apart from trading costs, neither party pays anything to enter the trade. In the commodity swap example, assume that the price of 5,000 yen per unit was set to meet this condition[^columbia-commodity]. However, when terms are changed to suit what one party asks for, the swap may not be worth zero at the start, and one party may pay the other the difference[^soa-zero].

Once the trade has started, movements in interest rates or prices move the value of the swap away from zero, so it can become positive or negative[^soa-value].

In the example of Company A and Bank F, suppose that after the payment date at 1 year, the floating rate for the remaining three payment dates becomes 3%. Company A receives 150 million yen and pays 100 million yen on each remaining payment date, so it receives 50 million yen more each time, and the swap has a positive value. If the floating rate is 1%, Company A receives 50 million yen and pays 100 million yen each time, so it pays 50 million yen more, and the value is negative. Bank F is the opposite in both cases. Because the two parties simply exchange payments, the value to one party is the value to the other with the sign reversed[^soa-value].

Go deeper: [Valuing an Interest Rate Swap](https://www.derivatives-compass.org/en/rates/swap-valuation/)

## What swaps are used for

Swaps are used to change the form of loan interest payments. A company that borrows at a floating rate can add an interest rate swap in which it pays fixed and receives floating, which turns the loan into the equivalent of a fixed-rate loan[^soa-convert].

Go deeper: [Interest Rate Swaps](https://www.derivatives-compass.org/en/rates/interest-rate-swap/)

[^jpx-swap]: [Japan Exchange Group, "スワップ（用語集）"](https://www.jpx.co.jp/glossary/sa/522.html) (Swap, glossary, in Japanese).

[^soa-floating]: [Society of Actuaries, "Interest Rate Swaps"](https://www.soa.org/globalassets/assets/files/edu/2017/fm-interest-rate-swaps.pdf) (FM-25-17; the "SOA swaps study note"), Example 1 on page 5. The interest paid at the end of year one is set by the rate at the start of year one.

[^soa-net]: [The SOA swaps study note](https://www.soa.org/globalassets/assets/files/edu/2017/fm-interest-rate-swaps.pdf), page 4. It gives an example in which two payments at the same time are netted and only the difference is paid (net swap payment).

[^shiru-types]: [Central Council for Financial Services Information, "4-1 スワップ取引とは（やさしいデリバティブ）"](https://www.shiruporuto.jp/public/document/container/deriv/deriv401.html) (What is a swap, Easy Derivatives, in Japanese), "スワップの種類" (Types of swaps), "金利スワップ" (Interest rate swaps) and "通貨スワップ" (Cross-currency swaps).

[^shiru-402]: [Central Council for Financial Services Information, "4-2 金利スワップの仕組み（やさしいデリバティブ）"](https://www.shiruporuto.jp/public/document/container/deriv/deriv402.html) (How interest rate swaps work, Easy Derivatives, in Japanese), "想定元本" (Notional amount). Interest rate swaps do not exchange principal.

[^columbia-commodity]: [Martin Haugh, "Forwards, Swaps, Futures and Options"](http://www.columbia.edu/~mh2078/FoundationsFE/for_swap_fut-options.pdf) (lecture notes for IEOR E4706 at Columbia University; the "Haugh Forwards and Options Notes"), Example 3 on page 5.

[^columbia-types]: [The Haugh Forwards and Options Notes](http://www.columbia.edu/~mh2078/FoundationsFE/for_swap_fut-options.pdf), section "2 Swaps" on page 4. It says "Other types of swaps include equity and commodity swaps".

[^columbia-forward]: [The Haugh Forwards and Options Notes](http://www.columbia.edu/~mh2078/FoundationsFE/for_swap_fut-options.pdf), section "2.3 Pricing Swaps" on page 5. It says "the cash-flow stream of a swap can often be considered as a stream of forward contracts".

[^columbia-commodity-value]: [The Haugh Forwards and Options Notes](http://www.columbia.edu/~mh2078/FoundationsFE/for_swap_fut-options.pdf), the formula in Example 3 on page 5. The symbols are the same as in the source.

[^soa-zero]: [The SOA swaps study note](https://www.soa.org/globalassets/assets/files/edu/2017/fm-interest-rate-swaps.pdf), page 5 and footnote 5. The fixed rate is set so that the present values of both sides are equal (trading costs excluded), and in customized swaps one party may pay a difference (premium).

[^soa-value]: [The SOA swaps study note](https://www.soa.org/globalassets/assets/files/edu/2017/fm-interest-rate-swaps.pdf), section "6 Market Value" on page 15.

[^soa-convert]: [The SOA swaps study note](https://www.soa.org/globalassets/assets/files/edu/2017/fm-interest-rate-swaps.pdf), pages 3–4. It gives examples of using a swap to turn a floating-rate loan into a fixed-rate one and a fixed-rate loan into a floating-rate one.

**Read next**

- [Cross-Currency Swaps](https://www.derivatives-compass.org/en/fx/cross-currency-swap/) — To see the payments of a cross-currency swap, which exchanges principal.
- [Valuing an Interest Rate Swap](https://www.derivatives-compass.org/en/rates/swap-valuation/) — To calculate how the value of a swap changes when interest rates move after it starts.
- [Interest Rate Swaps](https://www.derivatives-compass.org/en/rates/interest-rate-swap/) — To check by example the fixed payer's cash flows, gains, and losses, and how a swap fixes the interest payments on a loan.
- [Hedging, Speculation and Arbitrage](https://www.derivatives-compass.org/en/participants/hedging-speculation-arbitrage/) — To compare how the gains and losses on a swap arise in hedging and in speculation.
- [Cleared vs Bilateral Trades](https://www.derivatives-compass.org/en/listed-and-otc/cleared-vs-bilateral/) — To learn about the loss if the other party defaults on a swap agreed between the parties, and the role of a clearing house.

## Sources

- [スワップ（用語集）](https://www.jpx.co.jp/glossary/sa/522.html) — 日本取引所グループ
- [Interest Rate Swaps（Financial Mathematics Study Note FM-25-17）](https://www.soa.org/globalassets/assets/files/edu/2017/fm-interest-rate-swaps.pdf) — Society of Actuaries
- [Forwards, Swaps, Futures and Options（IEOR E4706 Foundations of Financial Engineering）](http://www.columbia.edu/~mh2078/FoundationsFE/for_swap_fut-options.pdf) — Columbia University（Martin Haugh）
- [4-1 スワップ取引とは（やさしいデリバティブ）](https://www.shiruporuto.jp/public/document/container/deriv/deriv401.html) — 金融広報中央委員会
- [4-2 金利スワップの仕組み（やさしいデリバティブ）](https://www.shiruporuto.jp/public/document/container/deriv/deriv402.html) — 金融広報中央委員会
