Whether you're planning a trip, tracking a project deadline, or counting down to a wedding, knowing the exact number of days between two dates is surprisingly useful — and surprisingly easy to get wrong without the right tools.
The Basic Formula
The simplest way to calculate days between dates:
In practice, this means converting both dates to a numeric representation (like a Unix timestamp or Julian Day Number) and dividing the difference by 86,400 seconds (or 1 day in milliseconds).
Most people don't need to do this manually — a calculator does it instantly. But knowing the logic helps you understand what counts and what doesn't.
Include or Exclude the Endpoints?
This is the most common source of confusion. Should you count the start date, the end date, both, or neither?
| Method | Jan 1 to Jan 5 | Best for |
|---|---|---|
| Exclude start, include end (default) | 4 days | Countdowns, deadlines |
| Include both endpoints | 5 days | Event duration, hospital stays |
| Exclude both endpoints | 3 days | Days strictly between dates |
Our days calculator defaults to "exclude start, include end" — the most common use case for countdowns and deadlines. You can toggle to include both endpoints.
Counting Business Days
Business days (weekdays only, Mon–Fri) matter for contracts, shipping estimates, and project timelines. The rough formula:
But this approximation can be off by 1–2 days depending on which day of the week the dates fall. An exact weekday count loops through each calendar day and checks if it's Saturday or Sunday — which is what our calculator does automatically.
Important: Business day calculators typically don't account for public holidays, which vary by country, state, and company. For legal contracts, always verify which holidays apply in your jurisdiction.
Weeks, Months, and Years
Once you have the raw day count, converting to other units is straightforward:
- Weeks: Days ÷ 7 (e.g., 100 days = 14.3 weeks)
- Months: Days ÷ 30.44 (average days per month) — gives an approximate figure
- Years: Days ÷ 365.25 (accounting for leap years)
Note that "months" is inherently fuzzy — a month can be 28, 29, 30, or 31 days. For exact month counts, count calendar months directly (e.g., March 15 to June 15 = exactly 3 months).
Practical Use Cases
- Project planning: "We have 47 business days until the launch. Is that enough?"
- Contracts & leases: "My 12-month lease from April 1, 2026 ends March 31, 2027 — 365 days."
- Pregnancy: "40 weeks from my LMP of January 15 = October 22 due date."
- Age calculation: "I was born June 5, 1990 — that's 13,088 days ago."
- Event countdowns: "Christmas is 264 days away — 37 weeks and 5 days."
Leap Years and Edge Cases
Leap years add one extra day (February 29) every 4 years — with century exceptions. This matters for long-range date calculations:
- Divisible by 4: leap year (2024, 2028…)
- Divisible by 100: NOT a leap year (1900, 2100…)
- Divisible by 400: IS a leap year (2000, 2400…)
For spans of 1–2 years, this rarely matters. For spans of 10+ years, you might be off by 2–3 days if you use 365 per year instead of 365.25.
Key Takeaways
- Days between dates = (End − Start) in calendar days
- Clarify whether to include the start date, end date, or both
- Business days ≈ 5/7 of calendar days, but exact counts require looping through each day
- Months are approximate unless you count calendar months directly
- Leap years matter for multi-year spans