Published: February 2026 | Last Updated: February 2026

๐Ÿ“ท

Suggested image: Person on a smartphone checking a calendar app to calculate date difference

Recommended: 860 ร— 440 px | JPG or WebP | Max 150 KB

Free royalty-free images: Unsplash ยท Pexels ยท Pixabay

<img src="images/how-many-days-hero.jpg" alt="Person checking date difference on smartphone calendar" width="860" height="440" loading="lazy">

Suggested caption: Calculating how many days between two dates is a common everyday task โ€” a date difference tool makes it instant and accurate. โ€” Photo sourced from Unsplash (free for commercial use)

The Simple Question With a Surprisingly Nuanced Answer

๐Ÿ“ท

Suggested: Desk calendar open to a month with two dates highlighted, showing the span between them

Unsplash ยท Pexels

<img src="images/how-many-days-inline.jpg" alt="Calendar showing highlighted days between two dates" width="340" height="220" loading="lazy">

Highlighted days on a calendar โ€” the visual equivalent of a date difference calculation

"How many days between these two dates?" is one of the most commonly asked time-related questions. It comes up when calculating how long until a flight, how many days a rental property was occupied, how long a medication course runs, or how far away a birthday is.

The answer is almost always just a number, but arriving at that number correctly requires understanding the structure of the Gregorian calendar, which the majority of the world uses today.

How Date Difference Is Calculated

At a mathematical level, calculating how many days between two dates means converting each date to an absolute day number and subtracting. The Gregorian calendar's rules for month lengths and leap years are baked into this conversion.

Month lengths in the Gregorian calendar follow a pattern: January (31), February (28 or 29), March (31), April (30), May (31), June (30), July (31), August (31), September (30), October (31), November (30), December (31). These vary, which is why manual counting is tedious and error-prone.

Step-by-Step Manual Calculation

To manually calculate the days between 20 February 2026 and 15 August 2026:

Total: 8 + 31 + 30 + 31 + 30 + 31 + 15 = 176 days.

Days Between = Sum of days in each partial or complete month in the interval

How Leap Years Change the Answer

If the date range crosses 29 February, the answer increases by one day compared to the same range in a non-leap year. The years 2024, 2028, and 2032 are leap years. If your date range spans February of one of these years, your calculation yields one more day than in an equivalent non-leap-year span.

Year Boundary Calculations

When dates fall in different years, a common approach is to calculate the remaining days in the start year, add the full years in between (365 or 366 days each), and then add the elapsed days in the final year. An online date difference tool performs this automatically.

๐Ÿ”ข How Many Days Between?

โ†’
0
days between dates
Enter dates above to calculate

Real-World Uses

Date Difference in ISO 8601 Terms

ISO 8601 expresses durations using the format PnYnMnDTnHnMnS, where P marks the start of the duration. A 90-day period would be represented as P90D. The standard also supports date arithmetic in software systems, making it the international benchmark for time period calculations.

Days Between Key Dates โ€” Quick Reference

FromToDaysNotes
1 Jan1 Jul (same year)181 / 182182 in a leap year
1 Jan25 Dec (same year)358 / 359359 in a leap year
1 Jan1 Jan (next year)365 / 366366 in a leap year
Australia DayANZAC Day (same year)8926 Jan to 25 Apr
Good FridayEaster Monday3Always the same span

Calculate How Many Days Between Any Two Dates

Use our full date difference tool for results in days, weeks, months, and years.

Date Difference Tool โ†’

Authoritative References

External sources referenced in this article.

Frequently Asked Questions

Does the result include both the start and end dates?

By default, most date difference tools count from the start of the first day to the start of the last day (exclusive of both endpoints as full days). For inclusive counting โ€” where both the start and end dates are counted โ€” add one to the result.

Why does my answer differ by one when using different tools?

This is almost always an inclusivity issue. Different tools make different assumptions about whether endpoints count. Check the tool's documentation or add one if your use case requires both endpoints.

Can I calculate how many days between a past and future date?

Yes. A date difference tool works equally well for historical intervals and future countdowns. Simply enter the earlier date as the start and the later date as the end.

How many days between New Year's Day and Christmas Day?

From 1 January to 25 December in any given year is 358 days in a non-leap year and 359 days in a leap year.