How to Add or Subtract Days, Months and Years to a Date
How to add or subtract days, weeks, months and years to a date, what happens at month ends, how leap years change the answer, and how to find the weekday.
In this article
Adding days to a date sounds simple until a month ends or a leap year gets in the way. This guide explains how to add or subtract days, weeks, months and years, what to do when a month is shorter than the start day, how leap years change the result, and the common mistakes. The Date Calculator follows the same rules and writes out each step.
Days and weeks
Days are counted straight along the calendar, moving into the next month as needed. A week is exactly 7 days, so 2 weeks is 14 days. Example: 9 November 2026 plus 15 days. November has 30 days, so 9 + 15 = 24, and the result is 24 November 2026, a Tuesday. Counting back works the same way: 9 November minus 9 days is 31 October.
Months and years
A month is not a fixed number of days, so months are added by moving the month number. Three months after 9 November 2026 is 9 February 2027. A year is 12 months, so 9 November 2026 plus 1 year is 9 November 2027. Adding one month is not the same as adding 30 days, because months have 28, 29, 30 or 31 days.
When the month is shorter
If the start day does not exist in the target month, the usual rule is to use the last day of that month. 31 January 2026 plus 1 month would be 31 February, which does not exist, so the answer is 28 February 2026. The calculator uses this rule and tells you when it applies.
Leap years
A leap year adds a 29th day to February to keep the calendar in step with the solar year. A year is a leap year if it is divisible by 4, except century years, which must also be divisible by 400. So 2024 and 2000 are leap years, while 1900 and 2100 are not. The extra day is added because the Earth takes about 365 days and nearly 6 hours to go once round the Sun.
This changes answers. 28 February 2024 plus 1 day is 29 February 2024, but 28 February 2025 plus 1 day is 1 March 2025. 29 February 2024 plus 1 year has no 29 February in 2025, so the result is 28 February 2025.
The order matters
When you add years, months, weeks and days together, add the years and months first, then the days. The calculator does it in that order, so 31 January plus 1 month and 3 days gives 28 February, then 3 March. Doing the days first would give a different answer.
Finding the weekday
A week has 7 days, so the weekday of the new date moves by the number of days added, modulo 7. Adding 15 days moves the weekday on by 1 (15 = 2 × 7 + 1), so a Monday becomes a Tuesday. The calculator shows the weekday of the result.
Useful examples
Ninety days from 1 January 2026 is 1 April 2026, because January has 31 days, February 28 and March 31, which together make exactly 90. Six weeks after 9 November 2026 is 21 December 2026: 6 weeks is 42 days, and 9 November plus 42 days lands on the same weekday, a Monday. Subtracting works the same way in reverse, so 6 months before 9 November 2026 is 9 May 2026. These patterns are useful for notice periods, subscription renewals, delivery estimates and project plans, as long as the document you are following counts days the same way.
Common mistakes
- Treating a month as 30 days
- Forgetting that February has 29 days in a leap year
- Adding the days before the months when both are given
- Not checking the date before using it for something that matters, such as a legal deadline, where the rules for counting days may be set by the document or the law
Enter a start date, choose add or subtract, and fill in any of years, months, weeks and days. The calculator shows the resulting date, its weekday, how many days away it is, and the steps. Dates run from the year 1900 to 2200.
Sources
Share
Keep reading
Related articles
How to Estimate Your Conception Date From a Due Date
How the conception date is estimated from a due date or the last period, why ovulation timing changes the answer, worked examples, and why the date is only approximate.
How Your Due Date Is Worked Out: LMP and Conception
How a due date is estimated from the first day of the last period, how a longer or shorter cycle changes it, how to count from a conception date, and what the date really means.
How to Calculate Hours Worked and Pay From Times
How to work out hours worked from a start and end time, subtract a break, handle a shift past midnight, convert minutes to decimal hours and multiply by a rate.