# Yield Curve Bootstrapping Excel Model

Build a discount curve from observed bond prices and use it to value dated cash flows. Shift the curve, bump a quote and measure how much the present value moves.

- Canonical: https://finamodel.com/templates/yield-curve-construction-and-simulation
- Excel download: https://finamodel.com/templates/yield-curve-construction-and-simulation.xlsx
- Category: Capital Markets
- Model type: Valuation
- Difficulty: Advanced
- Audiences: Investors & analysts, Credit & risk, Bankers & advisors, Fixed income analysts, Treasury and ALM teams, Market risk managers, Finance students and quants
- Tags: yield-curve, bootstrapping, fixed-income, interest-rate-risk, dv01, bond-pricing

## Overview

A yield curve model built from observed coupon bond prices. The shipped case uses ten fictional semiannual bonds out to five years, quoted as dirty prices on a coupon date. No real treasury data is used.

Each bond adds one new discount factor, solved from its price less the value of earlier coupons. Spot, continuous zero, forward and par rates follow from the discount factors. Dated cash flows are valued by bracketing each payment date and interpolating the log of the discount factors, with no extrapolation. Parallel, steepener and flattener shocks rebuild the curve, and a quote sensitivity rebootstraps after one price change.

On the shipped case the five-year spot rate is about 5.17%, and three dated cash flows have a present value of about USD 993,160. Parallel DV01 is about USD 301 per basis point, mostly in the long bucket. A full 100 bp parallel stress lowers value by about USD 29,654, against a linear estimate of USD 30,124. Every bond reprices to its quote with zero difference, and stale or incomplete quotes are held.

## What's included

- Bond input sheet with maturity, coupon, dirty price and face value
- Sequential bootstrap of ten semiannual discount factors
- Spot, continuous zero, simple forward and par coupon rates
- Market review of periods and quote freshness
- Repricing check of every bond from an explicit cash flow matrix
- Base, parallel up, steepener and flattener rate scenarios
- Off-grid cash flow valuation with log-linear discount factor interpolation
- Parallel and bucket DV01 with a bucket tie
- Full parallel stress compared with the linear estimate
- Quote sensitivity that rebootstraps after one price change
- Chart of base and stressed zero rates

## A curve from real prices

Discount factors are solved one bond at a time from dirty prices, and every bond reprices back to its quote.

## Value any payment date

Cash flows between curve dates are valued by log-linear interpolation of discount factors. Dates outside the curve are held, not guessed.

## Measure rate risk

See DV01 by bucket, compare a full parallel stress with the linear estimate, and test the effect of a single quote change.

## Workbook structure

### Curve

Bootstrapped curve and conventions.

- Discount factor by node
- Spot, zero, forward and par rates
- Settlement and quote basis

### Scenarios

Deterministic curve shocks.

- Case selector and shocks
- Scenario spot and discount factor

### Bootstrap

Sequential discount factor solve.

- Earlier coupon PV
- Final cash flow and discount factor

### Instruments

Observed coupon bond inputs.

- Maturity and coupon
- Dirty price and face value

### Checks

Repricing and curve controls.

- Observed versus repriced value
- Cash flow matrix

### Market review

Input validity and chronology.

- Required and observed period
- Quote age and control

### Cashflow application

Dated cash flow valuation.

- Bracketing curve nodes
- Interpolation weight

### Application review

Present value and use decision.

- Base and scenario PV
- Invalid nodes and rows

### Curve use guide

Method and limits.

- Rate conventions
- Boundary and freshness rules

### Cashflow rate risk

PV risk to curve moves.

- Parallel and bucket DV01
- Full versus linear stress
- Zero rate chart

### Quote sensitivity

Rebootstrap after one quote change.

- Bumped quote and discount factors
- PV change

## Frequently asked questions

### What is yield curve bootstrapping?

Bootstrapping builds a discount curve from bond prices one maturity at a time. The shortest bond gives the first discount factor. Each longer bond then solves one new factor using the factors already found.

### How are cash flows between curve dates valued?

The model finds the two curve dates around each payment and interpolates the log of their discount factors. Payments before the first or after the last curve date are held, because the model does not extrapolate.

### What do the scenarios show?

Parallel, steepener and flattener shocks shift spot rates and rebuild discount factors. They are fixed what-if cases, not forecasts or random simulations.

### What is not included?

The model has no stub periods, holiday adjustments or credit spreads. Settlement is on a coupon date with zero accrued interest. Bucket DV01 is by cash flow maturity, not a recalibrated key-rate measure.

### How do I use my own bonds?

Replace the instruments with your own regular semiannual bonds and dirty prices, and set the quote date. Keep periods in order with no gaps, and extend the ranges together if you add nodes.

## Related templates

- [Fixed Income Portfolio Model](https://finamodel.com/templates/fixed-income-portfolio-model)
- [Bond Trading Model](https://finamodel.com/templates/bond-trading-model)
- [Interest Rate and Cross-Currency Swap Valuation Model](https://finamodel.com/templates/finawork-008-swap-cash-flow-valuation)
