Date Math

Add or Subtract Days from a Date

Pick a start date, then add or subtract years, months, weeks and days. You get the new date, its weekday, the day of the year and the ISO week number, with month ends handled correctly.

Start Date and Change

Result


Enter a start date and an amount to add or subtract

Disclaimer: This calculator uses the Gregorian calendar for every year, including dates before 1582 when many regions still used the Julian calendar. Results are calendar arithmetic only. For contracts, visas, legal deadlines or warranty periods, confirm how the governing document counts days and months before relying on the date shown.

About This Date Calculator

Adding time to a date sounds simple until a month end gets involved. What is one month after 31 January? February has no 31st, so a good calculator has to make a decision. This tool makes that decision in the most widely used way and tells you when it has done so. You can add or subtract years, months, weeks and days in a single step, and the result comes back with the weekday, the day of the year and the ISO week number.

How the Calculation Works

The method runs in two stages, always in the same order:

  1. Years and months first. Years are converted to months (1 year = 12 months) and added to the month count. The day number is kept if it exists in the target month. If it does not, the date is clamped to the last day of that month.
  2. Weeks and days second. Weeks are converted to days (1 week = 7 days) and the total is added as an exact number of calendar days, so month lengths no longer matter.

For example, 31 January 2026 plus 1 month has no 31 February, so it becomes 28 February 2026. The same step in 2028, a leap year, gives 29 February 2028. Subtracting works the same way in reverse: 31 March 2026 minus 1 month is 28 February 2026.

Dates are handled as year, month and day values, never as clock times. That means daylight saving changes and the time zone of your device cannot make a result land a day early or late.

Day of Year and ISO Week

The day of the year counts 1 January as day 1, so 31 December is day 365, or day 366 in a leap year. The ISO week number follows the ISO 8601 rule: weeks start on Monday, and week 1 is the week that contains the first Thursday of the year. A consequence is that early January dates can belong to the last week of the previous year, and late December dates can belong to week 1 of the next. For example, Friday 1 January 2027 falls in week 53 of 2026.

Worked Example

Start with Monday 9 November 2026. Add 1 year, 2 months, 3 weeks and 4 days.

A shorter case: 9 November 2026 plus 90 days is Sunday, 7 February 2027, which is day 38 of the year and ISO week 2027-W05.

More Scenarios

Start dateChangeResultWhy
31 January 2026+1 monthSaturday, 28 February 2026February 2026 has 28 days, so the day is clamped
31 January 2028+1 monthTuesday, 29 February 20282028 is a leap year
29 February 2024+1 yearFriday, 28 February 20252025 has no 29 February
31 March 2026-1 monthSaturday, 28 February 2026Clamped to the last day of February
31 August 2026+6 monthsSunday, 28 February 2027The target month is shorter than the start day
31 December 2026+2 monthsSunday, 28 February 2027The year boundary is crossed, then clamped
9 November 2026-1 yearSunday, 9 November 2025Same day, previous year

Common Mistakes

Where You Would Use This

Tips for Reliable Results

If you only need working days, use the business days calculator, which can skip weekends and holidays. To measure the gap between two known dates, the day counter is quicker, and the date and time calculator handles clock times too. When the same date matters legally, write down both the start date and the unit used, for example “3 months from 31 January”, so nobody has to guess how the month end was treated.

Frequently Asked Questions

The calculator returns the last day of February, which is 28 February in a common year and 29 February in a leap year. February has no 31st, so the day is clamped to the end of the month.
Yes. Years and months are added first, with month-end clamping. Weeks and days are then added as exact calendar days. This order keeps results predictable and matches how most people count.
Yes. Set the Add or subtract box to Subtract and enter positive amounts. The same rules apply in reverse, including month-end clamping.
ISO 8601 weeks start on Monday, and week 1 is the week with the first Thursday of the year. Some years have 52 weeks and some have 53, and the first or last days of a calendar year can belong to a neighbouring year's week.
No. The tool works with year, month and day values only, so the answer is the same whether you are in London, Mumbai or Los Angeles, and daylight saving has no effect.