Days Between Dates Calculator

Count the days between two dates and see the gap in weeks and days, months and days, or years, months and days. Optionally include the end date.

Result

Enter values and click calculate to see results

Pick two dates and this calculator tells you exactly how many days lie between them, plus the same gap in weeks, in months and in years, months and days. It handles leap years and months of different lengths for you, and lets you decide whether the end date counts. Useful for deadlines, pregnancies, contracts, trips and any "how long ago" question.

Formula

Days = end date − start date (+1 if the end date is included). Weeks = ⌊days ÷ 7⌋, leftover = days mod 7. Months are counted on the calendar: the start date is moved forward month by month until the next step would pass the end date, and the remaining days are counted.

How it works

Pick a start date and an end date. The calculator counts calendar days between them the standard way (the start day is not counted, like counting nights in a hotel), with an option to include the end date when both days matter, as in a rental or a vacation. Leap years and months of different lengths are handled automatically, and if the end date comes first the dates are simply swapped.

How to count the days between two dates

Enter the start date and the end date. The calculator turns both into calendar days and subtracts them, so the result is the number of midnights between the two days, the same way a hotel counts nights. If you type the dates in reverse order, they are swapped and the answer stays positive.

Then it breaks the total down. Weeks are the total divided by 7, with the leftover days shown separately. Months are counted on the real calendar: the start date is moved forward one month at a time until the next jump would pass the end date, and the days that remain are added at the end. Years follow the same idea with 12 months per year.

Worked example: March 10 to December 25, 2026

From March 10, 2026 to December 25, 2026 there are 290 days. That is 41 weeks and 3 days, or 9 months and 15 days (March 10 to December 10 is 9 full months, then 15 more days to the 25th). In hours it is 6,960.

If both days matter, for example a rental that starts on March 10 and ends on December 25 with both days paid, switch on "include the end date" and the total becomes 291 days, or 41 weeks and 4 days.

Should you include the end date?

Most questions use the plain difference: how old something is, how long until a deadline, how many nights you stay. From Monday to Friday is 4 days in that sense. Counting both the first and the last day gives 5, which is what you want when every day in the range is a day of work, travel or coverage.

Rules written in contracts and laws sometimes say which convention applies. When they say a period "includes" both dates, or count "from and including", add the end date. When in doubt, check both numbers: the difference is always exactly one day.

Leap years, month lengths and other edge cases

A leap year adds February 29, so January 1, 2024 to January 1, 2025 is 366 days, while the same span a year later is 365. Months run from 28 to 31 days, which is why "3 months" can be 89, 90, 91 or 92 days depending on the start date. The breakdown in months uses the real calendar instead of an average month.

When the start day does not exist in the target month, the last day of that month is used. January 31 to February 28, 2026 therefore counts as 1 full month, not 0 months and 28 days. This matches how most people and most software read month periods.

Tips and related calculators

This tool counts calendar days, weekends and holidays included. For working days only, use the business days calculator, which skips Saturdays, Sundays and national holidays. To find the date that is N days away, use add days to a date.

Counting from a birth date? The age calculator gives the age in years, months and days directly. And to count down to a holiday like Christmas, the days until calculator already knows the dates.

Frequently Asked Questions

Does the count include the first and last day?
By default it counts the difference, so from Monday to Tuesday is 1 day. Choose "include the end date" to count both ends, which gives 2 days for the same example.
Does it count only business days?
No, this tool counts calendar days. To skip weekends and holidays, use the business days calculator.
How many days are there between two dates?
Subtract the earlier date from the later one in calendar days. The calculator does it for you; for example, March 10 to December 25, 2026 is 290 days.
How many weeks are between two dates?
Divide the days by 7. 290 days are 41 full weeks and 3 days, which the calculator shows as two separate numbers.
Why does my count differ by one day from another tool?
One of the tools is counting both the start and the end date. Turn "include the end date" on or off to match the convention you need.
Can I count days between dates in different years?
Yes. Any two dates work, decades apart if needed, and leap years along the way are counted automatically.