DURATION function
Returns the Macaulay duration of a coupon bond — the weighted average time, in years, until its cash flows are received.
Available in Excel 2007 and later (earlier versions needed the Analysis ToolPak add-in), Excel for the web
Excel 2007 and laterWorks in Google Sheets
Syntax
DURATION(settlement, maturity, coupon, yld, frequency, [basis])| Argument | What it means | |
|---|---|---|
settlement | Required | The date you buy the security (after its issue date). |
maturity | Required | The date the security matures and is repaid. |
coupon | Required | Annual coupon rate. |
yld | Required | Annual yield to maturity. |
frequency | Required | Coupon payments per year: 1 = annual, 2 = semi-annual, 4 = quarterly. |
basis | Optional | Day-count basis: 0 or omitted = US 30/360, 1 = actual/actual, 2 = actual/360, 3 = actual/365, 4 = European 30/360. |
Returns: Duration in years.
How DURATION works
Duration measures how long, on average, you wait to get your money back from a bond, weighting each coupon and the redemption by its present value. A 4½-year bond paying coupons has a duration below 4½ years because part of the money arrives earlier as coupons; a zero-coupon bond's duration equals its maturity.
Duration is also the key measure of interest-rate risk: the longer the duration, the more the price moves when yields change. For a direct price-sensitivity estimate use the modified duration, MDURATION, which is this value divided by (1 + yield/frequency).
Examples
1Duration of a semi-annual corporate bond
| A | B | |
|---|---|---|
| 1 | Settlement | 2026-12-02 |
| 2 | Maturity | 2031-06-15 |
| 3 | Coupon | 4.50% |
| 4 | Yield | 5.20% |
| 5 | Frequency | 2 |
| 6 | Basis | 0 |
| 7 | ||
| 8 | 4.0601 |
Result: 4.0601
Although the bond matures in 4.5 years, the present-value-weighted average time of its cash flows is about 4.06 years (cell formatted with 4 decimals).
2Longer annual-coupon bond
| A | B | |
|---|---|---|
| 1 | Settlement | 2026-12-02 |
| 2 | Maturity | 2036-03-01 |
| 3 | Coupon | 3.00% |
| 4 | Yield | 3.40% |
| 5 | Frequency | 1 |
| 6 | Basis | 1 |
| 7 | ||
| 8 | 8.0050 |
Result: 8.0050
A 9¼-year bond with a low 3% coupon has a duration of about 8 years: most of its value comes from the final redemption (4 decimals).
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#NUM! | settlement is on or after maturity, frequency is not 1, 2 or 4, or basis is outside 0–4. | Check the dates and the frequency/basis codes. |
#VALUE! | A date argument is not a valid date. | Use real date cells or DATE; dates are truncated to whole days. |
#NUM! (rates) | coupon or yld is negative. | Use non-negative rates. |
Tips
- Lower coupons and longer maturities both increase duration.
- Portfolio duration is approximately the value-weighted average of the bonds' durations.
- Enter dates with DATE or as date cells, not as text such as "12/02/2026", which different regional settings read differently.
Google Sheets
DURATION also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
DURATION in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Danish | VARIGHED |
| Dutch | DUUR |
| Finnish | KESTO |
| French | DUREE |
| Hungarian | KAMATÉRZ |
| Italian | DURATA |
| Norwegian (Bokmål) | VARIGHET |
| Polish | ROCZ.PRZYCH |
| Portuguese (Brazil) | DURAÇÃO |
| Portuguese (Portugal) | DURAÇÃO |
| Russian | ДЛИТ |
| Spanish | DURACION |
| Swedish | LÖPTID |
| Turkish | SÜRE |