Updated March 14, 2026

Days Between Dates Calculator

To find the days between two dates, subtract the earlier date from the later date. The calculator counts total calendar days, business days, and weekend days, with options to include the end date or exclude holidays.

Key Takeaways

  • The days between two dates equals the absolute difference, accounting for month lengths and leap years.
  • Business days count only Monday through Friday, typically 260 weekdays per year before holidays.
  • Including or excluding the end date changes the count by exactly one day, so choose based on your use case.
  • Leap years add one extra day (February 29) every four years, except for most century years.
  • US federal holidays total 11 per year; subtracting them from weekdays gives approximately 249 working days.
  • The formula for days between dates is: End Date minus Start Date (plus 1 if including both endpoints).

How to Count Days Between Two Dates

The core formula for counting days between two dates is straightforward: Days = End Date - Start Date. In practice, the calculation must account for months of different lengths (28, 29, 30, or 31 days) and leap years. For example, the number of days from January 15 to March 15 is 59 in a regular year but 60 in a leap year because February has 29 days instead of 28. Maya Singh, a student in Pinewood Falls, uses this calculation every semester to count the days remaining until final exams.

When counting by hand, add up the remaining days in the start month, the full days in each intermediate month, and the elapsed days in the end month. From March 10 to June 5: March has 21 remaining days (31 minus 10), April has 30 days, May has 31 days, and June contributes 5 days, totaling 87 days. This manual approach works but is tedious and error-prone for long date ranges that span many months or years. The calculator above handles all of this math instantly.

Whether you include the end date depends on what you are measuring. If you started a project on Monday and finished on Friday, the elapsed time is 4 days (exclusive), but you worked on 5 calendar dates (inclusive). Rental agreements and hotel bookings often count inclusively, while age calculations and financial interest periods typically count exclusively. The age calculator uses exclusive counting by default, which is the standard convention for measuring elapsed time.

Calendar Days vs. Business Days

Calendar days include every day of the week without exception. Business days, also called working days or weekdays, count only Monday through Friday. The distinction matters in many professional and legal contexts. Shipping carriers typically quote delivery times in business days, so "3 to 5 business days" could mean up to 7 calendar days if the shipment starts on a Thursday. Priya Patel, a marketer in Pinewood Falls, tracks her campaign timelines in business days because her clients expect deliverables on weekdays only.

A standard year contains 365 calendar days, which breaks down to 52 full weeks (364 days) plus 1 extra day. That gives exactly 260 weekdays and 104 or 105 weekend days per year. After removing the 11 US federal holidays that fall on weekdays, a typical year has approximately 249 to 251 business days. Knowing this ratio helps with project estimation: a 6-month project (roughly 182 calendar days) contains about 130 business days, not 182. The hours calculator can help convert those business days into total working hours for billing purposes.

Legal deadlines often specify "business days" or "calendar days" explicitly. According to the Internal Revenue Code (26 U.S.C. 7503), if a tax deadline falls on a Saturday, Sunday, or legal holiday, the filing deadline shifts to the next business day. Contract law similarly distinguishes between the two, and using the wrong type of day count can result in missed deadlines. Always verify which counting method applies to your specific situation.

Leap Years and Date Calculations

Leap years add complexity to date calculations because February gains an extra day. A leap year occurs when the year is divisible by 4, except for century years (1900, 2100) unless the century year is also divisible by 400 (2000, 2400). This rule means the years 2024 and 2028 are leap years, but 2100 will not be. The Gregorian calendar system averages 365.2425 days per year through this pattern, keeping the calendar aligned with Earth's orbital period of approximately 365.2422 days.

For any date range that crosses February in a leap year, your day count will be one more than it would be in a non-leap year. Maya Singh noticed this when planning a spring break trip: the 60 days from January 15 to March 16, 2024 (a leap year) would have been only 59 days in 2023. The calculator above automatically detects leap years in your date range and flags it in the results so you know the count is leap-year-adjusted.

The US Naval Observatory maintains authoritative calendar data for the United States. Their tables confirm that the 400-year cycle of the Gregorian calendar contains exactly 146,097 days, which divides evenly by 7, meaning the calendar repeats its day-of-week pattern every 400 years. This mathematical precision is why modern date calculators can accurately compute dates thousands of years apart.

US Federal Holidays Reference

The calculator excludes 11 US federal holidays when the holiday option is enabled. These holidays are established by 5 U.S.C. 6103 and observed by all federal government agencies, banks, and many private employers. Some holidays fall on fixed dates while others follow a "floating" rule tied to a specific weekday. The table below lists all 11 holidays and their date rules.

Holiday Date Rule
New Year's DayJanuary 1Fixed date
Martin Luther King Jr. Day3rd Monday in JanuaryFloating
Presidents' Day3rd Monday in FebruaryFloating
Memorial DayLast Monday in MayFloating
JuneteenthJune 19Fixed date
Independence DayJuly 4Fixed date
Labor Day1st Monday in SeptemberFloating
Columbus Day2nd Monday in OctoberFloating
Veterans DayNovember 11Fixed date
Thanksgiving Day4th Thursday in NovemberFloating
Christmas DayDecember 25Fixed date

