When interest rates rise, bond prices fall, but not in a straight line. Duration gives a first estimate of how much, and convexity corrects it for the curvature of the price-yield relationship. This calculator prices a fixed-rate bond, computes its modified duration and convexity, and uses them to estimate the price change for a shift in yield, then reprices the bond exactly so you can see the error of the estimate.
How the calculation works
- Price = sum of the discounted coupons and the discounted face value
- Modified duration D = −(dP ÷ dy) ÷ P
- Convexity C = (d²P ÷ dy²) ÷ P
- Estimated price change ≈ −D × Δy + ½ × C × Δy²
- The yield per period is the annual yield divided by the number of coupons per year
Example
A bond with a face value of $1,000, a 5% coupon paid semiannually and 10 years to maturity yields 4.5%. Its price is $1,039.91, the modified duration is 7.86 years and the convexity is 74.6. If yields rise by 100 basis points, the duration alone suggests a fall of 7.86%. With convexity the estimate improves to −7.49%, very close to the exact repricing of −7.50%, a new price of $961.93.
Why it matters
Portfolio managers use duration to match the interest-rate sensitivity of assets and liabilities, and convexity to judge larger rate moves. Over a one-point change, the convexity term is small. Over three or four points, it becomes the difference between a good and a poor estimate, which is why it matters for long-dated bonds in volatile markets.
Good to know
The formulas assume a bond with fixed coupons and no embedded options. For callable bonds or mortgage-backed securities, price can behave differently, and the effective duration measured by repricing is more accurate. The yield change is treated as a parallel shift of the whole curve. This tool is for education and is not investment advice.
Related tools
The bond calculator prices a bond and gives its yield to maturity, the present value calculator discounts cash flows, and the portfolio risk calculator measures the volatility of a mix of assets.