Financial function

COUPDAYS function

Returns the number of days in the coupon period that contains the settlement date.

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

COUPDAYS(settlement, maturity, frequency, [basis])
ArgumentWhat it means
settlementRequiredThe date you buy the security (after its issue date).
maturityRequiredThe date the security matures and is repaid.
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: The length of the current coupon period in days.

How COUPDAYS works

COUPDAYS gives the length of the coupon period you are in on the settlement date. It is the denominator in accrued-interest and bond-pricing formulas: accrued interest is the coupon multiplied by the share of the period that has passed (COUPDAYBS ÷ COUPDAYS).

With basis 1 (actual/actual) the answer is the real number of days between the two coupon dates, so it varies between periods (181, 182, 183 or 184 days for semi-annual coupons). With the other bases it is fixed: 360/frequency for bases 0, 2 and 4, and 365/frequency for basis 3. All six COUP functions describe the coupon schedule of a bond around the settlement date: COUPPCD and COUPNCD give the previous and next coupon dates, COUPDAYBS, COUPDAYSNC and COUPDAYS the day counts, and COUPNUM the number of coupons still to come. Excel builds the schedule backwards from the maturity date in steps of 12/frequency months, so a bond maturing on 15 June with semi-annual coupons pays on 15 June and 15 December.

Examples

1Actual days in the current period

B6fx=COUPDAYS(B1,B2,B3,B4)
AB
1Settlement2026-12-02
2Maturity2031-06-15
3Frequency2
4Basis1
5
6183

Result: 183

The period runs from 15 Jun 2026 to 15 Dec 2026, which is 183 calendar days.

2Fixed period length on a 30/360 basis

B5fx=COUPDAYS(B1,B2,B3,0)
AB
1Settlement2026-12-02
2Maturity2031-06-15
3Frequency2
4
5180

Result: 180

Under 30/360 every semi-annual period is 360 / 2 = 180 days.

3Actual/365 basis

B5fx=COUPDAYS(B1,B2,B3,3)
AB
1Settlement2026-12-02
2Maturity2031-06-15
3Frequency2
4
5182.5

Result: 182.5

Basis 3 uses 365 / frequency, so the period is 182.5 days — not a whole number.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 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.

Tips

  • COUPDAYBS + COUPDAYSNC equals COUPDAYS for basis 1; for the 30/360 bases they also add up because Excel derives COUPDAYSNC from the other two.
  • Enter dates with DATE or as date cells, not as text such as "12/02/2026", which different regional settings read differently.

Google Sheets

COUPDAYS also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

COUPDAYS 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
DanishKUPONDAGE.A
DutchCOUP.DAGEN
FinnishKORKOPÄIVÄT
FrenchNB.JOURS.COUPONS
GermanZINSTERMTAGE
HungarianSZELVÉNYIDŐ
ItalianGIORNI.CED
Norwegian (Bokmål)OBLIG.DAGER
PolishWYPŁ.DNI
Portuguese (Brazil)CUPDIAS
Portuguese (Portugal)CUPDIAS
RussianДНЕЙКУПОН
SpanishCUPON.DIAS
SwedishKUPDAGB
TurkishKUPONGÜN