Cernarus

Bond Convexity Calculator

This calculator computes a bond's clean price and produces numerical approximations for modified duration and convexity by evaluating price at a small positive and negative yield shift. Numerical differentiation provides a practical, robust result for a wide range of coupon structures without requiring manual summation formulas.

Use the yield-shift parameter to calibrate accuracy: smaller shifts reduce bias but increase floating-point sensitivity. Default shift is 1 basis point (0.0001). Review the methodology and limitations below before using results for production or regulatory reporting.

Updated Nov 20, 2025

Inputs

Results

Updates as you type

Clean Price

$1,081.76

Price (yield + shift)

$1,080.90

Price (yield - shift)

$1,082.61

Modified Duration (approx)

Convexity (approx, annualized)

Approx. Price Change for +1% Interest Rate Move

OutputValueUnit
Clean Price$1,081.76USD
Price (yield + shift)$1,080.90USD
Price (yield - shift)$1,082.61USD
Modified Duration (approx)years
Convexity (approx, annualized)years^2
Approx. Price Change for +1% Interest Rate Move%
Primary result$1,081.76

Visualization

Methodology

Price is computed as the present value of coupon payments and principal using periodic discounting: an annuity term plus final principal PV. For a coupon frequency f, periodic yield is y/f and number of periods is years*f.

Durations and convexity are computed using central finite-difference approximations: D ≈ - (P(y+Δ) - P(y-Δ)) / (2*P*Δ) and Convexity ≈ (P(y+Δ) + P(y-Δ) - 2P(y)) / (2*P*Δ^2). This technique avoids analytic closed-form derivation errors and is widely used in production risk systems.

Accuracy guidance and operational controls: validate results by reducing yield-shift and confirming convergence; avoid shifts that are too small relative to machine epsilon. For mission-critical or regulatory calculations, run sensitivity analysis and independent reconciliation.

Worked examples

Example: Par=1000, coupon=5% (0.05), years=10, YTM=4% (0.04), semiannual. With default Δ=0.0001 the tool returns price, modified duration ≈ 8.x years, convexity ≈ 85–120 years^2 depending on coupon and term. Reduce Δ to 1e-5 to verify stability; results should converge.

Further resources

Expert Q&A

Why use a numerical derivative instead of closed-form convexity formulas?

Numerical derivatives avoid algebraic mistakes and provide consistent results for any payment frequency and irregular cash flows. They are simple to implement, easy to validate, and robust for production use when Δ is chosen carefully.

How should I choose the yield shift (Δ)?

Start with 1 basis point (0.0001). If results change significantly when halving Δ, test smaller Δ until values stabilize. Do not choose Δ too close to machine precision; very small Δ increases rounding noise. For reporting-level precision, perform a convergence test.

Are results suitable for regulatory or accounting reporting?

This tool provides approximations intended for analysis and validation. For formal regulatory reporting, follow your organization's validation procedures and reconciliations. Maintain audit trails and apply controls consistent with ISO 9001 quality management and applicable regulator guidance.

What are the known limits of this calculator?

It assumes fixed coupons, fixed maturity and parallel yield shifts. It does not model embedded options, stochastic rates, or credit events. For callable or putable bonds, use an appropriate option-adjusted model.

Sources & citations