DE Watchlist Portfolio check

Duration Calculator: Calculate Macaulay and Modified Duration

By · Published

Enter your bond’s coupon, remaining maturity and yield to see instantly how high its duration is – and how much the price changes when rates rise or fall.

Key takeaways

  • The calculator works out Macaulay duration, modified duration and the estimated price change for a change in yield.
  • You need the coupon, remaining maturity, yield and the number of coupon payments per year.
  • Optionally, it calculates price and convexity for a more precise estimate.
  • The formulas can be rebuilt in Excel with the DURATION and MDURATION functions.
  • Results are approximations for bonds without call features.

How the duration calculator works

Note for the website: the interactive calculator will be embedded here. Input fields and formulas are described below.

Input fields

FieldDescriptionExample value
Coupon (% p.a.)Annual nominal interest rate3.0%
Remaining maturity (years)Time to maturity10
Yield (% p.a.)Current market yield (yield to maturity)3.2%
Payments per year1 (annual, e.g. German Bunds) or 2 (semi-annual, e.g. US Treasuries)1
Yield change (percentage points)Scenario for the price change+1.0

Results for the example

OutputResult (rounded)
Priceapprox. 98.31%
Macaulay durationapprox. 8.77 years
Modified durationapprox. 8.50
Estimated price change at +1 ppapprox. −8.5%
Estimated price change at −1 ppapprox. +8.5% (slightly more with convexity)

The formulas

Price = Σ coupon / (1 + y)^t + face value / (1 + y)^n

Macaulay duration = Σ [ t × CF_t / (1 + y)^t ] / price

Modified duration = Macaulay duration / (1 + y / m), where m = payments per year

Price change (approximation) = −modified duration × Δy

With convexity = −modified duration × Δy + ½ × convexity × (Δy)²

Excel template

Excel and Google Sheets have built-in functions:

CellContentFormula
B1Settlement date11/23/2026
B2Maturity11/23/2036
B3Coupon3%
B4Yield3.2%
B5Payments per year1
B6Macaulay duration=DURATION(B1,B2,B3,B4,B5)
B7Modified duration=MDURATION(B1,B2,B3,B4,B5)
B8Price change at +1 pp=-B7*1%

In some language versions of Excel, the function argument separator is a semicolon instead of a comma.

Example scenarios

BondCouponMaturityYieldModified durationLoss at +1 pp
Short-dated2.5%2 years2.6%approx. 1.9approx. −1.9%
Medium maturity3.0%5 years2.9%approx. 4.6approx. −4.6%
Benchmark3.0%10 years3.2%approx. 8.5approx. −8.5%
Long-dated3.5%30 years3.7%approx. 18.2approx. −18%
Zero coupon0%30 years3.7%approx. 28.9approx. −29%

How to interpret the result

  • Duration below 3: low interest rate risk, suitable for short horizons.
  • Duration 3 to 7: medium interest rate risk, typical of broad bond ETFs.
  • Duration above 10: high interest rate risk, with large price swings when rates change.

Rule of thumb: if you hold your bond to maturity, interim price risk is irrelevant – you get the face value back. Duration matters above all if you might sell early or hold a bond ETF that never matures.

What the calculator doesn’t account for

  • Issuer call rights (that’s what effective duration is for),
  • variable coupons on floaters,
  • default risk and spread changes,
  • accrued interest and fees.

Frequently asked questions

Why is duration shorter than maturity? Because coupons come back earlier and reduce the weight of the final payment.

Where can I find an ETF’s duration? In the provider’s factsheet, usually as “modified duration” or “effective duration.”

How accurate is the estimate? Very good for rate changes of up to about one percentage point; beyond that, convexity should be taken into account.

Bottom line

The duration calculator shows in seconds how sensitive a bond is to interest rates. That helps you choose suitable maturities and judge how much price risk you take on when rates rise.

Related topics on Superinvestor Radar: Bond duration · Bond coupon · German Bunds · Yield curve · Spot rate

More on this topic: Bonds, interest rates and ratings

All 24 articles
Esc