COUPDAYS In Google Sheets

What Is COUPDAYS Function In Google Sheets?

The COUPDAYS function in Google Sheets is a financial tool used to calculate the number of days in the coupon period that contains the settlement date of a bond. It is very useful, especially for investors and analysts who work with fixed-income securities. It gives them a clear idea of the total length of the current interest period.

As an example, let us consider a bond purchased on March 1st, 2025. It pays interest semi-annually with the next coupon date on June 30th,2025, and the previous one on December 31st, 2024. We can use the COUPDAYS function to determine the total number of days from December 31st to June 30th.

Enter the formula =COUPDAYS(DATE(2025,3,1), DATE(2025,6,30), 2, 2)

where the bond pays interest twice a year, it will return the number of days in that full coupon period.

COUPDAYS Function in Google Sheets Intro
Key Takeaways
  1. COUPDAYS is a financial function that calculates the total number of days in the coupon period containing the bond’s settlement date. 
  2. The function requires the following inputs mandatorily: settlement date, maturity date, and frequency of interest payments. We also have an optional fourth input, basis.
  3. While COUPDAYSNC calculates the days from the settlement date to the next coupon date, COUPDAYS returns the entire span of the current coupon period that include the start and end dates.
  4. COUPDAYS is useful when calculating interest earned per day, finding the bond interest accrual, or to understand payment schedules in bond investments.

Syntax

The syntax of COUPDAYS in Google Sheets is as follows:

=COUPDAYS(settlement, maturity, frequency, [basis])

Arguments:

  1. settlement – The date when the bond is purchased by the buyer.
  2. maturity – The date on which the bond matures.
  3. frequency – The number of coupon payments per year:
  1. 1 = Annual
  2. 2 = Semi-annual
  3. 4 = Quarterly
  4. [basis] (optional) – The day count convention used to calculate interest. The default is 0 (US 30/360). Other basis values include:
    • 1 = Actual/Actual
    • 2 = Actual/360
    • 3 = Actual/365
    • 4 = European 30/360

By supplying these parameters, the COUPDAYS function returns the total number of days in the coupon period including the settlement date.

How To Use COUPDAYS In Google Sheets?

The COUPDAYS function in Google Sheets is a powerful financial tool that calculates the total number of days in the coupon period that includes the settlement date of a bond. It is very important for performing accurate interest calculations and understanding the duration of the current interest period.

One can enter the COUPDAYS function in Google Sheets in two main ways:

  1. By manually entering the formula.
  2. By selecting it from the Google Sheets menu bar.

Entering the COUPDAYS Function Manually

Let’s walk through a simple example to understand how to insert the function manually. Suppose a buyer purchases a bond on March 1, 2025, and it matures on March 1, 2027. The bond pays interest quarterly. Let us use the default day count basis.

Step 1: Enter the required bond details in the spreadsheet, like the settlement date, maturity date, and frequency.

Settlement Date: 03/01/2025

Maturity Date: 03/01/2027

Frequency: 4

How to Use COUPDAYS in GS 1

Step 2: Click on an empty cell where you want to display the result. For example, here we select cell B5 and then type,

=COUPDAYS(

How to Use COUPDAYS in GS 1-1

Step 3: Inside the parentheses, enter the arguments in the following order: settlement date, maturity date, frequency, and optionally, basis. We can use the DATE function to input valid date formats. Then close the parentheses and press Enter.

=COUPDAYS(DATE(2025,3,1), DATE(2027,3,1), 4)

How to Use COUPDAYS in GS 1-2

Step 4: The result will show the total number of days in the coupon period including the settlement date.

How to Use COUPDAYS in GS 1-3

Entering COUPDAYS Through the Menu Bar

  1. Click on any empty cell.
  2. Go to the top menu and click on Insert → Function → Financial.
  3. Scroll through the list and select COUPDAYS.
  4. Fill in the necessary arguments in the input fields.
  5. Press Enter to see the result.

By using either method, you can effectively calculate the full length of a bond’s coupon period, which is essential for interest and bond valuation analysis.

Examples

Here are a few examples to help understand how the COUPDAYS function works in Google Sheets. These interesting examples will help demonstrate how to apply the formula with different inputs for real-world applications.

Example #1 – Calculate the Number of Days Between Two Coupon Payment Dates Using COUPDAYS

An investor purchases a corporate bond on March 1, 2024, which matures on March 1, 2026. The bond pays semi-annual interest, that is, it pays interest twice a year. The investor wants to find the total number of days in the current coupon period in which the bond was bought).

We can calculate this using the COUPDAYS function in Google Sheets as follows.

Step 1: Open a spreadsheet and enter the following details:

  • Settlement date: March 1, 2024
  • Maturity date: March 1, 2026
  • Frequency: 2 (for semi-annual payments)
COUPDAYS Function in Google Sheets Example 1

Step 2: Click on an empty cell and enter the formula shown below:

=COUPDAYS(B1, B2, B3)

COUPDAYS Function in Google Sheets Example 1-1

Step 3: Press Enter.

COUPDAYS Function in Google Sheets Example 1-2

