Date difference calculator
Count the calendar days between two dates.
Days between two dates
Enter the dates in either order.
How to count the days between two dates
- Pick the start date.
- Pick the end date. The number of days appears right away.
- Tick the box to include both dates if the first day should count too.
The order doesn’t matter. If the end date is earlier than the start date, you get the same number of days. You can use any date your browser’s date field accepts, up to the year 9999.
Should you include both dates?
Most of the confusion about counting days comes from one question: does the first day count? There are two sensible answers, and the checkbox switches between them.
- Elapsed days count the midnights you pass. June 1 to June 3 is two days. Use it for questions such as “how long until” or “how long ago”.
- Both dates included counts every day you touch. June 1, 2 and 3 make three days. Use it for an event, a booking by the day, or a streak where the first day counts.
Hotel nights are elapsed days: check in on June 1 and out on June 3, and you stay two nights. A festival that runs June 1 to June 3 has three days. The same date twice is zero elapsed days, or one day with both included.
How the calculation works
The calculator turns each date into a running day number and subtracts one from the other. Working with whole calendar days avoids a common mistake. If you subtract clock times instead, a daylight saving change can leave you an hour short and round to the wrong day. Here, every day counts as one, whichever time zone you are in.
Leap years are included. From February 28 to March 1 is two days in 2024, which had a February 29, but one day in 2025. A year is a leap year when it divides by 4, except for century years, which must divide by 400. So 2000 was a leap year, and 2100 will not be.
Example day counts
| From | To | Elapsed days | Both included |
|---|---|---|---|
| Jan 1, 2026 | Jan 31, 2026 | 30 | 31 |
| Jan 1, 2026 | Jul 4, 2026 | 184 | 185 |
| Jan 1, 2026 | Dec 31, 2026 | 364 | 365 |
| Feb 28, 2024 | Mar 1, 2024 | 2 | 3 |
| Dec 25, 2025 | Jan 1, 2026 | 7 | 8 |
Count days by hand
Add the days left in the first month, the full months in between, and the days used in the last month. From March 20 to May 10, March has 11 days left, April has 30, and May adds 10. That makes 51 days. The months with 30 days are April, June, September and November. February has 28 or 29, and the rest have 31.
Questions people ask
How do I turn days into weeks?
Divide by 7. Fifty-one days is 7 weeks and 2 days, because 7 × 7 is 49. The basic calculator is handy for the division.
Does it count weekends and holidays?
Yes. It counts every calendar day. Holidays differ by place, so the calculator doesn’t try to leave any out.
How many days until a date?
Put today in the first field and the date you are waiting for in the second. To watch hours and minutes run down instead, use the countdown timer.
For someone’s age in years, months and days, use the age calculator.
Are my dates saved?
No. The calculation runs in your browser, and the dates aren’t stored.
Other tools
- Basic calculatorAdd, subtract, multiply and divide, with memory and history.
- Scientific calculatorPowers, roots, logarithms and trigonometry.
- Percentage calculatorFind a percentage of a number or calculate percentage change.
- Age calculatorFind an age in years, months and days.
- Discount calculatorFind a sale price and how much you save.
- Tip calculatorWork out a tip and split the bill.