Effective Duration
The Effective Duration measures the same percentage sensitivity by repricing the bond with its yield shifted down and up, rather than from the formula of a fixed set of cash flows (Fabozzi, 2007). For a bond whose cash flows depend on rates, such as a callable bond or a mortgage-backed security, that repricing is done with a model of the embedded option, which is why it is the duration measure for such bonds.
The formula for the Effective Duration is as follows:
\[\text{Effective Duration} = \frac{\text{Dirty Price}(\text{YTM} - 0.01) - \text{Dirty Price}(\text{YTM} + 0.01)}{2 \cdot \text{Dirty Price} \cdot 0.01}\]Where Dirty Price is the price plus the accrued interest, Dirty Price(YTM - 0.01) and Dirty Price(YTM + 0.01) the dirty prices with the yield to maturity YTM, compounded twice a year, lowered and raised by one percentage point, and 0.01 that shift. Shifting the yield in both directions cancels most of the curvature of the price-yield relation, so for a bond with fixed cash flows the Effective Duration lies close to the Modified Duration; the gap grows with the convexity of the bond. It reads the same way: an Effective Duration of 7 means a price change of about 7% for a one percentage point move in the yield.
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: curve duration, option-adjusted duration, OAD.
In the Finance Toolkit this is get_duration with method="effective", 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="effective", date="2026-11-05")
durations[["Security Type", "Coupon", "Maturity", "Price", "Effective Duration"]]
| Parameter | Type | Description | Example |
|---|---|---|---|
method | str | The duration measure. Options are: “modified” (Modified Duration, the percentage sensitivity), “macaulay” (Macaulay Duration, the weighted average time), “effective” (Effective Duration, from repricing at shifted yields), “dollar” (Dollar Duration, per 100 of face value). Defaults to “modified”. | "modified" |
bonds | list[str] | str | None | CUSIPs or ISINs, see collect_bond_statistics. Defaults to None. | None |
issuer | list[str] | str | None | Part of an issuer’s name, such as “Apple”. Defaults to None. | None |
etfs | list[str] | str | None | The bond ETFs to select bonds from, see get_bond_universe. Defaults to None. | None |
maturity_start | str | None | The earliest maturity (YYYY-MM-DD). Defaults to None. | None |
maturity_end | str | None | The latest maturity (YYYY-MM-DD). Defaults to None. | None |
date | str | None | The day of the Treasury prices (YYYY-MM-DD). Defaults to None, the latest day with prices. | "2025-03-31" |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the class. | 2 |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
Which returns:
| Item | Security Type | Coupon | Maturity | Price | Effective Duration |
|---|---|---|---|---|---|
| 91282CRU7 | Note | 0.0462 | 2028-10-31 | 100.3120 | 1.8779 |
| 91282CLR0 | Note | 0.0412 | 2029-10-31 | 98.8750 | 2.7754 |
| 91282CRT0 | Note | 0.0475 | 2031-10-31 | 100.6880 | 4.3985 |
| 91282CRV5 | Note | 0.0488 | 2033-10-31 | 101.0620 | 5.8738 |
| 91282CRF0 | Note | 0.0462 | 2036-08-15 | 98.4375 | 7.7036 |
| 912810RU4 | Bond | 0.0288 | 2046-11-15 | 70.0312 | 13.7067 |
| 912810UW6 | Bond | 0.0512 | 2056-08-15 | 98.1250 | 15.0246 |
7 rows
References
- Paper Fabozzi, F.J. (2007). “Fixed Income Analysis.” 2nd edition, CFA Institute Investment Series, Wiley.