How long does it take to build a habit? About 66 days, not 21
For most people, about two months. Depending on the habit and the person, anywhere from three weeks to most of a year. The famous “21 days” was never a research finding.
Here is what researchers have measured about how habits form, where motivation fits, and what the data can and cannot tell us.
- Typical time: 59 to 66 days across studies.
- Range: 18 to 254 days in the best-known study.
- A missed day does not send you back to zero.
- Simple habits, like a glass of water, form faster than exercise.
- Motivation helps you start. It predicts poorly whether you continue.
What counts as a habit
In psychology a habit is narrower than “something I do often”. It is an action that a situation triggers without you deciding: you finish dinner and find yourself at the sink. The situation is the cue, and the link between cue and action is what gets built by repetition.
These links run a large part of the day. When researchers asked people to write down what they were doing every hour, between 35% and 43% of the actions recorded were things they did almost daily in the same place, usually while thinking about something else.1 That is what a habit gives you: the action gets done, and your attention stays free. Building one means it no longer depends on remembering or on feeling motivated.
Where “21 days” came from
In 1960 a plastic surgeon, Maxwell Maltz, wrote in his book Psycho-Cybernetics that his patients needed “a minimum of about 21 days” to get used to a new face or the loss of a limb. It was an observation about adjusting to a change in how you see yourself, and it came with the word “minimum”.
The book sold millions of copies. Over the years the “minimum” was dropped, the subject shifted from self-image to habits, and a surgeon’s remark became a rule. Nobody had measured anything.
What the research found
The first study to measure it properly came from University College London in 2010. Phillippa Lally and her colleagues asked 96 volunteers to pick one new eating, drinking or exercise behaviour and do it every day after the same cue: a piece of fruit with lunch, a 15-minute run before dinner. For 84 days the volunteers reported whether they had done it and how automatic it felt.2
Automaticity rose quickly in the first weeks and then levelled off. A habit forms along a curve; there is no day on which it switches on. The typical volunteer reached 95% of their plateau after 66 days.
The curve also shows why 21 days feels plausible. Three weeks in, the steepest part is behind you and the action is noticeably easier. But on a curve like this one you are a little over halfway, and the action still needs a decision on a bad day.
How wide the range is
66 days is the middle of a very wide spread. In the London study the fastest volunteer took 18 days and the slowest was projected to need 254.2
A 2024 review from the University of South Australia gathered 20 studies with 2,601 participants. Where studies reported how long it took, the typical time was again 59 to 66 days, some averages ran from 106 to 154 days, and individuals ranged from 4 days to 335.3
A fair expectation is two to three months. Five would not be unusual.
Why some habits take longer
- How much the habit asks of you. In the London study, exercise habits took roughly one and a half times as long to form as eating or drinking ones.2
- How steady the cue is. The same time and place each day builds the link faster than “sometime today”.
- How often you get to repeat it. Repetitions are what build the habit. Something you do three times a week gets fewer of them per month than something you do daily.
- You. Two people doing the same thing can be months apart. The range in every study is wide.
What happens when you miss a day
To the habit itself, very little. In the London study, missing a single opportunity did not materially affect how the habit formed. The curve carried on from where it was.2
That finding is narrow. It is about one missed day, not about missing often. Repetition is still what builds the habit, and nothing in the study suggests that frequent gaps are harmless.
What a missed day does to your motivation is a separate question, and there the evidence is less comforting. Streaks are a good example. Across seven studies, people who were shown an unbroken run of their own past behaviour were more likely to keep going than people shown a run with a break in it. The effect came from how the record was displayed, not from what they had actually done, and it was stronger when they blamed the break on themselves.4 So a streak is a real motivator while it lasts, and a real discouragement on the day it ends.
Dieting research found something similar long ago. In a classic experiment, dieters who had been made to break their diet ate more afterwards, not less.5 Psychologists later nicknamed this the “what-the-hell effect”. The lapse did little damage. Treating it as proof that the attempt had failed did the rest.
Where motivation fits
When a routine breaks down, most of us blame motivation: I stopped because I lost the drive. The research gives motivation a smaller and more specific role.
Wanting is not doing. A review of 47 experiments looked at what happens when people are successfully persuaded to intend something. A medium-to-large rise in intention produced only a small-to-medium change in what they actually did.6 Motivation gets you started. It is a weak guarantee that you will continue.
The kind of motivation matters. Self-determination theory, one of the most tested ideas in the field, separates doing something because you enjoy or value it from doing it for a reward or to avoid guilt. The first kind lasts longer, and it grows when you feel that you chose the activity, that you are getting better at it, and that you are doing it alongside people you care about.7
We misjudge our own motivation. Students asked why they drink coffee said tiredness mattered about twice as much as habit. When the same students logged their tiredness and their coffee every two hours for a week, habit predicted their coffee drinking just as well as tiredness did.8 We feel our moods and intentions, so we give them the credit. Habits run quietly and get overlooked.
This has a practical consequence. If you believe motivation is what keeps a routine going, a flat, unmotivated week looks like proof that it is over. But motivation was always going to rise and fall. A habit is useful precisely because it asks less of it.
What seems to help
None of this is a recipe. These are four things with good evidence behind them.
- Tie it to something you already do. “After I pour my coffee, I stretch for five minutes” works better than “I will stretch more”. Psychologists call this an implementation intention; the popular “habit stacking” is one version of it. A review of 94 tests found that it has a medium-to-large effect on whether people reach their goal.9
- Make it small enough for a bad day. Simple habits form faster, and the version you can still do when you are tired is the one that gets repeated.
- Keep a record, and count the partial days. Across 138 experiments, people who tracked their progress were more likely to reach their goal, and more so when they wrote it down or shared it.10 If your routine has five parts and you did three, record three. Scoring that day as a failure hides real repetitions.
- Do it with someone. In a weight-loss trial of 166 people, those who joined with three friends and were given ways to support each other were far more likely to finish and to keep the weight off than those who joined alone.11 That trial measured weight, not automaticity, so treat it as a pointer.
What this research cannot tell you
- The studies are small and short. The best-known followed 96 volunteers for 12 weeks. The longest durations quoted here are projections from a curve, not something anyone observed.
- Almost everything is self-reported. “How automatic does it feel?” is an answer on a questionnaire.
- Nearly all of it is about simple health behaviours: water, fruit, flossing, stretching, the gym. Whether the same numbers hold for writing, studying or saving money is mostly untested.
- None of it predicts your number. 66 days is the middle of a wide distribution, and you may sit far from it in either direction.
- Some points rest on a single study, or on a study of something adjacent. We have tried to say so each time.
The short version
Expect months, not weeks. Pick something small, do it at the same moment each day, and do not read much into a missed day or a flat week. Ask yourself now and then whether you still have to decide to do it. When the answer is no, it has become a habit.
About this article: it was written by the team behind Allez!, a habit tracker. We are not researchers. We read the studies listed below and tried to summarise them fairly. If we got something wrong, write to hey@joinallez.com and we will correct it.
The studies behind this
- Wood, Quinn & Kashy (2002). Habits in everyday life: Thought, emotion, and action. Journal of Personality and Social Psychology.
- Lally, van Jaarsveld, Potts & Wardle (2010). How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology.
- Singh, Murphy, Maher & Smith (2024). Time to form a habit: A systematic review and meta-analysis. Healthcare.
- Silverman & Barasch (2023). On or off track: How (broken) streaks affect consumer decisions. Journal of Consumer Research.
- Herman & Mack (1975). Restrained and unrestrained eating. Journal of Personality.
- Webb & Sheeran (2006). Does changing behavioral intentions engender behavior change? Psychological Bulletin.
- Ryan & Deci (2000). Self-determination theory and the facilitation of intrinsic motivation, social development, and well-being. American Psychologist.
- Mazar & Wood (2022). Illusory feelings, elusive habits: People overlook habits in explanations of behavior. Psychological Science.
- Gollwitzer & Sheeran (2006). Implementation intentions and goal achievement. Advances in Experimental Social Psychology.
- Harkin and colleagues (2016). Does monitoring goal progress promote goal attainment? Psychological Bulletin.
- Wing & Jeffery (1999). Benefits of recruiting participants with friends and increasing social support for weight loss and maintenance. Journal of Consulting and Clinical Psychology.