Days Between Two Dates Calculator (and How to Count Them)

Updated · 4 min read

Quick answer

Days between = end date − start date. Count the remaining days in the start month, add the full months in between, then add the days in the end month.

In Excel or Google Sheets, put the dates in two cells and subtract: =B1-A1. Add 1 if you want to count both the first and the last day.

How many days until a wedding, since you started a job, or left on a visa? Pick two dates below for the answer, or read on to count them yourself.

–

The count is end date minus start date, the same as a spreadsheet. Tick the box to count both the first and the last day. Weekdays are Monday to Friday, without public holidays.

Method 1: by hand

Break the gap into three parts:

  1. Days left in the start month (after the start date)
  2. Full months in between
  3. Days into the end month

Example: 1 January 2026 to 25 December 2026

  • Days left in January after the 1st: 31 − 1 = 30
  • Full months February to November: 28 + 31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 = 303
  • Days into December: 25
  • Total: 30 + 303 + 25 = 358 days

Days in each month

MonthDaysMonthDays
January31July31
February28 (29 in a leap year)August31
March31September30
April30October31
May31November30
June30December31

A quick trick: make fists and count months across your knuckles and the gaps between them. Knuckles are 31-day months, gaps are 30 (or February).

Method 2: in Excel or Google Sheets

Spreadsheets store dates as numbers, so subtracting them gives days:

RowABC
101/01/202625/12/2026=B1-A1 → 358
  • If you see a date instead of a number, format the result cell as Number.
  • =DATEDIF(A1,B1,"d") gives the same result. Microsoft warns that DATEDIF can be wrong in some cases, and returns #NUM! if the start date is later than the end date.
  • =NETWORKDAYS(A1,B1) counts weekdays only, including both ends.

Method 3: an app

Age Calculator has a Date Difference tool for exactly this: pick two dates and see the gap between them. It also shows your exact age, a countdown to your next birthday, and reminders for the birthdays you save.

Should you count both days?

This is where most disagreements come from.

SituationCountExample: Mon 1 to Fri 5
How long between two datesEnd − start4 days
Days you’re away, booked or on leaveEnd − start + 15 days

Hotels count nights (end − start). Leave and event schedules usually count every day you’re there (end − start + 1). Check which the form or rule you’re filling in expects.

Leap years

A leap year adds 29 February, making 366 days. The rule:

  • Divisible by 4: leap year (2024, 2028)
  • Except century years: not a leap year (1900, 2100)
  • Unless divisible by 400: leap year (2000, 2400)

If your range includes 29 February of a leap year, add one day to a hand count. Spreadsheets and apps handle it automatically.

Common mistakes

MistakeFix
Treating every month as 30 daysUse the real month lengths
Forgetting 29 FebruaryCheck whether the range crosses one
Counting both ends when you shouldn’t (or the reverse)Decide which you need first
Typing dates in the wrong order (day/month vs month/day)Check your spreadsheet’s date format

For your exact age from your date of birth, see the Age Calculator app, or work it out the same way: full years first, then months, then days.

Questions people ask

Do I count the start date and the end date?

Subtracting one date from another counts the days in between, not both ends. From Monday to Wednesday is 2 days. If you need to include both days, for a booking or a leave request, add 1.

How do leap years affect the count?

A leap year has 366 days, with 29 February. Years divisible by 4 are leap years, except century years, which must also be divisible by 400. So 2000 was a leap year, 1900 wasn't, and 2028 will be.

What's the formula in Excel?

Subtract the earlier date from the later one, such as =B1-A1, and format the cell as a number. You can also use =DATEDIF(A1,B1,"d"). Microsoft notes DATEDIF can give wrong results in some cases, and gives

How many weeks is that?

Divide the days by 7. 358 days is 51 weeks and 1 day.

How do I count only working days?

In Excel or Google Sheets, =NETWORKDAYS(A1,B1) counts weekdays between two dates, including both ends, and can skip a list of holidays too.

Sources