Related Calculators
Bond pricing in the Black-Derman-Toy model
Hull-White zero-coupon bond pricing
Build a zero-coupon yield curve from market quotes (deposits and annual-coupon par bonds), then compare three interpolation schemes — linear, log-linear and natural cubic spline — and price any fixed-coupon bond directly off each curve. All calculations run in your browser.
| Method | Price | Diff. vs linear | Yield to maturity (%) |
|---|
Dots mark the bootstrapped pillars. Forward rates expose the differences between methods: log-linear gives piecewise-constant forwards, linear-zero gives kinked forwards, and the spline gives smooth forwards that can oscillate between pillars.
| Maturity | Type | Quote (%) | Zero, linear (%) | Zero, log-lin. (%) | Zero, spline (%) | DF, linear | DF, log-lin. | DF, spline |
|---|
| Maturity | Linear | Log-linear | Cubic spline |
|---|
Linear and log-linear curves are local, so each pillar is solved exactly. The spline is refit globally once all pillars are known, so earlier instruments can reprice with a small error.
The discount factor $DF(t)$ is today's value of 1 paid at time $t$. The continuously compounded zero rate and the instantaneous forward rate are
\[ z(t) = -\frac{\ln DF(t)}{t}, \qquad f(t) = -\frac{d}{dt}\ln DF(t) = z(t) + t\,z'(t), \qquad DF(t)=\exp\!\Big(-\!\int_0^t f(u)\,du\Big). \]
Sort the instruments by maturity and solve for one new node at a time, reusing the nodes already found.
Deposit with simple rate $r$ and maturity $T\le 1$:
\[ DF(T)=\frac{1}{1+rT}. \]
Par bond with annual coupon $c$ and maturity $N$ years is worth 100 today, so
\[ c\sum_{k=1}^{N} DF(k) + DF(N) = 1. \]
When all earlier coupon dates are pillars, this solves in closed form: $DF(N)=\dfrac{1-c\sum_{k=1}^{N-1}DF(k)}{1+c}$. If some coupon dates fall between pillars (for example year 4 when pillars are 3 and 5), their $DF(k)$ come from the interpolation scheme, which itself depends on the unknown $z(N)$. The calculator then solves $g(z_N)=c\sum_{k=1}^{N}DF(k;z_N)+DF(N;z_N)-1=0$ by bisection. This is why the interpolation choice changes the bootstrapped nodes themselves, not just the values between them.
Given nodes $(t_i, z_i)$ and $t\in[t_i,t_{i+1}]$ with $h_i=t_{i+1}-t_i$ and $w=(t-t_i)/h_i$:
Linear (on zero rates)
\[ z(t)=(1-w)\,z_i + w\,z_{i+1}. \]
Simple and local, but the forward rate $f=z+tz'$ jumps at every pillar and can be unstable.
Log-linear (on discount factors)
\[ \ln DF(t)=(1-w)\ln DF(t_i)+w\ln DF(t_{i+1}) \;\Rightarrow\; f(t)=\frac{\ln DF(t_i)-\ln DF(t_{i+1})}{h_i}. \]
Equivalent to a constant forward rate between pillars. It always gives positive forwards for decreasing discount factors and is the market-standard simple choice, but forwards are discontinuous.
Natural cubic spline (on zero rates)
\[ z(t)=a_i+b_i(t-t_i)+c_i(t-t_i)^2+d_i(t-t_i)^3 . \]
The coefficients are chosen so that $z$, $z'$ and $z''$ are continuous at interior nodes, with $z''=0$ at both ends. With $m_i=z''(t_i)$, this gives a tridiagonal system
\[ h_{i-1}m_{i-1}+2(h_{i-1}+h_i)m_i+h_i m_{i+1}=6\Big(\frac{z_{i+1}-z_i}{h_i}-\frac{z_i-z_{i-1}}{h_{i-1}}\Big), \]
solved by the Thomas algorithm. The result is a smooth curve and smooth forwards, but it is non-local (changing one quote moves the whole curve) and can overshoot or produce negative forwards between pillars.
Before the first pillar the zero rate is held flat (all methods). After the last pillar the zero rate is held flat for linear and spline, and the last forward rate is extended for log-linear.
With coupon rate $c$, frequency $m$, face $F$ and $n=Tm$ payments at $t_k=k/m$:
\[ P=\sum_{k=1}^{n}\frac{cF}{m}\,DF(t_k)+F\,DF(T). \]
The bond is priced directly from the curve, independently of any market yield. The reported yield to maturity $y$ (compounded $m$ times a year) is the single rate satisfying $P=\sum_k \frac{cF/m}{(1+y/m)^k}+\frac{F}{(1+y/m)^n}$, found by bisection, so you can compare the curve-based price with the yield-based view.
Log-linear on discount factors is robust and keeps forwards positive; cubic splines give smooth forwards for derivatives pricing but need monitoring for oscillations; linear on zero rates is the simplest to explain. Compare the forward plot to judge them.
Every curve fits the pillars, but they disagree between pillars. A bond whose cash flows fall between quoted maturities is sensitive to that choice. Differences are typically a few cents per 100 and grow with curve curvature.
This is a single-curve, annual-coupon, bootstrap with simplified day counts (year fractions as entered, no calendars). It illustrates the mechanics; it is not a replacement for a multi-curve production framework.
Tagged: Interest Rate Derivatives, Option Pricing, Yield Curve, Bootstrapping