The Mathematical Framework Behind Bond Convexity
The Bond Convexity Calculator determines the second derivative of a bond's price with respect to its yield, adjusted by the bond price itself. This captures the curvature of the price-yield relationship.
First, the bond's price is the present value of all future cash flows:
coupon payment = (face value x annual coupon rate) / frequency
bond price = sum(coupon / (1 + YTM/freq)^t) + face value / (1 + YTM/freq)^N
Then convexity is derived from the weighted sum of present values adjusted by time-squared factors:
convexity = [sum(((t^2 + t) x PV(coupon_t)) / (1 + y)^2) + (N^2 x PV(face)) / (1 + y)^2] / (price x freq^2)
For a $1,000 bond at 5% coupon, semi-annual, 10-year maturity, and 4% YTM: bond price = $1,081.76, convexity = 72.4827, modified duration = 7.9225 yrs.
How Maturity and Yield Affect Convexity
Convexity is most sensitive to maturity and yield level. Here are verified examples using $1,000 face value, 5% coupon, semi-annual payments:
| Maturity | YTM | Convexity | Mod. Duration | Price Change (+1%) |
|---|---|---|---|---|
| 5 years | 4% | 21.0366 | 4.4107 yrs | -4.306% |
| 10 years | 4% | 72.4827 | 7.9225 yrs | -7.560% |
| 10 years | 6% | 68.9662 | 7.6650 yrs | -7.320% |
| 30 years | 4% | 387.2965 | 16.5995 yrs | -14.663% |
A zero-coupon 10-year bond at 4% YTM has the highest convexity at 96.1169, because all cash flow is concentrated at maturity.
Modified Convexity vs Effective Convexity
This calculator computes modified convexity, which assumes fixed cash flows -- appropriate for option-free bonds like Treasuries and plain vanilla corporates.
For bonds with embedded options (callable, puttable, or mortgage-backed securities), use effective convexity instead. Effective convexity accounts for how cash flows change as rates move, typically requiring an option-adjusted spread (OAS) model.
Modified Convexity: Fixed cash flows -- use for Treasuries, corporate bonds
Effective Convexity: Variable cash flows -- use for callable bonds, MBS
Using modified convexity on a callable bond would overestimate positive convexity, since the call option caps price appreciation when rates fall.
