Price a bond from its yield — or solve for yield from a market price — and watch duration and the price-yield curve update live.
What this calculator does
Use the calculator above to price a bond from its yield — or solve for the yield implied by a market price — and watch duration and the price-yield curve update live. It covers plain vanilla fixed-rate bonds: a fixed coupon, regular payments, and a single repayment of principal at maturity.
A bond’s price is the present value of its cash flows
A bond is a contract: the issuer pays a fixed coupon on set dates and returns the face value (par) at maturity. The market price is those future payments discounted back to today at the yield investors demand:
Price = Σ coupon ÷ (1 + yield)^t + par ÷ (1 + yield)^T
If the required yield rises, every future payment is worth less today, so the price falls. That inverse relationship between price and yield is the whole ballgame in fixed income.
Yield to maturity: the return if you hold to the end
Yield to maturity (YTM) is the single discount rate that makes the present value of all the bond’s payments equal to its current price — the return you earn if you buy at today’s price, hold to maturity, and reinvest every coupon at that same yield. When the coupon equals the yield, the price equals par; when the coupon is below the yield, the price sits below par (a discount bond); when it is above, the price sits above par (a premium bond). YTM is the standard way to compare bonds with different coupons and maturities, though it assumes coupons are reinvested at the YTM itself, which rarely holds exactly.
Duration: how much the price moves
Duration compresses a bond’s interest-rate sensitivity into one number. Macaulay duration is the weighted-average time until the bond’s cash flows arrive. Modified duration adjusts that for compounding frequency and is the number traders use: it says roughly how far the price moves for a 1% change in yield. A modified duration of 4.46 means a 1 percentage-point rise in yield cuts the price by about 4.46%. Duration grows with maturity and shrinks with higher coupons — which is why a 30-year bond swings far more than a 2-year note.
Convexity: the curve behind the straight line
Duration assumes the price-yield relationship is a straight line. It is not — it curves, and convexity measures that curvature. For an ordinary option-free bond, convexity is positive: the price gains more when yields fall than it loses when yields rise by the same amount. Duration alone understates gains and overstates losses; adding the convexity term fixes most of the error. For a 25 basis-point move, duration alone is fine; for 100 or 200, convexity is the difference between a useful estimate and a misleading one.
Worked example: a 5-year bond at a discount
Take a 5-year bond with $1,000 par and a 4% annual coupon, paid semiannually ($20 every six months, ten payments). At a 5% yield to maturity it trades below par, because its 4% coupon is below the 5% yield investors demand:
- Present value of the ten $20 coupons: $175.04
- Present value of the $1,000 principal: $781.20
- Price: $175.04 + $781.20 = $956.24
- Macaulay duration: 4.57 years; modified duration: 4.46; convexity: 23.19
Now shock the yield by 100 basis points in each direction. At 6% the price falls to $914.70 (−4.34%); at 4% it rises to $1,000.00 (+4.58%) — exactly par, because the coupon now equals the yield. The duration-only estimate for the yield rise is −4.46%; adding convexity gives −4.34%, the actual move. Notice the asymmetry: the gain beats the loss. That is positive convexity working for the holder.
Limitations
This calculator assumes settlement on a coupon date, so it ignores accrued interest — in a real trade, the buyer also pays the seller the interest accrued since the last coupon. It uses semiannual compounding and assumes all cash flows are fixed and certain, so it does not apply to callable bonds, floating-rate notes, inflation-linked bonds, or bonds with default risk. It also assumes a parallel shift in yields; in reality, maturities move by different amounts. Treat the results as an educational estimate, not a pricing source for a trade.
Frequently asked questions
The coupon rate is fixed at issuance — it is the interest the bond pays each year as a percentage of par. Yield to maturity is the market’s required return, derived from the bond’s current price. When the market yield is above the coupon, the bond trades at a discount; when it is below, the bond trades at a premium. The coupon never changes; the yield moves every day with the price.
Because a bond’s cash flows are fixed. If new bonds pay 6% and yours pays 4%, no buyer will pay full price for yours — the price must fall until your bond’s yield to a new buyer also equals 6%. Mathematically, the price is the present value of fixed payments discounted at the yield, and present value falls as the discount rate rises.
Maturity is a calendar fact; duration is a risk measure. A 30-year bond has a duration near 16 years, not 30, because much of its value arrives earlier as coupons. A 30-year zero-coupon bond has a duration of about 30. Two bonds with the same maturity can have very different rate risk, and duration — not maturity — is the number that tells you how much the price moves.
Barely. For a 25 basis-point move, the duration estimate is accurate to within a few hundredths of a percent. Convexity matters when yields move 100 basis points or more, or when you hold long-dated bonds, where the curvature is large. It also matters for comparing two bonds with similar durations — the higher-convexity bond performs better in both directions.
No — not accurately. A callable bond’s cash flows change when the issuer redeems it early, so its yield to maturity and modified duration are misleading; effective duration, computed by shocking the yield curve, is the right measure. Treasury Inflation-Protected Securities (TIPS) pay a coupon on an inflation-adjusted principal, so their price depends on real yields and the inflation index, not the nominal math used here.