Counting the days between two dates
Counting the days between two dates sounds like simple subtraction, but months of different lengths and the odd leap year make it easy to be off by a day or two. The reliable way is to let a calculator walk the calendar for you — then decide whether you want to count both end dates or just the gap between them.

The number of days between two dates is the distance from a start date to an end date. The date difference calculator returns it instantly — along with the same gap in weeks, months and years — and this guide explains how that total is worked out and where manual counting trips up. It is part of the broader date and time tools toolkit.
How the days between two dates are counted
A dependable calculator does not guess a "30-day month." It walks the real calendar:
- Order the dates. Identify which is earlier so the result is a positive number of days.
- Count whole years and months first, using the actual length of each month along the way.
- Add the leftover days, including a 29th of February for any leap year that falls inside the range.
The date difference calculator does all three steps for you, so a range that spans several years and a couple of leap days still comes out exact.
Inclusive vs exclusive counting
This is the single biggest source of "off by one" errors.
| Counting method | What it measures | Example: 1st to 4th |
|---|---|---|
| Exclusive (subtraction) | Nights, or full days between | 3 days |
| Inclusive (subtraction + 1) | Every calendar day touched | 4 days |
Book a hotel from the 1st to the 4th and you stay 3 nights (exclusive). Ask how many days a festival runs from the 1st to the 4th and the answer is 4 days (inclusive). Decide which one your question needs before you trust the number.
How leap years change the total
A leap year adds a 29th of February, so any range that crosses one gains a day. Between 1 January 2024 and 1 January 2025 there are 366 days, not 365, because 2024 is a leap year. The calculator accounts for this automatically — a good reason not to multiply "years × 365" by hand.
Related tools and questions
- Measuring a gap from a birth date? Use the age calculator and read how to calculate your age.
- Need the answer in hours or minutes instead of days? Convert it with the time converter — see converting units of time.
- Working with Nepali dates? Convert them first with BS to AD so both dates are on the same calendar.
Frequently asked questions
How do I count the days between two dates?
Enter both dates in the date difference calculator. It returns the exact number of days, plus the gap in weeks, months and years.
Should I count both the start and end date?
Only if your question is inclusive — such as the number of days an event runs. For nights, deadlines or durations, use the exclusive (plain subtraction) count.
Does the calculator include leap days?
Yes. It uses the real length of every month and year, so any 29th of February inside your range is counted.
Can it count business days only?
The calculator counts calendar days. To estimate working days, subtract the weekends (and any holidays) from the total it gives you.
Count your days now
Open the date difference calculator to get the exact gap between any two dates, or head back to the date and time tools guide to explore time conversions and calendars.


