Skip to content

Habit Streak Tracker

Count your current and longest streak the right way.

The reference day the streak is measured against.

Each date counts once, even if added twice.

Completed dates(3)
  • 2026-07-21
  • 2026-07-22
  • 2026-07-23

Current streak

3 days
Longest streak
3 days
Total days completed
3

A streak through yesterday still counts as current today; it only breaks once both today and yesterday are missed.

How the habit streak tracker works

A streak is a run of consecutive calendar days on which you completed the habit. This tracker takes your list of completion dates plus a reference date for “today”, then reports three numbers: your current streak, your longest streak, and your total days completed.

The method has four steps. First, completion dates are deduplicated, so a date logged more than once counts only once. Second, the dates are sorted in calendar order. Third, the tracker walks the sorted list and measures the gap between each date and the one before it. Two dates are part of the same run when they are exactly one calendar day apart. The longest streak is the longest such run anywhere in your history.

The current streak uses one extra rule. It is the run ending on the most recent completed date, but only if that date is today or yesterday. A run that reached yesterday is still “current” today, which gives you a grace period to log the day before it resets. The streak breaks (drops to 0) only once both today and yesterday are missing. Crucially, day gaps are counted by calendar date, not by elapsed hours, so a daylight-saving day of 23 or 25 hours still counts as a single day.

Worked example

Suppose you logged the habit on these dates: 2026-06-18, 2026-06-19, 2026-06-21, 2026-06-22, and today is 2026-06-22.

The tracker processes them as follows:

Step Result
Distinct dates (total days) 4
Gap 06-18 to 06-19 1 day (run continues)
Gap 06-19 to 06-21 2 days (run breaks)
Gap 06-21 to 06-22 1 day (run continues)
Longest streak 2
Current streak 2

There are two separate runs: 06-18 to 06-19 (two days) and 06-21 to 06-22 (two days). The missing 06-20 breaks them apart, so no run reaches three. The longest streak is 2. Because the most recent date (06-22) equals today, the current streak walks back from it while days stay adjacent: 06-22 and 06-21 are one day apart, but 06-21 and 06-19 are two days apart, so the current run stops at 2.

How to use it

  • Enter each completion as a calendar date in YYYY-MM-DD form. Order does not matter; the tracker sorts for you.
  • Set today to your local date. The current-streak grace period is measured against it.
  • Log a habit done at any hour of the day. Only the date counts, so late-night entries are safe.
  • Do not worry about double entries. Logging the same date twice changes nothing.
  • To keep a streak alive, record today’s date before the end of tomorrow, after which a one-day miss becomes a break.

Limitations

This tracker measures only the dates you give it, so its accuracy depends on logging honestly and consistently. It treats every habit as a simple daily yes or no: it does not handle goals scheduled a few times per week, “rest days” that should not count as a miss, partial completions, or intensity. A gap of even a single uncounted day will reset the current streak, which is strict by design. It is a record-keeping aid for motivation, not health or behavioral advice; use it to see your patterns, and rely on your own judgment for what a healthy routine looks like.

Frequently asked questions

Does the time of day I mark a habit done affect my streak?

No. The tracker works in whole calendar dates, so a 6 a.m. entry and an 11 p.m. entry on the same day are treated identically. Only the date itself matters, not the clock time, which is why logging late at night never costs you a day.

I forgot to log today but I did complete it. Is my streak gone?

Not yet. A run that reached yesterday still counts as current today, so you have until the end of tomorrow to record today's date before the streak resets. Once both today and yesterday are missing from your list, the current streak drops to zero, while your longest streak stays on record.

Why didn't logging the same habit twice in one day make my streak longer?

Duplicate dates collapse to a single day. The tracker counts distinct calendar dates, so marking a habit done twice on the same date adds nothing to your streak or your total days. Each date can contribute at most one to the count.

What happens to my streak when daylight saving time changes?

Nothing. Streak length is measured by counting calendar days between dates, not by dividing elapsed seconds, so a 23-hour or 25-hour clock-change day is still exactly one day. The day the clocks move never breaks an otherwise unbroken run.

Can my longest streak be larger than my current streak?

Yes, and that is common. The longest streak is the best run you have ever recorded, while the current streak only counts the run still active today. If you broke a long streak and started a new shorter one, the longest figure preserves your record.