The result shows 180, which means that there are 180 days in the full coupon period that includes the settlement date. It helps an investor understand the total span of the interest period they are currently in.

By getting the full duration of the coupon period, the investors will be able to evaluate accrued interest, bond pricing, and yield calculations in a better way.

Example #2 – Calculate the Accrued Interest for a Security

To calculate the accrued interest using the COUPDAYS function, we must use the ACCRINT function along with COUPDAYS. The ACCRINT function calculates the accrued interest amount, while COUPDAYS determines the number of days in the coupon period that contains the settlement date. 

Step 1: Enter the settlement date, maturity date, coupon frequency, and day count convention into the COUPDAYS function. 

  • Settlement date: May 21, 2025
  • Maturity date: December 15, 2034
  • Issue date: December 15, 2024
  • First interest date: December 15, 2025
  • Coupon rate: 3.00% 0r 0.03
  • Par value: $1000
  • Coupon frequency: 2 (semi-annual)
  • Day count convention: 0 (NASD 30/360)
COUPDAYS Function in Google Sheets Example 2

We enter the following function:

=COUPDAYS(B1,B2,B7, B8). Press Enter.

COUPDAYS Function in Google Sheets Example 2-1

Step 2: The result will be the number of days in the coupon period that includes the settlement date. 

COUPDAYS Function in Google Sheets Example 2-2

Step 3:  Use ACCRINT to calculate the accrued interest amount:

Enter the issue date, first interest date, coupon rate, par value, coupon frequency, and day count convention into the ACCRINT function. 

=ACCRINT(B3, B4, B1, B5, B6, B7, B8)

COUPDAYS Function in Google Sheets Example 2-3

Step 4: The result will be the accrued interest. 

COUPDAYS Function in Google Sheets Example 2-4

The basis argument in COUPDAYS and ACCRINT specifies the day count convention (e.g., 0 for NASD 30/360, 1 for Actual/Actual, etc.). 

Example #3- Calculate Bond Interest Accrual Based on Coupon Period Using COUPDAYS

In this example, an investor purchases a corporate bond on September 15, 2025. It  matures on September 15, 2028. The bond pays interest semi-annual, and each coupon pays $70. The investor wants to calculate the interest earned per day during the current coupon period to estimate daily accruals.

We can use the COUPDAYS function to find the total number of days in the current coupon period and then divide the coupon payment by that number to get the daily interest amount.

Step 1: Enter the following values in your Google Sheet:

  • Settlement Date – 09/15/2025
  • Maturity Date – 09/15/2028
  • Frequency – 2
  • Coupon Payment – $70
COUPDAYS Function in Google Sheets Example 3

Step 2: Use the COUPDAYS function in an empty cell to calculate the number of days in the current coupon period:

=COUPDAYS(B1, B2, B3)

COUPDAYS Function in Google Sheets Example 3-1

The result is 180 days.

Step 3: Now, calculate the interest earned per day by dividing the coupon payment by the number of days:

=B4/COUPDAYS(B1, B2, B3)

COUPDAYS Function in Google Sheets Example 3-2

This returns approximately $0.389 per day.

This means the bond earns around $0.4 per day during the current interest period. This is useful for the investor to estimate accrued interest if they plan to sell the bond before the next coupon date or need to record partial interest income for accounting.

Important Things to Note

  1. When using COUPDAYS, we should enter the dates using the DATE function to avoid any errors or discrepancies. For example, we can use DATE(2009,5,1) for the 1st of May 2009.
  2. The maturity date must be later than the settlement date.
  3. The frequency must be either 1 (annual), 2 (semi-annual), or 4 (quarterly).

Frequently Asked Questions (FAQs)

What is the frequency parameter in COUPDAYS used for?

The frequency parameter shows how often the bond pays interest in a year. We use the value 1 for annual, 2 for semi-annual, and 4 for quarterly payments.

It’s essential for determining the coupon structure and calculating the right time span. A bond paying interest four times a year would use 4 in the function’s third argument
=COUPDAYS(B1, B2, 4).

Can we use COUPDAYS in Google Sheets for monthly or irregular bond schedules?

COUPDAYS supports only three frequencies:

1. 1 (annual)
2. 2 (semi-annual)
3. 4 (quarterly)

For bonds that pay interest monthly or on irregular schedules, one must use custom formulas or manually track payment periods.

When does COUPDAYS return an error in Google Sheets?

Some of the common mistakes that cause an error when using COUPDAYS in Google Sheets include invalid dates, incorrect frequency values, or a settlement date that is later than the maturity date. Ensure all dates are in proper date format and the frequency is one of the supported values (1, 2, or 4).

Use the DATE(year, month, day) function to ensure consistency for the settlement and maturity date.

Download Template

This article must help understand COUPDAYS Function in Google Sheets with its formulas and examples. You can download the template here to use it instantly.

Recommended Articles

Guide to What Is COUPDAYS Function in Google Sheets. We learn its syntax & how to use COUPDAYS function in google sheets with its examples. You can learn more from the following articles. –

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *

CHATGPT & AI FOR MICROSOFT EXCEL COURSE - Today Only: 60% + 20% OFF! 🚀

X