LevelHabit
BLOG

How Long Does It Take to Form a Habit? (Not 21 Days)

How Long Does It Take to Form a Habit? LevelHabit blog cover with pixel-art hero Remy and his German shepherd Atlas in his room

You've probably heard it: stick with something for 21 days and it becomes a habit. It's a nice, tidy number. It's also not what the research found.

So, how long does it take to form a habit? The short answer: in the best-known study, about 66 days on average, but anywhere from 18 to 254 days depending on the person and the habit. Here's where the 21-day idea came from, what the studies actually say, why some habits take longer, and how to get through the long middle.

The short answer

Where the 21-day myth comes from

Researchers at University College London went looking for the source of "21 days" and traced it to a self-help book from 1960. Its author, a plastic surgeon, wrote that patients took about 21 days to get used to their new face (UCL, 2012).

That's about getting used to a change, not about a behavior becoming automatic. Somewhere along the way the two ideas got mixed up, and "21 days" stuck. As the UCL researchers put it, it's "unfounded as a basis for habit formation."

What the research says

LevelHabit Habits list: Drink water on a 41-day streak, Read on a 15-day streak and Stretching on a 28-day streak, each with a 7-day check-in history
Three habits, three timelines. Each one gets there at its own pace.

The 66-day study

In the study most people mean when they say "66 days," 96 volunteers picked one eating, drinking or activity habit and did it every day in the same situation, like "after breakfast," for 12 weeks. Every day they rated how automatic it felt (Lally et al., 2010).

The pattern looked like a curve: the first repetitions gave the biggest jump, then the gains got smaller until they leveled off. For the people whose data fit that curve, the time to reach close to their peak ranged from 18 to 254 days, with a median of 66. The study ran for 84 days, so the longest times were forecasts of where people were heading (BPS Research Digest, 2010).

A 2024 review of 20 studies

A 2024 systematic review pulled together 20 studies with 2,601 people, covering habits like exercise, drinking water, flossing and healthy eating. Four studies measured how long habits took to form: medians of 59 to 66 days and averages of 106 to 154 days, with huge differences between people (4 to 335 days). The authors' takeaway: habits can start forming within about two months, but the time varies a lot. They also noted the evidence is still limited, since only a small number of studies were included (Singh et al., 2024).

Gym habits take months, handwashing takes weeks

A 2023 study used machine learning on more than 12 million gym attendance records and more than 40 million hospital handwashing records. Instead of a "magic number," it found that a gym habit typically took months to form, while a handwashing habit in the hospital took weeks (Buyalskaya et al., 2023).

Why some habits take longer

If your habit is taking longer than you hoped, that's normal. The research points to a few things that change the timeline:

What if you miss a day?

Good news: in the 66-day study, missing one day didn't materially affect how the habit formed. The habit-building picked right back up (Lally et al., 2010).

The catch: there was some evidence that lots of missed days, even spread out, added up and lowered how automatic the habit eventually got (BPS Research Digest, 2010). So a missed day isn't a reason to quit. Just do the next one.

How to make a new habit stick

LevelHabit Add a habit screen with a new good habit named Glass of water after breakfast, the Health category selected and Health ideas like Workout, Short walk, Vitamins and Floss
Build the cue into the habit: "Glass of water after breakfast."
  1. Start small. One glass of water, one page, one stretch. Simple habits got automatic faster.
  2. Tie it to a cue. Pick something you already do every day: "after breakfast," "after I brush my teeth." That's how the 66-day study set up habits.
  3. Keep the time and place the same. A stable routine was linked with stronger habits.
  4. Pick something you want to do. Self-chosen, enjoyable habits did better in the research.
  5. Try mornings if you can. In one study, the morning version of a habit formed sooner.
  6. Plan for about 10 weeks. UCL researchers suggest expecting a daily habit to take around 10 weeks, and say people find it reassuring that it gets easier as you go (Gardner et al., 2012).
  7. Track it. Seeing your check-ins add up keeps you going through the long middle. Here's what research says about habit trackers.
  8. If you miss a day, just do the next one. One miss doesn't erase your progress.

How LevelHabit helps during the long middle

Pixel-art hero Remy with locs, a full beard, a red flannel shirt and boots standing in his room next to his German shepherd Atlas, with a Level 19 XP bar in the LevelHabit app
Remy and his German shepherd Atlas at Level 19. Every check-in earns XP.

The hardest part of a new habit is the stretch between "this is new and exciting" and "I don't even think about it anymore." LevelHabit is a pixel-art habit tracker built to make that stretch more fun (see how it works):

Quick feedback and visible progress may help some people with ADHD stick with routines too. Our guide to habit trackers for ADHD goes deeper.

FAQ

How long does it take to form a habit?

In the best-known study, a median of 66 days, with a range of 18 to 254 days. A 2024 review found typical times of about two months or more. It depends on you and the habit.

Does it really take 21 days to form a habit?

No. The 21-day idea came from a 1960 self-help book about getting used to changes like a new face after surgery, not from habit research. Most habits in studies took longer.

Is 66 days a rule?

No. It's a median from one study. Some people got there in a few weeks, and others were on track to take most of a year. Treat it as a rough guide, not a deadline.

Does missing a day reset a habit?

No. Missing one day didn't materially affect habit formation in research. Lots of misses can add up, so just get back to it the next day.

Why do some habits form faster than others?

Simple habits, like drinking water, tend to get automatic sooner than bigger ones, like exercise. A stable cue, doing it consistently, and picking a habit you enjoy also seem to help.

Does it take longer with ADHD?

The studies above weren't about ADHD, so they don't give an ADHD-specific number. Small habits, clear cues and quick feedback may help, but a habit tracker isn't a treatment. If you think you might have ADHD, talk to a doctor or a qualified professional.

Ready to start your next habit?

Build your hero, pick your pet, and turn the next 66 days into XP.

Sign up free · Ages 13+


Sources

  1. Lally, P., van Jaarsveld, C. H. M., Potts, H. W. W., & Wardle, J. (2010). How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology, 40(6), 998–1009. https://doi.org/10.1002/ejsp.674
  2. Singh, B., Murphy, A., Maher, C., & Smith, A. E. (2024). Time to form a habit: A systematic review and meta-analysis of health behaviour habit formation and its determinants. Healthcare, 12(23), 2488. https://doi.org/10.3390/healthcare12232488
  3. Buyalskaya, A., Ho, H., Milkman, K. L., Li, X., Duckworth, A. L., & Camerer, C. (2023). What can machine learning teach us about habit formation? Evidence from exercise and hygiene. Proceedings of the National Academy of Sciences, 120(17), e2216115120. https://doi.org/10.1073/pnas.2216115120
  4. Gardner, B., Lally, P., & Wardle, J. (2012). Making health habitual: The psychology of ‘habit-formation’ and general practice. British Journal of General Practice, 62(605), 664–666. https://pmc.ncbi.nlm.nih.gov/articles/PMC3505409/
  5. Gardner, B. (2012). Busting the 21 days habit formation myth. UCL Health Behaviour Research Centre blog. https://blogs.ucl.ac.uk/bsh/2012/06/29/busting-the-21-days-habit-formation-myth/
  6. British Psychological Society Research Digest (2010). How to form a habit. https://www.bps.org.uk/research-digest/how-form-habit
← More from the blog

Related: Do habit trackers actually work? · Habit tracker for ADHD: a practical guide