SC.

Days Between Dates

Calculate the day interval and approximate month and year equivalents for two dates.

Our free days between dates calculator reports the day interval, full weeks, and estimated month and year equivalents for two selected dates. For a live count relative to today, try our days counter.

Day and week totals are calculated from the selected dates. Month and year values are averages, not calendar-month or anniversary calculations.

Date Duration Calculator

About the Days Between Dates Calculator

SimpleCounter’s Days Between Dates tool calculates the day interval and full weeks between two dates, plus approximate month and year equivalents.

Quick Answer

Quick answer: Enter a start date and an end date and this calculator returns the exact gap between them in days, weeks, months, and years. January 1 to December 31, 2026 comes out as 364 days, which is exactly 52 weeks.

Definition: A days between dates calculator is a date tool that subtracts one calendar date from another to give the length of the period between them.

  • Cost: Free, with no limit on calculations.
  • Sign-up: No, both date boxes are ready on load.
  • Input: Two dates, a start and an end, in any order.
  • Output: The gap in days, plus weeks, average months, and years.
  • Privacy: Dates are compared in your browser and sent nowhere.
  • Best for: Leave planning, project timelines, contracts, and age questions.

How the Duration Is Calculated

When you select a Start Date and an End Date, the calculator compares their date values and divides the absolute difference by the number of milliseconds in a day:

Difference in Days = Math.floor(Math.abs(DateB - DateA) / 86,400,000)

From this base day count, the tool derives secondary units:

  • Weeks: Days divided by 7 (exact integer weeks).
  • Months: Days divided by 30.44 (the average Gregorian month length).
  • Years: Days divided by 365.25 (accounting for standard and leap years).

Inclusive vs. Exclusive Counting

The "Fencepost Problem" in Calendar Math

In computing and mathematics, calculating the distance between two points frequently encounters the fencepost problem: if you build a 10-meter fence with posts spaced 1 meter apart, you need 11 posts, not 10.

Exclusive Duration (Standard Interval)

Measures the time elapsed between timestamps. From Friday at 9:00 AM to Monday at 9:00 AM is exactly 3 days (72 hours).

Inclusive Duration (Add 1 Day)

Used when both start and end days count as full active periods, such as hotel reservations, rental periods, or conference tickets.

Worked Examples: Real Dates, Real Answers

Formulas are easy to forget. Answers stick. Here are three real calculations, worked the same way the tool works them, so you can check your own dates against them.

A Full Year, Almost

January 1, 2026 to December 31, 2026. A whole calendar year apart on paper, but the gap between the two dates is one day short of 365.

364 days = 52 weeks exactly

A Project Timeline

Kick-off Monday, February 2, 2026 to delivery Friday, April 17, 2026. That is the real length of the project, not "about two months", a number you can plan sprints and deadlines against.

74 days = 10 weeks + 4 days

A 26th Birthday

Born May 15, 2000, checked on May 15, 2026. Twenty-six birthdays sounds simple until you add up the days: six leap days are hiding inside that span.

9,496 days = 26.0 years

Where People Use This Most

HR & Leave

Leave balances, notice periods, probation end dates and long-service awards all start with one number: days between the start date and the end date. Get that number first, then apply your company rule for weekends and holidays, March 10 to March 24, 2026 is 14 days apart, 15 calendar days inclusive, and 11 weekdays.

Project Planning

"About 10 weeks" is how projects slip. 74 days is how they get planned. Convert the gap between kick-off and delivery into weeks and you can divide the work honestly, the February 2 to April 17, 2026 example above is 10 full weeks plus 4 spare days for the overruns every project has.

Age & Life Dates

How many days old am I? How long have we been married? How many days until a baby is due from a scan date? Enter the two dates and read the days first, 9,496 days old on your 26th birthday is a far better party fact than "26".

Why Months and Years Are Averages, Not Exact

Days and weeks from this tool are exact. Months and years cannot be, because the calendar itself is uneven. A month can be 28, 29, 30 or 31 days long, so there is no honest fixed number of days in "a month". The tool uses the average Gregorian month: a year of 365.25 days divided by 12, which is 30.44 days per month.

The year figure uses 365.25 days for the same reason: leap years add a 29th day to February roughly every four years, and the extra 0.25 spreads that day across every year. You can see it in a two-day span, February 28 to March 1 is 2 days in leap year 2024, but only 1 day in 2025, because February 29 exists in one and not the other.

Practical rule: quote days (and full weeks) when the number must be exact, contracts, payroll, deadlines. Use months and years as the quick, human version of the same answer: 181 days between January 15 and July 15, 2026 is "about 6 months" (5.95 on this tool), which is close enough for planning and conversation, and the tool shows you both.

Tracking Relative to Today?

Tracking a milestone or streak that advances daily?

If you want to track how many days have passed since a personal achievement or countdown to an upcoming event relative to today, use our Days Counter.

Days Counter Tracker →

Frequently Asked Questions

Everything you need to know

01Does this calculator include both the start and end dates?▾
The tool measures the difference between the selected dates, so the end date is not added as an extra inclusive day. If your use case counts both dates, add one day to the displayed day total.
02How does the tool calculate months and years?▾
Because months vary from 28 to 31 days and leap years contain 366 days, the calculator uses astronomical averages: 30.44 days per month and 365.25 days per Gregorian year. Total days and full weeks represent exact integer counts.
03What is the difference between calendar days and business days?▾
Calendar days count every consecutive 24-hour period including Saturdays, Sundays, and public holidays. Business days exclude weekends and statutory holidays, which is standard for banking, shipping, and legal deadlines.
04Can I calculate the duration between dates in the distant past or future?▾
Yes. The calculator leverages the standard JavaScript Date object, allowing you to compute durations between historical events or forward-looking projections spanning centuries.
05How does this tool differ from the Days Counter?▾
The Days Between Dates calculator measures the static duration between any two arbitrary calendar dates (Date A and Date B). The Days Counter, by contrast, is a dynamic daily tracker that measures elapsed streaks or countdowns relative to today's date.
06How many days are there between January 1, 2026 and December 31, 2026?▾
364 days. That surprises people who expect 365, but the difference measures the gap between the two dates, not a count of every date in the year. 364 days is exactly 52 weeks, about 11.96 months and 1.0 years on this tool. If you need to count both January 1 and December 31 themselves, for example for a booking that covers both days, add 1, giving 365.
07How do I count leave days between two dates for work?▾
Start with the calendar answer, then adjust for your workplace rule. Example: leave from Tuesday, March 10, 2026 to Tuesday, March 24, 2026 is a 14-day difference, 15 calendar days if you count both the first and last day, and 11 weekdays inside that inclusive span. Most HR teams count working days only, so check whether your employer excludes weekends and public holidays before you submit the number.
08Why does the tool show 311.96 months for exactly 26 years?▾
Because months are calculated with an average, not from the real calendar. Someone born on May 15, 2000 has lived 9,496 days by May 15, 2026, their 26th birthday. Dividing by the average month (30.44 days) gives about 311.96 months, while dividing by the average year (365.25 days) gives exactly 26.0. Use days and years for exact answers; treat the months figure as a close estimate.
09What happens if I enter the end date before the start date?▾
Nothing breaks. The calculator uses the absolute difference between the two dates, so January 1 to December 31 gives the same 364 days whichever order you enter them in. That makes it safe for checking old records where the later date happens to be listed first.
Date Counter & Time Guides

Related Tools