Source: US Office of Personnel Management

When a fixed-date holiday falls on a Saturday, the federal government observes it on the preceding Friday. When it falls on a Sunday, the following Monday becomes the observed holiday. Private employers may follow different rules or observe additional holidays such as Good Friday, the day after Thanksgiving, or Christmas Eve. Priya Patel accounts for these extra company-specific holidays when building marketing campaign calendars that span the full year.

Common Uses for a Day Counter

A days-between-dates calculator serves dozens of practical purposes across personal and professional life. Project managers use it to calculate working days remaining before a deadline. Landlords count the exact number of rental days for prorated billing. Parents count days until a child's birthday or until school starts. Accountants calculate interest accrual periods, which depend on exact day counts between transaction dates.

In healthcare, day counting determines prescription refill schedules, treatment intervals, and insurance coverage periods. The CDC immunization schedule specifies minimum intervals between vaccine doses in exact numbers of days, not weeks or months, because precision matters for efficacy. Counting by calendar days rather than weeks avoids the ambiguity that can lead to doses given too early or too late.

Legal professionals rely on day counts for statutes of limitations, appeal filing deadlines, and contract performance periods. The Federal Rules of Civil Procedure define specific day-counting rules: when a period is stated in days, count every day including weekends and holidays, but if the last day falls on a weekend or holiday, the period extends to the next business day. Getting the count wrong by even one day can mean a missed filing deadline.

Days in Each Month Reference

Remembering the number of days in each month is fundamental to manual date calculations. The traditional knuckle method works by counting across the knuckles and valleys of a closed fist: knuckles represent 31-day months, valleys represent 30-day months (with February as the exception). The table below provides a quick reference.

Month Days Cumulative Days
January3131
February28 (29 in leap years)59 (60)
March3190 (91)
April30120 (121)
May31151 (152)
June30181 (182)
July31212 (213)
August31243 (244)
September30273 (274)
October31304 (305)
November30334 (335)
December31365 (366)

The cumulative column is especially useful for quick calculations within a single year. To find the days between March 10 and September 22, subtract the cumulative day number for March 10 (69) from September 22 (265), giving 196 days. This shortcut avoids counting through six individual months. For date ranges that span multiple years, add 365 (or 366 for a leap year) for each full year in between, then use cumulative day numbers for the partial years at each end.

The time duration calculator can help you go further by breaking down the result into hours, minutes, and seconds when you need that level of precision for billing or scheduling purposes.

This calculator provides date difference estimates for planning purposes. For legal deadlines, tax filings, or contractual obligations, always verify the applicable day-counting rules with a qualified professional. Holiday schedules may vary by state and employer.


Related Calculators

Frequently Asked Questions

How many days are between two dates?

To find the number of days between two dates, subtract the earlier date from the later date. For example, from January 1 to March 1 in a non-leap year is 59 days. This calculator handles the math automatically, accounting for varying month lengths and leap years.

Should I include the end date when counting days?

It depends on your purpose. If you are counting elapsed time (how many days passed), exclude the end date. If you are counting calendar dates that include both the start and end day (such as rental days or event dates), include the end date. Toggle the "Include end date" option in the calculator to match your needs.

What is the difference between calendar days and business days?

Calendar days include every day on the calendar, including Saturdays, Sundays, and holidays. Business days (also called working days or weekdays) count only Monday through Friday, excluding weekends. Some calculations also exclude federal holidays. The distinction matters for shipping estimates, legal deadlines, and project timelines.

How do leap years affect the days between dates calculation?

A leap year adds one extra day (February 29) to the calendar, making the year 366 days instead of 365. If your date range spans February in a leap year, the total count increases by one day. Leap years occur every 4 years, except for century years not divisible by 400. The calculator accounts for leap years automatically.

How many business days are in a year?

A typical year has 260 weekdays (52 weeks times 5 weekdays each). After subtracting 11 US federal holidays that fall on weekdays, a standard work year contains approximately 249 to 251 business days. The exact number varies because some holidays fall on weekends and may be observed on adjacent weekdays.

Which US federal holidays does this calculator exclude?

When the "Exclude US federal holidays" option is enabled, the calculator removes 11 holidays: New Year's Day, Martin Luther King Jr. Day, Presidents' Day, Memorial Day, Juneteenth, Independence Day, Labor Day, Columbus Day, Veterans Day, Thanksgiving Day, and Christmas Day. These match the official US federal holiday schedule recognized by the Office of Personnel Management.

How do I calculate days between dates manually?

To calculate manually, count the days remaining in the start month, add the total days for each full month in between, then add the days in the end month. Remember that months have different lengths: 31 days (Jan, Mar, May, Jul, Aug, Oct, Dec), 30 days (Apr, Jun, Sep, Nov), and 28 or 29 days (Feb). This manual method is error-prone, which is why a calculator is more reliable.