Date Add/Subtract Calculator
Add or subtract days, weeks, months, or years from any date to calculate a new date.
Date Calculation
Result Date
Date Details
Additional Info
What Is a Date Add/Subtract Calculator?
A date add/subtract calculator computes the resulting date when you add or subtract a specified number of years, months, weeks, or days from a starting date. This is one of the most frequently needed date calculations in everyday life β "What date is 90 days from today?", "What was the date 6 months ago?", "When does my 30-day return window expire?" β all require adding or subtracting a duration from a known date.
While simple day addition is straightforward (just count forward or backward), adding months and years requires calendar-aware arithmetic. Adding one month to January 31 cannot simply add 31 days β it must navigate to February, and since February has fewer than 31 days, the result is clipped to the last valid day of February (28 or 29 depending on leap year). This calculator handles these edge cases correctly.
The calculator supports both addition and subtraction operations on all four duration components simultaneously. You can add 1 year, 3 months, 2 weeks, and 5 days to any starting date in a single operation, and the result accounts for the exact calendar structure including leap years and varying month lengths.
Common uses include: calculating contract or subscription expiry dates, finding project deadlines N days forward, determining the exact date N months before an appointment for preparation scheduling, computing due dates for loans and bills, and finding dates for legal notice periods.
How Date Addition and Subtraction Works
The calculator applies duration components in order: years first, then months, then weeks, then days. Each step adjusts the date using calendar-aware rules before passing the result to the next step.
Date Addition Formula
Where:
- StartDate= The base date from which to calculate
- Years= Add/subtract full calendar years (moves from year N to year N+k, same month and day)
- Months= Add/subtract full calendar months (navigates forward/backward through months, clipping to last valid day if needed)
- Weeks Γ 7= Convert weeks to days (1 week = 7 days exactly)
- Days= Final day offset applied after years and months
Month-End Edge Cases
Adding months to dates near the end of the month requires special handling. Adding 1 month to January 31 yields February 28 (or 29 in a leap year) β not March 2 or 3 β because the result must be clipped to the last valid day of February. This "end-of-month clipping" behavior is the standard approach used by most programming languages and database systems for date arithmetic.
Similarly, adding 1 month to March 31 yields April 30 (not May 1), since April has only 30 days. This can cause unintuitive results: adding 1 month and then subtracting 1 month may not return you to the original date when starting from a month-end date. For example: January 31 + 1 month = February 28; February 28 - 1 month = January 28, not January 31.
For day-precision date calculations where this edge case matters (e.g., subscription billing, contract terms), it is safer to specify the duration in total days rather than months to avoid any ambiguity. The calculator's day output shows the total calendar days between the start and result dates, giving you a precise alternative measure.
Leap Year Handling
Adding exactly 1 year to February 29 (a leap day) presents a unique case: February 29 does not exist in non-leap years. The standard handling is to return March 1 of the following year when the target year is not a leap year. Some systems return February 28 instead. This calculator uses March 1 as the result β check your specific contractual or legal context if the exact date matters for February 29 leap day arithmetic.
Adding days to and from February is straightforward: the calculator correctly counts February as 28 or 29 days depending on whether the target year is a leap year (divisible by 4 and either not a century year, or divisible by 400). For example, adding 30 days to February 1, 2024 (a leap year) yields March 2, 2024, while adding 30 days to February 1, 2025 (not a leap year) yields March 3, 2025.
Practical Applications
Legal and contractual deadlines are a primary use case. A 30-day right of rescission on a home purchase started on March 15 ends on April 14. A 90-day warranty period from November 10 expires on February 7 of the following year. A "not more than 60 days prior notice" requirement for lease termination works backward β subtract 60 days from the lease end date to find the notice deadline.
Medical and pregnancy calculations frequently use date addition: the standard human pregnancy is approximately 280 days (40 weeks) from the last menstrual period. Medication courses ("take for 14 days"), surgical recovery timelines ("return to normal activities after 6 weeks"), and vaccination schedules all use date arithmetic of exactly this type. For these medical contexts, always verify with your healthcare provider β this calculator provides the date math but not medical advice.
Worked Examples
90-Day Contract Notice Period
Problem:
A contract expires December 31, 2025. The termination notice must be given 90 days in advance. By what date must the notice be sent?
Solution Steps:
- 1Operation: subtract 90 days from December 31, 2025
- 2December: 31 - 90 = go back through October and September
- 3December 31 minus 31 days = November 30; minus another 30 = October 31; minus another 29 = October 2
- 4Result: Notice must be given by October 2, 2025
Result:
The 90-day advance notice for a December 31 contract expiry must be sent by October 2, 2025.
Adding 6 Months and 15 Days to March 15
Problem:
A 6-month, 15-day probationary period starts March 15, 2025. When does it end?
Solution Steps:
- 1Start: March 15, 2025
- 2Add 6 months: September 15, 2025
- 3Add 15 days: September 15 + 15 = September 30, 2025
- 4Result: September 30, 2025 (no month-end clipping needed since Sep 30 is valid)
Result:
The probationary period ends September 30, 2025.
End-of-Month Clipping Example
Problem:
A monthly subscription starts January 31, 2025 and renews monthly. What are the next three renewal dates?
Solution Steps:
- 1Month 1: January 31 + 1 month β February 28, 2025 (clipped β Feb has 28 days in 2025)
- 2Month 2: February 28 + 1 month β March 28, 2025 (not clipped β March 28 is valid)
- 3Month 3: March 28 + 1 month β April 28, 2025
- 4Note: after February clipping, the renewal date stabilizes at the 28th for subsequent months
Result:
Renewal dates: February 28, March 28, and April 28. The January 31 date clips to 28th due to February's short month.
Tips & Best Practices
- βFor contractual deadlines, prefer adding days rather than months to eliminate month-end ambiguity.
- βWorking backward from a deadline? Use the 'Subtract' option and enter your notice period to find the action date.
- βRemember that adding 1 month to a month-end date clips to the last day of the following month β not predictable over long sequences.
- βLeap year affects February: 2024 has 29 days in February, 2025 has 28. Date arithmetic crossing February in different years gives different results.
- βFor subscription renewals, most platforms anchor to the calendar date of original signup, applying month-end clipping as described above.
- βCombine this with the Business Days Calculator to find the nearest business day if your computed result falls on a weekend or holiday.
Frequently Asked Questions
Sources & References
Last updated: 2026-06-06
Help us improve!
How would you rate the Date Add/Subtract Calculator?
Editorial Note
MyCalcBuddy Editorial Team
This page is maintained as an educational calculator reference.
Formula Source: Standard Mathematical References
by Various