Bond price, yield, duration & convexity
Price a fixed-coupon bond from its yield or solve the yield from a price, with accrued interest, clean vs dirty price, duration, convexity and DV01.
- Spreadsheet version: bonds.xlsx (p.mba/templates/#bonds)
When you’ll use this
- Investments, weeks 3–5 (fixed income unit): checking price, yield-to-maturity and duration problem sets
- Corporate Finance, week 2–3: valuing a bond as a stream of cash flows before moving on to the cost of debt in WACC
- Fixed-income midterm prep: seeing how far a duration-only estimate drifts from the true repriced value for a big rate move
- Investment banking and sales & trading technical prep (fall recruiting): "if rates rise 100 bp, what happens to this bond?"
- Reconciling a broker quote or a spreadsheet PRICE/YIELD result: clean price versus the invoice (dirty) price
Bond price, yield, duration & convexity tool
Clean price (per 100)
97.8956
$978.96 on $1,000.00 face
Yield to maturity
5.0000%
As entered
Accrued interest (per 100)
1.0500
$10.50 on your face amount
Dirty (invoice) price (per 100)
98.9456
$989.46 paid in total
Current yield
4.597%
Annual coupon ÷ clean price
Coupon per period
$22.50
2.2500 per 100
Schedule and accrual
- Coupons remaining
- 10
- Accrued days (30/360) ÷ period days
- 84 ÷ 180
- Previous coupon
- Aug 15, 2026
- Next coupon
- Feb 15, 2027
- Fraction of a period to next coupon
- 0.5333
Interest-rate risk
Macaulay duration
4.2932 yrs
PV-weighted average time to cash flows
Modified duration
4.1885 yrs
% price change per 1.00 yield change
Convexity
20.83 yrs²
Curvature of the price–yield line
DV01
$0.41
Per 1 bp fall in yield (0.0414 per 100)
| Method | % change (dirty price) | Change on your face | Error vs actual |
|---|---|---|---|
| Duration only | -4.1885% | -$41.44 | -$1.01 |
| Duration + convexity | -4.0843% | -$40.41 | +$0.02 |
| Actual (repriced) | -4.0862% | -$40.43 | — |
- Actual price
- Duration estimate
- Duration + convexity
Data table
| Yield to maturity | Actual price | Duration estimate | Duration + convexity |
|---|---|---|---|
| 1.0% | 116.25 | 114.47 | 116.12 |
| 1.2% | 115.24 | 113.64 | 115.13 |
| 1.4% | 114.24 | 112.82 | 114.15 |
| 1.6% | 113.26 | 111.99 | 113.18 |
| 1.8% | 112.28 | 111.16 | 112.21 |
| 2.0% | 111.31 | 110.33 | 111.26 |
| 2.2% | 110.35 | 109.50 | 110.31 |
| 2.4% | 109.40 | 108.67 | 109.37 |
| 2.6% | 108.46 | 107.84 | 108.44 |
| 2.8% | 107.53 | 107.01 | 107.51 |
| 3.0% | 106.61 | 106.18 | 106.60 |
| 3.2% | 105.70 | 105.36 | 105.69 |
| 3.4% | 104.80 | 104.53 | 104.79 |
| 3.6% | 103.90 | 103.70 | 103.90 |
| 3.8% | 103.02 | 102.87 | 103.02 |
| 4.0% | 102.14 | 102.04 | 102.14 |
| 4.2% | 101.28 | 101.21 | 101.28 |
| 4.4% | 100.42 | 100.38 | 100.42 |
| 4.6% | 99.57 | 99.55 | 99.57 |
| 4.8% | 98.73 | 98.72 | 98.73 |
| 5.0% | 97.90 | 97.90 | 97.90 |
| 5.2% | 97.07 | 97.07 | 97.07 |
| 5.4% | 96.25 | 96.24 | 96.25 |
| 5.6% | 95.45 | 95.41 | 95.45 |
| 5.8% | 94.65 | 94.58 | 94.65 |
| 6.0% | 93.85 | 93.75 | 93.85 |
| 6.2% | 93.07 | 92.92 | 93.07 |
| 6.4% | 92.29 | 92.09 | 92.30 |
| 6.6% | 91.52 | 91.26 | 91.53 |
| 6.8% | 90.76 | 90.44 | 90.77 |
| 7.0% | 90.00 | 89.61 | 90.02 |
| 7.2% | 89.26 | 88.78 | 89.28 |
| 7.4% | 88.52 | 87.95 | 88.54 |
| 7.6% | 87.78 | 87.12 | 87.82 |
| 7.8% | 87.06 | 86.29 | 87.10 |
| 8.0% | 86.34 | 85.46 | 86.39 |
| 8.2% | 85.63 | 84.63 | 85.69 |
| 8.4% | 84.92 | 83.80 | 85.00 |
| 8.6% | 84.23 | 82.98 | 84.31 |
| 8.8% | 83.54 | 82.15 | 83.64 |
| 9.0% | 82.85 | 81.32 | 82.97 |
| YieldCoupon rate → | 3.50% | 4.00% | 4.50% | 5.00% | 5.50% |
|---|---|---|---|---|---|
| 3.00% | 102.202 | 104.407 | 106.612 | 108.817 | 111.022 |
| 4.00% | 97.845 | 99.995 | 102.145 | 104.295 | 106.445 |
| 4.50% | 95.748 | 97.871 | 99.994 | 102.117 | 104.240 |
| 5.00% | 93.702 | 95.799 | 97.896 (base case) | 99.992 | 102.089 |
| 5.50% | 91.707 | 93.778 | 95.849 | 97.920 | 99.991 |
| 6.00% | 89.761 | 91.807 | 93.852 | 95.898 | 97.943 |
| 7.00% | 86.012 | 88.008 | 90.004 | 92.000 | 93.997 |
| # | Date | Years from settlement | Cash flow | Discount factor | Present value |
|---|---|---|---|---|---|
| 1 | Feb 15, 2027 | 0.2667 | 2.2500 | 0.986917 | 2.2206 |
| 2 | Aug 15, 2027 | 0.7667 | 2.2500 | 0.962846 | 2.1664 |
| 3 | Feb 15, 2028 | 1.2667 | 2.2500 | 0.939362 | 2.1136 |
| 4 | Aug 15, 2028 | 1.7667 | 2.2500 | 0.916450 | 2.0620 |
| 5 | Feb 15, 2029 | 2.2667 | 2.2500 | 0.894098 | 2.0117 |
| 6 | Aug 15, 2029 | 2.7667 | 2.2500 | 0.872291 | 1.9627 |
| 7 | Feb 15, 2030 | 3.2667 | 2.2500 | 0.851015 | 1.9148 |
| 8 | Aug 15, 2030 | 3.7667 | 2.2500 | 0.830259 | 1.8681 |
| 9 | Feb 15, 2031 | 4.2667 | 2.2500 | 0.810009 | 1.8225 |
| 10 | Aug 15, 2031 | 4.7667 | 102.2500 | 0.790252 | 80.8033 |
| Total (dirty price) | — | — | — | — | 98.9456 |
Dirty price 98.9456 − accrued 1.0500 = clean price 97.8956 per 100. On $1,000.00 face that is $989.46 paid, of which $10.50 is accrued interest.
How this works
Formulas
A fixed-coupon bond is a short list of known cash flows: a coupon every period and the face value at maturity. Its price is the present value of what is left to be paid, discounted at the yield.
Notation: coupon payments per year, annual coupon rate , annual yield , per-period yield , coupon per 100 of face , coupons still to come, and the fraction of a period between settlement and the next coupon. The time to coupon , in periods, is .
Dirty (full) price per 100 of face
Accrued interest and clean price. With the days accrued since the last coupon and the days in the coupon period:
Yield from price. There is no closed form, so the tool solves numerically: Newton’s method on , with a bisection step whenever Newton would leave the bracket that is known to contain the answer. It stops when the price error is below one hundred-billionth of the price or after 200 iterations, and it tells you if it did not converge.
Macaulay and modified duration (in years), using the dirty price as the weight base:
Convexity (in years squared) and DV01:
Price change for a yield move :
The tool shows the duration-only estimate, the duration-plus-convexity estimate and the exact change from repricing the bond, so you can see how much the curvature matters.
Zero-coupon bond. Set the coupon rate to zero. The price collapses to and the Macaulay duration equals the time to maturity.
Conventions & assumptions
- Quotes are per 100 of face. Clean price, dirty price and accrued interest are shown per 100 and also scaled to the face amount you enter (for example 1,000 per bond).
- Redemption at par. The bond repays 100 per 100 of face at maturity. Callable, putable, sinking-fund and amortising bonds are out of scope.
- Yield compounding. The yield is an annual nominal rate compounded at the coupon frequency (1, 2, 4 or 12 times a year). For a semiannual bond this is the usual bond-equivalent yield.
- Day count is 30/360 US (NASD), the same as Excel’s basis 0. Each coupon period has days. Accrued days use these adjustments: if both dates are the last day of February the end day becomes 30; if the start date is the last day of February it becomes 30; if the end day is 31 and the start day is 30 or 31 the end day becomes 30; if the start day is 31 it becomes 30.
- Coupon dates are counted back from maturity in steps of 12/F months. If maturity falls on the last day of a month, every coupon date is a month end.
- Fractional first period. Between coupons the first cash flow is discounted over of a period with compound interest, and each later one a whole period further. This is how Excel’s PRICE works.
- Settlement on a coupon date. That coupon goes to the seller. Nothing has accrued and . In the “on a coupon date” mode you enter whole years to maturity, and years × frequency must be a whole number.
- Duration, convexity and DV01 are measured against the dirty price, because that is the cash you actually pay and receive. DV01 is shown as a positive number: the gain from a one-basis-point fall in yield.
Worked example
Example: A 4.5% semiannual bond bought between coupons
You buy 1,000 face of a bond paying a 4.5% annual coupon semiannually (2.25 per 100 each period), maturing on 2031-08-15. Settlement is on 2026-11-09 and the quoted yield is 5.00%.
- Schedule. Coupons fall on February 15 and August 15. The previous coupon was 2026-08-15 and the next is 2027-02-15. Ten coupons remain.
- Accrual. On a 30/360 basis, 2026-08-15 to 2026-11-09 is 3 × 30 − 6 = 84 days of a 180-day period, so and .
- Accrued interest. 2.25 × 84/180 = 1.05 per 100, or 10.50 on 1,000 face.
- Dirty price. Discount each cash flow at = 2.5% per half-year, at times 0.5333, 1.5333 and so on up to 9.5333 periods. The total is 98.9456 per 100.
- Clean price. 98.9456 − 1.05 = 97.8956 per 100: 978.96 quoted, plus 10.50 accrued, for 989.46 paid in total.
- Duration. Macaulay duration is 4.2932 years. Modified duration is 4.2932 / 1.025 = 4.1885.
- Convexity and DV01. Convexity is 20.83. DV01 is 4.1885 × 989.46 × 0.0001 ≈ 0.41 per 1,000 face.
- A +100 bp shock (5% to 6%). Duration alone predicts −4.1885%, which is −41.44. Adding convexity gives −4.1885% + ½ × 20.83 × 0.01² ≈ −4.0843%, which is −40.41. Repricing at 6% gives −40.43, so the convexity-adjusted estimate is within a few cents.
The current yield is 4.5 / 97.8956 ≈ 4.60%. Switch the tool to “solve for yield” and enter a clean price of 97.8956, and it returns 5.00%.
Limitations
- Plain fixed-coupon bonds only. The tool does not handle embedded options (calls or puts), floating coupons, inflation linkers, amortising principal or default risk. For a callable bond, yield-to-worst and option-adjusted duration need a different model.
- One day-count convention. Only 30/360 US is used for accrual. Many government bonds accrue on actual/actual and many money-market instruments on actual/360, so accrued interest for those can differ by a few cents per 100.
- Business-day rules are ignored. Payment dates are not rolled to business days, and there are no ex-dividend periods.
- Final coupon period. When only one coupon remains, Excel’s YIELD switches to a simple-interest formula, while this tool keeps compound discounting so that price and yield stay exact inverses. Expect small differences against YIELD in that case only. PRICE uses the compound formula throughout and matches.
- Approximations. Duration and convexity describe small, parallel moves of a single yield. They say nothing about the shape of the yield curve or spread changes.
Excel/Sheets equivalents
The bond pricing workbook lays out these formulas with this worked example preloaded, ready for Excel or Google Sheets.
The tool follows Excel’s bond functions with basis = 0 (30/360 US). Google Sheets uses the same function names and arguments. For the worked example:
| Quantity | Formula | Result |
|---|---|---|
| Clean price per 100 | =PRICE(DATE(2026,11,9), DATE(2031,8,15), 4.5%, 5%, 100, 2, 0) | 97.8956 |
| Yield from price | =YIELD(DATE(2026,11,9), DATE(2031,8,15), 4.5%, 97.8956, 100, 2, 0) | 5.00% |
| Accrued per 100 | =4.5%/2*100*COUPDAYBS(DATE(2026,11,9), DATE(2031,8,15), 2, 0)/COUPDAYS(DATE(2026,11,9), DATE(2031,8,15), 2, 0) | 1.05 |
| Coupons remaining | =COUPNUM(DATE(2026,11,9), DATE(2031,8,15), 2, 0) | 10 |
| Macaulay duration | =DURATION(DATE(2026,11,9), DATE(2031,8,15), 4.5%, 5%, 2, 0) | 4.2932 |
| Modified duration | =MDURATION(DATE(2026,11,9), DATE(2031,8,15), 4.5%, 5%, 2, 0) | 4.1885 |
Excel has no built-in convexity or DV01 function. Build a cash-flow table with columns for time , cash flow and present value. Convexity is then =SUMPRODUCT(tau*(tau+1), pv) / (price * F^2 * (1+y/F)^2), and DV01 is modified duration × dirty price × 0.0001. A quick check for either: reprice the bond at the yield plus and minus 1 bp and difference the results.
Related: time value of money, cost of capital, yield to maturity, modified duration, convexity.
Runs entirely in your browser; inputs are saved only on this device. Last updated .