Duration Calculator: Calculate Macaulay and Modified Duration
By Mike Badstübner · 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
| Field | Description | Example value |
|---|---|---|
| Coupon (% p.a.) | Annual nominal interest rate | 3.0% |
| Remaining maturity (years) | Time to maturity | 10 |
| Yield (% p.a.) | Current market yield (yield to maturity) | 3.2% |
| Payments per year | 1 (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
| Output | Result (rounded) |
|---|---|
| Price | approx. 98.31% |
| Macaulay duration | approx. 8.77 years |
| Modified duration | approx. 8.50 |
| Estimated price change at +1 pp | approx. −8.5% |
| Estimated price change at −1 pp | approx. +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:
| Cell | Content | Formula |
|---|---|---|
| B1 | Settlement date | 11/23/2026 |
| B2 | Maturity | 11/23/2036 |
| B3 | Coupon | 3% |
| B4 | Yield | 3.2% |
| B5 | Payments per year | 1 |
| B6 | Macaulay duration | =DURATION(B1,B2,B3,B4,B5) |
| B7 | Modified duration | =MDURATION(B1,B2,B3,B4,B5) |
| B8 | Price 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
| Bond | Coupon | Maturity | Yield | Modified duration | Loss at +1 pp |
|---|---|---|---|---|---|
| Short-dated | 2.5% | 2 years | 2.6% | approx. 1.9 | approx. −1.9% |
| Medium maturity | 3.0% | 5 years | 2.9% | approx. 4.6 | approx. −4.6% |
| Benchmark | 3.0% | 10 years | 3.2% | approx. 8.5 | approx. −8.5% |
| Long-dated | 3.5% | 30 years | 3.7% | approx. 18.2 | approx. −18% |
| Zero coupon | 0% | 30 years | 3.7% | approx. 28.9 | approx. −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