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])| 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: 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
| A | B | |
|---|---|---|
| 1 | Settlement | 2026-12-02 |
| 2 | Maturity | 2031-06-15 |
| 3 | Frequency | 2 |
| 4 | Basis | 1 |
| 5 | ||
| 6 | 183 |
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
| A | B | |
|---|---|---|
| 1 | Settlement | 2026-12-02 |
| 2 | Maturity | 2031-06-15 |
| 3 | Frequency | 2 |
| 4 | ||
| 5 | 180 |
Result: 180
Under 30/360 every semi-annual period is 360 / 2 = 180 days.
3Actual/365 basis
| A | B | |
|---|---|---|
| 1 | Settlement | 2026-12-02 |
| 2 | Maturity | 2031-06-15 |
| 3 | Frequency | 2 |
| 4 | ||
| 5 | 182.5 |
Result: 182.5
Basis 3 uses 365 / frequency, so the period is 182.5 days — not a whole number.
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
- 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.
| Language | Function name |
|---|---|
| Danish | KUPONDAGE.A |
| Dutch | COUP.DAGEN |
| Finnish | KORKOPÄIVÄT |
| French | NB.JOURS.COUPONS |
| German | ZINSTERMTAGE |
| Hungarian | SZELVÉNYIDŐ |
| Italian | GIORNI.CED |
| Norwegian (Bokmål) | OBLIG.DAGER |
| Polish | WYPŁ.DNI |
| Portuguese (Brazil) | CUPDIAS |
| Portuguese (Portugal) | CUPDIAS |
| Russian | ДНЕЙКУПОН |
| Spanish | CUPON.DIAS |
| Swedish | KUPDAGB |
| Turkish | KUPONGÜN |