Bond Convexity Calculator
Annualised convexity and model price of a fixed-coupon bond from its face value, coupon rate, yield to maturity, years left and coupon frequency.
Bond Convexity Calculator
Background.
Bond prices move opposite to yields, but not along a straight line. When yields fall, a fixed-rate bond gains a little more than a straight-line estimate predicts; when they rise, it loses a little less. Convexity measures that bend. Duration supplies the slope, roughly how many percent the price moves for a one-point change in yield, and convexity supplies the curvature that corrects the slope once the move gets large.
For small changes the correction barely registers. Over a full percentage point it starts to show, and over two or three points it separates a sound hedge from a misjudged one. Portfolio managers compare convexity across bonds of similar duration because the more convex bond holds up better in both directions: it gains more in a rally and loses less in a sell-off.
Three things drive the number. Maturity matters most, and convexity climbs steeply with it: at a 5% coupon and a 4% yield, a 30-year bond comes out near 391 against about 23 for a 5-year bond. Lower coupons raise it, because more of the bond's value sits in the distant final payment, so a 5-year zero-coupon bond at the same yield reaches 26.4. Higher yields pull it down slightly.
The figure here is the classic measure for a plain bond with level coupons and no options. It discounts every coupon and the final principal at the yield you enter, so it returns the model price as well. Callable bonds, mortgage-backed securities and anything else whose cash flows shift when rates move need effective convexity from a pricing model, and can show negative convexity, which a bond with fixed payments never does.
What is bond convexity calculator?
Bond convexity is the second derivative of price with respect to yield, divided by price: a measure of how sharply the price-yield curve bends. Expressed in years squared, it enters the standard price-change approximation as ½ × convexity × (change in yield)², added to the duration term. For a bond with fixed coupons and no embedded options it is always positive, which is why such a bond's price rises more for a given fall in yield than it drops for an equal rise.
How to use this calculator.
- Enter the face value, the amount repaid at maturity. It scales the model price but has no effect on convexity, so $1,000 is fine for any bond quoted per 100 or per 1,000.
- Enter the annual coupon rate as a percentage of face value, and the number of coupon payments per year: 2 for semi-annual payers such as US Treasuries, 1 for annual-pay bonds, 4 for quarterly.
- Enter the yield to maturity as an annual rate compounded at that same frequency. Use the market yield from your broker or a price screen, not the coupon rate.
- Enter the years to maturity. Years times payments per year must come to a whole number of coupon periods, so for a bond between coupon dates round to the nearest one; the page does not model accrued interest or an odd first coupon.
- Read the convexity in years squared alongside the model price. A price far from the market quote usually means the yield or coupon was entered wrongly.
The formula.
Convexity = Σ[PV(CFₜ) × t(t + 1)] ÷ [P × (1 + y/m)² × m²]. Each cash flow CFₜ, a coupon of face value × coupon rate ÷ m plus the face value in the last period, is discounted at the periodic yield y/m for t periods to give PV(CFₜ), and those present values add up to the price P. Each one is then weighted by t(t + 1), the period number times the next, which is exactly what differentiating (1 + y/m)⁻ᵗ twice produces. Dividing by P turns the sum into a proportion of price, dividing by (1 + y/m)² completes the derivative, and dividing by m² converts periods squared into years squared so semi-annual and annual bonds can be compared. Face value cancels out. Because the weights grow roughly with the square of time, the final principal payment dominates the sum, and long maturities push the result up fast.
A worked example.
A $1,000 bond pays a 5% coupon twice a year and has 5 years left, priced to yield 4%. Each half-year coupon is 1,000 × 5% ÷ 2 = $25, the periodic yield is 4% ÷ 2 = 2%, and there are 10 periods. Discounting at 2% turns the first coupon into 25 ÷ 1.02 = $24.51 and the final $1,025 into $840.86; the ten present values sum to the model price of $1,044.91. Weighting each by t(t + 1) gives 24.51 × 2 = 49.02 for the first period up to 840.86 × 110 = 92,494.27 for the last, a total of 99,681.52. Divide by the price times 1.02², which is 1,087.13, to get 91.69 in half-years squared, then by 2² = 4: the convexity is 22.92. To see it at work, raise the yield one point to 5%. The bond reprices to exactly $1,000, a 4.298% fall. Its modified duration of about 4.41 (not shown on this page) predicts 4.411% on its own; adding ½ × 22.92 × 0.01² = 0.115% brings the estimate to 4.296%, almost exact.
Frequently asked questions.
How do I combine convexity with duration to estimate a price change?
Why does another source show a convexity four times larger for the same bond?
Is a bond with higher convexity always the better buy?
Why does a zero-coupon bond have more convexity than a coupon bond of the same maturity?
Can I use this for a callable bond or a mortgage-backed security?
Does the coupon frequency change the answer much?
References& sources.
How this page was produced
- Published by
- Quanta Calculator
- Overseen by
- Daniel, Quanta Calculator Researcher
- Primary sources
- 1 cited below
- Method
- Convexity = Σ[PV(CFₜ)·t(t+1)] / [P(1+y/m)²m²]
- Published
- Last verified
Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 1560 calculators remain free
- No billing is enabled