Subtract Days from Date Calculator

Pick any date, enter a number of days, get the exact result instantly.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Need to know what date falls a specific number of days before a given date? Whether you are calculating a contract deadline, a medication start date, a legal notice period, a project sprint start, or simply satisfying curiosity about the calendar, this subtract days from date calculator gives you the precise answer in seconds — no mental arithmetic required.

How it works

The calculation is deceptively simple:

Result = Start date − N days

Under the hood the tool converts your chosen start date to a Unix timestamp (milliseconds since 1 January 1970), subtracts N × 86,400,000 milliseconds, and converts back to a calendar date. JavaScript’s built-in Date.setDate() method handles all edge cases automatically:

  • Month boundaries — subtracting 5 days from 3 March rolls back to 27 February.
  • Leap years — subtracting 1 day from 1 March 2024 gives 29 February 2024; the same from 1 March 2023 gives 28 February 2023.
  • Year boundaries — subtracting 10 days from 5 January crosses into the previous year.

Beyond the result date the tool also reports:

OutputMeaning
ISO dateYYYY-MM-DD — paste into spreadsheets, APIs, or databases
Day of year1–366, useful for financial or agricultural calendars
ISO week numberISO 8601 week (Monday start, week containing 4 Jan = week 1)
Relative labelHow many days ago (or from now) the result date is

Worked example

Suppose you need to know what date is 90 days before 1 September 2025:

  1. Set the start date to 2025-09-01.
  2. Type 90 in the days field.
  3. The calculator shows 3 June 2025 (Tuesday).

Formula check: September has 30 days, August 31, July 31, and June 30. Working backwards from 1 September: 30 days takes you to 2 August, 31 more to 2 July, 29 more to 3 June — total 90.

The quick-reference table simultaneously shows you 7, 14, 30, 60, 90, 180, and 365 days before 1 September 2025, so you can compare milestones at a glance without changing the inputs.

Common use cases

  • Legal and contractual deadlines — many contracts specify notice periods of 30, 60, or 90 days. Enter the termination or expiry date and subtract the notice period to find the last day to act.
  • Medical and pharmaceutical — calculating when to start a course of treatment N days before a procedure, or when a prescription was filled.
  • Project management — finding sprint start dates, working backwards from a release date.
  • Finance and accounting — fiscal quarters, settlement dates (T+2, T+3), and lookback periods.
  • Personal milestones — anniversary lookback, “X days ago” curiosity, or finding what day of the week you were born by subtracting your age in days from today.

Formula note

The arithmetic is expressed as:

result_date = base_date − (N × 86,400 seconds)

For the ISO week number the tool applies the ISO 8601 algorithm: advance the date to the nearest Thursday, find week 1 as the week containing 4 January, and divide the difference by 7. Day-of-year is simply (date − 1 January) / 86,400 rounded down, with 1 January being day 1.

Ad placeholder (rectangle)