Financial function

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])
ArgumentWhat it means
settlementRequiredThe date you buy the security (after its issue date).
maturityRequiredThe date the security matures and is repaid.
couponRequiredAnnual coupon rate.
yldRequiredAnnual yield to maturity.
frequencyRequiredCoupon payments per year: 1 = annual, 2 = semi-annual, 4 = quarterly.
basisOptionalDay-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

B8fx=DURATION(B1,B2,B3,B4,B5,B6)
AB
1Settlement2026-12-02
2Maturity2031-06-15
3Coupon4.50%
4Yield5.20%
5Frequency2
6Basis0
7
84.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

B8fx=DURATION(B1,B2,B3,B4,B5,B6)
AB
1Settlement2026-12-02
2Maturity2036-03-01
3Coupon3.00%
4Yield3.40%
5Frequency1
6Basis1
7
88.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).

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#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.

LanguageFunction name
DanishVARIGHED
DutchDUUR
FinnishKESTO
FrenchDUREE
HungarianKAMATÉRZ
ItalianDURATA
Norwegian (Bokmål)VARIGHET
PolishROCZ.PRZYCH
Portuguese (Brazil)DURAÇÃO
Portuguese (Portugal)DURAÇÃO
RussianДЛИТ
SpanishDURACION
SwedishLÖPTID
TurkishSÜRE