How to Add Months or Years to a Date in Google Sheets: EDATE, End-of-Month Dates and Renewal Dates (2026)
Renewal dates, next billing dates, warranty end dates and “six months from now” all need the same thing: a date a whole number of months away. Adding 30 days gets it wrong, because months have 28 to 31 days. Google Sheets has a function for it: EDATE takes a start date and a number of months and returns the date that many months later. This guide shows the basic formula, adding years, going back in time, what happens on the 31st and on February 29, month-end dates with EOMONTH, and one formula for a whole column.
The short answer
- Add 1 month:
=EDATE(B2, 1)with the start date in B2. - Add the number of months in C2:
=IF(B2="", "", EDATE(B2, C2)) - Add years: multiply by 12, as in
=EDATE(B2, 12*3)for 3 years. - Subtract months: use a negative number, such as -6.
- Last day of the month:
=EOMONTH(B2, 0)
The example
A list with the item in column A, the start date in column B and the number of months in column C, rows 2 to 8. Columns D and E are filled in by the formulas below.
| Row | A: Item | B: Start date | C: Months | D: EDATE | E: EOMONTH |
|---|---|---|---|---|---|
| 2 | Gym membership | 1/15/2026 | 1 | 2/15/2026 | 2/28/2026 |
| 3 | Phone plan | 1/31/2026 | 1 | 2/28/2026 | 2/28/2026 |
| 4 | Lease | 3/31/2026 | 6 | 9/30/2026 | 9/30/2026 |
| 5 | Warranty | 2/29/2028 | 12 | 2/28/2029 | 2/28/2029 |
| 6 | Six months back | 8/31/2026 | -6 | 2/28/2026 | 2/28/2026 |
| 7 | Trial | (no date yet) | 3 | (empty) | (empty) |
| 8 | Contract | 12/2/2026 | 24 | 12/2/2028 | 12/31/2028 |
Step 1: add months with EDATE
Google’s help says EDATE “returns a date a specified number of months before or after another date”. In D2 enter this and fill it down to D8:
=IF(B2="", "", EDATE(B2, C2))
Gym membership starts on 1/15/2026, and one month later is 2/15/2026. Contract starts on 12/2/2026, and 24 months later is 12/2/2028. The IF(B2="", "", …) part keeps row 7 empty until it has a start date; without it, EDATE treats the empty cell as 0 and shows a date in 1900.
Months that are shorter: the 31st and February 29
When the target month has no such day, EDATE returns the last day of that month instead:
- Phone plan (1/31/2026 + 1 month) returns 2/28/2026, because February 2026 has 28 days.
- Lease (3/31/2026 + 6 months) returns 9/30/2026.
- Warranty (2/29/2028 + 12 months) returns 2/28/2029, because 2029 is not a leap year.
This is where the other ways of adding a month give different answers. For the Phone plan row (1/31/2026 in B3):
| Formula | Result | What it does |
|---|---|---|
=EDATE(B3, 1) | 2/28/2026 | Same day next month, or the last day if the month is shorter |
=EOMONTH(B3, 1) | 2/28/2026 | Always the last day of the month |
=B3+30 | 3/2/2026 | 30 calendar days |
=DATE(YEAR(B3), MONTH(B3)+1, DAY(B3)) | 3/3/2026 | February 31 rolls over into March |
The last row builds the date from its parts with DATE, YEAR, MONTH and DAY. Google’s DATE help says DATE “will silently recalculate numeric dates which fall outside of valid month or day ranges”, so February 31 becomes March 3. Use EDATE when you want to stay inside the next month.
Add years to a date
EDATE counts in months, so multiply the number of years by 12:
=EDATE(B2, 12*3)
For 1/15/2026 in B2 it returns 1/15/2029. With the number of years in a cell, use =EDATE(B2, 12*C2).
Subtract months
Google’s EDATE help describes the months argument as “the number of months before (negative) or after (positive)” the start date. Row 6 has -6: six months before 8/31/2026 is 2/28/2026, again the last day of the shorter month.
A renewal or expiry date the day before
A 12-month term that starts on 1/15/2026 usually ends on 1/14/2027. Subtract one day from the EDATE result:
=EDATE(B2, 12)-1
It returns 1/14/2027 for 1/15/2026 in B2.
Step 2: the last or first day of a month with EOMONTH
EOMONTH works like EDATE, but Google’s help says it returns “the last calendar day of the calculated month”. In E2 enter this and fill it down:
=IF(B2="", "", EOMONTH(B2, C2))
Gym membership (1/15/2026 + 1) gives 2/28/2026, and Contract (12/2/2026 + 24) gives 12/31/2028. Two variations on B2 = 1/15/2026:
- Last day of the same month:
=EOMONTH(B2, 0)returns 1/31/2026. - First day of the next month:
=EOMONTH(B2, 0)+1returns 2/1/2026. - First day of the same month:
=EOMONTH(B2, -1)+1returns 1/1/2026.
Add months to today
Use TODAY() as the start date:
=EDATE(TODAY(), 3)
On 12/2/2026 it returns 3/2/2027. Google’s TODAY help says TODAY always represents the current date the last time the spreadsheet was recalculated, so the result moves forward each day. Use a fixed start date in a cell for anything that should not move.
One formula for the whole column
Instead of filling D2 down, clear D2:D8 and put this in D2 only (see Google’s ARRAYFORMULA help):
=ARRAYFORMULA(IF(B2:B="", "", EDATE(B2:B, C2:C)))
It returns a date for every row that has a start date, leaves empty rows empty, and covers rows you add later. In a column left on the Automatic format, the results show as serial numbers rather than dates: 46068 for 2/15/2026, 46081 for 2/28/2026 and so on. Select D2:D8 (plus any rows you add later) and choose Format › Number › Date (Google’s number format help); 46068 then shows as 2/15/2026.
If a cell below D2 already holds something, the formula can’t expand: D2 shows #REF! with the message “Array result was not expanded because it would overwrite data in D5.” (for a value in D5). Clear that cell and the results come back, though the cleared cell can show a serial number again (47177 in D5); select it and choose Format › Number › Date.
Common problems
- The result shows as a number such as 46068. That is the date as a serial number (46068 is 2/15/2026), which is what the ARRAYFORMULA version shows in a column on the Automatic format. Select the cells and choose Format › Number › Date.
- A date typed straight into the formula gives the wrong answer.
=EDATE(10/10/2000,1)returns 1/30/1900, not 11/10/2000: Google’s EDATE help explains that the date is read as the quotient of 10 divided by 10 divided by 2000. Use a cell reference or=EDATE(DATE(2026, 1, 31), 1), which returns 2/28/2026. - An empty start date shows a date in 1900. EDATE treats an empty cell as 0, so
=EDATE(B7, C7)with B7 empty and 3 in C7 returns 3/30/1900. Wrap the formula inIF(B2="", "", …)as in Step 1. - Decimals in the number of months. Google’s help says the decimal part is truncated, so
EDATE(A2,2.6)is the same asEDATE(A2,2). - A date 31 days out lands on the 28th, 29th or 30th. That is EDATE keeping the result inside the target month. If you need the last day of every month, use EOMONTH instead.
FAQ
How do I add months to a date in Google Sheets?
Use EDATE: with the start date in B2, =EDATE(B2, 1) returns the same day one month later. For 1/15/2026 it returns 2/15/2026. Google’s EDATE help describes it as returning “a date a specified number of months before or after another date”.
How do I add years to a date?
Add 12 months per year: =EDATE(B2, 12*3) adds 3 years, so 1/15/2026 becomes 1/15/2029.
What happens when I add a month to January 31?
EDATE stops at the last day of the shorter month: =EDATE(DATE(2026, 1, 31), 1) returns 2/28/2026. A start date of 2/29/2028 plus 12 months returns 2/28/2029. Building the date with DATE(YEAR, MONTH+1, DAY) instead rolls over into March: for 1/31/2026 it returns 3/3/2026.
How do I subtract months from a date?
Use a negative number of months. Google’s EDATE help says the months argument is the number of months before (negative) or after (positive) the start date, so EDATE(B6, -6) with 8/31/2026 in B6 returns 2/28/2026.
How do I get the last day of the month in Google Sheets?
Use EOMONTH: =EOMONTH(B2, 0) returns the last day of the month B2 is in (1/31/2026 for 1/15/2026). Add 1 to get the first day of the next month: =EOMONTH(B2, 0)+1 returns 2/1/2026.
Why not just add 30 days?
Months have 28 to 31 days, so =B2+30 drifts: for 1/15/2026 it returns 2/14/2026, not 2/15/2026. EDATE always lands on the same day of the month when that day exists.
See SheetReminders
Related guides
- How to Add Business Days to a Date in Google Sheets: WORKDAY Due Dates That Skip Weekends and Holidays (2026)
- How to Count the Days Until a Date in Google Sheets: Days Left, Overdue, Business Days and a Countdown That Updates Itself (2026)
- How to Track Subscriptions in Google Sheets and Get Reminders Before Renewals and Free Trials Charge You (2026)
- How to Track Warranty Expiration Dates in Google Sheets, with Reminders (2026)
- How to Track Membership Renewals in Google Sheets and Email Reminders Before They Expire (2026)
- How to Send Automatic Email Reminders Based on a Date in Google Sheets (2026)