Home › Birthday & Date Tools › Days Between Dates Calculator

Days Between Dates Calculator

Enter any two dates and this calculator tells you exactly how many days sit between them, counted on the real calendar with leap years handled correctly. The result also breaks the gap into weeks and days and into calendar years, months and days, and nothing leaves your browser.

What this calculator does

The Days Between Dates Calculator measures the exact distance between two calendar dates. Instead of guessing “about three months,” you get a precise number you can act on. Say a landlord named David signs a lease on January 15, 2026, and the agreement ends April 15, 2026. Counting by hand is error-prone — January has 31 days, February has 28 in 2026, and it is easy to lose a day somewhere. This tool counts it instantly: 90 days, or 12 weeks and 6 days. People use that precision for rental periods, notice deadlines, project lengths, contract terms, loan timelines, and countdowns to big events. Because the count follows the actual calendar, a period that includes February 29 in a leap year is one day longer than the same span in an ordinary year — and the calculator knows the difference. It is part of the Birthday & Date Tools on BornCalc.

How to use it

  1. Enter the start date — the day you want to count from.
  2. Enter the end date — the day you want to count to. It is set to today by default.
  3. Click Count the days. The dates can be entered either way round; the calculator counts forward from the earlier one.
  4. Read the total number of days.
  5. Read the breakdowns underneath: the same span shown as weeks plus remaining days, and as calendar years, months and days.

How the arithmetic works

There is no shortcut formula like dividing by 365.25 — the count is done day by day on the real calendar. Each date is converted into a fixed day number by adding up the full years before it (365 days each, plus one extra day for every leap year), the full months within its year using the true length of each month — 31, 28 or 29, 31, 30 and so on — and finally the day of the month itself. Subtracting the two day numbers gives the exact gap. That is why February 1 to March 1 is 29 days in 2024, a leap year, but only 28 days in 2026. By default the result counts the days between the dates, so the start day itself is not included in the total. If your period is measured in working days rather than calendar days, that is a different count — our guide to counting business days and ISO week numbers explains how it works, and the business days calculator runs that working-day count for you.

The same count in Excel and Google Sheets

If the two dates already live in a spreadsheet, you do not need this page open to measure the gap. Put the start date in cell A2 and the end date in cell B2. Spreadsheets store dates as day numbers, so the simplest formula is plain subtraction:

FormulaWhat it returns
=B2-A2Days between the two dates
=DATEDIF(A2, B2, “d”)Days between the two dates
=DATEDIF(A2, B2, “m”)Complete calendar months
=DATEDIF(A2, B2, “y”)Complete calendar years
=DAYS(B2, A2)Days between the two dates (Google Sheets)

Two things catch people out with the subtraction. First, format the result cell as a number or General, not as a date — otherwise a gap of 90 days displays as a date in 1900. Second, DATEDIF needs the start date to be the earlier one; swap the cells and it returns an error instead of a negative count.

DATEDIF is the same compatibility function used on our Exact Age Calculator page, and it never appears in the autocomplete — you type it in full. Its other units split a span the way this page’s breakdown does: “yd” gives the days left over after complete years, and “md” gives the days left over after complete years and months. Google Sheets supports DATEDIF with the same units, and also offers DAYS, which takes the end date first: =DAYS(B2, A2).

A worked check: for January 15, 2026 in A2 and April 15, 2026 in B2, every formula in the table that counts days returns 90, DATEDIF with “m” returns 3, and with “y” returns 0. That matches this calculator exactly, because both count the end date but not the start date. If you need both dates included — for attendance or a stay counted inclusively — add 1 to the day count, in the spreadsheet just as on this page.

To place either date in its year instead, the week number calculator shows its ISO week number, its week year and its Monday to Sunday span.

Date difference calculator — one gap, every unit

Everything on this page is a date difference: the distance from one date to another, counted exactly. Many people search for the same tool as a date to date calculator, because the job is always to get from one date to the other and measure what lies between. The answer comes back as a total of days, then broken into the units people actually plan in.

Months between dates calculator

When the span is long, days are the wrong unit to think in. Used as a month calculator, this tool steps forward in whole calendar months from the start date — real months, of 28 to 31 days — and then counts the remaining days, so a contract or a savings goal reads as, say, seven months and nine days rather than a bare day total.

Years between two dates calculator

For anniversaries, service records and long deadlines, the same span is also shown as years, months and days: complete calendar years first, then complete months, then the leftover days. That is the form official documents use, and it is why the years figure here can differ by one from simply dividing the day count by 365.

Two worked examples

David’s lease. David’s tenancy starts on January 15, 2026 and ends on April 15, 2026. How long is the lease? The calculator counts January 15 to April 15 day by day: the rest of January, all of February (28 days in 2026) and March, then into April. Result: 90 days — 12 weeks and 6 days. A rough “three months times 30” guess would coincidentally also land near 90, but only the calendar count guarantees it, and the same span a year with a leap February would give a different answer.

Priya’s notice period. Priya hands in her resignation on November 20, 2025, and her last working day is March 1, 2026. She wants to know how many days she has to hand over her projects. The calculator counts across the year boundary — November into December, January and February, ending March 1. Result: 101 days — 14 weeks and 3 days. Counting months on her fingers (“about three and a half months”) would never have given her that exact figure for planning.

Who uses it

