User Rating 0.0 โ˜…โ˜…โ˜…โ˜…โ˜…
Total Usage 0 times
Par / nominal value of the bond
Annual coupon as a percentage of face value
Market yield (annualized)
Remaining life of the bond in years
Number of coupon payments per year
Hypothetical yield change in basis points (1 bp = 0.01%)

Enter bond parameters and click Calculate to see convexity, duration, and price sensitivity analysis.

Is this tool helpful?

Your feedback helps us improve.

โ˜… โ˜… โ˜… โ˜… โ˜…

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.

bond convexity modified duration macaulay duration bond pricing fixed income yield to maturity interest rate risk bond calculator

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:

P = Nโˆ‘t=1 CFt(1 + yk)t

where CFt = c โ‹… Fk for t < N, and CFN = c โ‹… Fk + F.

Macaulay Duration measures the weighted-average time to receive cash flows:

DMac = Nโˆ‘t=1 t โ‹… CFt(1 + yk)tP

The result is in periods. Dividing by k converts to years. Modified Duration adjusts for compounding:

DMod = DMac1 + yk

Convexity captures the second derivative of price with respect to yield:

C = 1P โ‹… (1 + yk)2 โ‹… Nโˆ‘t=1 CFt โ‹… t โ‹… (t + 1)(1 + yk)t

The second-order price change estimate for a yield shift ฮ”y is:

ฮ”PP โˆ’DMod โ‹… ฮ”y + 12 โ‹… C โ‹… (ฮ”y)2

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 TypeTypical CouponMaturity RangeConvexity RangeModified DurationKey Risk
US Treasury Note2 - 5%2 - 10yr5 - 901.8 - 8.5Interest rate
US Treasury Bond3 - 6%20 - 30yr150 - 70012 - 20Interest rate
Investment-Grade Corporate3 - 6%5 - 30yr20 - 5004 - 15Credit + Rate
High-Yield Corporate5 - 10%5 - 10yr15 - 803 - 7Credit spread
Municipal Bond2 - 5%10 - 30yr50 - 4005 - 14Call risk + Rate
Zero-Coupon Bond (10yr)0%10yr90 - 110โ‰ˆ MaturityMaximum rate sensitivity
Zero-Coupon Bond (30yr)0%30yr800 - 950โ‰ˆ MaturityMaximum rate sensitivity
Floating Rate NoteSOFR + spread1 - 5yrโ‰ˆ 00.1 - 0.5Credit spread
Mortgage-Backed Security3 - 6%15 - 30yrNegative possible2 - 8Prepayment (neg. convexity)
Callable Corporate4 - 7%10 - 30yrNegative near call3 - 10Neg. convexity near call price
Inflation-Linked (TIPS)0.5 - 2% real5 - 30yr20 - 6004 - 18Real rate + Inflation
Perpetual Bond4 - 8%โˆžVery high1/yExtreme rate sensitivity
Sovereign EM Bond5 - 12%5 - 30yr25 - 3503 - 12Credit + FX + Rate

Frequently Asked Questions

All cash flow is concentrated at maturity, so the weight in the convexity summation falls on the largest possible value of t ยท (t + 1). A coupon-bearing bond distributes cash flows earlier, reducing the weighted sum. For a 30-year zero-coupon at 5% yield, convexity exceeds 800, whereas a 30-year 6% coupon bond at the same yield typically shows convexity around 300-400.
Modified duration provides a linear (first-order) approximation of price sensitivity. For small yield changes (under 25 bps), duration alone is accurate to within a few basis points of actual price movement. For larger shifts (100+ bps), the convexity adjustment - ยฝ ยท C ยท (ฮ”y)ยฒ - can account for 0.5-2.0% of price, depending on the bond's profile. The convexity term is always positive for option-free bonds, meaning duration-only estimates systematically overstate losses and understate gains.
Yes. Callable bonds and mortgage-backed securities exhibit negative convexity when yields drop near the call or prepayment threshold. As yields fall, the probability of early redemption rises, capping the bond's price upside. The price-yield curve bends downward (concave), producing negative convexity. This calculator assumes option-free bonds. For callable bonds, use an option-adjusted spread (OAS) model to compute effective convexity via finite differences.
The raw summation formula produces convexity in period-squared units. To annualize, divide by kยฒ (where k is the number of coupon payments per year). This calculator reports annualized convexity directly. A semiannual bond with raw period convexity of 400 has annualized convexity of 400 / 4 = 100. Always verify which convention a source uses before comparing values across systems.
Higher coupon frequency (e.g., monthly vs. semiannual) slightly reduces both Macaulay duration and convexity because cash flows arrive sooner and more frequently, reducing the time-weighted present value. The effect is modest for typical bonds: switching from semiannual to quarterly on a 10-year 5% coupon bond at 5% yield changes convexity by roughly 1-3%. The dominant factors remain maturity and coupon rate.
Higher yields apply heavier discounting to distant cash flows, shifting the effective weight toward earlier periods. Since duration and convexity are weighted by PV-of-cash-flow / price, the distant cash flows contribute less to both measures. For a 20-year 4% coupon bond, raising yield from 3% to 7% can reduce modified duration from ~14 to ~11 years and convexity from ~280 to ~160.
For yield shifts up to approximately 200 bps, the duration + convexity (second-order Taylor) approximation is typically within 0.05-0.10% of the exact repriced value for option-free bonds. Beyond 300 bps, third-order effects become noticeable. Institutional desks handling tail-risk scenarios (e.g., stress tests with 500+ bps shocks) often reprice the full cash flow schedule rather than relying on the polynomial approximation.