Finance & Loans
Bond Duration Calculator (Macaulay, Modified and Convexity)
When interest rates rise, bond prices fall, and when rates fall, prices rise. Duration measures how strongly a particular bond reacts. The Macaulay duration, introduced by the economist Frederick Macaulay in 1938, is the weighted average time until a bond's cash flows are received, where each payment is weighted by its present value as a share of the bond's price. A zero-coupon bond, which pays only at maturity, has a Macaulay duration equal to its maturity, while a coupon bond's duration is shorter because some of its value arrives earlier as coupons. Modified duration, the Macaulay duration divided by one plus the yield per period, converts this time measure into price sensitivity: it gives the approximate percentage change in price for a one percentage point change in yield. A bond with a modified duration of 4.3 would lose about 4.3 percent of its value if yields rose by one point. The relationship between price and yield is curved, not straight, so for larger moves convexity is added to improve the estimate. Convexity is always positive for ordinary bonds, which means prices rise more when yields fall than they drop when yields rise by the same amount. DV01, the dollar value of a basis point, gives the price change for a one-hundredth of a percent move. This calculator takes the face value, coupon rate, yield to maturity, years to maturity and coupon frequency, and returns the price, durations, convexity, DV01, the estimated price change for a yield move you choose and a table of discounted cash flows.
How to use this calculator
- Enter the bond's face value and annual coupon rate.
- Enter the yield to maturity, the market interest rate for the bond.
- Enter the years to maturity and the number of coupons per year.
- Enter a yield change to test, such as 1 percentage point.
- Read the durations, convexity and estimated price change.
Using duration in a portfolio
The duration of a bond portfolio is the value-weighted average of its bonds' durations. Investors and pension funds match the duration of their assets to that of their liabilities, a technique called immunisation, to protect against interest rate changes.
Longer maturities and lower coupons increase duration, and so increase interest rate risk. Bond funds publish their average duration so investors can judge how much their value may move with rates.
Limits of the measures
Duration and convexity assume all cash flows are fixed and the yield curve shifts in parallel. Callable bonds, mortgage-backed securities and bonds with embedded options need effective duration instead.
Duration also changes as time passes and as yields move, so portfolio managers recalculate it regularly rather than treating it as constant.
Formula & method
Price P = Σ CFₜ ÷ (1 + y/f)ᵗ over all periodsMacaulay duration = Σ (t/f) × PVₜ ÷ P (years)Modified duration = Macaulay ÷ (1 + y/f); DV01 = modified duration × P × 0.0001ΔP/P ≈ −D_mod × Δy + ½ × convexity × Δy²P = Σ CFₜ/(1 + y/f)ᵗ, Macaulay = Σ(t/f)PVₜ/P, modified = Macaulay/(1 + y/f), convexity = Σ t(t+1)PVₜ/(P(1 + y/f)² f²) and ΔP/P ≈ −D_mod Δy + ½ C Δy².
Worked example
A 5-year bond with a 5 % annual coupon priced at a 5 % yield
- Price = 1,000 (coupon equals yield)
- Macaulay duration = 4.546 years; modified = 4.546 ÷ 1.05 = 4.3295
- For a 1-point rise: −4.3295 % + ½ × 23.94 × 0.01² ≈ −4.21 %
Answer: The bond would lose about 4.2 % of its value, roughly 42 per 1,000 of face value, if yields rose by one percentage point.
Frequently asked questions
What is the difference between Macaulay and modified duration?
Macaulay duration is measured in years and describes the timing of cash flows. Modified duration is the price sensitivity to yield, the percentage price change for a one-point yield move.
Why does a zero-coupon bond have the longest duration?
All of its value is received at maturity, so the weighted average time of its cash flows equals its maturity. Coupons bring cash flows forward and shorten duration.
What is DV01?
DV01, or the price value of a basis point, is the change in a bond's price for a 0.01 percentage point change in yield. Traders use it to compare and hedge interest rate risk.
How accurate is the duration estimate?
For small yield moves it is very close. For moves of one point or more, adding convexity, as the calculator does, gives a much better estimate.
Does coupon frequency matter?
Yes. More frequent coupons bring cash flows slightly earlier and lower the duration a little. The yield is treated as compounding at the coupon frequency.
Can duration be negative?
Not for ordinary fixed-rate bonds. Some structured products and interest-only securities can have negative effective duration, rising in value when rates rise.