Bond Convexity Calculator
Calculate bond convexity to measure the curvature of the price-yield relationship and improve interest rate risk estimates beyond duration.
Formula & Methodology
Understanding Bond Convexity: Formula, Calculation, and Applications
Bond convexity measures the curvature in the relationship between a bond's price and its yield. While duration captures the linear (first-order) sensitivity of a bond's price to interest rate changes, convexity accounts for the fact that this relationship is not a straight line — it curves. This second-order measure provides a more accurate estimate of bond price changes, especially when yield shifts are large.
The Bond Convexity Formula
The formula for calculating bond convexity is:
C = (1 / (P × m²)) × Σ [CFt × t × (t + 1) / (1 + y/m)t+2]
where the summation runs from t = 1 to n × m. Each variable plays a specific role:
- C — the convexity of the bond, expressed in periods squared
- P — the current market price (or present value) of the bond
- m — the number of coupon payments per year (e.g., 2 for semi-annual bonds)
- CFt — the cash flow at period t (coupon payment, or coupon plus face value at maturity)
- y — the annual yield to maturity (YTM), expressed as a decimal
- n — the number of years to maturity
- t — the specific coupon period number
Derivation and Intuition
Convexity derives from the second derivative of the bond price-yield function with respect to yield. A bond's price P equals the present value of all future cash flows discounted at the yield to maturity. Taking the first derivative of P with respect to y produces dollar duration. Taking the second derivative produces a value proportional to dollar convexity. Dividing by the bond price normalizes the result, giving convexity as a unitless measure per period squared (NYU Stern School of Business, Convexity Lecture Notes).
The factor t × (t + 1) in the numerator arises naturally from taking the second derivative of the discount factor (1 + y/m)−t with respect to yield. The denominator term (1 + y/m)t+2 reflects the original discounting raised by two additional powers due to differentiation.
Step-by-Step Calculation Example
Consider a bond with the following characteristics:
- Face value: $1,000
- Annual coupon rate: 6% (semi-annual payments of $30)
- Yield to maturity: 5% annually
- Years to maturity: 5
- Coupon frequency: 2 (semi-annual)
This bond generates 10 semi-annual cash flows: $30 each for periods 1 through 9, and $1,030 (coupon plus principal) at period 10. The periodic yield equals 2.5% (5% ÷ 2).
For each period, compute CFt × t × (t + 1) / (1.025)t+2, then sum all 10 terms. Divide the total by P × m², where P is the bond's present value (approximately $1,043.76 for this example) and m² = 4. The resulting convexity for this bond is approximately 25.16.
Interpreting and Applying Convexity
Convexity improves the accuracy of price change estimates beyond what duration alone provides. The percentage price change of a bond can be approximated as:
ΔP/P ≈ −Duration × Δy + ½ × Convexity × (Δy)²
For the example bond above, if yields rise by 200 basis points (2%), duration alone might predict a price decline of roughly 8.7%. Adding the convexity adjustment — approximately ½ × 25.16 × (0.02)² = 0.50% — revises the estimated decline to about 8.2%. This convexity adjustment becomes increasingly important for larger yield changes (Investopedia, Convexity Adjustment).
Key Properties of Bond Convexity
- Positive convexity — standard option-free bonds always exhibit positive convexity, meaning the price-yield curve bows upward. Prices rise more when yields fall than they decline when yields rise by the same amount.
- Higher convexity is desirable — given two bonds with identical duration, the bond with higher convexity outperforms in both rising and falling rate environments.
- Factors that increase convexity — longer maturity, lower coupon rate, and lower yield all increase a bond's convexity.
- Callable bonds — can exhibit negative convexity at low yields, where the price-yield curve bends downward due to the embedded call option limiting price appreciation.
Use Cases in Portfolio Management
Portfolio managers use convexity for immunization strategies, matching both the duration and convexity of assets to liabilities to hedge against non-parallel yield curve shifts. Traders compare convexity across bonds to identify relative value opportunities — a bond trading at a convexity discount to comparable issues may be undervalued. Risk managers incorporate convexity into Value-at-Risk (VaR) models to capture the non-linear price behavior that duration alone misses (University of Florida, Chapter 11 — Duration, Convexity and Immunization).
Methodology and Sources
The calculation methodology implemented in this bond convexity calculator follows the standard discrete-time convexity formula as presented in fixed-income textbooks and the Society of Actuaries Exam FM curriculum. The formula discounts each cash flow individually and sums the weighted contributions, consistent with the approach described by Campbell R. Harvey of Duke University.