Days Between Two Dates — Count Days Instantly

Days Between Two Dates

Counting the days between two dates is a subtraction on the calendar: the number of days from the first date to the second, excluding the start date. From 1 January 2026 to 31 December 2026 is 364 days, because 2026 is not a leap year, and from 1 March 2025 to 15 March 2025 is 14 days. The date difference calculator above counts any span instantly, and this page explains the convention, works through five spans, and shows how leap years change the answer.

The convention matters more than the arithmetic: most people mean the gap between the dates, which excludes the start and includes the end. If you count both endpoints, you get one day more, which is the off-by-one error behind most wrong day counts. This page uses the standard convention throughout, flags the spans where a leap day adds a day, and shows how the same span looks in weeks and in years, months, and days.

How Date Differences Are Calculated

The difference between two dates is the number of days from the first date to the second, counted on the Gregorian calendar. The 1 January 2026 to 31 December 2026 span is 364 days, because 2026 is not a leap year and the count excludes the starting day itself. Counting this way is a convention, and it matters: most people mean “how many days after the first date is the second date,” which excludes the start and includes the end. If you need to count both endpoints, add one to the result.

Leap years are the only complication. A leap year has 366 days, with an extra day on 29 February, and the span from 1 January 2024 to 1 January 2025 is 366 days for exactly that reason. A year is a leap year if it is divisible by 4, except century years, which must also be divisible by 400: 2000 was a leap year, 1900 was not, and 2100 will not be. The calculator applies these rules automatically, so spans crossing February in a leap year come out right without you having to remember which years are leap years.

The official time reference for the United States is maintained at time.gov, the public face of the atomic clocks run by the National Institute of Standards and Technology and the US Naval Observatory. Calendar dates and day counts, though, are a matter of arithmetic on the Gregorian calendar, and the calculator’s job is to do that arithmetic without the off-by-one errors that creep in when people count on their fingers.

Step 1 — Write Both Dates in the Same Order

Write the start date and the end date as year, month, and day. For 1 January 2026 to 31 December 2026, the dates are (2026, 1, 1) and (2026, 12, 31). If the end date is earlier than the start date, the difference is negative, and the calculator reports the span in the other direction.

Step 2 — Count the Days in Each Full Month Between Them

Add the remaining days in the start month, then the full months in between, then the days in the end month. For 1 February to 1 March 2026, that is 27 remaining days in February plus 1 day in March, which is 28 days, because February 2026 has 28 days.

Step 3 — Add the Leap Days

Add one day for each 29 February inside the span. The span from 1 January 2024 to 1 January 2025 crosses 29 February 2024, so it is 366 days, not 365. The calculator does this step for you, and it is the step people most often miss when counting by hand.

Worked Examples: Days Between Two Dates

Each row gives two dates, the day count between them, and the note that explains the count.

Start dateEnd dateDays between
1 January 202631 December 2026364
1 March 202515 March 202514
1 February 20261 March 202628
1 January 20241 January 2025366
15 June 20261 November 2026139

The fourth row is the leap-year case: 2024 is a leap year, so the span from 1 January 2024 to 1 January 2025 crosses 29 February 2024 and is 366 days, not 365. The third row is the short-span case: February 2026 has 28 days, so 1 February to 1 March is 28 days, and the same span in a leap year would be 29. Try the same dates in the calculator above and confirm each count, then move the end date by a day and watch the count move by exactly one.

How to Use the Date Difference Calculator

Pick a mode, enter two dates, and the calculator shows the difference in days, weeks, and in years, months, and days. It can also add or subtract days from a date, which is the same arithmetic run in the other direction.

  1. Choose the mode. Difference between two dates is the default; the add and subtract modes take one date and a number of days instead.
  2. Enter the start date. Use the date picker or type the date. The order matters: start first, end second, or the sign of the answer flips.
  3. Enter the end date. The calculator updates as you type, so you can slide the end date forward and watch the count grow.
  4. Read the breakdown. The result shows total days, the same span in weeks, and the same span in years, months, and days, so you can use whichever form your task needs.
  5. Decide about endpoints. The count excludes the start date. If your task counts both the first and last day, add one to the total.

The Same Span in Weeks and Months

A day count is often more useful in weeks or months. This table converts the example spans into the forms plans and schedules use.

