Dates & time

Date difference calculator

Count elapsed days between two calendar dates.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your numbers and select Calculate.

Behind the numbers

How this calculation works

The start-to-end difference excludes the end date. Dates are compared as UTC calendar dates so local daylight-saving clock changes do not create fractional days. Leap days are included.

THE FORMULAElapsed days = (end date − start date) in calendar days

A worked example

From 1 January 2026 to 1 February 2026 there are 31 elapsed days.

Good to know

Counts calendar days, including weekends and holidays. It does not calculate business days or elapsed clock hours.

What does “days between” actually mean?

Imagine arriving on Monday and leaving on Tuesday. One night passes, and the dates are one day apart, even though your trip touches two named calendar dates. This calculator measures the gap: the same date gives zero days, and the next date gives one day.

That distinction matters when a booking, contract or event uses inclusive counting. If you want to count every date on a list, including both endpoints, add one to the elapsed-day result. Do that only when the rule for your situation calls for inclusive counting; it is not a universal correction.

A little curiosity

How people kept track before digital calendars

Ancient Egyptian timekeeping connected daily life with the sky and the agricultural seasons. The Metropolitan Museum of Art describes a civil year arranged into twelve 30-day months with five additional days, and dates that commonly identified a year within a ruler’s reign.

To compare two historical dates, a scholar therefore needs more than subtraction: which calendar was used, how its year was named, and which ruler or era supplied the reference point? The familiar-looking day, month and year on a modern screen hide conventions that earlier record keepers had to establish explicitly.

Why a year is not just twelve equal months

Days, lunar months and seasonal years come from different astronomical cycles, and they do not fit together as whole-number multiples. That mismatch is why multiplying “number of months” by 30 cannot reliably turn a date range into days. A month crossing February is not interchangeable with one crossing July.

This tool reads actual Gregorian calendar dates, including their month lengths. It does not approximate a year as 365 days or a month as 30 days when finding the gap.

The leap-year detail that catches people out

In the Gregorian calendar, a year divisible by four is usually a leap year. Century years are exceptions unless divisible by 400. So 2000 had a leap day, but 1900 did not; 2100 will not. An interval crossing 29 February can therefore gain a day that a simple years-times-365 shortcut misses.

Try 28 February to 1 March in 2024 and then in 2025. The first gap is two days and the second is one. The extra day belongs to the calendar, not to rounding in the calculator.

Dates, hours and business days answer different questions

A calendar-day gap is not necessarily elapsed clock time divided by 24. A local clock can jump forward or backward when daylight-saving time changes. This calculator deliberately compares date-only values in UTC so a clock change does not turn an ordinary calendar gap into a fraction.

It also includes Saturdays, Sundays and public holidays. For a payment or filing deadline, confirm the relevant business-day rule, holiday calendar, cut-off time and jurisdiction. A generic day count cannot decide those rules for you.

A note about historical dates

The tool applies modern Gregorian rules consistently, including to dates before that calendar was introduced. This is called a proleptic Gregorian calculation. It does not reconstruct the calendar actually used in every place and period, or account for dates omitted during local calendar changes.

Use it for consistent modern calendar arithmetic. For genealogy, ancient records or a historical chronology, first establish the source calendar and convert with a specialist historical-calendar reference.

A few questions, answered

Are the start and end dates both counted?

The result is the elapsed gap. The same date returns zero. If your task explicitly requires counting both endpoint dates, add one to the result.

Does it include leap days?

Yes. A 29 February inside the range is counted according to Gregorian leap-year rules.

Can I use this to find my age in years and months?

It gives elapsed days, not a calendar age breakdown. Dividing by 365 or 30 is only an approximation because years and months have different lengths.

Why must the end date come after the start?

This tool shows a non-negative elapsed interval. Swap the two dates if you entered them in reverse order.

Find your calculator

Start typing to explore the library.