Need to know the days between dates for a deadline, a trip, or a project plan? Counting on a calendar by hand is slow and easy to get wrong, especially when the two dates sit in different months or years. This free calculator does the math for you in seconds. Pick a start date and an end date, and you will see exactly how many days separate them, plus the same span in weeks, months, and years.
People use this tool for all kinds of everyday planning. You might count down to a wedding, work out how long a rental agreement lasts, check how many days are left until a visa expires, or figure out the length of a school break. Whatever the reason, the answer is the same simple subtraction, and the calculator handles the tricky parts like leap years and months with 28, 30, or 31 days.
How to use the calculator
The tool at the top of this page is simple to use. Follow these steps to count days between dates in a few seconds:
- Step 1. Enter the start date in the first date field. You can type it or pick it from the calendar.
- Step 2. Enter the end date in the second date field.
- Step 3. Choose whether to include the end date in the count. Most people leave this off, which gives the standard count of days between two dates.
- Step 4. Read your result. The calculator shows the total days, and it also breaks the span into weeks, months, and years so you can see the length in the unit that suits you.
The order of the dates does not matter. If the end date comes before the start date, the calculator still returns the gap as a positive count.
How the calculation works
Under the hood, the calculator converts each date into a day number on the calendar and subtracts one from the other. The formula looks like this: days between dates = end date minus start date. If you turn on the include end date option, the calculator adds 1 to the result so both the first and last day are counted.
This method automatically handles the details that trip people up when they count by hand. Months have different lengths, and February has 29 days in a leap year such as 2024. The full leap year rule is this: a year is a leap year if it divides by 4, except century years, which are leap years only if they divide by 400. So 2000 was a leap year, but 1900 was not, and 2100 will not be. The calculator uses the real Gregorian calendar, so the number of days between dates it shows is exact, not an estimate. This is the same count a spreadsheet gives for the formula =B1-A1. The result also converts cleanly into other units: total weeks are the day count divided by 7, and the months and years breakdown counts whole calendar months first, then the leftover days.
Worked examples
Here are a few examples so you can see how the count behaves with different spans. In each row, the count excludes the start date and includes the end date, which is the standard way to measure the gap.
| Start date | End date | Days between dates | Including end date | Business days | Also shown as |
|---|---|---|---|---|---|
| January 1, 2026 | December 31, 2026 | 364 days | 365 days | 250 | 52 weeks exactly |
| March 1, 2026 | April 1, 2026 | 31 days | 32 days | 23 | 4 weeks, 3 days |
| January 1, 2026 | July 4, 2026 | 184 days | 185 days | 126 | 26 weeks, 2 days |
| October 1, 2026 | December 25, 2026 | 85 days | 86 days | 57 | 12 weeks, 1 day |
| February 29, 2024 | February 28, 2025 | 365 days | 366 days | 250 | 52 weeks, 1 day |
The business days column counts Monday to Friday days in the span, with US federal holidays removed. It uses the same start and end dates as the standard count.
Notice the last example. February 29, 2024 exists because 2024 was a leap year, and the span to February 28, 2025 comes to 365 days. A hand count often misses that extra day, which is exactly why a calculator is worth using.
Calendar days vs business days
Calendar days and business days answer different questions. Calendar days count every day on the calendar. Business days count working days only. Picking the wrong one is the most common reason a deadline lands on the wrong date.
| Question | Calendar days | Business days |
|---|---|---|
| Weekends | Counted | Skipped |
| Public holidays | Counted | Skipped when they fall on a weekday |
| Days in 2026 | 365 | 250 in the United States |
| Typical use | Trips, countdowns, ages, notice periods written in days | Shipping times, office deadlines, payroll, processing times |
| Spreadsheet formula | =B1-A1 | NETWORKDAYS |
November 2026 shows the gap clearly. The month has 30 calendar days. It has 21 weekdays. After Veterans Day on November 11 and Thanksgiving Day on November 26, it has 19 US business days. If your deadline is written in business days, use the business days calculator so weekends and holidays come out of the count. Federal holiday dates come from the US Office of Personnel Management holiday schedule.
Should you include the end date?
The standard count excludes the start date and includes the end date. That measures the time that passes between the two dates. Sometimes you need both the first and last day counted instead. This table shows which choice fits common cases.
| Situation | Include the end date? | Example |
|---|---|---|
| Hotel nights and rentals | No | March 1 to April 1, 2026 is 31 nights |
| Elapsed time and countdowns | No | October 1 to December 25, 2026 is 85 days to wait |
| Event and festival days | Yes | July 4 to July 26, 2026 covers 23 calendar dates |
| Leave days and school breaks | Yes | Both the first and last day off are counted |
The same span can give two correct answers. July 4 to July 26, 2026 is 22 days by the standard count and 23 days with the end date included. Neither number is wrong. They answer slightly different questions, so match the setting to what you are counting.
Common mistakes when counting days
- Off by one errors. Counting both endpoints when you meant elapsed time adds a day that is not there. Decide on inclusive counting before you start.
- Treating a month as 30 days. Months run from 28 to 31 days, so three months is rarely exactly 90 days. Count on the real calendar, or use the months between dates calculator for month based spans.
- Forgetting February 29. Any span that crosses a leap day is one day longer than the same span in a normal year.
- Mixing up date formats. In the United States, 03/04/2026 means March 4. In many other countries it means April 3. Pick dates from the calendar when you can.
- Counting weekends for business deadlines. A 10 business day task can stretch across nearly three calendar weeks once weekends and holidays come out.
Date formats: US, international and ISO
The same date can be written three common ways, and two of them swap the day and month. This table shows one date, July 4, 2026, in each format.
| Format | Written as | Order |
|---|---|---|
| US | 07/04/2026 | Month, day, year |
| International | 04/07/2026 | Day, month, year |
| ISO 8601 | 2026-07-04 | Year, month, day |
The ISO format puts the year first, so it cannot be confused with the other two. You can read more on the ISO 8601 date and time format page. When a typed date could be read two ways, picking from the calendar removes the risk.
Practical tips for counting the gap
- Decide on inclusive counting first. Hotels, rentals, and some contracts count both the first and last day. If yours does, turn on the include end date option so the total is one higher.
- Watch out for leap years. Any span that crosses February 29 has one more day than the same span in a normal year. The years 2024 and 2028 are leap years; 2026 is not.
- For deadlines, count backwards from the due date. Enter today as the start date and the deadline as the end date to see how many days you have left.
- For long spans, check the weeks and months breakdown too. A span of 184 days is easier to picture as about six months when you are planning a project.
- Double-check dates typed in number format. In the United States, 03/04/2026 means March 4, but in many other countries it means April 3. Picking from the calendar avoids the mix-up.
Frequently asked questions
How do I count days between dates by hand?
Count the days left in the start month, add the full months in between, then add the days in the end month up to the end date. For example, from March 1 to April 1, 2026 there are 31 days because March has 31 days. For long spans, count full years first, then full months, then leftover days. From January 1, 2024 to January 1, 2027 is 366 plus 365 plus 365, which is 1,096 days, because 2024 was a leap year. For anything beyond a few months, the calculator is faster and avoids mistakes with month lengths and leap years.
Does the calculator include both the start and end dates?
By default, no. The standard count measures the span by excluding the start date and including the end date. If you need both endpoints counted, for example for a hotel stay or a rental period, use the include end date option and the total will be one day higher.
How many days are between two dates a year apart?
It depends on whether the span crosses February 29. January 1, 2026 to January 1, 2027 is 365 days because 2026 is not a leap year. January 1, 2024 to January 1, 2025 is 366 days because 2024 was a leap year and the span includes February 29, 2024.
Can I count spans in the past?
Yes. The calculator works for past dates, future dates, and spans that cross today. If you enter the later date first, the result is still shown as a positive count.
How do I find the gap in Excel?
Put the start date in one cell and the end date in another, then subtract: =B1-A1. Excel stores dates as serial numbers, so the difference gives the day count. Format the result cell as a number, not a date, so it displays as a plain count of days.
Do time zones or daylight saving time change the count?
No. This calculator counts calendar dates, not clock hours. A day when clocks move forward has 23 hours, and a day when they move back has 25 hours, but each still counts as one calendar day. Time zones matter only when a deadline is set by the clock, such as midnight in a specific city.
What if the start and end dates are the same?
The result is 0 days, because no time passes between a date and itself. With the include end date option on, the result is 1 day, which counts that single calendar date. Use 0 for elapsed time and 1 when you are counting dates covered, such as a one day event.
How we calculate and sources
Results use Gregorian calendar arithmetic: each date becomes a day number, and the earlier number is subtracted from the later one. This matches the spreadsheet formula =B1-A1, and business day figures on this page follow the US Office of Personnel Management federal holiday schedule, including observed dates. You can cross check the method in the date duration calculator help page from timeanddate.com. For court, contract or payroll deadlines, confirm the counting rule in your document, because rules vary.
Last reviewed: November 27, 2026
Whether you are planning a trip, tracking a deadline, or checking how long something lasted, this calculator gives you an exact answer. For week based plans, try the weeks between dates calculator. For a quick count in any unit, the date calculator covers adding, subtracting and comparing dates in one tool. Enter your two dates above and let the calendar math take care of itself.
