Date Difference Calculator

Difference
Next

Pick a start date and an end date and the calculator returns the gap between them two ways: as a single total (say, 1,293 days) and as a decomposed breakdown (3 years, 6 months, 14 days). Useful for tenure on a CV, how long ago an event happened, policy anniversaries, warranty windows or any ‘how many days until / since’ question.

How to calculate a date difference

  1. 1

    Pick the start date

    The earlier of the two. Any date from 1900 to 2100 works.

  2. 2

    Pick the end date

    The later of the two. If you flip the order the calculator still works: it returns the absolute difference.

  3. 3

    Read the total

    The primary output is the exact number of days between the two calendar dates, together with the same gap expressed in weeks, hours and minutes.

  4. 4

    Read the breakdown

    The same gap is also shown broken down as years, months and days, which reads more naturally in written reports.

Inclusive vs. exclusive counting

There are two common ways to count days between dates, and they differ by exactly one:

  • Exclusive (endpoint not counted): 1 Jan → 3 Jan = 2 days. Used by most calendars and legal contracts.
  • Inclusive (both endpoints counted): 1 Jan → 3 Jan = 3 days. Used when counting event duration (“our conference runs from the 1st to the 3rd, that’s 3 days”).

Default here is exclusive. Always double-check the contract or the definition in your domain before using a number as evidence.

The “1 year and 3 months” decomposition

The breakdown uses calendar rules that can occasionally look odd:

  • From 15 Jan 2020 to 15 Jan 2023 = exactly 3 years, 0 months, 0 days.
  • From 31 Jan 2020 to 28 Feb 2020 = 0 years, 0 months, 28 days (not “1 month minus 3 days”).
  • From 15 Feb 2020 to 14 Feb 2021 = 0 years, 11 months, 30 days (leap year extends February).

That last case trips people up. The decomposition subtracts whole months first, then counts leftover days, so the remainder can reach 30 before rolling into another month.

Leap years

A year is a leap year if:

  1. It is divisible by 4, and
  2. Not divisible by 100, unless
  3. It is divisible by 400.

So 2000 was a leap year, 1900 was not, 2100 will not be. Leap years add one day (29 Feb) to the gap whenever one falls inside the window. The calculator handles this without you doing anything.

Typical use cases

  • CV tenure: “3 years 2 months” at a company.
  • Pregnancy tracking: days since LMP or conception date.
  • Age calculations for school placement or eligibility.
  • Loan age: days since origination for interest accrual.
  • Relationship, sobriety or habit-streak milestones.

Cross-timezone caveat

The calculator works in pure calendar dates, not instants. If you cross time zones mid-trip, use the local date at each point rather than converting to UTC, or the count can drift by one day at the boundary.

Frequently Asked Questions

Banks usually count inclusive, both the start and end of the billing period. This calculator counts exclusive, the industry standard for duration.

Yes. The calculator correctly counts 29 February whenever it falls inside the interval. Ages and anniversaries across leap years are computed correctly.

Yes, set the start date to the birthday and the end date to today. The “years, months, days” breakdown is exactly how age is normally reported. For more detail use the dedicated age calculator.

The calculator takes the absolute value, so the result is the same either way. The breakdown will also flip so that the larger date is treated as the end.

No. The dates you enter are used only to compute the result. They are transmitted to our servers as part of the page interaction and briefly appear in the page link while you move through the tool’s steps, but they are not stored, logged or shared.

Related Tools

Tool available in other languages