Convexity Calculator
See how a bond price reacts to a yield change using modified duration and convexity, with an estimated new price.
What it does
A bond price moves when the yield moves, and it does not move in a straight line. Duration measures the slope of that relationship at the current yield. Convexity measures how the slope itself changes, which is the curvature. The lecture notes from New York University's Stern School write the second-order estimate as the change in price divided by price, approximately equal to minus modified duration times the yield change plus one half of convexity times the yield change squared.
The same idea appears in MIT's fixed income course, where the Taylor expansion of the price function gives a first-order term from the first derivative and a second-order term from the second derivative divided by price. The MIT notes set out the explicit sum for convexity using the weights of each cash flow, and they point out that convexity rises as the coupon falls and as duration rises.
This page uses annual coupons and annual compounding. The price is the present value of each coupon plus the face value at maturity. Modified duration is the present-value-weighted average payment date divided by one plus the yield. Convexity is the sum of t times t plus one times each discounted cash flow, divided by the price and by one plus the yield squared. These are the modified duration and modified convexity definitions used in the Stern notes.
Enter the face value, annual coupon rate, yield to maturity, whole years to maturity and the yield change you want to test. The tool returns the price, modified duration, convexity, the estimated percentage price change and the estimated new price. For the default bond it also agrees with full repricing: a move from 5% to 6% gives $981.67 by both routes.
The estimate is local. It works well for small yield moves and gets less accurate for large ones, because a straight line and a parabola are only approximations to the true curved price function. Callable bonds, floating-rate notes and bonds with embedded options need different treatment.
How to use
- Enter the face value that will be repaid at maturity.
- Enter the annual coupon rate as a percentage of face value.
- Enter the yield to maturity as a percentage.
- Enter the number of whole years until the bond matures.
- Enter the yield change to test, using a negative number for a yield fall.
- Read the price, modified duration, convexity, estimated percentage change and estimated new price.
Formula
- F
- Face value repaid at maturity, in dollars.
- c
- Annual coupon rate as a percentage of face value.
- y
- Yield to maturity per year, written as a decimal in the formula.
- n
- Number of whole years to maturity, and the number of coupon payments.
- dy
- Change in yield, as a decimal, so 1 percent is 0.01.
- D
- Modified duration in years, the first sensitivity measure.
- C
- Convexity in yr2, the second sensitivity measure.
The coupon payment each year is F times c divided by 100. When the coupon rate equals the yield, the bond trades at par and the price equals the face value. The convexity term is always added, because dy is squared, so a yield fall gives a larger gain than the duration term alone and a yield rise gives a smaller loss. Because the compounding here is annual, a semiannual bond will need its yield and coupon periods converted before using this page. The estimated new price is the starting price times one plus the decimal price change.
Worked example
Example: a 5% coupon bond at a 5% yield, shocked by 1%
Face value $1,000, annual coupon 5%, yield to maturity 5%, two years to maturity, and a yield change of +1%. These are the defaults on the page.
- Annual coupon: $1,000 x 0.05 = $50, and the final cash flow is $1,050.
- Price: 50 / 1.05 + 1,050 / 1.05 squared = 47.6190 + 952.3810 = $1,000.00, so the bond sits at par.
- Modified duration: (1 x 50 / 1.05 squared + 2 x 1,050 / 1.05 cubed) / 1,000 = (45.3515 + 1,814.0589) / 1,000 = 1.859 yr.
- Convexity: (2 x 50 / 1.05 cubed + 6 x 1,050 / 1.05 to the fourth) / 1,000 = (86.3803 + 5,183.0256) / 1,000 = 5.269 yr2.
- Duration effect of a 1% rise: -1.859 x 0.01 = -1.859%.
- Convexity effect: 0.5 x 5.269 x 0.01 squared = 0.0263%, so the estimated change is -1.833%.
- Estimated new price: $1,000.00 x (1 - 0.01833) = $981.67. Full repricing at a 6% yield gives 50/1.06 + 1,050/1.06 squared = $981.67 as well.
Reference table
| Yield to maturity | Bond price | Modified duration | Convexity |
|---|---|---|---|
| 3% | $1,038.27 | 1.896 yr | 5.479 yr2 |
| 4% | $1,018.86 | 1.878 yr | 5.373 yr2 |
| 5% | $1,000.00 | 1.859 yr | 5.269 yr2 |
| 6% | $981.67 | 1.841 yr | 5.169 yr2 |
| 7% | $963.84 | 1.824 yr | 5.071 yr2 |
Limits
- Assumes one coupon payment per year and annual compounding, so semiannual bonds must be adapted first.
- Uses a second-order approximation, which loses accuracy for large yield shocks such as 5% or more.
- Applies to option-free bonds. A callable issue can behave very differently when yields fall.
- Ignores accrued interest, bid and ask spreads, taxes and settlement costs.
Common mistakes
- Entering the yield or the yield change as a whole number such as 1 instead of the percentage 1%.
- Mixing semiannual coupons with an annual-compounding formula without halving the rate and doubling the periods.
- Reading convexity as a percentage. It is a curvature measured in yr2 and only matters when multiplied by dy squared.
- Dropping the minus sign on the duration term, which would make price and yield move in the same direction.
- Treating the estimate as exact for a 200 basis point move instead of repricing the bond directly.
Try it yourself
Quick checks. Answers sit tucked under each question.
A zero-coupon bond pays $1,000 in two years at a 5% yield. What does the tool show for a 1% yield rise?
Price is 1,000 / 1.05 squared = $907.03, modified duration is 2 / 1.05 = 1.905 yr and convexity is 6 / 1.05 squared = 5.442 yr2. The estimated change is -1.905 x 0.01 + 0.5 x 5.442 x 0.0001 = -1.878%, giving an estimated price of $890.00.
A $500 bond pays an 8% annual coupon, matures in four years and yields 6%. What are its price and convexity?
The $40 coupons and $540 final flow discount to $534.65. Modified duration is 3.389 yr and convexity is 15.392 yr2. With no yield change the price change reads 0.000% and the new price stays $534.65.
For the default bond, what happens if the yield falls by 1% instead of rising?
The duration effect flips to +1.859% and the convexity term stays at +0.0263%, for +1.886%. The estimated new price is $1,018.86, which matches repricing at a 4% yield.
Questions
What does convexity measure?
It measures the curvature of the bond price versus yield curve. Formally it is the second derivative of price with respect to yield, divided by the price, and it improves on the duration-only estimate of a price change.
Why is the convexity adjustment always positive?
Because the formula squares the yield change. Whether yields rise or fall, the squared term is positive, so it offsets some of a duration-based loss and adds to a duration-based gain.
What is the difference between Macaulay and modified duration?
Macaulay duration is the present-value-weighted average time to the cash flows. Modified duration divides that by one plus the yield per period and gives the approximate percentage price change for a small yield move.
Does convexity rise with the coupon?
Usually the opposite. All else equal, a lower coupon puts more of the value in the distant principal payment, which raises duration and convexity. The MIT lecture notes make this point directly.
Can I use this for a semiannual coupon bond?
Only after converting the inputs. Use the yield per half-year, the coupon per half-year and twice the number of years, then halve the reported duration and divide the convexity by four to annualise them.
How accurate is the estimate for a 2% yield move?
For the default bond a 2% rise gives an estimated -3.613% and a price near $963.87. That is close to full repricing, but the gap widens as the shock grows or the bond gets longer.
Sources
- New York University Stern School, Foundations of Finance: Bond Portfolio Management, Lecture Notes 13
- MIT 15.415 Finance Theory, Lecture 5: Valuation of Fixed Income Securities II
- University of Texas at Austin, Convexity lecture notes