Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceStochastic ModelsGuide
Fixed Income
Bond LabBeta
Yield CurveBeta
Duration & ConvexityBeta
Treasury Futures LabBeta
Connected Guides
  • Bond prices and yields
  • Duration and convexity

© 2026 Quant Sandbox · A study aid for quantitative finance

Privacy & dataNo cookies

This site does not use cookies and asks for no personal data. It keeps a few small settings in your browser's local storage — your chosen theme and language, the sidebar layout, and your progress and answers in the Guides — so it remembers them on your next visit. This data never leaves your device; clearing your browser storage removes it. Inputs you change can also be captured in the page URL, so you can share or bookmark a specific setup. The site uses Vercel Web Analytics, a privacy-friendly, cookieless service that records only anonymous, aggregated usage (such as page views) without identifying you or tracking you across other sites.

Bond Lab

Build a fixed-coupon bond and watch its cash flows discount into present values, a price, duration and convexity — then see how yield moves the price.

Parameters

%
years
Payment frequency
6.00%
0%Par 5%20%
Clean price92.56Discount bond
Yield6.00%
Duration
Macaulay7.89yModified7.67
Convexity71.79
Cash flows → present values
CouponPrincipalFuture cash flowPresent value
Drag a bar up or down (or focus it and use the arrow keys, Shift ×10) to reshape that cash flow.
Time (years)
Present value breakdownSum of present values = Bond price92.56
PaymentTimeCash flowDiscount factorPresent value
10.502.500.97092.43
21.002.500.94262.36
31.502.500.91512.29
42.002.500.88852.22
52.502.500.86262.16
63.002.500.83752.09
73.502.500.81312.03
84.002.500.78941.97
94.502.500.76641.92
105.002.500.74411.86
115.502.500.72241.81
126.002.500.70141.75
136.502.500.68101.70
147.002.500.66111.65
157.502.500.64191.60
168.002.500.62321.56
178.502.500.60501.51
189.002.500.58741.47
199.502.500.57031.43
2010.00102.500.553756.75

About this tool

A bond's price is the present value of its coupons and principal, discounted at the yield. This bond pricing workbench lays out the cash-flow timeline, discounts each payment, and connects the price to duration and convexity on a draggable price–yield curve.

Frequently asked questions

Why do bond prices fall when yields rise?

The cash flows are fixed, so a higher discount rate makes each of them worth less today. The longer the payments are in the future, the stronger the effect.

What is the difference between duration and convexity?

Duration is the slope of the price–yield curve: the approximate percentage price change for a small yield change. Convexity measures the curvature that the straight-line duration estimate misses.