Does it take 21 days to form a habit?
Short answer: no. The 21-day rule is one of the most repeated ideas in self-help, but it does not come from habit research, and the studies we have point to a longer and much more variable timeline.
In the best-known study, people needed a median of 66 days for a new daily behaviour to reach its peak automaticity, and individual times ranged from 18 to 254 days.1 A 2024 systematic review of health habits concluded that habits typically take 2 to 5 months to become automatic.2
That is not bad news. It just means that if day 21 arrives and your new habit still takes effort, nothing is wrong with you. You are right on schedule.
Where the 21-day idea came from
The number traces back to Psycho-Cybernetics (1960), a self-help book by Maxwell Maltz, a plastic surgeon. He noticed that patients took about three weeks to get used to a new face, and that a “phantom limb” persisted for about 21 days after an amputation.
“It usually requires a minimum of about 21 days to effect any perceptible change in a mental image.”3
Notice two things. Maltz was writing about the self-image, not about building routines like running or flossing. And he said a minimum of about 21 days. Over decades of retelling, “at least three weeks to notice a change” quietly became “21 days to form a habit”.
What the research actually shows
Lally et al. (2010). In a study of 96 volunteers, each person chose one eating, drinking or activity behaviour to do daily in the same context (for example, “after breakfast”) for 12 weeks and rated how automatic it felt every day.1 Among the 39 people whose data fitted the model well, the median time to reach 95% of their automaticity plateau was 66 days, with a range of 18 to 254 days.1
Singh et al. (2024). This systematic review and meta-analysis pooled 20 studies with 2,601 participants. The four studies that reported a timeline found medians of 59–66 days and means of 106–154 days, with individual times from 4 to 335 days.2 The authors note that most included studies (11) had a high risk of bias, so treat these as ranges, not precise targets.2
Kaushal & Rhodes (2015). Following 111 new gym members for 12 weeks, the researchers found that exercising at least four times per week for 6 weeks was the minimum requirement to establish an exercise habit.4
| Study | Who | Time to habit |
|---|---|---|
| Lally et al., 20101 | 96 volunteers, daily eating, drinking or activity habits | Median 66 days (range 18–254) |
| Singh et al., 20242 | 20 studies, 2,601 participants | Medians 59–66 days, means 106–154 days (range 4–335) |
| Kaushal & Rhodes, 20154 | 111 new gym members | At least 4 sessions a week for 6 weeks (minimum) |
Why your timeline may be shorter or longer
The huge ranges are the real headline. A few factors seem to push the number up or down:
- Complexity. In Lally’s study, exercise habits took a median of 91 days to plateau, compared with 65 for eating and 59 for drinking. The groups were small and the difference was not statistically significant, but the authors note it fits the idea that more complex behaviours take longer.1
- Consistency. People who did the behaviour more consistently showed the clean, steady habit curve the researchers expected.1 In the gym study, consistency was one of the significant predictors of habit formation, along with low complexity, a supportive environment and enjoying the workout.4
- Timing and choice. The 2024 review found that morning practice and self-selected habits were generally linked to stronger habits. In one included study, a stretching habit took a mean of 106 days when done in the morning versus 154 days in the evening.2
The shape of progress matters too. Automaticity tends to rise faster in the early weeks and then level off toward a plateau, with each extra repetition adding a little less.1 So the first month often feels like the biggest change, even though the habit is not finished yet.
Missing a day will not reset you to zero
One of the most useful findings in Lally’s study gets far less attention than the 66 days: missing one opportunity to perform the behaviour did not materially affect the habit formation process.1 Automaticity dipped very slightly after a miss, and there were no longer-term costs from a single omission.1
That should change how you treat a bad day. The danger is not the missed day itself, it is deciding that the streak is “ruined” and quitting. Aim for “never miss twice” rather than “never miss”.
Do this today: plan for a realistic timeline
- Pick one small habit you actually want. Self-chosen, simple behaviours give you the best odds.
- Tie it to a fixed cue. Write it as “after X, I will Y”, for example “after breakfast, I drink a glass of water”. Same place, same moment, every time.
- Commit to a season, not three weeks. Put a check-in on your calendar about 10 weeks out instead of at day 21, and expect harder habits like exercise to take longer.
- Protect consistency over intensity. On a bad day, do a tiny version (one push-up, one page) so the cue still leads to the action.
- Plan your comeback now. Decide what you will do after a missed day, so a slip stays a slip.
- Watch how it feels, not just the count. The finish line is when the habit feels automatic, not a date on the calendar.
Frequently asked questions
Is the 21-day rule true?
Not as a rule for habits. It comes from Maxwell Maltz’s 1960 book Psycho-Cybernetics, which described a minimum of about 21 days for a change in self-image. Studies of real habits found a median of 59–66 days and wide individual ranges.
How long does it really take to form a habit?
In Lally et al. (2010) the median was 66 days, ranging from 18 to 254 days. A 2024 systematic review concluded that health habits typically take 2 to 5 months, depending on the person and the behaviour.
Does missing a day ruin a new habit?
No. Lally et al. found that missing one opportunity did not materially affect habit formation. What matters is getting back to it the next time.
How long does it take to build an exercise habit?
In a study of 111 new gym members, exercising at least four times a week for 6 weeks was the minimum needed to establish an exercise habit. Exercise may take longer than simpler habits like drinking water.
Sources
Every figure in this article comes from the studies below. Tap a number in the text to jump to its source.
- 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. doi.org/10.1002/ejsp.674
- 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. doi.org/10.3390/healthcare12232488
- Maltz, M. (1960). Psycho-Cybernetics: A new way to get more living out of life. (Quoted from the updated and expanded Perigee edition, 2015.) archive.org/details/psychocybernetic00malt
- Kaushal, N., & Rhodes, R. E. (2015). Exercise habit formation in new gym members: A longitudinal study. Journal of Behavioral Medicine, 38(4), 652–663. doi.org/10.1007/s10865-015-9640-7
This article is for general information and is not medical advice.
Give your habit the time it needs
Dotday helps you show up for the long run, with reminders, forgiving streaks and a habit strength score that tracks progress beyond day 21.