Articles

How do you calculate the modified duration of a bond?

Duration is a weighted average of when the money comes back; modified duration turns it into the percentage the price moves for one point of yield, and convexity fixes the rest.

Modified duration is the Macaulay duration, the present-value-weighted average time to each cash flow, divided by one plus the yield per period. It estimates the percentage fall in price for a one-point rise in yield. An illustrative six-year bond with a 5.45 per cent semiannual coupon bought at par has a Macaulay duration of 5.1976 years and a modified duration of 5.0597: one point of yield takes about 5.06 per cent off the price, and 4.91 per cent once convexity is added, which is the move the bond actually makes.

Worked in full in The Credit Investor by Julian R. Sterling, with every figure reproduced in a free workbook.See the book on Amazon →

Excel will return the number in one cell. The point of building it from the cash flows is that the table shows where the sensitivity sits: almost all of it in the final payment, which is why longer bonds and lower coupons carry more of it, and why a high-yield bond's duration is the smaller of its two risks.

The assumptions

An illustrative investment-grade bond from a bond ladder, bought on a coupon date.
InputValue
Coupon, paid semiannually5.45%
Maturity6 years, 12 half-years
Price per 100 of face100.00
Yield to maturity (bought at par, so the coupon)5.45%
Face held25,000

The calculation, step by step

Macaulay duration (years) = Σ k × PVk ÷ price ÷ 2

Modified duration = Macaulay ÷ (1 + y/2)

Convexity = Σ k(k + 1) × PVk ÷ price ÷ (1 + y/2)2 ÷ 4

Here k counts half-years and PVk is each cash flow discounted at the yield per half-year. In Excel, with settlement and maturity as dates: =MDURATION(DATE(2026,1,1),DATE(2032,1,1),5.45%,5.45%,2) returns 5.0597, and =DURATION(...) with the same arguments returns 5.1976.

Each half-year pays 2.725 per 100 of face and the last pays 102.725. Discount each at 2.725 per cent a half-year and multiply by the period number:

Selected rows of the cash-flow table, per 100 of face.
Half-year kCash flowPV at the yieldk × PV
12.7252.65272.6527
22.7252.58235.1647
62.7252.319013.9143
112.7252.027422.3009
12102.72574.3982892.7782
All twelve rows100.001,039.5161

Divide 1,039.5161 by the price of 100 and the average is 10.3952 half-years, or 5.1976 years: the Macaulay duration. The final row carries 892.7782 of the 1,039.5161, which is the whole story of duration in one cell. Divide by 1.02725 and the modified duration is 5.0597. Run the k(k + 1) column the same way and convexity comes out at 30.44.

The result, tested against the actual price

Estimated against actual price change, from a price of 100.00.
Yield moveActual new priceActual changeDuration onlyDuration + convexity
+0.5 point97.51-2.49%-2.53%-2.49%
+1 point95.09-4.91%-5.06%-4.91%
-1 point105.225.22%5.06%5.21%
+2 points90.46-9.54%-10.12%-9.51%

Duration alone overstates the loss when yields rise and understates the gain when they fall, by roughly the same amount, about 0.15 per cent of price at one point. That is convexity: half of 30.44 times the yield move squared. It grows with the square of the move, so at two points the correction is 0.61 per cent and duration alone is off by more than half a point of price.

Turned into money, a holding of 25,000 face has a DV01 of 12.65: each basis point of yield moves its value by that much. A 100 basis point rise is an estimated loss of 1,265 on duration alone and 1,228 actually.

What if: maturity and coupon

An illustrative ladder, each bond bought at par on a semiannual coupon.
MaturityCouponMacaulayModifiedConvexityPrice, +1 point
2 years4.80%1.931.894.5-1.86%
3 years4.95%2.822.769.2-2.71%
4 years5.15%3.673.5715.2-3.50%
5 years5.30%4.464.3422.4-4.23%
6 years5.45%5.205.0630.4-4.91%

Duration rises with maturity but more slowly, because coupons pull the weighted average forward. Strip the coupons out and the gap closes: a six-year zero-coupon bond has a Macaulay duration of exactly 6.00 years and a modified duration of 5.84 at the same yield. Convexity rises roughly with the square of maturity, so the correction matters most on the long end.

Duration on a high-yield bond: the smaller risk

Run the same table on an illustrative CCC bond with an 8.50 per cent coupon, five years to run, bought at 94.00. Its yield to maturity is 10.06 per cent, its Macaulay duration 4.15 years and its modified duration 3.95. A one-point rise in yield costs 3.85 per cent of price.

With an annual default probability of 15 per cent and a 40 per cent recovery, the same bond is expected to lose 9.00 per cent of its value a year to default. That is equivalent to a yield rise of 2.28 points every year, 2.3 times the damage of a one-point rate shock. For low-rated credit, duration measures the risk you can hedge and leaves out the one that decides the return; the arithmetic is in the yield after expected default losses.

The common mistakes

Takeaway

Weight each period by the present value it carries, average, convert to years, and divide by one plus the yield per period: 5.0597 for a six-year 5.45 per cent bond at par. Add half the convexity times the move squared for anything larger than a few dozen basis points. Then remember what duration does not see. The Credit Investor follows one portfolio of bonds, loan funds, BDCs and a private credit fund from the yield on the screen to the return actually earned, and the free workbook for this case builds duration and convexity from explicit cash-flow tables for every bond in the ladder.

Questions readers ask

What is the difference between Macaulay duration and modified duration?

Macaulay duration is the present-value-weighted average time to each cash flow, in years. Modified duration divides it by one plus the yield per period and measures price sensitivity: the percentage price change for a one-point move in yield. On an illustrative six-year 5.45 per cent bond at par, Macaulay is 5.1976 years and modified 5.0597.

How do you calculate DV01 from modified duration?

DV01 is the money change in value for a one basis point move in yield: modified duration times market value times one basis point. A holding of 25,000 face in an illustrative bond at par with modified duration 5.0597 has a DV01 of 12.65, so a 100 basis point rise costs about 1,265 before convexity.

Does duration measure the risk of a high-yield bond?

Only its rate risk. An illustrative CCC bond at 94.00 yielding 10.06 per cent has modified duration of 3.95, so one point of yield costs about 3.85 per cent of price. Its expected default loss is 9.00 per cent a year, the same as a yield rise of 2.28 points every year. For low-rated credit, default dominates duration.

Read the whole case

This article is one calculation from The Credit Investor. The book takes the same case from first principles to the decision, chapter by chapter, and every figure it prints is a live formula in the free companion workbooks.

Get the book on Amazon →Free companion files

Also on Amazon UK · Amazon Germany · Amazon France · Amazon Canada

Also on this site

Reading guide: credit, private credit and distressed debt → · All 453 articles →

If this book helped, or didn’t, a few lines on Amazon are worth more than they look: they are what the next reader goes on. Write a review. The workbook stays free either way.