Date Add / Subtract Calculator

Add or subtract days, weeks, months, or years from any date.

MW

Reviewed by

Marcus Webb

Software Engineer & Developer Tools Specialist

· BSc Computer Science, University of Washington· Senior Engineer at Cloudflare (2018–2023)· Open-source contributor to Temporal API proposals

About the Date Add / Subtract Calculator

Adding or subtracting time from a date sounds simple, but months have different lengths (28–31 days) and years have different lengths (365 vs 366 days in leap years). This means "add one month" cannot always mean "add 30 days" — doing so would cause end-of-month dates to drift incorrectly.

This calculator uses proper calendar arithmetic: when you add months, it moves to the same day-of-month in the target month, clamping to the last valid day when necessary. For example, January 31 + 1 month = February 28 (not March 2). When you add years, it preserves the month and day — with February 29 clamping to February 28 in non-leap target years.

Month-End Edge Cases Explained

OperationResultWhy
Jan 31 + 1 monthFeb 28Feb has 28 days; result clamps to last day
Jan 31 + 1 month (leap year)Feb 29Feb has 29 days in a leap year
Mar 31 − 1 monthFeb 28Feb has no 31st; clamps to 28th
Feb 29 + 1 yearFeb 28Next year may not be a leap year
Jan 31 + 30 daysMar 2Day arithmetic is exact; no clamping applies

Common Use Cases

  • Payment due datesCalculate when a 30-day invoice falls due, or when a 12-month subscription automatically renews.
  • Contract & notice periodsDetermine the exact end date of a 90-day notice period, a 2-year lease, or a 3-month probationary period.
  • Expiry & shelf lifeFind when a product, prescription, or professional certification expires if issued on a known date.
  • Scheduling recurring eventsPlan quarterly reviews, annual renewals, or monthly check-ins by projecting dates weeks, months, or years forward.
  • Construction & project planningAdd build-phase durations to a project start date to compute milestone and completion dates.

Frequently Asked Questions