Date Difference Calculator

Pick any two dates and this calculator counts the days between them, then breaks the gap down into weeks and days plus calendar months and years. It also shows the day of the week for each date. The result updates as you change either date.

Your dates

Your result

Total days between the dates—
Weeks and days—
Calendar months and years—
Start date falls on—
End date falls on—

Pick a start date and an end date to see the result.

What Is a Date Difference Calculator?

A date difference calculator counts the number of days between two dates. It takes a start date and an end date, subtracts the earlier date from the later date, and reports the gap. This calculator goes further than a plain day count: it also shows the gap in weeks and days, and in calendar months and years, plus the day of the week each date falls on. The day count excludes the start date and includes the end date, which is the standard way of counting a span between two dates.

How It Works

Days, weeks, and months

The total days are counted from the start date to the end date, one day at a time, so leap days are counted exactly. The weeks breakdown divides that total by 7: the whole weeks plus the leftover days. The months and years breakdown is different — it is counted on the calendar, not by dividing days by 30. Full calendar months are counted from the start day-of-month to the same day-of-month in a later month, and any leftover days are the days past the last full month. That is why a span of 364 days can be 11 months and 30 days rather than 12 months.

Negative results

If the end date is before the start date, the result is shown as a negative number of days, so the direction of the gap is clear. The weeks and months breakdown for a negative result uses the absolute size of the gap, and the note under the result says so plainly. Swapping the two dates gives the same size with a positive sign.

Worked Example

Example, with the calculator defaults. From 1 January 2026 (a Thursday) to 31 December 2026 (also a Thursday) there are 364 days. That is exactly 52 weeks with 0 days left over. On the calendar it is 11 months and 30 days: 11 full months from 1 January to 1 December, plus 30 days to reach 31 December. The year 2026 is not a leap year, so February has 28 days and the total comes to 364 rather than 365. The same calculation run backwards, from 31 December 2026 to 1 January 2026, gives negative 364 days, with the same 52-week breakdown for the absolute gap.

Common Mistakes

Counting both end dates. The span from 1 January to 2 January is 1 day, not 2. Counting both dates adds an extra day to every result.

Dividing days by 30 to get months. Calendar months are 28 to 31 days long, so days divided by 30 is only an approximation. A proper months breakdown counts full calendar months, which is what this calculator does.

Forgetting the leap day. In a leap year, February has 29 days. A span that crosses 29 February is one day longer than the same span in a non-leap year — for example, 28 February 2024 to 1 March 2024 is 2 days, not 1.

Mixing up the date order. Putting the later date first gives a negative result. That is not an error, it is the calculator showing the direction of the gap, but it surprises people who expect a positive count.

Related Tools

Plan around a future date with the Due Date Calculator, count down to the holidays with the Christmas Countdown, check how much sleep to aim for with the Sleep Calculator, work out percentages for dates and deadlines with the Percentage Calculator, and add or subtract days from any date with the Date Calculator.

Frequently Asked Questions

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

364 days, which is exactly 52 weeks. On the calendar that is 11 months and 30 days. Both dates fall on a Thursday, and 2026 is not a leap year.

Does the calculator count leap years?

Yes. The day count is done date by date on the real calendar, so 29 February is counted in leap years such as 2024 and skipped in other years. A span from 15 January 2024 to 10 March 2024 is 55 days, which includes the leap day.

What happens if the end date is before the start date?

The total is shown as a negative number of days, so the direction is clear. The weeks and months breakdown uses the absolute size of the gap, and the note under the result states this. Swapping the dates gives the same number with a positive sign.

Does the count include the start date, the end date, or both?

Neither date is counted twice. The span from 1 January to 2 January is 1 day: the start date is excluded and the end date is included. That is the standard convention for the number of days between two dates.

Why do the months not match the days divided by 30?

Because calendar months are not 30 days long. The months figure counts full calendar months from the start day-of-month, with leftover days added after the last full month. Dividing by 30 gives a rough estimate, while the calendar count gives the exact months and days.