# How to Calculate the Number of Days Between Two Dates

> A reliable way to count the days between two dates, leap years, whether to include the end date, and converting days to weeks and months.

Source: https://widgetpantry.com/en/how-to-calculate-days-between-dates · Türkçe: https://widgetpantry.com/tr/iki-tarih-arasindaki-gun-sayisi-nasil-hesaplanir

Published 2026-11-16

Notice periods, billing cycles, due dates, pregnancy weeks, a countdown to exams — counting the days between two dates is something everyone needs, and it's easy to get wrong by hand. Here's the method, the traps and some examples. For an instant answer, use [Days Between Dates](https://widgetpantry.com/en/days-between-dates).

## The method: count month by month

1. Find the days left in the starting month: the month's length minus the start day.

2. Add the lengths of the full months in between.

3. Add the days of the final month.

Example: 20 January 2026 to 5 April 2026. 11 days left in January (31 − 20), February 28, March 31, and 5 days of April: 11 + 28 + 31 + 5 = 75 days.

## How many days each month has

This is what you'll need most. The knuckle trick: make a fist — knuckles are 31-day months, the dips between them 30 (or February).

| Month | Days | Month | Days |
| --- | --- | --- | --- |
| January | 31 | July | 31 |
| February | 28 / 29 | August | 31 |
| March | 31 | September | 30 |
| April | 30 | October | 31 |
| May | 31 | November | 30 |
| June | 30 | December | 31 |

## The leap-year rule

Years divisible by 4 are leap years with a 29 February — except years divisible by 100 but not by 400. So 2024 and 2028 are leap years, 2100 won't be, and 2000 was.

If the span contains 29 February, it gains a day: 28 Feb 2024 to 1 Mar 2024 is 2 days; the same dates in 2023 are 1 day apart.

## Should you include the end date?

The standard count includes the start date but not the end date: 1 January to 15 January is 14 days. For a holiday or event that covers both days, include the end date and you get 15.

Legal deadlines can follow different rules about which day the count starts on, so check the rules that apply to you.

## Turning days into weeks and months

Divide by 7 for weeks: 75 days = 10 weeks 5 days. Months vary in length, so there's no exact division; for an approximation divide by 30.44 (75 ÷ 30.44 ≈ 2.5 months).

For someone's exact age in years, months and days, use the [Age Calculator](https://widgetpantry.com/en/age-calculator).

## In Excel and Google Sheets

Subtract one date cell from the other: =B1-A1 gives the number of days (format the cell as a number). For working days, =NETWORKDAYS(A1, B1) leaves out weekends, and you can pass a list of holidays as a third argument.

## Frequently asked questions

### How many days are in a year?

365 in a common year and 366 in a leap year. The next leap year is 2028.

### How do I count working days between two dates?

Take weekends and public holidays out of the total. In Excel or Google Sheets, NETWORKDAYS does the weekends automatically and accepts a holiday list.

### How many days is 6 months?

Between 181 and 184 days depending on the months involved. Enter the exact dates for a precise count.

## Use the tool

- [Days Between Dates](https://widgetpantry.com/en/days-between-dates): Count the days and business days between two dates without leap-year or daylight-saving mistakes. Include the end date and see weeks, weekdays and weekend days.
