EOMONTH Function

Excel Functions › Date & Time

All versions Date & Time

The Excel EOMONTH function returns the last day of the month a set number of months from a start date — essential for month-end reporting, billing cycles, and building first-of-month dates.


Quick answer: the last day of this month:
=EOMONTH(A2, 0) // end of A2’s month - format as date

Syntax

=EOMONTH(start_date, months)
ArgumentDescription
start_dateRequiredThe starting date.
monthsRequiredMonths forward (positive), back (negative), or 0 for this month.

How to use it

Two patterns you’ll use constantly:

=EOMONTH(A2, 0) // last day of current month
=EOMONTH(A2, -1) + 1 // FIRST day of current month

For the same day a few months out instead of month-end, use EDATE.

Remember Excel’s date system: every date is a serial number (days since Jan 1, 1900 — so 1 = that day, 46000-ish = today) and every time is a fraction of a day (0.5 = noon). If a result shows a raw number, just apply a date or time cell format.

Try it: interactive demo

Live demo

Adjust the input and watch the formula and result update.

Result:

Tips & gotchas

Last day of the month N months away - month-end reporting and first-of-month tricks. Format result cells as Date or Time so they don’t display raw serial numbers.

Practice workbook

📊
Download the free EOMONTH practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

How do I get the FIRST day of a month?
EOMONTH(date, -1) + 1 returns the first of the current month; it’s the cleanest formula for it.
What does months = 0 do?
Returns the last day of the start date’s own month.
EOMONTH vs EDATE?
EOMONTH returns month-end; EDATE keeps the same day-of-month. Choose based on the result you need.
Does it handle leap years?
Yes — EOMONTH for February returns 28 or 29 correctly.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: DATE · TODAY · DATEDIF · EOMONTH · TEXT