Tenants and landlords use it for lease lengths and notice periods. Employees and managers use it for resignation timelines, probation periods, and project planning. Couples use it for wedding countdowns, travelers for trip lengths and visa windows, and students for assignment deadlines. Anyone who has ever counted days on a wall calendar — and worried they miscounted — is exactly who this tool is for.

Frequently asked questions

How many days are there between two dates?

Enter the two dates in either order and the calculator counts the exact number of days separating them, then breaks the same span into weeks and into calendar years, months and days. It uses real month lengths and leap years, so the answer matches official date counting used for deadlines, contracts and visa windows rather than a rough estimate.

Does the count include the end date?

This calculator counts the end date but not the start date, which is how most deadlines, notice periods and age rules work: something due in three days counts tomorrow as day one. If you need both dates included, for example when counting days of attendance or a hotel stay, simply add one to the result shown for your two dates.

Can I count days between a past date and a future date?

Yes. The two dates can sit anywhere on the calendar: both in the past, both in the future, or one on each side of today. That makes the tool useful for counting down to an event, measuring how long ago something happened, or checking the length of a period that has not finished yet, all with the same calendar-accurate method.

How are weeks and months worked out from the day count?

Weeks are the total days divided by seven, with any leftover days shown separately. Months are counted on the calendar rather than by division, because months have different lengths: the calculator steps forward in whole calendar months from the start date, then counts the remaining days. That is why a span can be described as two months and five days exactly.

Does it matter which date I enter first?

No. The calculator works out which date is earlier and counts forward from there, so you can type the dates in whichever order you remember them. The result is the same positive span either way. This is helpful when one date is a deadline and the other is today, since people naturally think of those in different orders.

How many days since a date — how do I count days ago?

Put the past date as the start date and leave the end date as today, which is the default. The result is the number of full days that have passed since that date: the start date itself is not counted, so yesterday shows as 1 day since, and a date exactly one week ago shows as 7. The result panel also breaks the span into weeks and leftover days.

Do you count today in a days-until countdown?

This calculator does not count the start date but does count the end date, which is the standard countdown convention. So from Monday, the days until Friday are 4, not 5 — today is day zero. If an event organiser or a deadline says "including today", add one to the result. The same rule applies to deadlines: the due date itself is included in the count.

How many days until Christmas?

Enter today's date as the start and 25 December as the end, and the calculator counts the days in between. From 1 December there are 24 days to go, and the result also breaks the wait into weeks and days. Once Christmas Day has passed, enter 25 December of the following year instead, because the count always runs to the next date you give it.

How many nights is my stay — how do I count nights between check-in and check-out?

Hotel nights are simply the days between your check-in and check-out dates: arrive on the 10th and leave on the 14th and you have a four-night stay. Enter the two dates above and the total days this calculator reports is your number of nights — you sleep there on the nights of the 10th, 11th, 12th and 13th, and leave on the morning of the 14th.

How many days are left in this year?

Enter today's date as the start and 31 December as the end above, and this calculator gives the days remaining in the year — the figure behind end-of-year deadlines, savings goals and use-it-or-lose-it leave. It counts the end date itself, which matches how most people mean the question. The count to the following 1 January is exactly one day higher, because that span adds the single step from 31 December to New Year's Day.

How many days have passed this year — what day of the year is it today?

Two related numbers. The days fully passed since 1 January come from entering 1 January and today above. The day-of-year number — today being, say, day 200 of 365 — is that count plus one, because this calculator does not count the starting day itself. The second figure is the one printed in diaries and used in project plans. In a leap year both figures run in a 366-day year after February.

How many days is my lease or rental period — should I count the first and last day?

Enter the start and end dates above: this calculator counts the end date but not the start date, so a lease from 1 September 2026 to 31 August 2027 shows 364 days between the dates, while actually covering 365 calendar dates, counting both ends. Its years, months and days breakdown gives the same period in the form tenancy agreements use. If a contract defines its term by counting both end dates, add one to the figure shown.

Are the dates I enter kept private?

Yes, both of them. The gap between your two dates is counted locally in your browser, and the dates are never uploaded, stored or shared. Because the tool needs nothing from a server once it has loaded, it keeps working even with your connection switched off.

How is this different from the Date Calculator and the Business Days Calculator?

This tool measures the distance between two dates you already have. The Date Calculator starts from one date and moves it forwards or backwards by a set number of days, weeks, months or years to find a new date. The Business Days Calculator counts the same span as this tool but only Monday to Friday days, leaving weekends out. Pick the tool that matches the question: a gap, a landing date, or a working-day count.

How many years since 2000 — how do I count the years since a year?

Enter 1 January of that year as the start date and today as the end date. The years, months and days breakdown in the result gives the completed years first: as of 2026, it has been 26 years since 2000. The same method works for any year — a founding year, a graduation year or the year you moved house.

How do I calculate days between two dates in Excel?

Put the start date in one cell and the end date in another and subtract: with the start in A2 and the end in B2, =B2-A2 gives the days between them, or use =DATEDIF(A2, B2, "d") for the same result. Format the result as a number, not a date. The count matches this calculator — the end date is counted and the start date is not — so add 1 if you need both dates included.

How do I count days between dates in Google Sheets?

The same formulas work: =B2-A2 or =DATEDIF(A2, B2, "d") with the start date in A2 and the end date in B2, and Sheets also has =DAYS(B2, A2), which takes the end date first. DATEDIF also splits the span into complete months with "m" and complete years with "y". As in Excel, the start date must be the earlier date or DATEDIF returns an error.

Related calculators

By Ateeq Fareedi · Last updated: 18 November 2026