← All guides

How to Add or Subtract Days From a Date and Find the Days Between Two Dates

Date math is useful for deadlines, due dates, trips and countdowns. There are two common tasks: moving a date forward or back, and counting the days between two dates.

Add days to a date

Count forward, moving to the next month when you pass the last day of the current one.

Example: October 8, 2026 plus 45 days.

Subtract days from a date

Count backward in the same way. Example: March 10, 2026 minus 15 days. March 10 minus 10 days is February 28 (2026 is not a leap year), and 5 more days back is February 23, 2026.

Days between two dates

Days between = later date − earlier date

Example: January 1, 2026 to December 31, 2026 is 364 days. If you also want to count both the first and last day, add 1, which gives 365.

Weeks and months

Things to keep in mind

Try it yourself

Skip the manual math with the Date Calculator.

More guides