BYTETOOLS

Bond Duration Calculator

Price a bond and calculate Macaulay duration, modified duration, convexity and DV01, then estimate the price move for any yield shift in basis points.

$925.61
Bond price
92.5613
Price per 100 par
7.8950 yrs
Macaulay duration
7.6650
Modified duration
71.7854
Convexity
$0.7095
DV01 (per 1 bp)
5.402%
Current yield

Estimated price move for a yield shift

Duration-only estimate against the duration plus convexity estimate
EstimatePrice changeNew price
Duration only-$70.95$854.66
Duration + convexity-$67.63$857.99
Repriced exactly-$67.74$857.88

Cash flows — 20 periods

Every coupon and the redemption, discounted to present value
PeriodYearsCash flowPresent valueWeight
10.50$25.00$24.272.622%
21.00$25.00$23.562.546%
31.50$25.00$22.882.472%
42.00$25.00$22.212.400%
52.50$25.00$21.572.330%
63.00$25.00$20.942.262%
73.50$25.00$20.332.196%
84.00$25.00$19.742.132%
94.50$25.00$19.162.070%
105.00$25.00$18.602.010%
115.50$25.00$18.061.951%
126.00$25.00$17.531.894%
136.50$25.00$17.021.839%
147.00$25.00$16.531.786%
157.50$25.00$16.051.734%
168.00$25.00$15.581.683%
178.50$25.00$15.131.634%
189.00$25.00$14.681.587%
199.50$25.00$14.261.540%
2010.00$1,025.00$567.5261.313%

Macaulay duration = Σ(t × PV of cash flow) ÷ price, modified duration = Macaulay ÷ (1 + y ÷ m), and convexity = Σ(t(t+1) × PV) ÷ (price × (1 + y ÷ m)²), all with t measured in years and m coupons per year. A 5-year 8% annual-coupon bond priced at par returns a Macaulay duration of 4.3121 years and a modified duration of 3.9927, the standard textbook values. Prices are clean, settling on a coupon date, with no accrued interest and no day-count adjustment. Estimates for analysis only, not investment advice.

What is the Bond Duration Calculator?

The ByteTools Bond Duration Calculator builds the full cash-flow schedule from a bond's face value, coupon rate, frequency and time to maturity, prices it at the yield you supply, then reports Macaulay duration, modified duration, convexity and DV01 side by side.

  • Macaulay duration, modified duration, convexity, DV01 and current yield together
  • Full cash-flow table with discount factors, present values and weights
  • Duration-only versus duration-plus-convexity price estimates against an exact reprice
  • Annual, semi-annual, quarterly or monthly coupon frequencies
  • Guards a negative or extreme yield instead of producing a nonsense price
  • CSV export of the discounted cash-flow schedule

How to use the Bond Duration Calculator

  1. 1

    Enter the face value, annual coupon rate, yield to maturity and years to maturity.

  2. 2

    Pick the coupon frequency — annual, semi-annual, quarterly or monthly.

  3. 3

    Read the price, Macaulay duration, modified duration, convexity and DV01.

  4. 4

    Set a yield shift in basis points to compare the duration estimate against the exact repriced value.

  5. 5

    Download the discounted cash-flow schedule as a CSV.

About the Bond Duration Calculator

The ByteTools Bond Duration Calculator builds the full cash-flow schedule from a bond's face value, coupon rate, frequency and time to maturity, prices it at the yield you supply, then reports Macaulay duration, modified duration, convexity and DV01 side by side.

It is aimed at fixed-income analysts, treasury teams and finance students who need to see where a duration figure comes from rather than just the answer. Enter a yield shift in basis points and it compares the duration-only estimate, the duration-plus-convexity estimate and the exact repriced value, which makes the convexity correction visible instead of theoretical.

Everything is calculated in your browser with no market data fetched and nothing uploaded, so it works offline and keeps your positions private. Prices are clean and settle on a coupon date, with no accrued interest — estimates for analysis, not investment advice.

Frequently asked questions

What is the difference between Macaulay and modified duration?

Macaulay duration is the weighted average time in years until you receive the bond's cash flows. Modified duration divides that by one plus the periodic yield and is the practical figure: it estimates the percentage price change for a one percentage point move in yield.

How do you calculate Macaulay duration?

Discount every coupon and the redemption to present value, multiply each by the time in years until it is paid, add those up and divide by the bond's price. A five-year bond with an 8% annual coupon priced at par has a Macaulay duration of 4.3121 years and a modified duration of 3.9927.

What is DV01 on a bond?

DV01, sometimes called the dollar value of a basis point, is the money change in a bond's price for a one basis point move in yield. It equals modified duration times price divided by 10,000, and traders use it to size hedges because it is expressed in currency rather than percent.

Why does convexity matter if I already have duration?

Duration assumes the price-yield relationship is a straight line, but it curves. Convexity captures that curve, so for large yield moves the duration-only estimate overstates the loss when yields rise and understates the gain when they fall. This tool shows both estimates against the exact reprice.

Does this include accrued interest?

No. The tool prices a bond settling on a coupon date, so it returns the clean price with no accrued interest and no day-count convention applied. For a mid-period settlement you would need to add accrued interest to get the dirty price.

Is any market data downloaded?

No. Every figure comes from the inputs you type and the calculation runs entirely in your browser, so nothing is fetched and no position details leave your device.

Related tools