Skip to content

How long does it take to form a habit? What the research says

By Florian, maker of HabitLock ·

SHORT ANSWER

In the best known study, it took people a median of 66 days for a daily habit to feel automatic, with individual times ranging from 18 to 254 days. A 2024 review found medians of 59 to 66 days but averages of 106 to 154 days, so plan on about two months and often longer. Missing a single day does not reset your progress.

If you’ve ever started a habit on January 1st and given up by the 22nd because it still felt like hard work, you weren’t failing. You were running on a number that was never true.

The honest answer is “about two months, often more, and it varies a lot”. Below is where that comes from, where the 21 day idea comes from, and what the research says actually helps a habit stick sooner.

The 66 day study (Lally 2010)

The most cited study on this question comes from University College London. Phillippa Lally and colleagues asked 96 people to pick one daily eating, drinking or activity behaviour and repeat it for 84 days. 82 people finished.

The results, as summarised by the BPS Research Digest:

  • The median modelled time was 66 days to reach 95% of maximum automaticity.
  • The range was 18 to 254 days.
  • The 254 day figure is an extrapolation from the model, because the study only ran for 84 days.

Two more findings matter for real life. First, missing one opportunity “did not significantly impact the habit formation process”, but people who were very inconsistent did not form habits. Second, exercise habits took about 1.5 times as long to become automatic as eating and drinking habits in the sample, although the difference between behaviour types was not statistically significant.

So use 66 days as a rough benchmark. Some people got there in under three weeks. Others were still going long after the study ended.

What the 2024 review found

In late 2024, Singh, Murphy, Maher and Smith published a systematic review and meta analysis of habit formation in health behaviours. It covered 20 studies and 2,601 participants, though only 4 of those studies actually reported how long habits took to form.

What they found:

Measure Result
Median time to form a habit 59 to 66 days
Mean time to form a habit 106 to 154 days
Range across individuals 4 to 335 days

The gap between the median and the mean tells you something useful: the median is around two months in those studies, and some people take much longer. The authors say their results contradict the 21 day claim.

The review also looked at what predicted stronger habits (Singh review):

  • How often you do the behaviour
  • Time of day, with morning habits coming out stronger
  • Choosing the behaviour yourself rather than having it assigned
  • Enjoying it

One limitation: habit strength in these studies was self reported, using a questionnaire, not measured objectively.

Where the 21 day myth came from

The 21 day number traces back to Maxwell Maltz, a plastic surgeon, and his 1960 book Psycho-Cybernetics. He noticed that patients took a while to adjust to a changed appearance, and wrote that “it requires a minimum of about 21 days for an old mental image to dissolve and a new one to gel”.

Note the words “a minimum of about”. Over decades of retelling, that became “it takes 21 days to form a habit”, a much stronger claim that Maltz never tested. UCL researchers call 21 days “unfounded as a basis for habit formation”.

What speeds up habit formation

No trick turns 66 days into 10. But a few things have good evidence for making a habit more likely to stick, and some of them clearly help you get through the slow middle weeks.

Make an if/then plan

The strongest single tool in the research is the implementation intention: a plan in the form “If X happens, then I will do Y”. A meta analysis by Gollwitzer and Sheeran pooled 94 independent tests with more than 8,000 participants and found a medium to large effect on reaching goals (d = 0.65).

“Habit stacking”, the popular advice to attach a new habit to an existing routine, is essentially the same idea under a newer name. For example: “After I pour my morning coffee, I’ll do 5 pushups.”

Start small and pick something you like

The Singh review found that frequency, choosing the habit yourself and enjoying it all predicted stronger habits (Singh review). A small version of a habit is easier to do every day, which raises frequency, and easier to enjoy. Ten minutes of reading you look forward to beats an hour you dread.

Popular methods built on starting tiny, such as BJ Fogg’s Tiny Habits, are widely recommended, but I haven’t found a large trial testing that specific method. The case for starting small rests on the frequency and enjoyment findings above.

Record your progress

A meta analysis of 138 studies with 19,951 participants found that monitoring progress improves goal attainment (d = 0.40). The effect was larger when progress was physically recorded or reported publicly (APA). Writing it down, or ticking it off in an app, counts. If you’re choosing a tool, I compared options in the best habit tracker apps.

Reward the comeback, not just the streak

In a megastudy published in Nature, Milkman and colleagues tested 54 different four week programmes on 61,293 gym members. 45% of the programmes significantly raised weekly gym visits, by 9 to 27%. The best performer gave small rewards for returning after a missed workout.

That fits research on streaks. In Silverman and Barasch’s studies, people who saw an intact streak were more likely to keep going than people who saw a broken one (in one fitness app study, about 66% chose another exercise with an intact streak versus about 58% with a broken one). The drop was smaller when the streak could be repaired. A missed day hurts mostly because of how it makes you feel, so plan for the day after a miss.

Pair the habit with something you want

Pairing a habit with a treat, called temptation bundling, gives a modest lift. In a field experiment with 6,792 people, free audiobooks plus encouragement to listen only at the gym raised weekly workouts by about 10 to 12%. One way to set this up on your phone is to make your favourite app the reward: HabitLock, the app I make, keeps chosen apps locked until you log the day’s habit. If you want to compare tools that do this, see apps that lock your phone until you work out.

A practical 5 step plan

Here’s how I’d put the research together for a new habit starting tomorrow.

  1. Pick one habit you chose and actually like. One, not five. Self chosen and enjoyable habits formed stronger habits in the Singh review.
  2. Shrink it until it’s easy on a bad day. Two pages, five pushups, one minute of meditation. You can grow it later.
  3. Write your if/then plan. “After [existing routine], I will [habit] at [place].” Morning routines are a good anchor, since morning habits came out stronger in the review.
  4. Track it every day for at least 66 days. Put the date two months from now in your calendar and don’t judge the habit before then. For exercise, give it longer.
  5. Plan your comeback. Decide now what you’ll do the day after a miss, and give yourself a small reward for returning. One missed day doesn’t reset anything; two weeks of misses might.

If your main obstacle is your phone pulling you away before you start, how to stop doomscrolling covers the evidence on what helps.

Frequently asked questions

Does it take 21 or 66 days to form a habit?

Neither number is a rule. The 21 day figure comes from a 1960 book by a plastic surgeon, not a habit study. The 66 days comes from a 2010 UCL study and is a median; modelled estimates ranged from 18 to 254 days.

Does missing a day reset a habit?

No. In the UCL study, missing one opportunity did not significantly affect habit formation. What did hurt was being very inconsistent over many days.

Why do exercise habits take longer to form?

Exercise habits took longer in the UCL sample. The difference between behaviour types was not statistically significant, so treat that as a rough observation.

How long does it take to build a habit of working out?

Give yourself a few months and keep the context consistent. Exercise habits took longer in the UCL sample, although the study could not establish a reliable difference between behaviour types.

Do habit trackers help you form habits faster?

Tracking helps. A meta analysis of 138 studies found that monitoring progress improves goal attainment, with a larger effect when progress is physically recorded or shared publicly. No study shows a tracker shortens the time to automaticity itself.