b2KIT

Bond Pricing Calculator

Calculate bond prices, yield to maturity, duration, and convexity. Visualize price-yield curves and coupon cash flows.

Tested tool guide Tested browser tools Checked August 16, 2026

What Bond Pricing Calculator does, with a checked example

Bond pricing is present-value arithmetic in reverse: a bond promises fixed coupon payments and a lump-sum principal repayment, and the price is what those promises are worth today at the yield to maturity. This tool takes the coupon rate, maturity, face value, and yield, computes the price, and reverses the calculation to solve for yield when you enter a market price instead. It also reports duration and convexity and draws the price-yield curve and coupon timeline. The recurring surprise: price and yield move in opposite directions, so a coupon above the market yield means a premium price.

Worked example

A concrete input and expected output from the current implementation.

Input

Face value $1,000; coupon rate 6% paid annually; 5 years to maturity; yield to maturity 5%

Expected output

Price: $1,043.29 per $1,000 face value, a 4.33% premium (coupon above yield). Macaulay duration: 4.48 years; modified duration: 4.26; convexity: 23.4. The curve shows price falling as yield rises, reaching par at a 6% yield.

Each $60 coupon is discounted at 5% per year - the year-5 coupon is worth 60 / 1.05^5 = $47.01 and the principal 1,000 / 1.05^5 = $783.53 - and the discounted stream sums to $1,043.29. Because the coupon rate exceeds the yield, the bond trades at a premium; at a yield equal to the coupon rate it would trade at par.

How the result is produced

1

Present value of the promised cash flows

The price equals the sum of every remaining cash flow discounted at the yield to maturity: a coupon in period t contributes C / (1 + y)^t and the principal repays F / (1 + y)^n. Distant payments are discounted most, which is why long maturities react more to yield changes. Payment frequency and day-count convention change the exact discounting, so the result depends on the bond's convention.

2

Yield, duration, and convexity

Yield to maturity is the single discount rate that makes present value equal the market price, effectively the bond's internal rate of return. It has no closed-form solution, so the calculator searches for the rate that reproduces the entered price. Duration is the present-value-weighted average time to each cash flow; convexity measures the curvature of the price-yield relationship. Together they estimate how much a yield move changes the price.

Good uses

  • Fair-value check on a quoted bond: enter the coupon, maturity, and face value with the current yield, and compare the computed price with a broker's quote. A meaningful gap means one of the inputs or the quote's implied yield deserves a second look.
  • Interest-rate risk sizing: read the duration and convexity before buying or selling to estimate how the price moves if yields shift, and put two candidate bonds with different maturities or coupons on the same sensitivity basis.
  • Comparing bonds on one number: with a market price in hand, reverse the calculation to solve for yield to maturity, the standard way to compare bonds with different coupons and maturities.

Limits and checks

  • Convention sensitivity: the answer changes with payment frequency (annual vs. semi-annual), the day-count basis, and whether the quoted price is clean (excluding accrued interest) or dirty (including it). Different tools applying different conventions can disagree by more than a dollar on the same bond.
  • YTM is an assumption, not a promise: it holds only if every coupon is reinvested at the same yield and all payments arrive as scheduled. Realized return differs when rates move, and default risk is outside the calculation.
  • The risk measures are local: duration and convexity estimate the price change for small, parallel yield shifts. For large moves or non-parallel curve changes the estimate loses accuracy, and it assumes the shift is in the yield to maturity itself.

Common questions

Why does the price rise when interest rates fall?

Because the price is the present value of fixed cash flows, and a lower discount rate raises present value. That is why prices and yields move in opposite directions and why a bond whose coupon exceeds the current yield trades above its face value. Duration and convexity quantify exactly how sensitive the price is.

Is yield to maturity what I will actually earn?

Only if you reinvest every coupon at that same yield and the issuer pays everything on schedule. In practice reinvestment rates move, so the realized return differs, and default risk is not captured. Treat YTM as a standardized comparison number, not a forecast.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools