What Are Swaps? Types, Uses, and How They Work
By Forex & Brokers DeskUpdated Nov 10, 2026

Definition
A swap is a derivative contract in which two parties exchange streams of cash flows over a set period, using a formula fixed at the start. Firms mainly use swaps to change a risk they already carry.
Key takeaways
- A standard swap is priced so neither side pays upfront, and its value then moves with market rates.
- In the example, a $10 million swap at 4.0% fixed locks a SOFR plus 1.5% loan at 5.5% all-in cost.
- Cross-currency swaps exchange principal at the start and reverse it at maturity, unlike interest rate swaps.
- Under Dodd-Frank, the CFTC regulates most swaps, while the SEC oversees security-based swaps.
A swap is a derivative contract in which two parties agree to exchange streams of cash flows over a set period, according to a formula fixed at the start. Each stream is called a leg. One leg might pay a fixed interest rate and the other a floating rate; one might pay a commodity’s market price and the other a set price; one might be in dollars and the other in euros. Swaps are negotiated privately between institutions, traded over the counter (OTC) or, in the US, on regulated swap execution facilities. Firms use them mainly to change a risk they already carry rather than to buy or sell an asset outright.
How Swaps Work
Every swap is built from the same parts:
- Notional principal: the amount the payments are calculated on, such as $10 million. In an interest rate swap it is a reference figure only.
- Legs: the two payment streams. A fixed leg pays a rate agreed today; a floating leg resets periodically to a benchmark such as the Secured Overnight Financing Rate (SOFR).
- Term and payment dates: how long the swap runs and how often payments are calculated (annually, semiannually, quarterly).
- Settlement method: whether the parties pay each other in full or net the two amounts into a single payment.
For a plain fixed-for-floating interest rate swap settled with netting, the payment on each date works out as:
Net payment from fixed payer = Notional × (Fixed rate − Floating rate) × Period length (in years)
A positive result means the fixed-rate payer owes money for that period; a negative result means it receives money. Real contracts add day-count conventions (such as actual/360) that adjust the period length, but the logic is the same.
At inception, a standard swap is priced so that neither side pays upfront: the fixed rate is set where the expected value of the floating payments matches the fixed payments. After that, its value moves with rates. If market rates rise above the fixed rate, the fixed payer gains because it is locked into paying less than market levels; if rates fall, the floating payer gains.
Worked Example: An Interest Rate Swap
All figures below are hypothetical and chosen to show the mechanics.
A manufacturer has a four-year, $10 million loan that charges SOFR plus 1.5%, reset annually. It worries that rates will rise. It enters a four-year swap with a bank on a $10 million notional:
- The company pays the bank a fixed 4.0%.
- The bank pays the company SOFR.
- Payments are annual and netted.
The company still pays SOFR + 1.5% to its lender, but it receives SOFR from the bank and pays 4.0% fixed. The SOFR pieces cancel out, so its all-in borrowing cost is locked at 5.5% regardless of where SOFR goes. The swap does not touch the loan itself; it sits alongside it.
Scenario 1: Rates Rise
| Year | SOFR (assumed) | Bank pays company (SOFR) | Company pays bank (4.0%) | Net to company |
|---|---|---|---|---|
| 1 | 3.50% | $350,000 | $400,000 | −$50,000 |
| 2 | 4.00% | $400,000 | $400,000 | $0 |
| 3 | 4.50% | $450,000 | $400,000 | +$50,000 |
| 4 | 5.00% | $500,000 | $400,000 | +$100,000 |
| Total | $1,700,000 | $1,600,000 | +$100,000 |
The company receives a net $100,000 over the four years, offsetting $100,000 of higher loan payments. The bank, on the floating side, is $100,000 worse off.
Scenario 2: Rates Fall
| Year | SOFR (assumed) | Bank pays company (SOFR) | Company pays bank (4.0%) | Net to company |
|---|---|---|---|---|
| 1 | 3.50% | $350,000 | $400,000 | −$50,000 |
| 2 | 3.25% | $325,000 | $400,000 | −$75,000 |
| 3 | 3.00% | $300,000 | $400,000 | −$100,000 |
| 4 | 2.75% | $275,000 | $400,000 | −$125,000 |
| Total | $1,250,000 | $1,600,000 | −$350,000 |
Here the swap costs the company $350,000 compared with leaving the loan floating. That is not a failed hedge: the company still paid exactly the 5.5% it planned for, giving up the benefit of falling rates in exchange for certainty, for example because a lender required fixed interest costs or budgets could not absorb a rate spike.
These tables ignore day-count adjustments, dealer spread and discounting. In practice the bank builds its margin into the fixed rate it quotes, and the swap’s market value on any date is the present value of all remaining expected payments.
Types of Swaps
Interest Rate Swaps
The fixed-for-floating swap above is called a plain vanilla swap. Variations include basis swaps, where both legs float but on different benchmarks, and amortizing swaps, where the notional shrinks over time to match a loan being paid down. Floating legs in US dollars now reference SOFR; earlier contracts commonly used LIBOR, which was phased out after manipulation scandals.
Currency Swaps
In a cross-currency swap, the parties exchange interest payments in two different currencies and also exchange the principal: once at the start and again, in reverse, at maturity, usually at the exchange rate agreed at inception. In an interest rate swap both legs share one currency and amount, so exchanging the notional would simply cancel out. The interest legs can be fixed or floating on either side. A US company that has raised euros but earns dollars, for example, can use one to turn its euro debt into dollar-like obligations.
Commodity Swaps
A commodity swap exchanges a floating market price for a fixed price on a set quantity. An airline might agree to pay a fixed price per barrel equivalent for jet fuel while receiving the floating market price, which stabilizes its fuel bill. Crude oil benchmarks such as Brent are the most common underlying. Usually no physical commodity changes hands; the parties settle the price difference in cash.
Total Return Swaps
In a total return swap, one party pays the full return of an asset (price change plus income such as dividends or coupons) and receives a fixed or floating rate in return. The receiver of the total return gains economic exposure to a stock, bond or index without owning it, which is why hedge funds and other leveraged investors use them.
Credit Default Swaps
A credit default swap (CDS) works more like insurance. The buyer pays a regular premium; the seller compensates the buyer for losses if a named borrower defaults or suffers another defined credit event. CDS let lenders hedge credit risk and let others take a view on a borrower without holding its bonds. Heavy, poorly collateralized selling of CDS protection, most famously by AIG, helped turn the 2008 mortgage losses into a wider financial crisis.
Debt-Equity Swaps
A debt-equity swap is a restructuring rather than an ongoing exchange of payments: creditors give up debt for shares, usually to help a company reduce leverage or avoid default. It shares the name but not the recurring cash-flow structure of the other swaps.
What Swaps Are Used For
Hedging. The most common purpose is to swap a risk a firm has for one it prefers: a borrower with floating-rate debt fixes its cost, an exporter locks in currency conversion, a fuel buyer caps its input price.
Lowering funding costs. A company with a strong name in fixed-rate bond markets can borrow fixed and swap into floating, ending up cheaper than borrowing floating directly. Likewise, a firm can borrow in whichever currency it gets good terms and swap into the one it needs.
Speculation. A swap lets a trader take a view on rates, currencies, credit or prices with no upfront payment of principal. Paying fixed is a bet that rates rise faster than the market expects; receiving fixed is a bet that they rise more slowly or fall. That leverage cuts both ways, as the second scenario shows.
Balance sheet management. Banks use swaps to match the interest rate profile of their assets and liabilities, and asset managers use them to adjust portfolio duration without selling bonds.
How a Swap Is Structured and Settled
Most dealers and institutions document swaps under the ISDA Master Agreement, a standardized framework for default, termination and netting rules, with each trade recorded in a short confirmation specifying the notional, legs, rates or reference prices, payment dates, day-count conventions, maturity and any special provisions.
On each payment date, netted swaps settle only the difference between the legs. Throughout the swap’s life, each side typically posts collateral (margin) as its market value moves. A swap ends at maturity, by early termination at its current market value, or by entering an offsetting swap.
How Swaps Are Regulated
Before 2008, most swaps were bilateral OTC contracts with little public reporting. The Dodd-Frank Act of 2010 brought them under US federal oversight: the Commodity Futures Trading Commission (CFTC) regulates most swaps, including interest rate, currency and commodity swaps, while the Securities and Exchange Commission (SEC) oversees security-based swaps, such as those referencing a single stock or a single company’s credit.
Key requirements include central clearing for designated standardized swaps, trading on a swap execution facility (SEF) for swaps subject to the trade execution requirement, reporting to swap data repositories, and registration and capital rules for swap dealers. With a clearinghouse between the parties, one firm’s failure is less likely to spread. Other jurisdictions have their own regimes, such as the European Market Infrastructure Regulation (EMIR) in the EU.
Limitations and Risks
- Counterparty risk. In an uncleared swap, a party that is owed money depends on the other side being able to pay. Collateral and clearing reduce this risk but do not remove it.
- Opportunity cost. A hedge locks in an outcome and forgoes favorable moves, as in Scenario 2.
- Exit cost and liquidity. Customized swaps can be costly to unwind early, and the price of closing depends on what a dealer will quote at that moment.
- Collateral calls. Mark-to-market losses can require cash margin before the swap matures, even if the hedge works as intended over its full life.
- Basis risk. If the swap’s reference rate or price differs from the actual exposure (a different benchmark, grade of commodity or payment date), the hedge will not offset it exactly.
- Complexity and hidden costs. Dealer margins are built into the quoted rate rather than shown as a fee, and structured swaps can carry terms that are hard to value.
Swaps vs. Related Instruments
Swap vs. futures. Futures are standardized, exchange-traded contracts with daily margining and a single delivery or settlement date. Swaps are traditionally customized OTC contracts with a series of payments over many years. Some standardized swaps now clear centrally, which narrows the gap.
Swap vs. forward rate agreement. A forward rate agreement (FRA) locks in an interest rate for one future period with a single settlement. An interest rate swap works like a strip of FRAs covering every payment period at one fixed rate.
Swap vs. options. A swap obliges both sides to pay. Options give the buyer a right, not an obligation, in exchange for a premium. A swaption combines the two: it is an option to enter a swap later.
Currency swap vs. FX swap. A cross-currency swap runs for years with ongoing interest payments. An FX swap is a short-term pair of currency trades, a spot exchange plus a reverse forward exchange, with no periodic interest legs; banks use it heavily for funding.
Swap contract vs. forex rollover swap. On a retail forex or CFD account, the swap is the interest adjustment applied when a position is held past the daily rollover time. It reflects the rate difference between the pair’s two currencies plus the broker’s markup, and can be a charge or a credit depending on trade direction; many platforms apply three days’ worth on one weekday to cover the weekend. It is not a negotiated contract, though the idea of exchanging interest exposure is related. Swap contracts themselves are institutional products governed by master agreements and, in the US, participant eligibility rules, so retail traders rarely trade them directly; their exposure comes through rollover or through funds that use swaps.
The Bottom Line
Swaps matter most to companies, banks and asset managers that want to fix a borrowing cost, lock in currency conversion or stabilize an input price. A hedge delivers certainty and gives up gains from favorable moves, so the decision rests on whether that certainty is worth the opportunity cost, counterparty risk and possible collateral calls. Retail traders rarely trade swap contracts directly and mostly meet swaps as the rollover charge or credit on positions held overnight.















