Duration and Convexity Approximation Explorer

Duration measures a bond's sensitivity to yield changes: it tells you, approximately, what percentage of its price the bond gains or loses for each 1% move in yield. But duration assumes the price-yield relationship is linear — a straight-line approximation of a curved reality. Convexity corrects for that curvature, making the approximation significantly more accurate for larger yield shocks. Use the controls to see where the approximation is close and where it breaks down.

5.00%
5.00%
10 yrs
+100 bps


Duration & Convexity

Macaulay duration
Modified duration
Convexity

Prices

Initial price
True price after shock
Duration only
Dur. + Convexity

Approximation Errors

Duration-only error
Dur.+Convexity error
Adjust the yield shock to see how the approximation errors grow with shock size. Duration works well for small shocks; convexity catches the curvature for larger moves.

Key Concepts

  1. Duration is the slope of the price-yield curve. Specifically, modified duration equals \(-\frac{1}{P}\frac{dP}{dy}\) — the percentage price change per unit change in yield. On the graph, it is the slope of the orange tangent line at the starting yield. A longer-duration bond has a steeper slope.
  2. Duration works well for small yield changes, but breaks down for large ones. Because the true price-yield relationship is curved, the linear approximation diverges as the yield shock grows. Try increasing the shock from 25 bps to 300 bps and watch the error widen.
  3. Convexity corrects for the curvature. The duration-plus-convexity approximation (green dashed) adds a second-order term: \(\tfrac{1}{2} \times \text{Convexity} \times (\Delta y)^2\). This captures the bend in the curve and dramatically reduces the error.
  4. Convexity is always beneficial for bondholders. Because the true curve bends away from the tangent line on both sides, the actual price is always above what the linear approximation predicts. A rise in yields costs less than duration implies; a fall in yields gains more. This asymmetry is priced: higher-convexity bonds tend to trade at higher prices (lower yields).
  5. Longer-duration bonds experience larger price changes for a given yield shock. Increase the maturity to 20 or 25 years and observe how the price response to the same shock becomes much larger.

Formulas used: Modified duration \(= D_{\rm mac} / (1 + y/m)\). Convexity \(= \frac{1}{P(1+y/m)^2}\sum_{k=1}^{n} \frac{k}{m}\!\left(\frac{k}{m}+\frac{1}{m}\right)\!\frac{CF_k}{(1+y/m)^k}\). Price approximations: \(\Delta P \approx -P \cdot D_{\rm mod} \cdot \Delta y\) (duration only) and \(\Delta P \approx -P \cdot D_{\rm mod} \cdot \Delta y + \tfrac{1}{2} P \cdot \text{Cvx} \cdot (\Delta y)^2\) (duration + convexity).

← Return to Investment Management Materials