Valuing interest rate swaps and bonds and measuring market risk both require a curve, built from market rates, that discounts future payments.
Prerequisites
- Zero Rates and Forward Rates PractitionerKnowing 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 shows the relationship between interest rates and the remaining time to maturity1. To discount future cash flows, you need a series of discount factors or spot rates, one for each maturity. However, the yields on zero-coupon bonds, which pay no interest before maturity, cannot be observed directly in the market for many maturities2. Instead, discount factors are backed out from market rates such as the fixed rates of traded interest rate swaps.
You back out the discount factors in order of maturity, starting with the shortest: 1 year, 2 years, 3 years, and so on3. The method of using each discount factor you find in the calculation for the next maturity is called bootstrapping4.
Consider a hypothetical example in which the 1-year 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 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 years. At the fixed rate at which the swap trades in the market (the par rate), the present value of the swap, treated as a bond, equals its principal5. Assume annual payments with every period one year long. Let be the fixed rate of the -year swap and the discount factor for years. Then the following holds per 1 of notional amount.
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 gives the bootstrapping formula6.
The right-hand side contains only the -year fixed rate and the sum of the discount factors up to 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 with annual compounding using the following formula7.
Deep diveHow the Bank of Japan document writes the calculation with spot rates
The same calculation can also be written with spot rates instead of discount factors8. 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 be the 1-year spot rate, the 2-year spot rate, and the 2-year swap fixed rate. The relationship is as follows.
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 and gives the formula in the main text for . From year 3 on, you subtract the present value of each interest payment in the same way and find , , 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 calculated from them9.
| 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 description
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 years to 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 side10. 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 description
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 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 calculated by compounding the overnight rate over a set period11. 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%.
- Zero rate (continuous compounding)
- One-year forward rates
Present value of the net payment on each payment date (yen)
Cash flows (yen; receipts positive, payments negative)
| Payment date | Fixed | Floating (projected) | Discount factor | Present value |
|---|---|---|---|---|
| Year 1 | −200,000,000 | +100,000,000 | 0.990099 | −99,009,901 |
| Year 2 | −200,000,000 | +201,005,025 | 0.970590 | +975,467 |
| Year 3 | −200,000,000 | +409,385,601 | 0.932418 | +195,234,867 |
- Par rate (fixed rate with zero value)
- 2.34%
- Value (yen)
- +97,200,433
- DV01 (change in value when market rates rise 1bp, yen)
- +2,874,698
- Value of the input OIS repriced on the curve
- All 0
Simplifications
- A single curve (the OIS curve) is used both for discounting and for projecting future rates (single-curve).
- OIS and swaps pay annually and every period is treated as exactly one year; day count conventions, business day adjustments, and payment delays are ignored.
- Between the pillars (overnight, 1, 2, 5, and 10 years), the logarithm of the discount factor is interpolated linearly (constant forward rates between pillars).
- The notional is 10,000,000,000 yen (10 billion yen).
This simulator uses simplified calculations for learning. It cannot be used for valuing actual transactions or managing their risk. (Terms of Use)
About this simulator
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 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.
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 above12.
A discount curve is a curve used to discount future payments. Suppose derivative transactions with exchanges of variation margin (VM) are valued on a discount curve built from OIS fixed rates. Then the risk that this curve moves can be hedged with OIS of the same maturities as the firm's own positions13.
Clearing houses also build curves from market quotes. Japan Securities Clearing Corporation (JSCC) collects the market data used in calculating interest rate swap margin for each grid point it has set. It takes quotes as of 15:02 from information vendors and 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 averages14.
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 period15. So to build a curve, you need settings for the instruments and maturities used, the payment frequency, the day count convention, and the interpolation method. Bootstrapping is sensitive to rounding, so intermediate values are calculated without rounding16.
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, such as TIBOR, differ in nature from overnight rates17, 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.
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.
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.
Notes
-
European Central Bank, "Euro area yield curves," (external site) introductory description. ↩
-
The same page (external site). 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. ↩
-
Bank of Japan Financial System and Bank Examination Department, Center for Advanced Financial Technology, "スポットレートとその応用" (external site) (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. ↩
-
Donald J. Smith, "A Teaching Note on Pricing and Valuing Interest Rate Swaps Using LIBOR and OIS Discounting" (external site) (June 2012; "Smith's teaching note"), page 9. ↩
-
The same document (external site), 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. ↩
-
The same document (external site), formula for the discount factor on page 26. The document's (the day-count factor for each period) is replaced by 1, and by . ↩
-
The BOJ spot rates material (external site), "3.ディスカウント・ファクター" (3. Discount factors), page 11. This is the formula solved for . ↩
-
The same document (external site), "キャッシュフロー分解" (Decomposing cash flows), page 7, and "スポットレートの計算式" (Formulas for spot rates), page 8. The document's Rt (market rate) and rt (discount rate) are written as , , and in the text. ↩
-
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. ↩
-
The BOJ spot rates material (external site), note to "スポットレートの計算式" (Formulas for spot rates), page 8. ↩
-
Study Group on Risk-Free Reference Rates, "日本円OIS(Overnight Index Swap)─取引の概要と活用事例─" (external site) (in Japanese; Yen OIS: overview of transactions and examples of use; April 2018; the "Study Group's OIS paper"), "2.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. ↩
-
Smith's teaching note (external site), 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. ↩
-
The Study Group's OIS paper (external site), "(デリバティブのディスカウント・リスクのヘッジ)" (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. ↩
-
Japan Securities Clearing Corporation, "金利スワップ証拠金" (external site) (in Japanese; Interest rate swap margin), "計算に使用するマーケットデータ" (Market data used in the calculation). ↩
-
Smith's teaching note (external site), pages 25–26. The document puts the day-count factor for each period into the formula and says actual/360 and actual/365 are common in practice. ↩
-
The same document (external site), pages 5–6. ↩
-
The Study Group's OIS paper (external site), "(1)IBOR と OIS レートの性質の違い" (1. Differences in nature between IBOR and OIS rates), pages 7–8, and Figure 3. Page 3 of Smith's teaching note (external site) says that when discounting with OIS, a LIBOR projection curve is found separately from the fixed rates of market swaps. ↩