SheetsLessons
Date & Time function

EOMONTH function in Google Sheets

EOMONTH returns the last day of the month, a given number of months before or after a date. It's the standard way to find month-end due dates, the first day of a month and how many days a month has.

Syntax

=EOMONTH(start_date, months)
start_date
The date to start from.
months
How many months to move: 0 for the same month, 1 for next month, -1 for last month.

Practice EOMONTH

Task 1 of 4

Invoices are due on the last day of the month they were issued. Find the first invoice's due date in C2.

C2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

EOMONTH examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABCD
1TaskStartDueHolidays
2Kickoff1/5/20261/9/20261/19/2026
3Design1/12/20262/13/20262/16/2026
4Build2/16/20264/30/20265/25/2026
5Launch5/4/20265/29/2026
Project schedule (column D lists public holidays)
FormulaResultWhat it shows
=EOMONTH(B3, 0)1/31/2026The end of the month the Design task started.
=EOMONTH(B3, 1)2/28/2026The end of the following month.
=EOMONTH(B4, -1)+12/1/2026The first day of the Build start month.
=DAY(EOMONTH(B3, 1))28Days in February 2026.
=EOMONTH(C3, 0)-C315Days from the Design due date to the end of its month.

Tips and common mistakes

  • EOMONTH(date, -1)+1 is the usual formula for "first of the month". It works for every month, including January.
  • Format the result as a date, or it shows as a serial number.

Related functions