Days Between Dates Calculator

Counting the days between two dates is one of those jobs that looks easy and turns out to be fiddly. Months have different lengths, February changes in a leap year, and it is easy to be out by one day depending on whether you count the start date, the end date, or neither. The days between dates calculator on this page does the counting for you and shows the answer in three useful forms.

Enter a start date and an end date, and the calculator gives you the days between them, the inclusive count that includes both end dates, and the same gap in weeks and days. That covers the three ways people usually mean the question.

It helps with holidays, countdowns, notice periods, ages in days, and project lengths. It uses calendar dates only, so time zones do not affect the answer, and it handles leap years. Change either date and the answer updates at once.

Days Between Dates Calculator

Result: 14 days between (15 days inclusive) — 2 weeks, 0 days

How to Use

Two date boxes are all this calculator needs. Pick the dates from the calendar picker or type them in.

  1. Enter the earlier date in the start date box. The order does not matter, because the calculator uses the gap between the two dates either way.
  2. Enter the later date in the end date box, using the same year, month, and day format.
  3. Press Calculate Days, or change either date and watch the result update live.
  4. Read the days between first. That is the exclusive count, which does not include either end date as a full day.
  5. Read the inclusive count beside it if you need to include both the start and the end date, and the weeks and days form for planning in weeks.

If both dates are the same, the days between is zero, and the inclusive count is one. Showing both figures side by side removes the most common confusion in date counting.

Formula

The calculator turns each date into a count of days since a fixed starting point, then subtracts one count from the other. In practice, each date is converted to milliseconds since the start of 1970 in universal time, and the difference is divided by 86,400,000, the milliseconds in a day. Universal time avoids any shift from daylight saving.

The exclusive count is that difference on its own. The inclusive count adds one, because it counts both the start date and the end date as days in the period. To express the gap in weeks and days, divide the exclusive count by seven: the whole number part is the weeks, and the remainder is the extra days. For example, fourteen days is exactly two weeks, while thirty days is four weeks with two days left over, because four times seven is twenty-eight.

Worked Examples

These examples show all three forms of the answer, so you can see how the exclusive, inclusive, and weeks figures relate.

Date rangeWorkingAnswer
2026-01-01 to 2026-01-1515 January minus 1 January equals 14 days14 days (15 inclusive, 2 weeks)
2026-03-01 to 2026-03-3131 March minus 1 March equals 30 days30 days (31 inclusive, 4 weeks 2 days)
2026-02-01 to 2026-02-088 February minus 1 February equals 7 days7 days (8 inclusive, 1 week)
2026-01-01 to 2026-01-01Same date, difference is zero days0 days (1 inclusive, 0 weeks)

Common Uses

Date gaps come up in planning and everyday life. Here are the most common reasons to count them.

  • Counting down to a holiday, a wedding, an exam, or a birthday, and checking how many days are left.
  • Working out a notice period, a delivery window, or a deadline measured in calendar days.
  • Measuring how long a project, a subscription, or a course has been running since it started.
  • Checking the length of a trip, a rental, or a stay that spans more than one month.
  • Working out an age in days, or the gap between two birthdays or anniversaries.
  • Planning in weeks, for example turning a thirty-day period into four weeks and two days for a rota.

Frequently Asked Questions

What is the difference between exclusive and inclusive days?

Exclusive days count only the full days between the two dates. Inclusive days count both end dates as well, so the inclusive figure is always one more. A trip from 1 January to 15 January is fourteen days between, but fifteen days inclusive.

Does the calculator handle leap years?

Yes. It uses real calendar dates, so February has twenty-nine days in a leap year and twenty-eight in other years. A period crossing 29 February in a leap year is one day longer.

Does it matter which date I enter first?

No. The calculator takes the gap between the two dates, so entering them in either order gives the same answer. If you are counting down to a future date, you can put today first and the future date second, or the other way round, and the result will not change.

How do weeks and days work?

Weeks are groups of seven days. The calculator divides the exclusive day count by seven: the whole number is the weeks, and the remainder is the extra days. Thirty days is four weeks and two days, because four times seven is twenty-eight, leaving two days over.

Can I count days across different years?

Yes. You can enter any two dates, including dates in different years, and the calculator will count the full gap, including any leap days in between. A gap from 1 January 2026 to 1 January 2027 is 365 days, because 2026 is not a leap year.

Scroll to Top