Skip to content

Bond Duration Calculator

Calculate bond duration and modified duration for price sensitivity.

By CalcGenius Editorial TeamLast reviewed August 28, 20253 min read
Bond Duration Calculator

Principal repaid at maturity (typically $1,000).

Annual coupon rate as percent of face value.

Years remaining until the bond matures.

Annual yield that equates price to PV of cash flows.

📊
Enter your values and click Calculate

About

A bond duration calculator computes the Macaulay duration and modified duration of a fixed-coupon bond given its face value, coupon rate, years to maturity, yield to maturity, and coupon frequency. Duration measures the weighted-average time to receive a bond's cash flows, weighted by their present value, and is the central measure of interest-rate risk in fixed-income investing. The calculator also reports the bond's price and approximate price sensitivity to a 1% yield change.

Duration matters because bond prices move inversely to yields — when yields rise, prices fall, and vice versa. The longer the duration, the more sensitive the bond's price is to yield changes. A 30-year Treasury with duration around 15 years will lose roughly 15% of its value for a 1% (100 basis point) rise in yields; a 2-year Treasury with duration around 2 years will lose only 2%. Duration is therefore the single most important number for understanding how a bond or bond portfolio will behave when rates change.

Two duration measures are commonly reported. Macaulay duration, named after Frederick Macaulay who introduced it in 1938, is the weighted-average time to receive cash flows in years — it is the conceptual measure. Modified duration is Macaulay duration divided by (1 + y/n), where y is the yield and n is the compounding frequency per year. Modified duration is the practical one — it directly approximates the percentage price change for a small change in yield: ΔP/P ≈ −D_mod × Δy. Most market participants use modified duration when they say "duration" in practice.

Several intuitive relationships hold. Higher coupons reduce duration (cash flows come earlier, weighted-average time pulls in). Higher yields reduce duration (later cash flows are discounted more heavily). Longer maturity increases duration but at a decreasing rate — a 30-year bond has lower duration than 30 years because of coupons. Zero-coupon bonds have duration exactly equal to maturity. These relationships explain why high-yield bonds (high coupons) often have lower duration than investment-grade bonds of the same maturity, and why zero-coupon long bonds are so volatile.

Duration is the first-order (linear) approximation of the price-yield relationship. For larger yield changes, the second-order term — convexity — matters. Convexity is always positive for plain-vanilla bonds, which means duration alone overstates losses when yields rise and understates gains when yields fall. The actual price change from a yield move is approximately: ΔP/P ≈ −D_mod × Δy + ½ × Convexity × Δy². For most retail applications, duration alone is sufficient; for large yield moves or long-duration bonds, include convexity for accuracy.

For investors, the practical takeaway is that duration should match your time horizon. If you need the money in 5 years, hold bonds with duration near 5 — this immunizes the portfolio against rate moves because price changes and reinvestment rate changes offset. If you expect rates to fall, extend duration to capture price gains. If you expect rates to rise, shorten duration to limit losses. Liability- driven investing (LDI), used by pension funds, applies this principle at scale — match the duration of assets to the duration of liabilities to neutralize interest-rate risk.

