How long it takes to form a habit, and whether streaks help
What research says about how long a habit takes to become automatic, how streaks are counted, and why one missed day matters less than you fear.
Open the Habit tracker Free, in your browser, nothing uploaded.
A habit tracker is simple: habits down the side, days across the top, a tick for each day you did it. Yet people keep using paper and app versions for years, because seeing a row of ticks grow is motivating. This article explains what is known about how long habits take to form, how the habit tracker counts streaks, and how to use the numbers without letting one bad day knock you off course. It is general information, not health advice. To fit the new habit into your week, give it a slot in the weekly planner; for one-off jobs rather than daily ones, use the daily task board; and for money habits such as paying bills on time, the bill calendar lays out the dates.
What it is
What a habit is. In psychology, a habit is a behaviour that has become automatic: the situation (after breakfast, getting off the bus) triggers it without much thought. Habits form by repeating the same action in the same situation.
How long does it take? A popular claim says 21 days, but it does not come from a study of habits. In a 2010 study by Phillippa Lally and colleagues at University College London, 96 volunteers each picked a new daily eating, drinking or exercise behaviour and rated how automatic it felt every day. For the typical (median) person, automaticity levelled off after about 66 days, but the spread was huge: from 18 to 254 days. Simple habits, such as drinking water with a meal, tended to become automatic more easily than exercise habits. The study also found that missing a single day did not materially set people back.
Streaks. A streak counts days in a row. The tracker uses two:
- Current streak: the run of ticked days ending today. If today is not ticked yet, it counts back from yesterday instead, so the evening is not wasted and the streak does not reset at breakfast.
- Best streak: the longest run of consecutive ticked days in all your history.
Month rate. The line under the grid is
ticks this month ÷ (habits × days so far this month) × 100
It is a gentler measure than a streak: missing one day in 30 moves it from 100% to about 97%, while the streak goes back to zero.
How to use it
- Type a habit, such as “Walk 20 minutes”, and press Add habit. The two example habits can be removed with Remove.
- Tick the box for each day you did the habit. Tick again to undo. Future days are locked.
- Read the right-hand column: current streak, best streak and ticks this month.
- Use the arrows to look at past months.
- Press Print month sheet for your ticks on paper, or Print blank sheet to fill in by hand.
- Tick Keep on this device to find your habits next visit (it is off at first), and use Export JSON for a backup.
A worked example
Someone starts “Read 10 pages” on 1 November and ticks every day except the 10th, 21st and 22nd.
- On the 9th, the streak is 9 days, best 9.
- On the 10th, before bedtime, it still shows 9: today is open, so the count starts from yesterday.
- On the 11th, after ticking, the streak restarts at 1 day; best stays 9.
- On the 20th: 10 days in a row (11th to 20th), so best becomes 10.
- On the 22nd, with the 21st missed and the 22nd not yet ticked, the streak is 0.
- On the 30th: streak 8 days (23rd to 30th), best 10, and the month line reads 27 of 30 possible ticks, 90%.
The streak fell to zero once, but 90% of days were done. By the Lally study’s figures, a simple habit like this is well on its way after a month, and one or two misses did not undo it.
Checked with the tools
The habit tracker’s streak rule lives inside its page script (src/tools/habit-tracker/Tool.astro), so the streaks() function and its date helpers were copied line for line into the chart script, with today passed in instead of read from the clock. Run in Node for each day of the made-up November above, it gave the streaks listed, including 9 on the open 10th and 0 on the 22nd, and the 27 of 30 month total.
The streak line is a sawtooth: it climbs one a day and drops back to 1 the day after a miss, and to 0 only when two days in a row are missed. The month rate, which stays between 86% and 100% all month, barely moves. Both are true; which one you watch changes how a slip feels.
Where it is used
- Health and fitness routines. Walking, stretching, drinking water, going to bed on time.
- Study. Daily reading, language practice, a page of maths.
- Work. Clearing the inbox, writing a few lines of a report, planning tomorrow.
Common mistakes
- Starting too many habits. Two or three at once is plenty; add more when the first ones feel automatic.
- Making the habit too big. “Read 10 pages” survives a busy day; “read a chapter” often does not.
- Quitting after a broken streak. One miss does little harm. Many people follow a “never miss twice” rule.
- No fixed cue. Tie the habit to something you already do every day, at the same time and place.
Questions people ask
Why can I not tick tomorrow? So a streak only counts days that have happened. You can still tick past days you forgot.
Should I aim for 66 days? Treat it as a typical figure, not a target. Simple habits may settle in weeks; harder ones take longer, and that is normal.
Does my data leave my device? No. It stays in this tab unless you tick Keep on this device, and then it stays in this browser only.
Sources
- Streak rules are fibub's own: a streak counts days in a row ending today, or yesterday if today is still open.
- Lally P, van Jaarsveld CHM, Potts HWW, Wardle J (2010). How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology 40(6): 998-1009 (96 volunteers; median 66 days to reach a plateau of automaticity, range 18 to 254; missing one opportunity did not materially affect the process).
If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.