Skip to content
XUtilHub

Days Between Dates Calculator

Count the days between two dates and see the difference in weeks, months and years. Option to include the end date.

  • Free, no sign-up
  • Runs in your browser, nothing uploaded

About the Date Difference Calculator

Count the exact number of days between two dates and see the difference as years, months and days, weeks, hours and minutes.

Key features

  • Days between two dates
  • Also shown in years, months and days
  • Weeks, approximate months and years
  • Hours and minutes
  • Option to include the end date
  • Works with past and future dates

Count the days between dates

How many days until a holiday, exam, deadline or wedding? How long ago did something happen? Pick two dates to see the difference in days, weeks, months and years.

Examples

FromToDifference
1 Jan 202631 Dec 2026364 days (11 months, 30 days)
31 Jan 20261 Mar 202629 days (1 month, 1 day)
1 Jan 20241 Jan 2025366 days (leap year)
20 Oct 202625 Dec 202666 days

Inclusive vs exclusive counting

  • Exclusive (default): Monday to Friday = 4 days. Use this for "days until" and durations between events.
  • Inclusive: Monday to Friday = 5 days. Use this for hotel stays, leave requests and event lengths where both days count.

Useful facts

PeriodDays
Common year365
Leap year366
Average month30.44
Average year365.25
Quarter (approx.)91

Leap years are divisible by 4, except century years not divisible by 400 (2000 was a leap year; 2100 won't be).

Need business days only? Use the Working Days Calculator. To find a date a number of days away, use Add Days to Date.

How to use the Date Difference Calculator

  1. Enter your numbers in the fields above. Units and options can be changed at any time.
  2. The result updates instantly as you type; there's no calculate button to press.
  3. Check the breakdown under the main result for the details behind the number.
  4. Adjust the inputs to compare scenarios, for example a different rate or term.

Frequently asked questions

Does the count include the start and end dates?

By default, it counts the days from the start date to the end date, as in 'how many days until'. Tick 'include end date' to count both days, as in 'how many days does the event last'.

How many days are there between 1 January and 31 December?

364 days (365 if you include the end date in a non-leap year).

Why are months shown as approximate?

Months vary from 28 to 31 days. The 'years, months, days' breakdown uses real calendar months; the decimal figure uses the average month of 30.44 days.

Are leap years handled?

Yes. The calculation uses real calendar dates, so 29 February is counted in leap years.

Are these calculators accurate?

They use standard, published formulas (for example the amortization formula for loans, Mifflin-St Jeor for calories and the U.S. Navy method for body fat) and are tested against known reference values. Results are estimates for planning, not professional advice.

Is my data stored?

No. All calculations run in your browser and nothing you enter is sent to a server.

Do the calculators work on my phone?

Yes. Every calculator is designed for mobile, tablet and desktop.

Last updated:

Related Calculators tools