How to Use

  1. 1
    Enter face value and coupon rate
    Type the bond's face value (the principal repaid at maturity, typically $1,000) and the annual coupon rate as a percentage (e.g. 4.5 for a bond paying 4.5% per year of face value).
  2. 2
    Set years to maturity and yield
    Enter the years remaining until the bond matures, and the yield to maturity (the discount rate that equates the bond's price to the present value of its cash flows). YTM is typically expressed as an annual percentage.
  3. 3
    Choose coupon frequency
    Select Annual (1 coupon per year), Semi-annual (2 coupons, U.S. Treasury and corporate standard), or Quarterly (4 coupons, common for municipal bonds). The calculator divides the coupon rate by the frequency and computes cash flows accordingly.
  4. 4
    Read Macaulay and modified duration
    The hero number is the Macaulay duration in years. The breakdown shows modified duration (the practical price-sensitivity measure) and the approximate percentage price change for a 1% yield move (with convexity caveat noted).

Formula

Macaulay duration (in years) is the weighted-average time of cash flows:

D_mac = Σ [ t × CF_t / (1 + y/n)^t ] / Σ [ CF_t / (1 + y/n)^t ]

Modified duration is Macaulay duration adjusted for compounding:

D_mod = D_mac / (1 + y/n)

Approximate price change for a small yield move:

ΔP/P ≈ −D_mod × Δy

  • CF_t = cash flow at time t (coupon or coupon + face at maturity).
  • y = yield to maturity (annual, as decimal).
  • n = compounding periods per year (1, 2, or 4).
  • t = time in years (i / n where i is the period index).
  • Denominator Σ[CF_t / (1+y/n)^t] = bond price.

For large yield moves, add the convexity term: ΔP/P ≈ −D_mod × Δy + ½ × Convexity × Δy². This calculator reports duration and the linear approximation only.

Worked Example

Consider a 10-year bond with $1,000 face, 5% annual coupon, paid semi-annually, with a 5% yield to maturity (so price ≈ par). There are 20 semi-annual coupons of $25 each, plus the $1,000 principal at period 20.

  • Period 1: $25 / (1.025)¹ = $24.39, weight × t (0.5 yr) → 0.5 × 24.39 = 12.20
  • Period 20: $1,025 / (1.025)²⁰ = $610.85, weight × t (10 yr) → 10 × 610.85 = 6,108.50
  • Sum of all (t × PV) ≈ 7,710. Sum of all PV ≈ 1,000 (= price).
  • Macaulay duration = 7,710 / 1,000 ≈ 7.71 years.
  • Modified duration = 7.71 / (1 + 0.025) ≈ 7.53 years.
  • For a +1% yield move: price change ≈ −7.53 × 1% = −7.53% (with convexity adjustment improving this slightly).

Tips

  • Match duration to your time horizon — if you need the money in 5 years, hold bonds with duration near 5 to immunize against rate moves.
  • Extend duration only if you expect rates to fall (which raises bond prices); shorten duration if you expect rates to rise.
  • Use duration alongside convexity — duration alone overstates losses on rate hikes and understates gains on rate cuts.
  • Long-duration bonds (20+ years) can swing 20%+ in price for a 1% yield move — only appropriate for investors who can stomach that volatility.
  • For liability-driven investing (LDI), match portfolio duration to the duration of future obligations — this is how pension funds immunize themselves against rate risk.

Common Mistakes

Common pitfalls
  • Confusing duration with maturity — maturity is a date; duration is the weighted-average time of cash flows.
  • Forgetting convexity for large yield moves — duration alone overstates losses on rate hikes.
  • Ignoring coupon frequency — semi-annual coupons reduce duration relative to annual, all else equal.
  • Treating duration as static — duration changes as yields change and as the bond ages (\"pull to par\").
  • Assuming duration works for callable bonds — for bonds with embedded options, use effective duration instead.

Frequently Asked Questions

What is bond duration and why does it matter?
Bond duration measures the weighted-average time to receive a bond's cash flows, weighted by their present value. It captures both the timing of cash flows and the bond's price sensitivity to interest-rate changes. Duration matters because it tells you how much the bond's price will move for a given change in yields — a bond with a 10-year duration will rise roughly 10% in price for a 1% drop in yields, and fall roughly 10% for a 1% rise in yields. Duration is the single most important interest-rate risk measure for a bond or bond portfolio.
What is the difference between Macaulay duration and modified duration?
Macaulay duration is the weighted-average time to receive a bond's cash flows (in years), where each cash flow is weighted by its present value. It is named after Frederick Macaulay, who introduced it in 1938. Modified duration is Macaulay duration divided by (1 + y/n), where y is the yield to maturity and n is the number of compounding periods per year. Modified duration is the practical one — it directly approximates the percentage price change for a small change in yield: ΔP/P ≈ −D_mod × Δy.
Why do higher coupon bonds have lower duration?
Higher coupons return more of the bond's cash flows earlier, which pulls the weighted-average time (duration) closer to the present. A zero-coupon bond has duration exactly equal to its time to maturity (because the only cash flow is at maturity), while a high-coupon bond returns cash throughout its life and so has duration shorter than maturity. For example, a 10-year zero has duration 10 years; a 10-year bond with a 10% coupon has duration around 6.5 years; a 10-year bond with a 2% coupon has duration around 8.5 years.
How is duration used to measure interest-rate risk?
The modified duration approximates the percentage price change for a small change in yield: ΔP/P ≈ −D_mod × Δy, where Δy is the change in yield in decimal. A bond with modified duration of 8 years will fall approximately 8% in price for a 1% (100 basis point) rise in yields, and rise approximately 8% for a 1% drop in yields. For larger moves, the convexity adjustment matters — duration alone overstates the price drop on rate hikes and understates the price gain on rate cuts. Duration is the first-order (linear) term; convexity is the second-order (curvature) term.
What is a good duration for a bond portfolio?
It depends on the investor's time horizon and interest-rate outlook. If you need the money in 5 years, hold bonds with duration around 5 years — this immunizes the portfolio against rate moves because price changes and reinvestment rate changes offset. If you expect rates to fall (which raises bond prices), extend duration to capture price gains. If you expect rates to rise (which lowers bond prices), shorten duration to limit losses. Long-duration portfolios (15+ years) are highly sensitive to rate changes; short-duration portfolios (1–3 years) are stable but offer lower yields.
How does duration differ from maturity?
Maturity is simply the date the bond repays its face value — a fixed date. Duration is the weighted-average time of all cash flows (coupons plus principal), weighted by present value. Duration is always less than or equal to maturity for coupon-paying bonds (because coupons arrive before maturity), and equals maturity only for zero-coupon bonds. Two bonds with the same maturity can have very different durations: a 30-year zero has duration 30 years; a 30-year bond with an 8% coupon has duration around 12 years — a massive difference in interest-rate sensitivity.

Macaulay duration

Macaulay duration, introduced by Frederick Macaulay in 1938, is the weighted-average time to receive a bond's cash flows, where each cash flow is weighted by its present value. For a zero-coupon bond, duration equals maturity exactly (because the only cash flow is at maturity). For coupon bonds, duration is shorter than maturity because coupon payments arrive earlier. Macaulay duration is measured in years and is the foundation for the more practical modified duration.

Modified duration

Modified duration is Macaulay duration divided by (1 + y/n), where y is the yield to maturity and n is the compounding frequency per year. It is the practical measure — it directly approximates the percentage price change for a small change in yield: ΔP/P ≈ −D_mod × Δy. A bond with modified duration of 8 years will fall roughly 8% for a 1% (100 basis point) rise in yields. Modified duration is the first-order (linear) term in the price-yield Taylor expansion.

Interest-rate sensitivity

Duration is the central measure of interest-rate risk. Long- duration bonds fall more when rates rise and gain more when rates fall. A 30-year Treasury with duration around 15 years will lose roughly 15% of its value for a 1% rise in yields; a 2-year Treasury with duration around 2 years will lose only 2%. To immunize a liability due in N years, hold a bond portfolio with duration N — the price impact of rate moves will be offset by the reinvestment rate impact, locking in the targeted yield.

Why higher coupon = lower duration

Higher coupons return more of the bond's cash flows earlier, which pulls the weighted-average time (duration) closer to the present. A zero-coupon bond has duration exactly equal to its maturity; a high-coupon bond returns cash throughout its life and so has duration shorter than maturity. For two 10-year bonds with the same yield, the one with the higher coupon has lower duration and therefore lower interest-rate risk. This is why high-yield bonds (which pay high coupons) often have lower duration than investment-grade bonds of the same maturity.

Macaulay and modified duration for various bond configurations, plus price change for a +1% yield move (semi-annual coupons, $1,000 face).
Bond scenarioMacaulay (yr)Modified (yr)Price @ ytmPrice @ ytm+1%Price change
Zero-coupon 5yr, ytm 4%5.00 yr4.90 yr$820.35$781.20-4.77%
5% coupon 5yr, ytm 4%4.50 yr4.41 yr$1,044.91$1,000.00-4.30%
5% coupon 10yr, ytm 5%7.99 yr7.79 yr$1,000.00$925.61-7.44%
10% coupon 10yr, ytm 5%7.11 yr6.93 yr$1,389.73$1,297.55-6.63%
2% coupon 30yr, ytm 5%19.44 yr18.97 yr$536.37$446.49-16.76%
Zero-coupon 30yr, ytm 5%30.00 yr29.27 yr$227.28$169.73-25.32%
Duration is the first-order term; convexity is the second-order
The duration formula ΔP/P ≈ −D_mod × Δy is a linear approximation. For larger yield moves, the convexity term ½ × Convexity × Δy² matters. Convexity is always positive for plain-vanilla bonds, which means the actual price is slightly higher than duration predicts for both rate hikes and rate cuts — bonds benefit from convexity. For 1% yield moves, duration alone is usually close enough; for 2%+ moves, include convexity for accuracy.
Immunize liabilities by matching duration
If you owe $100,000 in 7 years, hold bonds with duration near 7 years. When rates rise, your bond price falls but you can reinvest the coupons at higher rates; when rates fall, your bond price rises but reinvestment rates drop. The two effects offset, locking in the targeted yield. This is called immunization and is the foundation of liability-driven investing used by pension funds.

Authoritative References

  • Wikipedia — Bond duration— wikipedia.org
    Comprehensive Wikipedia article on bond duration — Macaulay duration, modified duration, effective duration, and convexity with full derivations.
  • Investopedia — Duration: What it means— investopedia.com
    Investopedia's plain-language guide to bond duration, including how to use it to assess interest-rate risk and the difference between Macaulay and modified duration.
  • FINRA — Bond duration and interest-rate risk— finra.org
    FINRA's investor bulletin on bond duration and how it measures interest-rate risk for retail bond investors.

Try our other free calculators

CalcGenius has 1,200+ free, ad-free, browser-based calculators for finance, health, math, science, and everyday life. No sign-up required.

Bond Duration Calculator — Annualized Gain & Dividend Plan