# Bootstrapping a Yield Curve

> Bootstrapping is a method of calculating the discount factor or spot rate for each maturity from market rates such as interest rate swap fixed rates, starting with the shortest maturity. Each value found is used in the calculation for the next maturity. The resulting curve is used to discount future payments and to calculate forward rates.

- URL: https://www.derivatives-compass.org/en/basics/yield-curve-bootstrapping/
- Area: Core Concepts › Yield Curves
- Last reviewed: 2026-11-27
- 日本語版: https://www.derivatives-compass.org/ja/basics/yield-curve-bootstrapping/index.md

Valuing interest rate swaps and bonds and measuring [market risk](https://www.derivatives-compass.org/en/glossary/market-risk/) both require a curve, built from market rates, that discounts future payments.

**Prerequisites**

- [Zero Rates and Forward Rates](https://www.derivatives-compass.org/en/basics/zero-and-forward-rates/) — Knowing how spot rates, forward rates, and discount factors are defined and related makes the columns of the worked example easy to read.

## Key points

- Discount factors are the values that make a swap worth zero at its market fixed rate, found from the shortest maturity outward.
- With annual payments, the n-year discount factor follows from the n-year fixed rate and the sum of the earlier discount factors.
- Interpolating fixed rates linearly gives a 3-year par rate of 2.00%, and interpolating log discount factors linearly gives 2.34%.
- If trades with variation margin are valued on an OIS curve, OIS of the same maturities can hedge the curve risk.

## What bootstrapping calculates

A [yield curve](https://www.derivatives-compass.org/en/glossary/yield-curve/) shows the relationship between interest rates and the remaining time to maturity[^ecb-curve]. To discount future [cash flows](https://www.derivatives-compass.org/en/glossary/cash-flow/), you need a series of [discount factors](https://www.derivatives-compass.org/en/glossary/discount-factor/) or [spot rates](https://www.derivatives-compass.org/en/glossary/spot-rate/), one for each maturity. However, the yields on [zero-coupon bonds](https://www.derivatives-compass.org/en/glossary/zero-coupon-bond/), which pay no interest before maturity, cannot be observed directly in the market for many maturities[^ecb-zero]. Instead, discount factors are backed out from market rates such as the [fixed rates](https://www.derivatives-compass.org/en/glossary/fixed-rate/) of traded [interest rate swaps](https://www.derivatives-compass.org/en/glossary/interest-rate-swap/).

You back out the discount factors in order of maturity, starting with the shortest: 1 year, 2 years, 3 years, and so on[^boj-order]. The method of using each discount factor you find in the calculation for the next maturity is called [bootstrapping](https://www.derivatives-compass.org/en/glossary/bootstrapping/)[^bu-hallmark].

Consider a hypothetical example in which the 1-year [swap](https://www.derivatives-compass.org/en/glossary/swap/) fixed rate is 1.00% and the 2-year rate is 1.50%, with annual payments. The 1-year swap has only one payment, so the 1-year discount factor is 1 ÷ 1.01, or about 0.990099. The 2-year swap can be treated as a bond that pays 1.5 after 1 year and 101.5 after 2 years on a principal of 100. At the fixed rate at which the swap trades in the market, the [present value](https://www.derivatives-compass.org/en/glossary/present-value/) of this bond equals its principal, so the total present value is 100.

| Time          | Cash received | Discount factor |  Present value |
| ------------- | ------------: | --------------: | -------------: |
| After 1 year  |           1.5 |        0.990099 |  about 1.48515 |
| After 2 years |         101.5 |         Unknown | about 98.51485 |

The present value of the 1.5 due after 1 year is 1.5 × 0.990099, or about 1.48515. The present value of the 101.5 due after 2 years is the remainder after subtracting this from the total of 100, about 98.51485, so the 2-year discount factor is 98.51485 ÷ 101.5, or about 0.970590.

## How to calculate the discount factors

The same idea extends to $$n$$ years. At the fixed rate at which the swap trades in the market (the [par rate](https://www.derivatives-compass.org/en/glossary/par-rate/)), the present value of the swap, treated as a bond, equals its principal[^bu-bond]. Assume annual payments with every period one year long. Let $$S_n$$ be the fixed rate of the $$n$$-year swap and $$DF(t)$$ the discount factor for $$t$$ years. Then the following holds per 1 of [notional amount](https://www.derivatives-compass.org/en/glossary/notional-amount/).

$$
S_n \sum_{i=1}^{n} DF(i) + DF(n) = 1
$$

The first term on the left is the present value of the fixed interest payments, and the second is the present value of the principal at maturity. Solving this for $$DF(n)$$ gives the bootstrapping formula[^bu-formula].

$$
DF(n) = \frac{1 - S_n \sum_{i=1}^{n-1} DF(i)}{1 + S_n}
$$

The right-hand side contains only the $$n$$-year fixed rate and the sum of the discount factors up to $$n - 1$$ years. So if you calculate in order from 1 year, each maturity needs just one formula. From each discount factor, you find the spot rate $$r_n$$ with annual [compounding](https://www.derivatives-compass.org/en/glossary/compound-interest/) using the following formula[^boj-df].

$$
r_n = DF(n)^{-1/n} - 1
$$

> **Deep dive: How the Bank of Japan document writes the calculation with spot rates**
>
> The same calculation can also be written with spot rates instead of discount factors[^boj-formula]. It splits the payments of a 2-year swap into two zero-coupon bonds: the interest after 1 year, and the interest and principal after 2 years. Let $$r_1$$ be the 1-year spot rate, $$r_2$$ the 2-year spot rate, and $$R_2$$ the 2-year swap fixed rate. The relationship is as follows.
>
> $$
> 1 - \frac{R_2}{1 + r_1} = \frac{1 + R_2}{(1 + r_2)^2}
> $$
>
> The left-hand side is the principal of 1 minus the present value of the interest after 1 year. The right-hand side is the present value of the interest and principal received after 2 years. Substituting $$DF(1) = 1/(1 + r_1)$$ and $$DF(2) = 1/(1 + r_2)^2$$ gives the formula in the main text for $$n = 2$$. From year 3 on, you subtract the present value of each interest payment in the same way and find $$r_3$$, $$r_4$$, and so on in order.

## Worked example: the 1- to 5-year curve

Add fixed rates of 2.00% for 3 years, 2.50% for 4 years, and 3.00% for 5 years to the example so far. The fixed rates rise in steps of 0.50 percentage points, and the 3- and 4-year rates are the same as the values on a straight line between the 2-year and 5-year rates. Calculating in order from 1 year with the formula above gives the discount factors in the table below, along with the spot rates and [forward rates](https://www.derivatives-compass.org/en/glossary/forward-rate/) calculated from them[^rounding].

| Maturity (years) | Fixed rate (%) | Sum of discount factors to the previous maturity | Discount factor | Spot rate (%) | Forward rate (%) |
| ---------------: | -------------: | -----------------------------------------------: | --------------: | ------------: | ---------------: |
|                1 |           1.00 |                                         0.000000 |        0.990099 |          1.00 |             1.00 |
|                2 |           1.50 |                                         0.990099 |        0.970590 |          1.50 |             2.01 |
|                3 |           2.00 |                                         1.960689 |        0.941947 |          2.01 |             3.04 |
|                4 |           2.50 |                                         2.902636 |        0.904814 |          2.53 |             4.10 |
|                5 |           3.00 |                                         3.807450 |        0.859977 |          3.06 |             5.21 |

**Figure 1: Fixed rates, spot rates, and forward rates compared**

This line chart connects the three rates in the worked example's table, one point per maturity. The values are the same as in the table, and each forward rate is the rate for that year's one-year period, plotted at the end year of the period. The spot rate differs from the fixed rate only slightly. The forward rate's gap from the fixed rate grows as maturity gets longer.

The 3-year discount factor is (1 − 0.02 × 1.960689) ÷ 1.02 = 0.960786 ÷ 1.02, or about 0.941947. The 4-year factor is (1 − 0.025 × 2.902636) ÷ 1.025, or about 0.904814, and the 5-year factor is (1 − 0.03 × 3.807450) ÷ 1.03, or about 0.859977. For the spot rate, take the 5-year case: raise 0.859977 to the power −1/5 and subtract 1 to get about 3.06%.

Each forward rate is the one-year rate from $$t - 1$$ years to $$t$$ years, found from the ratio of discount factors. For year 5, it is 0.904814 ÷ 0.859977 − 1, or about 5.21%.

To check that the curve matches the market rates, revalue the swaps at the input fixed rates. For the 5-year swap, the sum of the discount factors for 1 to 5 years is 4.667427, and 0.03 × 4.667427 + 0.859977 = 1.000000, so the value is zero. The 1- to 4-year swaps also have zero value.

If the input rates fall sharply as maturity gets longer, a forward rate turns negative. Consider a hypothetical example in which the fixed rates are 3.00% for 1 year and 1.00% for 2 years. The 1-year discount factor is 1 ÷ 1.03, or about 0.970874. The 2-year discount factor is (1 − 0.01 × 0.970874) ÷ 1.01, or about 0.980486, which is larger than the 1-year factor. The forward rate for the second year is 0.970874 ÷ 0.980486 − 1, or about −0.98%.

## Maturities with no market rate

In a real market, there is not always a rate for every maturity. The value for a maturity with no market rate is filled in from the market rates at the neighboring maturities on either side[^boj-interp]. If you change the assumption used to fill it in (the interpolation method), the discount factors at those maturities, and the forward rates calculated from them, change.

### Interpolating log discount factors or fixed rates

Suppose the only fixed rates are the worked example's 1.00% for 1 year, 1.50% for 2 years, and 3.00% for 5 years, with no 3- or 4-year fixed rates. If you interpolate the discount factors between 2 and 5 years log-linearly (on a straight line through their logarithms), the one-year forward rates in that range all take the same value. The condition that the 5-year swap has zero value at the fixed rate of 3.00% then becomes one equation with the 5-year discount factor as its only unknown. You find its solution by a numerical search.

The result is a 3-year discount factor of 0.932418, a 5-year discount factor of 0.860519, and a forward rate of 4.09% from year 2 to year 5. The fixed rate at which the 3-year swap has zero value (the par rate) is (1 − 0.932418) ÷ (0.990099 + 0.970590 + 0.932418), or about 2.34%.

The 3- and 4-year values in the worked example were on a straight line between the fixed rates, and the 3-year par rate was 2.00%. With the same inputs, interpolating the logarithms of the discount factors on a straight line gives 2.34%, about 0.34 percentage points higher. The 5-year swap has zero value at 3.00% on either curve.

**Figure 2: Forward rates under different interpolation methods**

This line chart shows the one-year forward rates for the same 1-, 2-, and 5-year inputs, changing only the interpolation method. Each line is the forward rate obtained by interpolating the quantity in its legend on a straight line. Points are placed the same way as in the chart comparing fixed rates, spot rates, and forward rates. The two lines coincide up to year 2. The line that interpolates the logarithms of the discount factors rises from year 2 to year 3 and stays flat from year 3 to year 5. The line that interpolates the fixed rates keeps rising as maturity gets longer.

### Simulator for a curve built from OIS rates

The simulator below uses the overnight rate and [OIS](https://www.derivatives-compass.org/en/glossary/ois/) fixed rates as market rates, and builds one curve with the same log-linear interpolation of the discount factors as above. An OIS is an interest rate swap that exchanges a fixed rate for a [floating rate](https://www.derivatives-compass.org/en/glossary/floating-rate/) calculated by compounding the overnight rate over a set period[^rfr-ois]. The fixed rates from the worked example are entered in the simulator as OIS fixed rates. The initial values are the worked example's 1.00% for 1 year, 1.50% for 2 years, and 3.00% for 5 years, plus 3.50% for 10 years.

Consider a hypothetical example in which a 3-year swap has a notional amount of 10 billion yen and a fixed rate of 2.00%. The pay-fixed swap (the side that pays the fixed rate) is worth a profit of 97,200,433 yen, and a receive-fixed swap would be a loss of the same amount. If you set the 5-year OIS rate to 3.10%, the 3-year par rate becomes 2.39%.

**Simulator: Curve built from market rates, and interpolation between pillars**

When you change the market rates (the overnight rate and the 1-, 2-, 5-, and 10-year OIS rates), the constructed curve and the value of the selected swap change. The curve appears on screen as the zero rate and forward rate lines. Changing the 5-year OIS rate also moves the 3-year par rate, but changing the 10-year OIS rate does not change the curve up to 5 years or the value of the 3-year swap. The forward rate line plots each one-year forward rate at the end year of its period and connects the points. The constant value from year 2 to year 5 appears at the points for years 3, 4, and 5. The value of the input OIS revalued on the curve is at the end of the results, and you can check that all of them are zero.

The interactive version is on the article page: <https://www.derivatives-compass.org/en/basics/yield-curve-bootstrapping/#simulator-1>

The zero rate on screen is the discount factor expressed with continuous compounding. It is slightly lower than the spot rate that expresses the same discount factor with annual compounding. In the simulator, the overnight rate only sets the one-day discount factor and has no effect on discount factors for 1 year or longer.

Go deeper: [Curve Interpolation](https://www.derivatives-compass.org/en/basics/curve-interpolation/)

## How curves are used in practice

When you find OIS discount factors from OIS fixed rates, rates are expressed differently for maturities up to one year and for longer ones. Up to one year, you use the quotation for a short-term rate with no payments before maturity, and the 1-year discount factor is 1 ÷ (1 + rate). Maturities over one year are treated as swaps with periodic payments and use the formula above[^bu-short].

A discount curve is a curve used to discount future payments. Suppose [derivative](https://www.derivatives-compass.org/en/glossary/derivative/) transactions with exchanges of [variation margin](https://www.derivatives-compass.org/en/glossary/variation-margin/) (VM) are valued on a discount curve built from OIS fixed rates. Then the risk that this curve moves can be [hedged](https://www.derivatives-compass.org/en/glossary/hedging/) with OIS of the same maturities as the firm's own positions[^rfr-discount].

[Clearing houses](https://www.derivatives-compass.org/en/glossary/central-counterparty/) also build curves from market quotes. [Japan Securities Clearing Corporation](https://www.derivatives-compass.org/en/glossary/jscc/) (JSCC) collects the market data used in calculating interest rate swap [margin](https://www.derivatives-compass.org/en/glossary/margin/) for each grid point it has set. It takes quotes as of 15:02 from information vendors and [broker](https://www.derivatives-compass.org/en/glossary/broker/)-dealers. As a rule, it excludes the data from the firms in the top quarter and the bottom quarter of the quotes, averages the rest, and builds the yield curve from those averages[^jscc-curve].

> **For systems professionals: Data needed to build a curve, and handling of rounding**
>
> Besides the market rate for each maturity, the bootstrapping formula takes the year fraction of each period[^bu-general]. So to build a curve, you need settings for the instruments and maturities used, the payment frequency, the [day count convention](https://www.derivatives-compass.org/en/glossary/day-count-convention/), and the interpolation method. Bootstrapping is sensitive to rounding, so intermediate values are calculated without rounding[^bu-rounding].

## Assumptions and limitations

The calculations so far assume that one curve is used both for discounting and for projecting the floating rate. Rates that include bank [credit risk](https://www.derivatives-compass.org/en/glossary/credit-risk/), such as [TIBOR](https://www.derivatives-compass.org/en/glossary/tibor/), differ in nature from overnight rates[^rfr-ibor], so separate curves are sometimes built from swaps that reference each rate. The method of using different curves for projection and discounting is covered in [The Multi-Curve Framework](https://www.derivatives-compass.org/en/basics/multi-curve-framework/).

The worked example assumes annual payments with every period one year long. For a real curve, the number of years from the valuation date to each payment date is counted under the day count convention, and payment dates are adjusted under a [business day convention](https://www.derivatives-compass.org/en/glossary/business-day-convention/).

Changing the interpolation method moves the result. The effect on the 3-year par rate is shown in the example for maturities with no market rate.

[^ecb-curve]: [European Central Bank, "Euro area yield curves,"](https://www.ecb.europa.eu/stats/financial_markets_and_interest_rates/euro_area_yield_curves/html/index.en.html) introductory description.

[^ecb-zero]: [The same page](https://www.ecb.europa.eu/stats/financial_markets_and_interest_rates/euro_area_yield_curves/html/index.en.html). It says the zero-coupon curve represents the yields of hypothetical zero-coupon bonds that cannot be observed directly in the market for many maturities.

[^boj-order]: Bank of Japan Financial System and Bank Examination Department, Center for Advanced Financial Technology, ["スポットレートとその応用"](https://www.boj.or.jp/finsys/c_aft/data/aft190917b11.pdf) (in Japanese; Spot rates and their applications; the "BOJ spot rates material"), "スポットレートの計算式" (Formulas for spot rates), page 8. The document says the discount rates (spot rates) are backed out from market rates and found in the order of 1 year, 2 years, 3 years.

[^bu-hallmark]: [Donald J. Smith, "A Teaching Note on Pricing and Valuing Interest Rate Swaps Using LIBOR and OIS Discounting"](https://www.bu.edu/susilo/files/2011/10/A-Teaching-Note-on-Pricing-and-Valuing-Interest-Rate-Swaps-with-LIBOR-and-OIS-Discounting-2.pdf) (June 2012; "Smith's teaching note"), page 9.

[^bu-bond]: [The same document](https://www.bu.edu/susilo/files/2011/10/A-Teaching-Note-on-Pricing-and-Valuing-Interest-Rate-Swaps-with-LIBOR-and-OIS-Discounting-2.pdf), page 4. It treats a swap as a combination of bonds, values the implied fixed-rate bond at its principal of 100, and finds the spot rates in order.

[^bu-formula]: [The same document](https://www.bu.edu/susilo/files/2011/10/A-Teaching-Note-on-Pricing-and-Valuing-Interest-Rate-Swaps-with-LIBOR-and-OIS-Discounting-2.pdf), formula for the discount factor on page 26. The document's $$A_j$$ (the day-count factor for each period) is replaced by 1, and $$SFR_n$$ by $$S_n$$.

[^boj-df]: [The BOJ spot rates material](https://www.boj.or.jp/finsys/c_aft/data/aft190917b11.pdf), "３．ディスカウント・ファクター" (3. Discount factors), page 11. This is the formula $$DF_t = 1/(1 + r_t)^t$$ solved for $$r_t$$.

[^boj-formula]: [The same document](https://www.boj.or.jp/finsys/c_aft/data/aft190917b11.pdf), "キャッシュフロー分解" (Decomposing cash flows), page 7, and "スポットレートの計算式" (Formulas for spot rates), page 8. The document's Ｒｔ (market rate) and ｒｔ (discount rate) are written as $$R_2$$, $$r_1$$, and $$r_2$$ in the text.

[^rounding]: Each discount factor is used unrounded in the calculation for the next maturity, and rounded to the displayed digits. The spot rates and forward rates are also calculated from the unrounded discount factors.

[^boj-interp]: [The BOJ spot rates material](https://www.boj.or.jp/finsys/c_aft/data/aft190917b11.pdf), note to "スポットレートの計算式" (Formulas for spot rates), page 8.

[^bu-short]: [Smith's teaching note](https://www.bu.edu/susilo/files/2011/10/A-Teaching-Note-on-Pricing-and-Valuing-Interest-Rate-Swaps-with-LIBOR-and-OIS-Discounting-2.pdf), page 27. To find discount factors from OIS fixed rates, it uses the money market quotation convention for maturities up to one year and the quotation for swaps with periodic settlements for longer maturities.

[^rfr-ois]: [Study Group on Risk-Free Reference Rates, "日本円ＯＩＳ（Overnight Index Swap）─取引の概要と活用事例─"](https://www.boj.or.jp/paym/market/sg/data/rfr1804c.pdf) (in Japanese; Yen OIS: overview of transactions and examples of use; April 2018; the "Study Group's OIS paper"), "２．OIS とは何か" (2. What is OIS), page 3. It says that in Japan the floating rate is the uncollateralized overnight call rate (O/N rate) compounded over a set period.

[^rfr-discount]: [The Study Group's OIS paper](https://www.boj.or.jp/paym/market/sg/data/rfr1804c.pdf), "（デリバティブのディスカウント・リスクのヘッジ）" (Hedging discount risk of derivatives), page 10. It says that when derivative transactions with collateral (variation margin) are valued on a discount curve based on OIS rates, the discount risk can be hedged with OIS of the same maturities as the firm's own positions.

[^jscc-curve]: [Japan Securities Clearing Corporation, "金利スワップ証拠金"](https://www.jpx.co.jp/jscc/seisan/irs/margin.html) (in Japanese; Interest rate swap margin), "計算に使用するマーケットデータ" (Market data used in the calculation).

[^bu-general]: [Smith's teaching note](https://www.bu.edu/susilo/files/2011/10/A-Teaching-Note-on-Pricing-and-Valuing-Interest-Rate-Swaps-with-LIBOR-and-OIS-Discounting-2.pdf), pages 25–26. The document puts the day-count factor $$A_n$$ for each period into the formula and says actual/360 and actual/365 are common in practice.

[^bu-rounding]: [The same document](https://www.bu.edu/susilo/files/2011/10/A-Teaching-Note-on-Pricing-and-Valuing-Interest-Rate-Swaps-with-LIBOR-and-OIS-Discounting-2.pdf), pages 5–6.

[^rfr-ibor]: [The Study Group's OIS paper](https://www.boj.or.jp/paym/market/sg/data/rfr1804c.pdf), "（１）IBOR と OIS レートの性質の違い" (1. Differences in nature between IBOR and OIS rates), pages 7–8, and Figure 3. Page 3 of [Smith's teaching note](https://www.bu.edu/susilo/files/2011/10/A-Teaching-Note-on-Pricing-and-Valuing-Interest-Rate-Swaps-with-LIBOR-and-OIS-Discounting-2.pdf) says that when discounting with OIS, a LIBOR projection curve is found separately from the fixed rates of market swaps.

**Read next**

- [The Multi-Curve Framework](https://www.derivatives-compass.org/en/basics/multi-curve-framework/) — To see how separate curves for projection and discounting are built.
- [Valuing an Interest Rate Swap](https://www.derivatives-compass.org/en/rates/swap-valuation/) — To see the steps for valuing an interest rate swap on the curve you have built.

## Sources

- [Euro area yield curves](https://www.ecb.europa.eu/stats/financial_markets_and_interest_rates/euro_area_yield_curves/html/index.en.html) — European Central Bank
- [スポットレートとその応用](https://www.boj.or.jp/finsys/c_aft/data/aft190917b11.pdf) — 日本銀行金融機構局 金融高度化センター
- [A Teaching Note on Pricing and Valuing Interest Rate Swaps Using LIBOR and OIS Discounting](https://www.bu.edu/susilo/files/2011/10/A-Teaching-Note-on-Pricing-and-Valuing-Interest-Rate-Swaps-with-LIBOR-and-OIS-Discounting-2.pdf) — Boston University School of Management（Donald J. Smith）
- [日本円ＯＩＳ（Overnight Index Swap）─取引の概要と活用事例─](https://www.boj.or.jp/paym/market/sg/data/rfr1804c.pdf) — リスク・フリー・レートに関する勉強会（事務局 日本銀行金融市場局）
- [金利スワップ証拠金](https://www.jpx.co.jp/jscc/seisan/irs/margin.html) — 株式会社日本証券クリアリング機構
