Skip to content
p.mba

Type to search tools, guides, glossary terms, frameworks, formula sheets and pages.

Menu

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.

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

Loading your saved inputs…

Back up all tools

Bond
Prices are quoted per 100 of face value; currency amounts scale to your face amount.
Settlement timing
The par amount you hold, e.g. 1,000.
Enter 0 for a zero-coupon bond.
The date you pay for the bond.
Coupon dates are counted back from this date.
Price or yield
Solve for
Nominal annual yield, compounded at the coupon frequency.
Parallel move for the duration and convexity estimate. 100 bp = 1 percentage point.

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)

Price change if the yield moves +1.00% (to 6.00%)
Method% change (dirty price)Change on your faceError vs actual
Duration only-4.1885%-$41.44-$1.01
Duration + convexity-4.0843%-$40.41+$0.02
Actual (repriced)-4.0862%-$40.43—
Price–yield curve (clean price per 100)The actual curve bends above both straight-line and convexity-adjusted estimates away from the current yield.
  • Actual price
  • Duration estimate
  • Duration + convexity
Clean price per 10080.0090.00100.00110.00120.002.0%4.0%6.0%8.0%Yield to maturityCurrent 5.00%Actual priceDuration estima…Duration + conv…
Data table
Price–yield curve (clean price per 100): data
Yield to maturityActual priceDuration estimateDuration + convexity
1.0%116.25114.47116.12
1.2%115.24113.64115.13
1.4%114.24112.82114.15
1.6%113.26111.99113.18
1.8%112.28111.16112.21
2.0%111.31110.33111.26
2.2%110.35109.50110.31
2.4%109.40108.67109.37
2.6%108.46107.84108.44
2.8%107.53107.01107.51
3.0%106.61106.18106.60
3.2%105.70105.36105.69
3.4%104.80104.53104.79
3.6%103.90103.70103.90
3.8%103.02102.87103.02
4.0%102.14102.04102.14
4.2%101.28101.21101.28
4.4%100.42100.38100.42
4.6%99.5799.5599.57
4.8%98.7398.7298.73
5.0%97.9097.9097.90
5.2%97.0797.0797.07
5.4%96.2596.2496.25
5.6%95.4595.4195.45
5.8%94.6594.5894.65
6.0%93.8593.7593.85
6.2%93.0792.9293.07
6.4%92.2992.0992.30
6.6%91.5291.2691.53
6.8%90.7690.4490.77
7.0%90.0089.6190.02
7.2%89.2688.7889.28
7.4%88.5287.9588.54
7.6%87.7887.1287.82
7.8%87.0686.2987.10
8.0%86.3485.4686.39
8.2%85.6384.6385.69
8.4%84.9283.8085.00
8.6%84.2382.9884.31
8.8%83.5482.1583.64
9.0%82.8581.3282.97
Clean price per 100 by yield and coupon rate (same maturity and settlement)Rows: Yield. Columns: Coupon rate. Base case outlined. Darker shading means a higher value.
YieldCoupon rate →3.50%4.00%4.50%5.00%5.50%
3.00%102.202104.407106.612108.817111.022
4.00%97.84599.995102.145104.295106.445
4.50%95.74897.87199.994102.117104.240
5.00%93.70295.79997.896 (base case)99.992102.089
5.50%91.70793.77895.84997.92099.991
6.00%89.76191.80793.85295.89897.943
7.00%86.01288.00890.00492.00093.997
Remaining cash flows (per 100 face, discounted at 2.5000% per period)
#DateYears from settlementCash flowDiscount factorPresent value
1Feb 15, 20270.26672.25000.9869172.2206
2Aug 15, 20270.76672.25000.9628462.1664
3Feb 15, 20281.26672.25000.9393622.1136
4Aug 15, 20281.76672.25000.9164502.0620
5Feb 15, 20292.26672.25000.8940982.0117
6Aug 15, 20292.76672.25000.8722911.9627
7Feb 15, 20303.26672.25000.8510151.9148
8Aug 15, 20303.76672.25000.8302591.8681
9Feb 15, 20314.26672.25000.8100091.8225
10Aug 15, 20314.7667102.25000.79025280.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: FF coupon payments per year, annual coupon rate RR, annual yield yy, per-period yield i=y/Fi = y/F, coupon per 100 of face c=100R/Fc = 100R/F, NN coupons still to come, and ww the fraction of a period between settlement and the next coupon. The time to coupon kk, in periods, is τk=k−1+w\tau_k = k - 1 + w.

Dirty (full) price per 100 of face

Pdirty=∑k=1Nc(1+i)τk+100(1+i)τNP_{\text{dirty}} = \sum_{k=1}^{N} \frac{c}{(1+i)^{\tau_k}} + \frac{100}{(1+i)^{\tau_N}}

Accrued interest and clean price. With AA the days accrued since the last coupon and EE the days in the coupon period:

AI=c⋅AE,w=E−AE,Pclean=Pdirty−AIAI = c \cdot \frac{A}{E}, \qquad w = \frac{E - A}{E}, \qquad P_{\text{clean}} = P_{\text{dirty}} - AI

Yield from price. There is no closed form, so the tool solves Pdirty(y)=Pclean+AIP_{\text{dirty}}(y) = P_{\text{clean}} + AI numerically: Newton’s method on ii, 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:

DMac=1F⋅∑kτk PVkPdirty,Dmod=DMac1+iD_{\text{Mac}} = \frac{1}{F} \cdot \frac{\sum_k \tau_k \, PV_k}{P_{\text{dirty}}}, \qquad D_{\text{mod}} = \frac{D_{\text{Mac}}}{1+i}

Convexity (in years squared) and DV01:

C=1Pdirty∂2P∂y2=∑kτk(τk+1) PVkPdirty F2(1+i)2,DV01=Dmod×Pdirty×0.0001C = \frac{1}{P_{\text{dirty}}} \frac{\partial^2 P}{\partial y^2} = \frac{\sum_k \tau_k(\tau_k+1)\, PV_k}{P_{\text{dirty}} \, F^2 (1+i)^2}, \qquad \text{DV01} = D_{\text{mod}} \times P_{\text{dirty}} \times 0.0001

Price change for a yield move Δy\Delta y:

ΔPP≈−Dmod Δy+12 C (Δy)2\frac{\Delta P}{P} \approx -D_{\text{mod}}\,\Delta y + \tfrac{1}{2}\, C\,(\Delta y)^2

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 100/(1+i)τN100/(1+i)^{\tau_N} 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 E=360/FE = 360/F days. Accrued days AA 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 ww 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 w=1w = 1. 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%.

  1. 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.
  2. 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 A/E=84/180A/E = 84/180 and w=96/180≈0.5333w = 96/180 \approx 0.5333.
  3. Accrued interest. 2.25 × 84/180 = 1.05 per 100, or 10.50 on 1,000 face.
  4. Dirty price. Discount each cash flow at ii = 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.
  5. Clean price. 98.9456 − 1.05 = 97.8956 per 100: 978.96 quoted, plus 10.50 accrued, for 989.46 paid in total.
  6. Duration. Macaulay duration is 4.2932 years. Modified duration is 4.2932 / 1.025 = 4.1885.
  7. Convexity and DV01. Convexity is 20.83. DV01 is 4.1885 × 989.46 × 0.0001 ≈ 0.41 per 1,000 face.
  8. 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:

QuantityFormulaResult
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 τk\tau_k, 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 .