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])| 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. |
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: 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)
| A | B | |
|---|---|---|
| 1 | Settlement | 2026-12-02 |
| 2 | Maturity | 2031-06-15 |
| 3 | Frequency | 2 |
| 4 | Basis | 1 |
| 5 | ||
| 6 | 170 |
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
| A | B | |
|---|---|---|
| 1 | Settlement | 2026-12-02 |
| 2 | Maturity | 2031-06-15 |
| 3 | Frequency | 2 |
| 4 | ||
| 5 | 167 |
Result: 167
On a 30/360 basis the period from 15 Jun to 2 Dec counts as 5 months × 30 + 17 days = 167 days.
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. |
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.
| Language | Function name |
|---|---|
| Danish | KUPONDAGE.SA |
| Dutch | COUP.DAGEN.BB |
| Finnish | KORKOPÄIVÄT.ALUSTA |
| French | NB.JOURS.COUPON.PREC |
| German | ZINSTERMTAGVA |
| Hungarian | SZELVÉNYIDŐ.KEZDETTŐL |
| Italian | GIORNI.CED.INIZ.LIQ |
| Norwegian (Bokmål) | OBLIG.DAGER.FF |
| Polish | WYPŁ.DNI.OD.POCZ |
| Portuguese (Brazil) | CUPDIASINLIQ |
| Portuguese (Portugal) | CUPDIASINLIQ |
| Russian | ДНЕЙКУПОНДО |
| Spanish | CUPON.DIAS.L1 |
| Swedish | KUPDAGBB |
| Turkish | KUPONGÜNBD |