Choose language

Days Between Dates Calculator

Count the days between two dates and see the gap as years, months, weeks, business days, hours and minutes, with the end date in or out.

Days Between Dates CalculatorHow it works ↓
Adds one day, so both the first and the last day are counted.
Leaves out weekend days. Public holidays are not removed.
Mehmet Demiray Published Updated
Share

What the Calculator Shows

Pick a Start date (it starts on today) and an End date, then press Calculate. The first line of the result is the direct answer, for example "The gap between January 1, 2026 and January 1, 2027 is 365 days." Below it, the same period is shown in every unit you are likely to need.

For January 1, 2026 to January 1, 2027 the table reads:

Row Value
Years, months and days 1 year, 0 months and 0 days
Total days 365
Weeks and days 52 weeks and 1 day
Business days 261
Weekend days 104
Total hours 8,760
Total minutes 525,600

Years, months and days is the calendar view of the gap, the way you would say "one year and two months". Total days is the flat count. Weeks and days splits the total into full weeks and the days left over, which is handy for pregnancy timelines, training plans and project sprints. Business days and Weekend days always add up to the total days. Total hours and Total minutes are the total days multiplied by 24 and 1,440.

If you tick Count business days only, the headline changes to the number of working days, for example "Business days between January 1, 2026 and January 1, 2027: 261". The full table stays below it. Every row can be copied, and the whole table exports as CSV, XLSX, PDF or an image.

Should You Include the End Date?

By default the end date is not counted. The calculator measures the gap between the two dates, the same way you would subtract one date from another, so Monday to Friday of the same week is 4 days. This matches how most date tools and spreadsheets work.

Tick Include the end date when both the first and the last day should count. The option adds one day to the result, so Monday to Friday becomes 5 days. All rows follow the same range, including the years, months and days breakdown and the business day count.

Dates Default With Include the end date
October 5, 2026 (Monday) to October 9, 2026 (Friday) 4 days 5 days
October 8, 2026 to December 25, 2026 78 days 79 days
January 1, 2026 to January 1, 2027 365 days 366 days
October 8, 2026 to October 8, 2026 0 days 1 day

A simple way to decide is to ask what you are counting. Nights in a hotel, the length of a loan or the time until an event are gaps, so leave the box unticked: checking in on Monday and out on Friday is 4 nights. Days of a holiday, days of a course or a leave request "from Monday to Friday inclusive" count every day you are there, so tick the box and you get 5 days.

If a contract or form says "inclusive", include the end date. If it says "within 30 days of" a date, that date is usually day zero and the end date is not added, but the exact wording decides, so read it closely when a deadline matters.

How Months and Years Are Counted

Total days are exact: the calculator subtracts one calendar date from the other.

days=end date−start date\text{days} = \text{end date} - \text{start date}

With Include the end date ticked, one day is added to that figure.

The Years, months and days row needs one more rule, because months are not all the same length. The calculator adds whole months to the start date first and then counts the days that are left. When the start day does not exist in the target month, it moves to the last day of that month. January 31 plus one month is therefore February 28 (or 29 in a leap year).

That is why January 31, 2026 to March 1, 2026 shows 1 month and 1 day: one month from January 31 lands on February 28, and one more day reaches March 1. The total is 29 days. A few more examples:

Dates Years, months and days Total days
February 1, 2026 to March 1, 2026 1 month 28
February 1, 2028 to March 1, 2028 1 month 29
March 2, 2026 to April 1, 2026 30 days 30
June 1, 2026 to July 1, 2026 1 month 30

The same 30 days can be a full month or not, depending on where it starts. When you need an unambiguous number, use Total days.

Leap years follow the Gregorian calendar: a year divisible by 4 is a leap year, except century years, which must also be divisible by 400. So 2000 had a February 29, 2100 will not, and 2028 will.

Hours and minutes are whole calendar days times 24 and 1,440. Daylight saving changes are ignored, so a period that crosses a clock change still shows 24 hours per day.

Business Days and Weekends

A business day here is any day that is not a weekend day. The count uses the same range as the total: the start date is counted and the end date is not, unless you tick Include the end date.

Tick Count business days only to make working days the headline answer. A Weekend days selector then appears with three choices:

  • Saturday and Sunday, the default and the standard workweek in most of the Americas, Europe and much of Asia
  • Friday and Saturday, used in several countries in the Middle East and North Africa
  • Sunday, for six-day workweeks

The choice changes both the Business days and Weekend days rows. When the box is not ticked, those rows use Saturday and Sunday. For October 8, 2026 to November 7, 2026, a 30-day span, the results are:

Weekend Business days Weekend days
Saturday and Sunday 22 8
Friday and Saturday 21 9
Sunday 26 4

Public holidays are not removed. Holiday calendars differ by country, region and even employer, and a single built-in list would be wrong for most people. If your range contains holidays that fall on working days, subtract them by hand: 22 business days with two weekday holidays in the range means 20 working days.

Half days, shift patterns and company closures are not taken into account either. For those, treat the result as the starting point and adjust it to your own calendar.

Common Uses

Counting days between two dates comes up in more places than it seems.

  • Deadlines and notice periods. Enter today and the deadline to see how much time is left, or the date notice was given and the last working day to check a notice period. Switch to business days when the rule is stated in working days.
  • Payment terms. Invoice terms such as net 30 usually count calendar days from the invoice date. Enter the invoice date and the payment date to see whether a payment arrived on time.
  • Trips and visas. Count the nights of a stay, or the days spent in a country when a visa or residence rule caps them. Tick Include the end date if both the arrival and departure day count, as many stay limits do.
  • Events and countdowns. Enter today and the date of an exam, a wedding or a launch to see the days, weeks and business days left.
  • Projects and streaks. Measure how long a project ran, how many weeks a habit has lasted, or how many working days a task took.

Some date questions are better served by a dedicated tool. For a person's exact age on a given day, the age calculator gives years, months and days from a birth date. To compare two birth dates, an age difference calculator shows who is older and by how much. And if the date you are counting towards is a birthday, a birthday countdown ticks down the days, hours, minutes and seconds.

Private and Free Counting

The calculator runs entirely in your browser. The dates you enter are not uploaded, logged or stored, and the page keeps working if your connection drops after it has loaded.

There is no account and no sign-up, and no limit on how many date ranges you check. Results can be copied row by row or exported as CSV, XLSX, PDF or an image, without a watermark.

Because dates are handled as whole calendar days, your time zone does not change the result. The same two dates give the same answer anywhere in the world.

The ones we answer the most.

How do I calculate the number of days between two dates?

Enter a Start date and an End date and press Calculate. The first line of the result gives the answer directly, for example "The gap between October 8, 2026 and December 25, 2026 is 78 days." The table below shows the same gap as years, months and days, weeks, business days, hours and minutes.

Does the calculator include the end date?

Not by default. It measures the gap between the dates, so Monday to Friday is 4 days. Tick Include the end date to count both the first and the last day; this adds one day to every figure, and Monday to Friday becomes 5 days.

How do I count business days only?

Tick Count business days only. The headline then shows the number of working days, and a Weekend days selector appears where you can choose Saturday and Sunday, Friday and Saturday, or Sunday only. The rest of the table stays visible below the answer.

What counts as a business day?

Any day that is not one of the selected weekend days. Public holidays are not removed, because they vary by country and employer, so a holiday on a Tuesday still counts as a business day. Subtract holidays in your range by hand.

How are months counted when they have different lengths?

Whole months are added to the start date first, then the remaining days are counted. If the start day does not exist in a month, it moves to that month's last day. January 31, 2026 to March 1, 2026 is therefore 1 month and 1 day, while the total is 29 days.

What if the end date is before the start date?

The calculator swaps the two dates and shows a note under the result: "The end date was before the start date, so the two dates were swapped." The gap is always shown as a positive number, and the earlier date always comes first in the answer.

What happens if both dates are the same?

The result is 0 days. With Include the end date ticked, it is 1 day, because that single day is then counted.

Are leap years and February 29 handled?

Yes. The calculator follows the Gregorian calendar, so a range that crosses February 29 in a leap year includes that extra day. February 1, 2028 to March 1, 2028 is 29 days, while the same dates in 2026 give 28.

Why does my result differ by one day from another tool?

Almost always because one tool counts the end date and the other does not. This calculator leaves it out by default; tick Include the end date and compare again. A difference of exactly one day points to inclusive versus exclusive counting.

Does daylight saving time change the result?

No. The calculator works with whole calendar days, so a clock change inside the range does not add or remove an hour. Total hours is always the number of days times 24.

Calendar days or business days: which one should I use?

Use the one your rule names. Contracts, court deadlines and notice periods usually state it, and when they do not, calendar days are the common default. Delivery estimates and many payment or processing times are quoted in business days, so leave weekends out for those.

Is it free, and do I need to sign up?

It is free with no account or sign-up, and there is no limit on how many dates you check. Everything runs in your browser, so the dates you enter are not stored or sent anywhere.

References

  1. ISO 8601 — Date and time format · ISO
  2. Gregorian calendar · Wikipedia
  3. Workweek and weekend · Wikipedia