Bond Duration and Convexity Calculator
Fill in the bond details to see duration.

Understanding Duration

Bond duration measures sensitivity to interest rate changes. The Macaulay duration represents the weighted average time until a bondholder receives the bond's cash flows. Modified duration divides Macaulay duration by one plus the yield per period. This approximation indicates how much a bond's price will move for a one percentage point change in yield. Investors use duration to compare interest rate risk across bonds.

Convexity Matters

Convexity captures the curvature in the price-yield relationship. A bond with higher convexity experiences larger price increases when yields fall and smaller price declines when yields rise, compared with a bond of lower convexity but equal duration. Combining duration and convexity gives a more accurate estimate of price changes for significant yield shifts.

How the Calculator Works

Enter the bond's face value, annual coupon rate, yield to maturity, years until maturity, and the number of coupon payments per year. The script discounts each coupon payment and the final redemption value using the yield per period. It then multiplies each present value by the time of payment to compute the numerator for duration and by the time squared for convexity. The formulas are:

D=t=1ntPV(CF_t)Price

Cx=t=1ntt+1PV(CF_t)Price(1+y)2

Where PV(CF_t) is the present value of cash flow t, n is the total number of payments, y is the yield per period, and Price is the bond's present price. The calculator outputs Macaulay duration, modified duration, and convexity.

Practical Applications

Portfolio managers use duration and convexity to hedge interest rate exposure. For instance, a portfolio with high duration will lose more value when rates rise. By selecting bonds with specific duration and convexity characteristics, managers can match liabilities, immunize portfolios, or position for expected rate movements. Individual investors can also benefit from understanding these metrics when comparing bond funds or constructing fixed-income ladders.

Limitations

This calculator assumes constant yields and equal time periods between payments. It does not account for embedded options such as call features, which can alter effective duration. Additionally, for bonds with very long maturities or large coupon disparities, the approximations may be less precise. Nonetheless, it offers a useful starting point for analyzing interest rate risk.

Example

Suppose a bond has a face value of $1,000, a 5% annual coupon, a 4% yield to maturity, 10 years remaining, and pays semiannually. Entering these values reveals a Macaulay duration of about nine years and a convexity of roughly 85. Such information helps gauge the potential price change if yields move up or down by a certain amount.

Related Calculators

Home Energy Audit ROI Calculator - See If an Audit Pays Off

Determine how long it takes for a professional energy audit to pay for itself. Input audit cost and estimated annual savings from improvements.

home energy audit ROI energy audit payback calculator energy savings

Employee Training Cost Benefit Calculator - Measure ROI on Skill Development

See how quickly professional development pays off. Enter training cost per employee, number of employees, expected monthly productivity gain, and monthly revenue per employee.

employee training ROI calculator workforce development payback productivity gain

Carbon Offset Calculator - Neutralize Your Travel Emissions

Estimate how many carbon offsets you need for flights or road trips and what it might cost.

carbon offset calculator travel emissions flight emissions