SpanDaysWeeksYears, months, days
1 January to 31 December 2026364520 years, 11 months, 30 days
1 March to 15 March 20251420 years, 0 months, 14 days
1 February to 1 March 20262840 years, 1 month, 0 days
1 January 2024 to 1 January 202536652 weeks, 2 days1 year, 0 months, 0 days
15 June to 1 November 202613919 weeks, 6 days0 years, 4 months, 17 days

Common Mistakes With Date Differences

Date arithmetic has a small set of classic errors. These are the ones that produce answers one day out.

  • The off-by-one error. Counting both the start and end dates when the task wants the gap between them, or counting neither, shifts the answer by a day.
  • Forgetting leap years. A span crossing 29 February is a day longer than a naive month count suggests, and the error only appears for spans that cross February.
  • Assuming all months have 30 days. A rough 30-day month estimate can be several days out over a long span; the calculator uses the real month lengths.
  • Swapping the dates. Entering the end date first gives a negative difference, which is correct arithmetic but the wrong answer for the question asked.
  • Ignoring time zones. A date difference is a calendar difference, not a time difference; two dates in different time zones still differ by the same number of calendar days.

Where You Will Use a Date Difference

Day counts drive deadlines, plans, and records in almost every part of life, from project work to pregnancy to legal filings.

  • Project deadlines. Counting the days from a start date to a delivery date tells you how many working days you actually have, before you commit.
  • Travel planning. The gap between departure and return dates is the length of the trip, and it decides the cost of hotels, car hire, and insurance.
  • Contracts and notice periods. A 30-day notice period and a 90-day warranty are counted in calendar days from a specific date, so the end date must be exact.
  • Health and pregnancy. Due dates, treatment courses, and recovery periods are all counted in days and weeks from a start date.
  • Anniversaries and milestones. The days between two dates turn a round number, such as 10,000 days together, into a date worth celebrating.

Leap Years and the Day Count

A leap year adds one day, 29 February, and the rule for which years are leap years is precise: a year is a leap year if it is divisible by 4, except century years, which must also be divisible by 400. The year 2000 was a leap year, 1900 was not, and 2100 will not be. A span that crosses 29 February in a leap year is one day longer than the same span in an ordinary year, and the calculator applies the rule automatically, so you never have to remember which years are leap years when you count.

Tips for Accurate Results

Date differences are exact once the convention is settled. These habits settle it before you start.

  1. State the convention. Decide up front whether the start date counts, and write it down, so everyone reading the result agrees on what it means.
  2. Use the calculator for spans over a month. Hand counting across several months is where leap days and 31-day months cause slips.
  3. Check February. Whenever a span crosses February, confirm whether the year is a leap year before trusting a hand count.
  4. Keep the year with the date. A date without a year is ambiguous across a year boundary, and the difference depends on which year you mean.
  5. Verify with a second span. Split a long span into two halves and add them; if the halves do not sum to the whole, one of them is wrong.

Date Difference Quick Answers

These are the day counts people look up most often, each one verified against the calculator above.

SpanDays
1 January 2026 to 31 December 2026364
1 January 2024 to 1 January 2025 (leap year)366
1 February 2026 to 1 March 202628
15 June 2026 to 1 November 2026139
1 March 2025 to 15 March 202514

Related tools on this site: the main date difference calculator, days calculator, age calculator, time calculator, and the date difference calculator again whenever you need a fresh check.

Frequently Asked Questions

How many days are there between two dates?

Subtract the start date from the end date, counting the days in between and excluding the start date. From 1 January 2026 to 31 December 2026 is 364 days, and from 1 March 2025 to 15 March 2025 is 14 days. The calculator above does the subtraction for any pair of dates.

Do you count the start date?

No, under the standard convention used on this page and in the calculator: the count excludes the start date and includes the end date. If your task counts both the first and last day, add one to the result.

How do leap years affect the count?

A span that crosses 29 February in a leap year is one day longer. From 1 January 2024 to 1 January 2025 is 366 days, because 2024 is a leap year, while the same span in a non-leap year is 365 days.

How many days are between 1 February and 1 March 2026?

There are 28 days, because February 2026 has 28 days. In a leap year such as 2028, the same span would be 29 days, because February would have 29 days.

Can I count days between dates in the past?

Yes. The calculator works for any pair of dates, past or future, on the Gregorian calendar. Enter the earlier date first and the later date second for a positive count.

Disclaimer: This calculator is for general information only. Day counts use the Gregorian calendar; deadlines, notice periods, and legal dates are governed by the applicable contract, statute, or authority, which may count days differently.