Macaulay Duration

The Macaulay Duration is the weighted average time until the bond’s cash flows arrive, each weighted by its present value as a share of the price. Macaulay (1938) introduced it to compare the length of bonds with different coupons, as the maturity alone ignores that a high coupon returns much of the money early.

The formula for the Macaulay Duration starts by discounting every remaining cash flow \(\text{CF}_{t}\), paid t years from today, at the yield to maturity YTM, compounded twice a year:

\[\text{PV}_{t} = \frac{\text{CF}_{t}}{\left(1 + \frac{\text{YTM}}{2}\right)^{2 \cdot t}}\]

These present values add up to the dirty price, the market price plus the accrued interest:

\[\text{Dirty Price} = \sum \text{PV}_{t}\]

The Macaulay Duration is then the average payment time t, weighted by each cash flow’s share of that price:

\[\text{Macaulay Duration} = \frac{\sum \left(t \cdot \text{PV}_{t}\right)}{\text{Dirty Price}}\]

Where the cash flows \(\text{CF}_{t}\) are the coupons, 100 times the annual coupon rate divided by 2 per half year, and the principal of 100 repaid with the last coupon, on the bond’s actual coupon dates. It is measured in years and never exceeds the maturity: a zero-coupon bond’s Macaulay Duration equals its maturity, and the higher the coupon, the shorter the duration. It is also the holding period over which a parallel shift in yields leaves the bond’s return about unchanged, as the price change and the reinvestment of the coupons offset each other, which is why it is the target of immunisation.

Duration sums up the interest rate risk of a bond in one number. A bond’s price is the present value of its coupons and principal, so when yields rise the price falls, and it falls further the later the cash flows arrive. Duration measures that lateness, or equivalently the sensitivity of the price to the yield, which makes bonds with different coupons and maturities comparable and lets a portfolio’s interest rate risk be added up and hedged. All duration measures here are taken at the bond’s yield to maturity, the one rate that discounts its cash flows to its market price, compounded twice a year (the bond-equivalent yield the Treasury and US corporate bond markets quote). Every duration is a first-order measure: it treats the price-yield relation as a straight line, so it understates the price for large yield moves in either direction, which convexity corrects, and it assumes the cash flows are fixed.

Also known as: Macaulay’s duration, weighted average time to cash flows.

In the Finance Toolkit this is get_duration with method="macaulay", the same function as Duration Metrics.

Example

Install the Finance Toolkit with pip install financetoolkit -U, then call get_duration:

from financetoolkit import FixedIncome

fixedincome = FixedIncome()

durations = fixedincome.get_duration(method="macaulay", date="2026-11-05")

durations[["Security Type", "Coupon", "Maturity", "Price", "Macaulay's Duration"]]

Which returns:

References

  • Paper Macaulay, F.R. (1938). “Some Theoretical Problems Suggested by the Movements of Interest Rates, Bond Yields and Stock Prices in the United States Since 1856.” National Bureau of Economic Research.
  • Library Referenced against QuantLib’s BondFunctions.duration (Modified Duration, Macaulay Duration)
Share