Financial function

COUPDAYBS function

Returns the number of days from the start of the current coupon period to the settlement date — the days of accrued interest.

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

COUPDAYBS(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: A number of days.

How COUPDAYBS works

When you buy a bond between coupon dates, you pay the seller the interest that has built up since the last coupon (accrued interest). COUPDAYBS ("days, beginning to settlement") counts those days: from the previous coupon date up to the settlement date, using the day-count basis of the bond.

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.

Basis 1 counts real calendar days; basis 0 and 4 count every month as 30 days. The same bond can therefore give slightly different day counts under different bases.

Examples

1Days of accrued interest (actual/actual)

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

Result: 170

The previous coupon was paid on 15 Jun 2026. From then to 2 Dec 2026 is 170 calendar days.

2Same bond on a 30/360 basis

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

Result: 167

On a 30/360 basis the period from 15 Jun to 2 Dec counts as 5 months × 30 + 17 days = 167 days.

⬇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.

Tips

  • Accrued interest per 100 of face value is coupon_rate × 100 / frequency × COUPDAYBS / COUPDAYS.
  • Enter dates with DATE or as date cells, not as text such as "12/02/2026", which different regional settings read differently.

Google Sheets

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

COUPDAYBS 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.SA
DutchCOUP.DAGEN.BB
FinnishKORKOPÄIVÄT.ALUSTA
FrenchNB.JOURS.COUPON.PREC
GermanZINSTERMTAGVA
HungarianSZELVÉNYIDŐ.KEZDETTŐL
ItalianGIORNI.CED.INIZ.LIQ
Norwegian (Bokmål)OBLIG.DAGER.FF
PolishWYPŁ.DNI.OD.POCZ
Portuguese (Brazil)CUPDIASINLIQ
Portuguese (Portugal)CUPDIASINLIQ
RussianДНЕЙКУПОНДО
SpanishCUPON.DIAS.L1
SwedishKUPDAGBB
TurkishKUPONGÜNBD