TSE.
MathematicsFinanceHealthPhysicsEngineeringBrowse all

Finance & Economics · Fixed Income · Fixed Income

Modified Duration Calculator

Calculates the modified duration of a bond to measure its price sensitivity to changes in yield.

Calculator

Advertisement

Formula

D_{mod} is modified duration (in years); D_{mac} is Macaulay duration (in years), which is the weighted average time to receive a bond's cash flows; y is the annual yield to maturity (as a decimal); m is the number of coupon periods per year (e.g., 2 for semi-annual, 1 for annual). Modified duration approximates the percentage change in bond price for a 1% (100 bps) change in yield: \Delta P / P \approx -D_{mod} \times \Delta y.

Source: Fabozzi, F.J. — Fixed Income Mathematics, 4th Edition. CFA Institute Fixed Income Curriculum.

How it works

What is Modified Duration? Modified duration is a key risk metric in fixed income analysis. It extends the concept of Macaulay duration — the weighted average time to receive a bond's cash flows — by adjusting for the yield level. While Macaulay duration is expressed purely in time (years), modified duration expresses the percentage change in a bond's price per unit change in yield. This makes it directly actionable for risk management: a portfolio manager can immediately translate a yield shift into expected portfolio value changes using modified duration.

The Formula: Modified duration is calculated as D_mod = D_mac / (1 + y/m), where D_mac is the Macaulay duration in years, y is the annual yield to maturity expressed as a decimal, and m is the number of coupon payments per year. For a semi-annual coupon bond with a Macaulay duration of 6.5 years and a YTM of 5%, modified duration = 6.5 / (1 + 0.05/2) = 6.5 / 1.025 ≈ 6.341 years. The price change approximation is then: ΔP/P ≈ −D_mod × Δy. Dollar duration (DV01 basis) gives the approximate dollar gain or loss per $1,000 face value per 100 basis point move.

Practical Applications: Fixed income traders use modified duration to hedge bond portfolios against parallel shifts in the yield curve. Portfolio managers target a specific portfolio duration by blending instruments of different durations. Risk systems use it to compute value-at-risk (VaR) for bond books. It is also critical for asset-liability management (ALM) in insurance companies and pension funds, where liabilities have their own duration and assets must be duration-matched to minimize interest rate risk. The metric is also fundamental to understanding immunization strategies and the construction of bond ladders.

Worked example

Worked Example — Corporate Bond:

Consider a corporate bond with the following characteristics:

  • Macaulay Duration: 6.5 years
  • Yield to Maturity: 5.0% (0.05 as a decimal)
  • Coupon Frequency: Semi-Annual (m = 2)

Step 1 — Calculate the periodic yield adjustment:

y / m = 0.05 / 2 = 0.025

Step 2 — Apply the modified duration formula:

D_mod = 6.5 / (1 + 0.025) = 6.5 / 1.025 = 6.3415 years

Step 3 — Estimate price sensitivity:

For a 100 basis point (1%) increase in yield: ΔP/P ≈ −6.3415 × 0.01 = −6.34%. A bond with $1,000,000 face value would lose approximately $63,415 in value.

Step 4 — Dollar Duration:

Dollar duration per $1,000 face = 6.3415 × $10 = $63.42 per $1,000 face per 100 bps change in yield.

This result tells a portfolio manager that if they hold $10 million of this bond, a 25 basis point rise in yield causes approximately $10,000,000 × 6.3415 × 0.0025 = $158,538 in mark-to-market loss.

Limitations & notes

Linear Approximation Only: Modified duration is a first-order (linear) approximation of price-yield sensitivity. For large yield changes, the actual price change will differ due to the convex shape of the price-yield curve. For precise estimation of large moves, convexity must be added: ΔP/P ≈ −D_mod × Δy + ½ × Convexity × (Δy)². Ignoring convexity will systematically underestimate price gains and overestimate price losses for large yield movements.

Parallel Shift Assumption: Modified duration assumes a parallel shift in the yield curve — all maturities move by the same amount. Real-world yield curve movements are rarely parallel; steepening, flattening, and butterfly shifts require key rate duration analysis for accurate risk decomposition.

Embedded Options: For callable bonds, putable bonds, mortgage-backed securities, and other bonds with embedded options, standard modified duration is unreliable because cash flows themselves change with yield. Effective duration (also called option-adjusted duration) must be used for these instruments, computed via scenario analysis over a rate model rather than the closed-form formula above.

Floating Rate Bonds: Modified duration is very short for floating rate bonds (typically close to the next reset date) because coupon payments adjust with market rates. Standard modified duration calculation still applies but produces very small values, and the primary risk is credit spread duration rather than interest rate duration.

Frequently asked questions

What is the difference between Macaulay duration and modified duration?

Macaulay duration is the weighted average time (in years) until a bond's cash flows are received, weighted by their present values. Modified duration adjusts Macaulay duration by dividing by (1 + y/m) to produce a measure of percentage price sensitivity per unit change in yield. Modified duration is more directly useful for risk management because it tells you how much the bond price will change for a given yield movement.

What does a modified duration of 7 mean in practice?

A modified duration of 7 means that for every 1% (100 basis points) increase in yield, the bond's price will fall by approximately 7%, and vice versa. For a $1,000,000 bond portfolio with modified duration of 7, a 50 basis point rise in rates causes an approximate loss of $35,000 (7 × 0.005 × $1,000,000). This is a linear approximation that works best for small yield changes.

Why does coupon frequency affect modified duration?

The coupon frequency m appears in the denominator because the compounding convention used in bond pricing is per-period, not annual. A semi-annual bond compounds its yield twice per year, so the periodic rate is y/2. Dividing by (1 + y/m) converts the Macaulay duration from the periodic compounding basis to the modified duration on an annualized basis. Higher coupon frequency, all else equal, results in a slightly lower modified duration.

Can modified duration be used for bond portfolios?

Yes. Portfolio modified duration is simply the market-value-weighted average of the modified durations of all individual bonds in the portfolio. If a $5M bond has modified duration 4 and a $5M bond has modified duration 8, the portfolio's modified duration is (5×4 + 5×8) / 10 = 6. This aggregate figure tells you the portfolio's overall sensitivity to parallel yield curve shifts and is the primary tool for duration targeting and hedging.

When should I use effective duration instead of modified duration?

Effective duration should be used whenever a bond has embedded options — such as callable bonds, putable bonds, mortgage-backed securities (MBS), or asset-backed securities (ABS). These instruments have cash flows that change as interest rates change, making the standard modified duration formula inaccurate. Effective duration is computed numerically by shocking rates up and down in an option-adjusted spread (OAS) model and observing the price response, capturing the option's effect on cash flows.

Last updated: 2025-01-15 · Formula verified against primary sources.