1. Home
  2. Dates & time
  3. Date Subtraction Calculator
Dates & time

Date Subtraction Calculator

Subtract a non-negative number of days from a calendar date.

Your numbers

Results update as you type. Nothing you enter is sent anywhere.

Result

2024-02-29

Calendar subtraction including weekends and holidays.

Formula used

Result = start date − days

The Date Subtraction Calculator steps back a chosen number of days from a date. It is useful for working backwards from a deadline: when to start a 45-day notice, when to order something with a long lead time, or what date an event 'six weeks before' falls on.

How to use the Date Subtraction calculator

  1. Enter the deadline or reference date in Start date.
  2. Enter a positive whole number in Days to subtract. Negative numbers are rejected here; use the Add or Subtract Days Calculator to move forward.
  3. Read the earlier date in YYYY-MM-DD format.

How the date subtraction calculation works

FormulaResult = start date − days

Planning backwards from a deadline

Backward planning is where off-by-one mistakes are common. If a notice must be given '45 days before 1 June 2027', subtracting 45 days gives 17 April 2027. If the rule wants 45 full days between notice and the deadline, with neither end counted, give notice one day earlier.

Weeks convert directly: six weeks is 42 days, and twelve weeks is 84. Months do not, because their lengths vary, so for 'three months before' move the month on a calendar instead.

What the subtraction accounts for

Month lengths and leap days come from the real Gregorian calendar, so 1 March 2024 minus 1 day is 29 February 2024, while the same subtraction in 2025 gives 28 February. Weekends and holidays are not skipped.

Results earlier than year 0001 are rejected. For counting the gap between two dates you already know, use the Days Between Dates Calculator.

Worked example

45 days before 1 June 2027

Start date: 2027-06-01 · Days to subtract: 45

  1. Step back 1 day to 31 May, leaving 44 days to subtract.
  2. Step back 30 more days to 1 May, leaving 14.
  3. Step back 14 days from 1 May: 17 April 2027.

Result: 2027-04-17

Assumptions and limits

Calendar days, not business days. No time-of-day or daylight-saving adjustments.

Formula and worked examples last checked November 20, 2026. Spotted a problem? Report an error.

Frequently asked questions

What date was 30 days ago?

Enter today's date and 30. From 20 November 2026 the answer is 21 October 2026. Many return policies, statements and notice periods use this kind of 30-day look-back.

How do I count back 6 weeks from a date?

Subtract 42 days, since 6 × 7 = 42. The result lands on the same weekday as the start date, which is a quick way to check you entered the right number.

Does subtracting days account for leap years?

Yes. Ranges that cross 29 February in a leap year include that day, so 1 March 2028 minus 30 days is 31 January 2028, one day later than the same subtraction in a common year.

Can I subtract business days?

Not directly; this tool counts every calendar day. Estimate with the Weekday Counter: each full week of 7 calendar days contains 5 weekdays.

Sources