Skip to main content

EOMONTH(): Calculate End-of-Month Dates in Excel

Calculate the last day of any month with Excel's EOMONTH() function. Use it to streamline financial schedules, reporting periods, and monthly workflows.
Jul 15, 2025  · 3 min read

You probably don’t think about month-end dates much, at least until you need to calculate them for your financial reports. 

In this article, we’ll look at how EOMONTH() works, and why it’s so handy for building financial models, setting up schedules, or planning some other kind of report that depends on the last day of the month.

Understanding the Excel EOMONTH() Function

The EOMONTH() function returns the serial number for the last day of the month that is the indicated number of months before or after a specified date. This makes it easy to automate calculations involving month-end dates.

Here is the syntax for the EOMONTH() function:

=EOMONTH(start_date, months)
  • start_date: The initial date from which to calculate.

  • months: The number of months before (negative) or after (positive) the start date.

Excel EOMONTH() in Practice

To use the EOMONTH() function, follow these steps:

  • Enter your starting date in a cell (for example, A1).

  • In another cell, enter the EOMONTH() formula referencing your start date and the number of months.

For example, to find the last day of the month three months after January 15, 2024:

=EOMONTH("2024-01-15", 3)

This formula returns April 30, 2024.

Excel EOMONTH function simple example

Remember that you have to format as a date, otherwise the output will look off.

Excel EOMONTH() Common Scenarios

The EOMONTH() function is commonly used in the following scenarios:

  • Calculating due dates that fall on the last day of the month
  • Determining reporting periods for financial statements
  • Scheduling recurring monthly events

Excel EOMONTH() with Other Functions

You can (and in some cases you really should) combine EOMONTH() with other Excel functions to create more dynamic formulas. For example, to calculate the first day of the next month, add 1 to the result of EOMONTH():

=EOMONTH(A1, 0) + 1

Using Excel EOMONTH + 1 to find the first day in the month

This formula returns the first day of the month following the date in cell A1.

Troubleshooting Excel EOMONTH() Errors

If you encounter errors with EOMONTH(), consider the following solutions:

  • Ensure the start date is a valid Excel date.
  • Check that the months argument is a whole number.
  • Format the result cell as a date so that the output is something you, as a person, can easily read.

For this last point, which is a common issue, follow these steps:

  • Select the cell with the formula.
  • Go to the Home tab.
  • Click on the Number Format dropdown and select Date.

Formatting EOMONTH result as a Date

Conclusion

If you find yourself working with dates in Excel, don't forget to study up on the EOMONTH() function, especially if you are someone working with dates in a financial and project management context.

Don't forget to take our Financial Modeling in Excel course to keep learning about things like cash flow, or else take our Advanced Excel Functions course to learn about new and interesting and helpful Excel functions.

Financial Modeling in Excel

Become a proficient financial analyst using Excel.
Learn Financial Modeling

Josef Waples's photo
Author
Josef Waples

I'm a data science writer and editor with contributions to research articles in scientific journals. I'm especially interested in linear algebra, statistics, R, and the like. I also play a fair amount of chess! 

Topics

Learn Excel with DataCamp

Course

Data Preparation in Excel

3 hr
64.3K
Understand how to prepare Excel data through logical functions, nested formulas, lookup functions, and PivotTables.
See DetailsRight Arrow
Start Course
See MoreRight Arrow
Related

Tutorial

Excel Time Formulas: Calculate, Format, and Manipulate Time in Excel

Master Excel time formulas to calculate durations, handle time over 24 hours, and format time values for clear, accurate reporting.
Samuel Shaibu's photo

Samuel Shaibu

Tutorial

NPER() Excel: Understanding Payment Period Calculations

Learn how the NPER() function in Excel calculates the number of periods required to pay off a loan or reach an investment goal. Discover its syntax, use cases, and practical examples.
Vinod Chugani's photo

Vinod Chugani

Tutorial

How to Calculate Days Between Dates in Excel: The 5 Best Ways

Explore simple subtraction for quick and effortless date calculations. Apply the DAYS() and DATEDIF() functions to achieve precise date intervals. Use NETWORKDAYS() and TODAY() to track working days and automatically exclude weekends and holidays.
Laiba Siddiqui's photo

Laiba Siddiqui

Tutorial

PMT() Excel: Calculate Loan Payments and Savings Contributions

Learn how to use Excel's essential financial function to determine periodic payments for loans, mortgages, and investments. Discover proper syntax and advanced applications for financial modeling.
Vinod Chugani's photo

Vinod Chugani

Tutorial

Excel NOW(): Get the Current Date and Time

Get the current date and time instantly in Excel with the NOW() function. Learn how to use NOW(), its syntax, and practical examples for dynamic spreadsheets.
Josef Waples's photo

Josef Waples

Tutorial

SUBTOTAL() Formula in Excel: A Full Calculation Guide

Learn how the SUBTOTAL() function dynamically summarizes filtered or grouped data. Understand its syntax, explore practical examples, and compare it with similar functions.
Vinod Chugani's photo

Vinod Chugani

See MoreSee More