Bond Convexity Calculator
Calculate bond convexity, modified duration, Macaulay duration, and estimate price changes for yield shifts using exact cash flow discounting.
Enter bond parameters and click Calculate to see convexity, duration, and price sensitivity analysis.
About
Convexity measures the curvature in the relationship between a bond's price and its yield. Modified duration captures the first-order (linear) sensitivity: a 1% yield increase on a bond with modified duration 5.0 implies roughly a 5% price decline. But duration alone underestimates gains when yields fall and overestimates losses when yields rise. Convexity corrects this asymmetry. A bond with higher convexity outperforms a duration-matched bond in both rising and falling rate environments. For portfolios exceeding $10M in fixed-income exposure, ignoring convexity on a 100bps parallel shift can produce pricing errors of 0.5 - 2.0% of notional, translating directly to P&L misstatement.
This calculator enumerates every discrete cash flow from a plain-vanilla fixed-coupon bond, discounts each at the yield-to-maturity y, and computes Macaulay duration, modified duration, and annualized convexity C using the exact summation method. It then estimates the percentage and dollar price change for a user-specified yield shift using the second-order Taylor expansion. The model assumes a flat yield curve, no embedded options, and settlement on a coupon date (no accrued interest). For callable or putable bonds, effective convexity from an OAS model is required instead.
Formulas
The dirty price of a fixed-coupon bond paying k coupons per year over N total periods is the sum of discounted cash flows:
where CFt = c โ Fk for t < N, and CFN = c โ Fk + F.
Macaulay Duration measures the weighted-average time to receive cash flows:
The result is in periods. Dividing by k converts to years. Modified Duration adjusts for compounding:
Convexity captures the second derivative of price with respect to yield:
The second-order price change estimate for a yield shift ฮy is:
Where P = bond price, F = face (par) value, c = annual coupon rate (decimal), y = yield to maturity (decimal), k = coupon payments per year, N = total number of coupon periods (k ร years to maturity), t = period index, ฮy = hypothetical yield change (decimal), DMac = Macaulay duration (years), DMod = modified duration (years), C = annualized convexity.
Reference Data
| Bond Type | Typical Coupon | Maturity Range | Convexity Range | Modified Duration | Key Risk |
|---|---|---|---|---|---|
| US Treasury Note | 2 - 5% | 2 - 10yr | 5 - 90 | 1.8 - 8.5 | Interest rate |
| US Treasury Bond | 3 - 6% | 20 - 30yr | 150 - 700 | 12 - 20 | Interest rate |
| Investment-Grade Corporate | 3 - 6% | 5 - 30yr | 20 - 500 | 4 - 15 | Credit + Rate |
| High-Yield Corporate | 5 - 10% | 5 - 10yr | 15 - 80 | 3 - 7 | Credit spread |
| Municipal Bond | 2 - 5% | 10 - 30yr | 50 - 400 | 5 - 14 | Call risk + Rate |
| Zero-Coupon Bond (10yr) | 0% | 10yr | 90 - 110 | โ Maturity | Maximum rate sensitivity |
| Zero-Coupon Bond (30yr) | 0% | 30yr | 800 - 950 | โ Maturity | Maximum rate sensitivity |
| Floating Rate Note | SOFR + spread | 1 - 5yr | โ 0 | 0.1 - 0.5 | Credit spread |
| Mortgage-Backed Security | 3 - 6% | 15 - 30yr | Negative possible | 2 - 8 | Prepayment (neg. convexity) |
| Callable Corporate | 4 - 7% | 10 - 30yr | Negative near call | 3 - 10 | Neg. convexity near call price |
| Inflation-Linked (TIPS) | 0.5 - 2% real | 5 - 30yr | 20 - 600 | 4 - 18 | Real rate + Inflation |
| Perpetual Bond | 4 - 8% | โ | Very high | 1/y | Extreme rate sensitivity |
| Sovereign EM Bond | 5 - 12% | 5 - 30yr | 25 - 350 | 3 - 12 | Credit + FX + Rate |