Bond Convexity Calculator
Bond Convexity Calculator – Measure Interest Risk
Bond Details
Bond's face value
Annual coupon rate
YTM
Years until maturity
Calculated Metrics
Auto-calculated
Auto-calculated
Price Sensitivity (Optional)
Auto-calculated
Auto-calculated
Convexity Components
Risk Metrics
Price-Yield Relationship
Duration vs Convexity
Convexity Scenarios
Scenario | Convexity | Modified Duration | Price Change (1%) | Variance (%) |
---|
Bond Convexity Calculator
The Bond Convexity Calculator measures the curvature of the bond price–yield relationship, helping investors and analysts refine estimates of price changes when interest rates move. Convexity complements duration: while duration captures the first-order (linear) sensitivity of price to yields, convexity captures the second-order (curvature) effect that becomes meaningful for larger rate moves, long maturities, lower coupons, and bonds with embedded options. By entering core inputs—face value, coupon rate, yield, coupon frequency, time to maturity, and day-count—the Bond Convexity Calculator outputs convexity, modified duration, DV01, and an improved price change estimate that better matches market reality than duration alone.
What Is a Bond Convexity Calculator?
A Bond Convexity Calculator is a specialized fixed-income tool that quantifies how the price of a bond accelerates (or decelerates) as yields change. Bonds with higher convexity experience a more favorable price profile: they lose less value when yields rise and gain more when yields fall, compared to low-convexity bonds with the same duration. The calculator computes the bond’s convexity, modified duration, and DV01 (Dollar Value of a Basis Point), then applies the duration–convexity approximation to estimate price changes for yield shifts. For callable or putable bonds, convexity can be lower (even negative in some scenarios) due to changing cash flow timing; the calculator highlights this risk.
Why Convexity Matters
- Improved price estimates: Duration alone underestimates price changes for larger yield moves; convexity corrects the curve.
- Risk budgeting: Two bonds can have the same duration but very different convexity, leading to different risk profiles.
- Portfolio construction: Higher convexity often indicates better asymmetry—more upside when rates fall and protection when rates rise.
- Option risk awareness: Embedded options (calls, puts) alter convexity; a calculator clarifies the impact.
- Hedging accuracy: Duration hedges are more robust when convexity effects are recognized and managed.
Core Inputs
- Face Value (Par): Commonly $1,000 (or 100 in many quotes).
- Coupon Rate: Annual rate applied to face value; determines per-period coupon.
- Coupon Frequency (m): Payments per year (1, 2, 4, or 12 are typical).
- Maturity (Years): Time remaining until principal is repaid.
- Market Yield (YTM): Quoted yield consistent with the compounding and frequency conventions.
- Price (Clean or Dirty): If given, calculate duration/convexity at the observed price; otherwise compute price from yield.
- Day-Count Convention: ACT/ACT, 30/360, ACT/365 (relevant for accrued interest and settlement).
- Call/Put Features (optional): For option-embedded bonds, adjust for call dates and redemption terms.
Key Concepts
- Duration: First-order sensitivity of price to yield; the slope around the current yield.
- Modified Duration (DMod): DMac ÷ (1 + y/m); used directly in price change approximations.
- Convexity: Second-order curvature of price–yield; improves estimates for larger yield shifts.
- DV01: Dollar value of a 1 bp change in yield; DV01 ≈ DMod × Price × 0.0001.
- Duration–Convexity Approximation: ΔP ≈ −DMod × P × Δy + 0.5 × Conv × P × (Δy)2.
Bond Price and Yield Setup
For a standard coupon bond with payments per year m, total payments N, per-period yield i = y/m, and coupon per period CP = (CouponRate × Face) ÷ m:
- Cash Flows: CFt = CP for t = 1…N−1; CFN = CP + Face.
- Price (dirty): P = Σt=1→N CFt ÷ (1 + i)t
- Annuity shortcut: P = CP × [1 − (1 + i)−N] ÷ i + Face × (1 + i)−N
Quotes are typically clean (excluding accrued interest). Trades settle on the dirty price = clean price + accrued interest. The convexity and duration calculations reference the price and yield at the analysis point.
Convexity Formulas
Convexity can be computed in several equivalent ways for fixed cash flows. A practical discrete approximation—expressed in years and aligned to coupon frequency m—uses discounted cash flows:
- Macaulay Duration (years): DMac = (1/P) × Σt=1→N [ (t/m) × CFt ÷ (1 + i)t ]
- Modified Duration: DMod = DMac ÷ (1 + y/m)
- Convexity (discrete): Conv ≈ (1/P) × Σt=1→N [ CFt × (t/m) × (t/m + 1/m) ÷ (1 + i)t + 2 ]
These are common textbook approximations consistent with semiannual pricing conventions (U.S.) when m = 2. Many calculators use small-perturbation numeric methods (bump yields by ±Δ and reprice) to estimate convexity empirically, which can be robust for complex cash flows.
Duration–Convexity Approximation
For a yield change Δy (in decimal terms), the improved estimate of price change is:
- ΔP ≈ −DMod × P × Δy + (1/2) × Conv × P × (Δy)2
The first term is the linear duration effect. The second term adds curvature. For small Δy (e.g., 5–10 bps), duration dominates and the convexity term is tiny. For larger moves (50–100 bps), convexity becomes nontrivial and helps correct duration’s linear bias.
Interpreting Convexity
- Positive convexity: Most plain-vanilla bonds have positive convexity; price up-moves exceed down-moves of the same magnitude.
- Low convexity: Short maturities or high coupons reduce convexity; price curvature is muted.
- Negative or reduced convexity: Callable bonds can exhibit lower or negative convexity near the call boundary, limiting price gains as yields fall.
- Zeros vs. coupon bonds: Zero-coupon bonds typically have higher convexity than comparable coupon bonds, increasing rate sensitivity.
How to Use the Bond Convexity Calculator
- Enter face value, coupon rate, coupon frequency, and time to maturity.
- Provide market yield (YTM) consistent with the compounding convention and frequency.
- Compute the price from yield (or input observed price) and then calculate DMac, DMod, and Convexity.
- Estimate price changes for a chosen Δy using the duration–convexity approximation.
- Compare bonds or portfolios on convexity to improve hedges and select more robust exposures.
Best Practices and Conventions
- Match frequency: Use the correct frequency m (semiannual is common in the U.S.).
- Align day-count: For accrued interest and settlement, ensure ACT/ACT vs. 30/360 consistency.
- Stress size: Recognize when Δy is large enough to require convexity; for tiny moves, DV01 or duration may suffice.
- Curve-based pricing: For precision, discount cash flows using zero rates (spot curve) rather than flat YTM; convexity still applies.
- Option features: For callable bonds, consider scenario-based pricing or option-adjusted measures; convexity can change with yield.
Duration vs. Convexity in Portfolio Design
Two portfolios may have the same net duration but different convexity. The higher-convexity portfolio typically offers improved asymmetry: more gain for rate declines, less loss for rate increases of the same magnitude. This convexity premium can be valuable during volatile rate regimes. However, higher convexity may come with trade-offs—longer maturities, lower coupons, or reduced yield—so the calculator helps quantify the balance between yield, duration, and convexity to meet a risk budget and return target.
Comparing Bonds on Convexity
When comparing bonds:
- Keep yield constant to isolate cash flow effects (coupon and maturity) on convexity.
- Keep price constant to compare at a given valuation; unusually high convexity at similar price may indicate optionality or longer duration.
- Watch callable structures: Apparent convexity can change rapidly around call boundaries; use option-adjusted analytics for realistic assessments.
Worked Example 1: Compute Convexity and Price Change
- Face: $1,000; Coupon Rate: 5% annual.
- Frequency: m = 2 (semiannual); Maturity: 5 years ⇒ N = 10 periods.
- Yield (APR): y = 4%; per-period i = 0.02.
- Coupon per period: CP = (0.05 × 1,000)/2 = $25.
Price: P = 25 × [1 − (1.02)−10] ÷ 0.02 + 1,000 × (1.02)−10 ≈ $1,044.91.
Macaulay Duration: Compute DMac numerically by weighting each discounted cash flow by its time (t/m) and dividing by price. For a 5-year, 5% bond at 4%, DMac ≈ 4.55 years (approximate).
- Modified Duration: DMod = 4.55 ÷ (1 + 0.04/2) = 4.55 ÷ 1.02 ≈ 4.46.
- DV01: DV01 ≈ 4.46 × 1,044.91 × 0.0001 ≈ $0.47.
Convexity: Using the discrete approximation, Conv ≈ (1/P) × Σ CFt × (t/m) × (t/m + 1/m) ÷ (1 + i)t + 2. For this bond, a typical convexity value is around 20–23 (illustrative; exact depends on precise computation).
Price change estimate: For a +50 bp (Δy = +0.005) move,
- ΔP ≈ −4.46 × 1,044.91 × 0.005 + 0.5 × 22 × 1,044.91 × (0.005)2 ≈ −$23.33 + $0.29 ≈ −$23.04.
Interpretation: The convexity term slightly cushions the loss predicted by duration alone. For larger moves or longer-dated bonds, the convexity correction becomes more material.
Worked Example 2: Comparing Two Bonds
Consider two bonds priced around par, both with modified duration ≈ 7.0:
- Bond A: 10-year maturity, 6% coupon, DMod ≈ 7.0, Convexity ≈ 60 (illustrative).
- Bond B: 10-year maturity, 3% coupon, DMod ≈ 7.0, Convexity ≈ 75 (illustrative).
Scenario: Yields drop by 1.00% (Δy = −0.01). Using duration–convexity:
- ΔPA ≈ −7.0 × P × (−0.01) + 0.5 × 60 × P × (0.01)2 = +0.07P + 0.003P = +7.3%.
- ΔPB ≈ −7.0 × P × (−0.01) + 0.5 × 75 × P × (0.01)2 = +0.07P + 0.00375P = +7.375%.
Interpretation: With equal duration, the higher-convexity bond (lower coupon) gains slightly more when yields fall and loses slightly less when yields rise. Over large moves, the difference compounds, favoring higher convexity for asymmetric outcomes.
Advanced Topics
Curve-Based Pricing and Convexity
Professional pricing discounts each cash flow using zero rates from a yield curve. Duration and convexity can be computed under these curve assumptions, yielding effective duration and effective convexity that reflect curve shifts. For parallel shifts, results resemble flat-YTM analytics; for non-parallel shifts (twists, butterflies), sensitivity varies by cash flow timing.
Callable and Mortgage-Backed Securities
Bonds with embedded options (callable corporates, mortgage-backed securities) often exhibit lower or negative convexity for declines in yield. As yields fall, the likelihood of early redemption or faster prepayments rises, limiting price appreciation and reducing convexity. Use option-adjusted measures and scenario analysis; the Bond Convexity Calculator should highlight when convexity is not strictly positive.
Zero-Coupon Bonds
Zeros have cash flows only at maturity, increasing both duration and convexity relative to coupon bonds of the same maturity. They are more sensitive to rate changes and often serve as convexity enhancers in portfolios—balanced against income needs and yield targets.
TIPS (Inflation-Linked)
For inflation-linked bonds such as TIPS, coupons and principal are indexed by an inflation factor. Effective duration and convexity are computed on the real-yield curve with index-adjusted cash flows. These securities can provide convexity benefits while hedging inflation risk, though indexation and seasonality complicate analytics.
Practical Workflow
- Gather bond details (face, coupon, frequency, maturity, price/yield, day-count).
- Compute price and cash flow schedule; verify clean vs. dirty amounts.
- Calculate DMac, DMod, DV01, and Convexity at the analysis yield.
- Apply duration–convexity approximation for chosen Δy (e.g., ±25, ±50, ±100 bps).
- Compare bonds and portfolios; identify convexity gaps, adjust exposures accordingly.
- For option-embedded bonds, consider option-adjusted analytics or scenario pricing.
Interpreting Results
- Higher convexity: More curvature; better asymmetry for rate moves; typically longer maturity or lower coupon.
- Lower convexity: Less curvature; price estimates rely more on duration; may indicate callable risk.
- DV01 vs. convexity: DV01 is local linear sensitivity; convexity corrects the estimate over larger Δy.
- Yield and frequency: Use consistent conventions; mismatches distort analytics.
- Scenario size: For small Δy, duration suffices; for larger moves, include convexity.
Tips & Best Practices
- Consistency first: Align frequency, compounding, and day-count with market conventions.
- Use curve-aware analytics: Where possible, compute effective measures using zero curves.
- Stress both directions: Examine up and down yield moves; convexity impacts are asymmetric.
- Beware optionality: Callable/putable features alter convexity; use option-adjusted measures.
- Document assumptions: Record yield sources, frequency, and curve inputs for reproducibility.
FAQs
- Is convexity always positive? Not necessarily. Callable bonds can show reduced or negative convexity when yields fall.
- How is convexity different from duration? Duration is linear sensitivity (first derivative); convexity is curvature (second derivative) of price with respect to yield.
- Do I need convexity for small rate moves? For small changes (e.g., <10 bps), duration/DV01 often suffice; convexity improves estimates for larger moves.
- Why do zeros have higher convexity? Cash flows are concentrated at maturity, increasing curvature and rate sensitivity.
- Can convexity be computed numerically? Yes. Many systems bump yields up/down and reprice to estimate convexity empirically.
Common Mistakes
- Mismatched conventions: Using annual yield with semiannual frequency or wrong day-count skews results.
- Ignoring convexity: Relying on duration alone for large moves leads to estimation bias.
- Not accounting for optionality: Callable structures reduce convexity; duration-only comparisons mislead.
- Flat-YTM shortcuts: For relative value, discount with zero curves; flat-YTM can hide curve effects.
- Using clean price for settlement: Remember dirty price drives cash settlement; convexity still references total value.
Quick Reference (Copy/Paste Formulas)
- Per-period yield: i = y/m
- Per-period coupon: CP = (CouponRate × Face) ÷ m
- Price: P = CP × [1 − (1 + i)−N] ÷ i + Face × (1 + i)−N
- Macaulay Duration: DMac = (1/P) × Σ [ (t/m) × CFt ÷ (1 + i)t ]
- Modified Duration: DMod = DMac ÷ (1 + y/m)
- DV01: DV01 ≈ DMod × P × 0.0001
- Convexity (discrete): Conv ≈ (1/P) × Σ [ CFt × (t/m) × (t/m + 1/m) ÷ (1 + i)t + 2 ]
- Price Change: ΔP ≈ −DMod × P × Δy + 0.5 × Conv × P × (Δy)2
References & Further Reading
- Investopedia: Bond Convexity
- Investopedia: Duration
- U.S. Treasury: Yield Curve Rates
- FINRA: Bonds Overview
Disclaimer
The Bond Convexity Calculator provides educational analytics based on standard market assumptions. Real-world outcomes depend on yield curve dynamics, credit spreads, liquidity, option features, taxes, and fees. For callable or structured securities, consider option-adjusted analytics. This content is not investment advice; verify assumptions and consult professional resources before trading.
Quick Recap: Enter bond details and yield, compute price, modified duration, DV01, and convexity. Use the duration–convexity approximation to estimate price changes for yield shifts. Compare bonds on convexity to improve hedging, risk budgeting, and portfolio construction. The Bond Convexity Calculator adds a crucial second-order lens to fixed-income decision-making.