Date Ranges & Sets

Consecutive Days Calculator

Identify uninterrupted runs of supplied dates.

--
days

--

Business Days
0
Weekend Days
0
Weeks
0.0
Total Hours
0 h

How Consecutive Days Calculator Works?

The Consecutive Days Calculator works by sorting a list of dates and grouping dates that follow each other with no gap into runs.

  1. 1

    Enter dates

    Paste or type a list of dates.

  2. 2

    Sort and deduplicate

    The calculator orders the dates and removes repeats.

  3. 3

    Group into runs

    A date that is exactly 1 day after the previous date extends the current run.

  4. 4

    Read the runs

    The result lists each run, its length and the longest run.

Consecutive Days Calculator Formula

The Consecutive Days rule is Dateₖ joins the current run when Dateₖ − Dateₖ₋₁ = 1 day.

Run continues if Dₖ − Dₖ₋₁ = 1
New run starts if Dₖ − Dₖ₋₁ > 1
Longest Streak = max(run lengths)
Dₖ:
The k-th date after sorting

Example: The dates Mar 2, 3, 4, 6, 7, 10, 11, 12, 13 (2026) form 3 runs: Mar 2–4 (3 days), Mar 6–7 (2 days) and Mar 10–13 (4 days). The longest streak is 4 days.

Consecutive Days Calculator Conversion Table

The table groups 5 date lists into runs.

Dates (2026)RunsLongest RunTotal Dates
Mar 2, 3, 4, 6, 7, 10, 11, 12, 1334 days9
Jan 1–7 (daily)17 days7
Jun 1, 3, 5, 741 day4
Dec 30, Dec 31, Jan 1 (2027)13 days3
Feb 27, Feb 28, Mar 113 days3

What is Consecutive Days Calculator?

A Consecutive Days Calculator is a tool that finds uninterrupted runs of dates in a list.

Runs cross month and year ends. February 28 and March 1, 2026 are consecutive, since 2026 has no February 29.

Streaks drive habit apps and attendance rules. Some leave policies require a medical note after 3 or more consecutive sick days.

What are the uses of Consecutive Days Calculator?

There are 5 main uses of the Consecutive Days Calculator: habit streaks, sick leave rules, login streaks, weather runs and shift limits.

  • Habit streaks

    People find their longest daily streak.

  • Sick leave rules

    HR teams find runs of consecutive absence days.

  • Login streaks

    Product teams measure consecutive active days.

  • Weather runs

    Meteorologists find heatwave runs of hot days.

  • Shift limits

    Managers check runs of consecutive working days.

Related Date Ranges & Sets Tools

View All 141 Tools →