Macaulay Duration Calculator
- Each of the 10 cash flows is discounted at the yield of 5.00% a year (5.0000% per period); their present values sum to the price, $1,000.00.
- Weighting each payment date (in years) by its share of the price and adding them up gives the Macaulay duration: 8.1078 years.
- Modified duration = Macaulay duration / (1 + yield per period) = 8.1078 / 1.0500 = 7.72, so a 1% rise in yield cuts the price by roughly 7.72%.
A macaulay duration calculator takes a bond's face value, coupon rate, payment frequency, yield, and maturity, then reports the present-value-weighted average time until the bond's cash flows are received, expressed in years. For a 10-year $1,000 bond with a 5% annual coupon and 5% yield, the answer is 8.11 years. For a 5-year zero-coupon $1,000 bond at a 6% yield, it is exactly 5.00 years. The calculator also reports modified duration, which equals Macaulay duration divided by 1 plus the yield per payment period and approximates the price change for a 1% yield move. In the 10-year par bond example, modified duration is 7.72.
Macaulay duration is the accepted standard for measuring a bond's interest-rate sensitivity because it accounts for the timing and present value of every cash flow, not just maturity. Higher coupons and higher yields shorten duration, while longer maturities lengthen it. This page shows the formula, step-by-step workings, worked examples, and sources. Worked examples include a 5-year $1,000 bond with an 8% coupon paid semiannually and a 6% yield, which prices at $1,085.30 and has a Macaulay duration of 4.25 years and modified duration of 4.13, and a 5-year zero-coupon $1,000 bond at a 6% yield, which prices at $747.26.
Worked examples
The par bond benchmark
Primary result: 8.11 years — a 10-year 5% bond priced at par ($1,000.00) has a modified duration of 7.72. (1000 $ · 5 % · 5 % · 10 yrs · Annual (1))
| Macaulay duration | 8.11 years |
| Modified duration | 7.72 |
| Bond price (present value) | $1,000.00 |
| Price change for a 1% yield rise (approx.) | -7.72% |
Zero-coupon: duration equals maturity
Primary result: 5.00 years — with a single payment at maturity there is nothing to average, and the price is $747.26. (1000 $ · 0 % · 6 % · 5 yrs · Annual (1))
| Macaulay duration | 5.00 years |
| Modified duration | 4.72 |
| Bond price (present value) | $747.26 |
| Price change for a 1% yield rise (approx.) | -4.72% |
Premium bond, semiannual coupons
Primary result: 4.25 years — the 8% coupon pulls cash earlier, shortening duration; the bond prices at $1,085.30. (1000 $ · 8 % · 6 % · 5 yrs · Semiannual (2))
| Macaulay duration | 4.25 years |
| Modified duration | 4.13 |
| Bond price (present value) | $1,085.30 |
| Price change for a 1% yield rise (approx.) | -4.13% |
How Macaulay duration is calculated
Macaulay duration is the present-value-weighted average time until a bond's cash flows are received, expressed in years. To see the mechanics, walk through a 10-year $1,000 bond with a 5% annual coupon and a 5% yield. Because the coupon rate equals the yield, the bond prices at par, or $1,000.00. Each year produces a $50 coupon, and year 10 adds the $1,000 principal, for a final cash flow of $1,050.
For each year, divide the cash flow by (1 + 0.05) raised to that year number to get the discount factor's reciprocal and the present value. Multiply each present value by the year number to get the time-weighted present value. Sum all the time-weighted present values, then divide by the bond's price. The result is 8.11 years, which is the figure our macaulay duration calculator produces for this bond. Because the later $1,050 payment carries more weight than the earlier $50 coupons, the weighted average lands well short of the 10-year maturity but still skews toward the back end.
The same logic applies to other bonds, but the weighting shifts. A 5-year zero-coupon $1,000 bond at a 6% yield prices at $747.26. With only one cash flow at maturity, every dollar of present value is assigned to year 5, so the Macaulay duration equals 5.00 years exactly. A 5-year $1,000 bond with an 8% coupon paid semiannually and a 6% yield prices at $1,085.30; its larger, sooner coupons pull the weighted average down to 4.25 years. In both cases, once you have the Macaulay duration, divide by (1 + yield per payment period) to get modified duration, which approximates the price change for a 1% yield move.
| Bond | Price | Macaulay Duration | Modified Duration |
|---|---|---|---|
| 10-year $1,000 bond, 5% annual coupon, 5% yield | $1,000.00 | 8.11 years | 7.72 |
| 5-year zero-coupon $1,000 bond, 6% yield | $747.26 | 5.00 years | 4.72 |
| 5-year $1,000 bond, 8% coupon paid semiannually, 6% yield | $1,085.30 | 4.25 years | 4.13 |
Three bonds, three durations
Three bonds, three durations
Running the same Macaulay duration calculator on three different bonds reveals how a bond's coupon, yield, and maturity shape its interest-rate risk. Consider a 10-year $1,000 bond with a 5% annual coupon and a 5% yield. It prices at par ($1,000.00) and has a Macaulay duration of 8.11 years and a modified duration of 7.72. Because the coupon equals the yield, no premium or discount pulls the weighted average toward early or late cash flows. The duration simply reflects the long 10-year maturity, tempered by the steady stream of coupon payments.
Now take a 5-year zero-coupon $1,000 bond at a 6% yield. It prices at $747.26, and its Macaulay duration is exactly its maturity, 5.00 years, with a modified duration of 4.72. A zero-coupon bond has only one cash flow — the principal at maturity — so the present-value-weighted average time until cash flows are received is, by definition, the bond's full maturity. No coupons arrive earlier to shorten that average. This is why zero-coupon bonds always have the highest duration for any given maturity.
The third example is a 5-year $1,000 bond with an 8% coupon paid semiannually and a 6% yield. It prices at $1,085.30, with a Macaulay duration of 4.25 years and modified duration of 4.13. Two forces compress this duration well below the 5-year maturity. The 8% coupon is higher than the 6% yield, so a larger share of the bond's present value comes from earlier coupon payments rather than the final principal. In addition, the bond pays semiannually, meaning cash flows arrive twice a year instead of once, further shifting present-value weight toward the near term.
The pattern across these three bonds confirms the core rule: higher coupons and higher yields shorten duration, while longer maturities lengthen it. The 10-year par bond has the longest duration at 8.11 years despite a coupon equal to its yield, simply because ten years is a long time to wait. The 5-year zero-coupon bond matches its maturity at 5.00 years because it lacks coupons entirely. The 5-year premium semiannual bond falls to 4.25 years because its above-market coupon and frequent payment schedule push present-value weight into the earlier years.
Modified duration, calculated as Macaulay duration divided by one plus the yield per payment period, approximates the price change for a 1% yield move. The par bond's modified duration of 7.72, the zero-coupon bond's 4.72, and the premium bond's 4.13 all scale directly from their Macaulay durations, giving investors a quick estimate of how much each bond's price would fall if rates rose by one percentage point.
Macaulay vs modified duration vs maturity
Macaulay duration, modified duration, and maturity each describe a different aspect of a bond's time profile. Maturity is the simplest: it is the date when the final principal payment is due. A 5-year zero-coupon $1,000 bond at a 6% yield prices at $747.26 and has a maturity of 5.00 years. Because the bond pays no coupons, its Macaulay duration is exactly equal to its maturity, 5.00 years. For coupon bonds, however, maturity and Macaulay duration diverge because interim coupon payments arrive before the final principal payment.
Macaulay duration is the present-value-weighted average time until a bond's cash flows are received, expressed in years. It tells you how long, on average, you must wait to get your money back in present-value terms. Modified duration takes that figure one step further. The formula is: modified duration = Macaulay duration / (1 + yield per payment period). Modified duration approximates the price change for a 1% yield move, making it a practical tool for estimating interest-rate risk. A Macaulay duration calculator typically reports both numbers so you can see the weighted-average time and the estimated price sensitivity side by side.
Consider a 10-year $1,000 bond with a 5% annual coupon and a 5% yield. It prices at par ($1,000.00) and has a Macaulay duration of 8.11 years. Dividing 8.11 by (1 + 0.05) gives a modified duration of 7.72. That conversion shows how a time-based measure becomes a price-sensitivity measure: the 8.11-year weighted average translates into an approximate 7.72% price decline if the yield rises by 1%. The same conversion applies across different coupon and payment structures. A 5-year $1,000 bond with an 8% coupon paid semiannually and a 6% yield prices at $1,085.30, with a Macaulay duration of 4.25 years and a modified duration of 4.13.
Three factors drive these numbers. Higher coupons shorten duration because more of the bond's value is returned earlier. Higher yields also shorten duration because future cash flows are discounted more heavily. Longer maturities lengthen duration because more of the bond's value is tied to distant payments. The zero-coupon bond illustrates the extreme case: with no interim coupons, duration equals maturity exactly. The 5-year zero-coupon bond has a Macaulay duration of 5.00 years and a modified duration of 4.72, reflecting its full exposure to the 6% yield over the entire term.
What makes duration longer or shorter
Four factors drive Macaulay duration up or down: coupon size, yield level, maturity, and payment frequency. Because Macaulay duration is the present-value-weighted average time until a bond's cash flows are received, expressed in years, anything that shifts the timing or weight of those cash flows changes the result. Higher coupons and higher yields shorten duration; longer maturities lengthen it.
Coupon size has a clear effect. A larger coupon sends more of the bond's total return to the investor earlier, which pulls the weighted-average time closer to the present. A 10-year $1,000 bond with a 5% annual coupon and a 5% yield prices at par ($1,000.00) and has a Macaulay duration of 8.11 years. That same bond with a higher coupon would have a shorter duration because more cash arrives in the early years, reducing the average wait. At the extreme, a zero-coupon bond pays nothing until maturity, so every dollar of present value is tied to that single date. A 5-year zero-coupon $1,000 bond at a 6% yield prices at $747.26; its Macaulay duration is exactly its maturity, 5.00 years.
Yield level works in the same direction. When yields rise, cash flows far in the future are discounted more heavily, so they carry less weight in the average. That shifts duration toward the nearer payments and shortens it. Lower yields do the opposite: distant cash flows keep more of their present value, lengthening duration. This is why two bonds with identical coupons and maturities can have different durations when their yields differ.
Maturity is the most direct driver. Extending a bond's maturity pushes more cash flows into the distant future, lengthening the weighted-average time. Payment frequency also plays a role. More frequent payments return cash to the investor sooner, which modestly shortens duration compared with annual payments. A 5-year $1,000 bond with an 8% coupon paid semiannually and a 6% yield prices at $1,085.30, with a Macaulay duration of 4.25 years. Semiannual payments help bring the average below the 5-year maturity.
When you enter these inputs into a macaulay duration calculator, the tool applies the present-value weighting for you. The same inputs also produce modified duration, which equals Macaulay duration divided by (1 + yield per payment period) and approximates the price change for a 1% yield move. In the semiannual bond above, the Macaulay duration of 4.25 years produces a modified duration of 4.13, reflecting the shorter step when payments arrive twice a year.
Using duration in practice
Portfolio managers use the results from a macaulay duration calculator to manage interest-rate risk. The core idea is immunization: structuring a portfolio so that its duration matches the investor's time horizon. Because Macaulay duration is the present-value-weighted average time until a bond's cash flows are received, expressed in years, matching it to a future liability makes the portfolio's value relatively insensitive to small rate changes. If rates rise, the reinvested coupon income increases, offsetting the bond's price drop; if rates fall, the higher bond price offsets the lower reinvestment income.
In practice, managers pair Macaulay duration with modified duration to estimate price sensitivity. Modified duration equals Macaulay duration divided by 1 plus the yield per payment period, and approximates the price change for a 1% yield move. Consider a 10-year $1,000 bond with a 5% annual coupon and a 5% yield. It prices at par ($1,000.00) and has a Macaulay duration of 8.11 years and a modified duration of 7.72. A manager holding this bond knows that a 1% rise in yield should reduce its price by roughly 7.72%. A 5-year zero-coupon $1,000 bond at a 6% yield prices at $747.26; its Macaulay duration is exactly its maturity, 5.00 years, and its modified duration is 4.72, making it less sensitive than the longer 10-year bond. A 5-year $1,000 bond with an 8% coupon paid semiannually and a 6% yield prices at $1,085.30, with a Macaulay duration of 4.25 years and a modified duration of 4.13.
Duration shifts as a bond's characteristics change. Higher coupons and higher yields shorten duration, while longer maturities lengthen it. Managers monitor these relationships when rebalancing an immunized portfolio, since every coupon payment and yield change moves the duration away from the original target.
Duration is only a first-order approximation, however. It assumes a linear relationship between yield changes and price changes, but the true relationship is curved. This curvature is called convexity. For small yield moves, modified duration gives a good estimate. For larger moves, the linear estimate becomes less accurate. A bond's price falls less than duration predicts when yields rise, and rises more than duration predicts when yields fall. Managers therefore treat duration as a baseline tool and add convexity adjustments when rates move significantly, ensuring immunization strategies remain effective across a wider range of market conditions.
FAQs
What does Macaulay duration measure?
Macaulay duration measures the weighted-average time to receive a bond's cash flows, weighted by each payment's present value. It tells you how long it takes, on average, to get your money back from a bond. The weighting by present value means earlier and larger payments count more, giving a realistic measure of when you recover your investment.
How do you calculate Macaulay duration?
Discount each cash flow, multiply each present value by its time, sum, and divide by the bond's price. This gives you the weighted-average time in years. Each cash flow's present value serves as its weight, so payments closer to maturity have less impact than earlier ones. The result is a single number expressing the bond's effective time horizon.
What is the duration of a zero-coupon bond?
A zero-coupon bond's duration is exactly its maturity — the 5-year zero in the examples has a duration of 5.00 years because its only cash flow arrives at year 5. With no coupons paid along the way, there is nothing to weight earlier, so the duration equals the bond's full maturity period.
What is the difference between Macaulay and modified duration?
Modified duration divides Macaulay duration by (1 + yield per period): 8.11 / 1.05 = 7.72 in the par-bond example. Macaulay duration gives the weighted-average time to receive cash flows, while modified duration estimates how much a bond's price will change for a given yield shift. Modified duration is the practical tool for assessing price sensitivity.
Why is duration less than maturity for coupon bonds?
Coupons arrive before maturity, pulling the weighted-average time below the final year — 8.11 years on a 10-year bond. Since coupon payments are received at earlier dates, they reduce the average time to recover cash flows. A bond paying regular coupons will always have a duration shorter than its maturity, reflecting the earlier receipt of those intermediate payments.
Does payment frequency change duration?
Yes — the semiannual 8% example pays sooner on average, one reason its duration is 4.25 years over a 5-year life. More frequent payments mean cash flows arrive earlier, which lowers the weighted-average time. A bond paying semiannually will have a shorter duration than the same bond paying annually, all else being equal.