Category: FUNCTION | Updated: 2026-11-22
How to Use the EDATE Function in Google Sheets | Find a Date a Specified Number of Months Before or After
How to Use the EDATE Function
The EDATE function returns the date that is a specified number of months before or after a given start date, keeping the same day of the month where possible. It is ideal for calculating subscription renewal dates, contract expiration dates, payment due dates, and warranty periods.
Syntax
=EDATE(start_date, months)
- start_date: The reference start date.
- months: An integer specifying how many months to add or subtract. Use a positive number (e.g.,
6) for future dates and a negative number (e.g.,-3) for past dates.
Examples
Here are examples of adding or subtracting months in Column B from the start date in Column A.
| A (Start Date) | B (Months) | C (Formula) | Result | Notes |
|---|---|---|---|---|
| 2026/11/22 | 3 | =EDATE(A2, B2) |
2027/02/22 | Same day 3 months later |
| 2026/11/22 | -6 | =EDATE(A3, B3) |
2026/05/22 | Same day 6 months earlier |
| 2026/11/22 | 12 | =EDATE(A4, B4) |
2027/11/22 | Date 1 year (12 months) later |
| 2026/01/31 | 1 | =EDATE(A5, B5) |
2026/02/28 | Adjusted to month-end because Feb has no 31st |
Common Errors and Tips
- Month-end adjustment rule: If
start_dateis March 31 andmonthsis1,EDATEreturns April 30 because April has no 31st. However, calculating 1 month after April 30 returns May 30—so if you always want the last day of the month, useEOMONTHinstead. - Decimals are truncated: If you pass a decimal for
monthssuch as2.8, the fractional part is truncated and it calculates2months ahead. #VALUE!error: Occurs ifstart_dateis an invalid date string ormonthsis non-numeric.
Frequently Asked Questions
Q. What date does EDATE return for 1 month after January 31?
A. Because February does not have 31 days, EDATE automatically returns the last day of February: "February 28" (or "February 29" in a leap year).
Q. Why did EDATE return a 5-digit number like "46348"?
A. That is Google Sheets' internal date serial number. Select the cell and choose "Format" > "Number" > "Date" from the menu to display it as a normal date.