Calculate the number of days between two dates, or add and subtract days, weeks, months, and years from any date with our free date calculator.
How to use the date calculator
The calculator has two modes, switched with the tabs at the top:
- Days between. Pick a “From” date and a “To” date, then press Calculate. You get the exact number of days separating them, plus a breakdown in weeks and months.
- Add / subtract. Enter a start date, type an amount, choose days, weeks, months or years, select Add or Subtract, and press Calculate to land on the resulting date.
How date arithmetic actually works
Counting days between dates looks simple until you remember the calendar is irregular: months are 28 to 31 days long, and February gains a day in leap years. The reliable way to do it — and the way this calculator does it — is to convert each date into a serial day number (the count of days since a fixed reference point) and subtract. No month-length tables needed, and leap years are handled automatically.
Leap years follow the Gregorian calendar rules: a year is a leap year if it is divisible by 4, except century years, which must also be divisible by 400. So 2024 was a leap year, 1900 was not, and 2000 was. Get this wrong and every date calculation spanning February drifts by a day.
Adding months has its own quirk: months are not all the same length, so “one month after January 31st” is ambiguous. The standard convention, used here, is to clamp to the last valid day of the target month — January 31 plus one month gives February 28 (or February 29 in a leap year).
Frequently asked questions
Does “days between” include the start date?
No. It counts the number of days you would move forward on a calendar to get from the first date to the second. January 1 to January 2 is 1 day, and two identical dates give 0 days.
How are leap years handled?
Automatically, using the full Gregorian rule (divisible by 4, except centuries not divisible by 400). February 29 exists only in genuine leap years, so calculations spanning leap days are exact.
What happens when I add one month to January 31?
You land on the last day of February — the 28th, or the 29th in a leap year. The day is clamped to the target month instead of rolling over into March.
Does the calculator account for time zones?
Dates are treated as plain calendar dates with no time-of-day or time zone attached, which is what you want for deadlines, birthdays, anniversaries and project dates. Daylight saving changes never affect the result.
What date range can I use?
Any dates your browser’s date picker accepts — comfortably covering the years 1900 to 2100 and beyond. The Gregorian calendar rules are applied consistently across the whole range.