Tool Stack

Days Between Two Dates

Count days between two dates. Optional: include the end date.

Back to tools

What Is the Days Between Dates Calculator?

Counting the number of days between two dates sounds simple, but month-length variations and leap years make manual calculation surprisingly tricky. Our Days Between Dates calculator gives you the precise day count โ€” including or excluding the start or end day โ€” in one click.

This tool is used by professionals in project management, contract law, finance, and education to calculate deadlines, payment terms, probation periods, and more. Students use it for countdown timers to exams; HR teams use it to track probationary periods; lawyers use it to verify contract milestones. Whatever your need, our calculator handles it instantly and accurately.

How to Use It

  1. Enter a Start Date using the date picker.
  2. Enter an End Date for the period you want to measure.
  3. Check "Include end date in count" if you need an inclusive range (useful for rental or billing periods).
  4. Click Calculate โ€” the exact number of days appears immediately.

Key Features

  • Accurate day count between any two calendar dates
  • Handles leap years automatically โ€” no manual adjustment needed
  • Supports any date range, past or future
  • Runs entirely in your browser โ€” no server, no data storage
  • Free and unlimited โ€” use it as many times as you need

Use Cases

The days between dates calculator is a versatile tool relied upon across many industries and everyday situations:

  • Project deadlines โ€” calculate how many days remain until a delivery date
  • Payment terms โ€” verify net-30, net-60, or custom payment windows in contracts
  • Rental agreements โ€” count the exact duration of a tenancy or lease period
  • Age difference โ€” find the number of days between two people's birthdays
  • Event planning โ€” count down the days to a wedding, conference, or product launch

Frequently Asked Questions

  • By default, the calculator counts from the start date up to (but not including) the end date. If you want to count both the first and last day โ€” as is common in rental and billing periods โ€” check the "Include end date in count" checkbox before clicking Calculate.
  • Yes. There is no restriction on how many years apart the two dates can be. The calculator correctly handles year boundaries, century years, and leap years, so a range spanning decades is just as accurate as a range within the same month.
  • No practical limit. The tool uses JavaScript's built-in Date object, which can handle dates from roughly 271,821 BCE to 275,760 CE. For any realistic use case โ€” historical research, genealogy, or long-range planning โ€” you will not encounter a limit.
  • This calculator counts all calendar days, including weekends and public holidays. A Working Days calculator would exclude Saturdays, Sundays, and optionally public holidays. Use this tool when you need the total elapsed time; use a working days tool when you need business days only.