Date Difference Calculator - Days Between Dates

Results
—
—

Calculate the exact difference between any two dates with our Date Difference Calculator. Enter a start and end date to get the result in calendar terms (years, months, days) plus the total day and week counts.

Calendar-based differences and total days answer different questions: "how many years, months, and days apart" follows how calendars actually work, while total days gives the exact elapsed count regardless of month lengths. Both are shown, so you can use whichever the task needs.

Common uses: project deadlines and countdowns, contract and lease terms, age and tenure calculations, pregnancy weeks, and historical date math. The calculation works for past and future dates alike — enter any future end date to count down to an event, or any past date to measure elapsed time.

Counting Days Between Two Dates (The Convention Matters)

Elapsed Days: The Inclusive vs Exclusive Question

The honest answer to "how many days between Monday and Wednesday?" depends on a convention. Elapsed days (what this calculator gives) is simple subtraction: March 10 minus March 1 is 9 days. Inclusive counting adds the starting day back: a 3-day event starting March 1 ends March 3, and touches 3 calendar dates. Neither is wrong - finance, project management, and pregnancy tracking each pick one by convention. If your deadline says "within 30 days of March 1," ask which rule applies before you count on it.

Why Day Math Isn't Month Math

A "month" is 28, 29, 30, or 31 days long, and a year is 365 or 366. So the interval March 31 → April 30 is 30 days, while March 31 → May 1 is 31 days - even though one spans a whole month and the other doesn't. The reliable mental model is the day number: convert each date to its count from some epoch and subtract. The calculator above also breaks the difference into years, months, and remaining days using proper calendar borrowing - which handles leap-day birthdays and month-end dates correctly, where hand arithmetic often slips.

Common Uses

  • Contract and invoice terms - net-30 and 60-day payment windows are counted in elapsed days.
  • Project planning - working backwards from a launch date to find the real start-by date.
  • Milestones - days until a birthday, deadline, or trip; weeks of pregnancy are day counts divided by seven.
  • Age verification - exact years, months, and days, not just the year you were born.

Counting Around Weekends

Raw day counts include Saturdays and Sundays. When a deadline depends on business days - bank processing, permit review, shipping cut-offs - the business days calculator skips weekends and optionally public holidays. And when you're counting forward from a date by a fixed number of days or months, the date add/subtract calculator does the calendar rolling for you, including month-ends like "60 days after January 31."

Formula
Difference = complete years + months + days between dates | Total days = floor((end − start) ÷ 86400000)

FAQ

How is the difference between dates calculated?
The tool counts complete calendar years first, then whole months, then remaining days — and separately shows the total day count, which is exact regardless of month lengths.
How do I count days between two dates?
Enter both dates and read the total days figure — it is the exact number of days from the start date to the end date, inclusive of the gap between them.
How many weeks between two dates?
The result panel shows total weeks (total days ÷ 7) alongside the year/month/day breakdown — handy for project planning and deadlines.
Can I calculate a future date difference?
Yes. Enter any future date as the end date to count down to deadlines, events, due dates, or holidays — the math works for past and future alike.

Embed this calculator on your site

Cite this page

About these results

Every calculation on this page runs locally in your browser using published, standard formulas — nothing you enter is sent to a server. Results are estimates for planning purposes and can differ from real-world conditions; always follow your local building code and the advice of a qualified professional for final decisions. You can read more about who builds and maintains these tools on our About page. About MateCalc.

Related Calculators