Working with dates · About 5 minutes
Month ends and due dates: EOMONTH and EDATE
EOMONTH gives the last day of a month. =EOMONTH( reads as "the end of B2's month". Change 0 to 1 for the end of next month, or -1 for last month.
EDATE moves a date by whole months and keeps the day. =EDATE( reads as "3 months after B2". If that month is shorter, it stops at the last day: 3 months after November 30 is February 28.
Adding 30 or 90 days is close, but months have different lengths, so EDATE and EOMONTH are the safe way to work in months.
Part of Plus
Free during our founding launch: sign in to unlock this lesson's exercises, the timed practice sets and the rest of Plus. The free lessons stay free, with no account needed.
What EOMONTH and EDATE does
EOMONTH gives the last day of a month: this month, a month ahead or a month back. EDATE gives the date a set number of months before or after a date, on the same day of the month.
Months have 28 to 31 days, so adding 30 days drifts. These two count in real months, which is what due dates, renewals, payday and contract ends need.
How to write EOMONTH and EDATE
=EOMONTH(
- start_date
- The date to start from, like a cell holding an order date.
- months
- How many months to move before taking the month's last day: 0 for the same month, 1 for next month, -1 for last month.
=EDATE(
- start_date
- The date to start from.
- months
- How many months to move it. A negative number goes back. If the new month is too short, the answer is that month's last day.
EOMONTH and EDATE worked example
A gym plan starts on the 1st of the month after a member joins. In B2, find when the first member's plan starts, then fill down to B4.
| A | B | |
|---|---|---|
| 1 | Joined | Plan starts |
| 2 | 01/30/2026 | 02/01/2026 |
| 3 | 02/14/2026 | 03/01/2026 |
| 4 | 12/09/2026 | 01/01/2027 |
=EOMONTH( A2, 0) +1Find the last day of A2's month, January 31, 2026, and add one day: the plan starts on February 1, 2026.Common EOMONTH and EDATE mistakes
The answer shows as 46081
In Excel, EOMONTH and EDATE can give the date as a plain number, here February 28, 2026. Change the cell's format to Date.
The formula won't accept just a date
Both functions need the second part, even when it's 0. Add , before the closing bracket for the end of the same month.
Adding 30 days lands on the wrong day
A month is not always 30 days. Use EDATE with the number of months instead of adding days.
EOMONTH or EDATE?
Use EOMONTH when the answer should be a month's last day, like an invoice due at the end of the month. Add 1 to it for the first day of the next month.
Use EDATE when the answer should keep the same day, like a renewal 3 months after a start date. Both work in Excel and Google Sheets, with the same two parts.
Questions people ask
How do I get the last day of the month in Excel?
=EOMONTH( gives the last day of B2's month. Use 1 for next month and -1 for last month.
How do I add months to a date?
=EDATE( is three months after B2, on the same day of the month.
What does EDATE do when the month is shorter?
It stops at the last day: three months after November 30 is February 28 (29 in a leap year).
Why not add 30 days for a month?
Months have 28 to 31 days, so +30 drifts. EDATE and EOMONTH always land on the right day.