Pro Tier Module

Bond Pricing & Yield (Duration / Convexity)

Exact fixed-income DCF: price, yield, duration, and convexity solved transparently in your browser.

Worked example: 10yr 5% semiannual par (price=100 @ 5%)
Inputs
Modeprice_from_yield
Face / par value ($)100
Annual coupon rate (%)5
Coupon frequency (per year)2
Remaining coupon periods (N)20
Market annual yield (%) - DATED input5
Result

Price $100.00 (par) at yield 5.0000%; modified duration 7.795 yr, convexity 73.629 yr^2 (VALID).

ModePrice from yield
Solved from (dated input)Market annual yield (entered): 5.0000%
Price$100.00
Yield to maturity (annual, 2x/yr)5.0000%
Periodic yield (per period)2.500000%
Coupon (per period)$2.50
Macaulay duration (years)7.989446
Modified duration (years)7.794581
Convexity (years^2)73.628731
dP/P est. for 100 bp (dur+conv)-7.4264%
dP/P exact reprice for 100 bp-7.4387%
Years to maturity10.0000

Computed by Bond Pricing & Yield (Duration / Convexity) v1.0.0, the same plugin code the GDBS app runs, when this page was built. To run it on your own figures, open it in GDBS Pro.

The problem

Fixed-income analysts need price, yield, duration, and convexity that reconcile to the standard formulas, but black-box tools hide the settlement convention and give no signal when long-maturity sums lose significance.

The local-first solution

This plugin computes exact discounted-cash-flow price and the closed-form duration and convexity on a coupon date, solves YTM and YTC with a safeguarded Newton iteration, and re-accumulates the duration and convexity sums through the GeoNum kernel for an honest conditioning signal. It surfaces the settlement convention and the figure solved for, and nothing is uploaded.

What it does

Exact DCF price from a market yield on a coupon date
Yield-to-maturity and yield-to-call solved by safeguarded Newton with a bisection fallback
Macaulay and modified duration in periods and years
Closed-form convexity in periods-squared and years-squared
Price-change estimate for a yield move using duration and convexity
GeoNum conditioning verdict on the duration and convexity sums

Honest scope

The DCF price, closed-form duration and convexity, and the numeric YTM and YTC solve are exact on a coupon date with standard periodic compounding; the market yield or target price is a dated input the plugin echoes back. Accrued interest and mid-period (dirty vs clean) settlement, day-count conventions, embedded-option (OAS) valuation, credit risk, taxes, and floating coupons are not modeled - verify against the prospectus and your day-count convention, and this is not investment advice.

Authorities cited

Get an email when tools like this one change

Leave your email and we will tell you when we add or update Finance & Investing tools like this one, at most once a month.

We email you once to confirm. After that, unsubscribe from any issue in one click. Your address goes to VaultSync only (privacy).

Related tools

Price a bond now

Run the analytics in the browser and route results into a Sandbox workspace, a Worklog case, or a Gate client portal. Nothing is uploaded to anyone's cloud.

GDBS by VaultSync Solutions Inc. - Verifiable Computation. gdbs.getvaultsync.com