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.

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.

How automatic a new habit feels, day by day
0% 50% 100% 0 21 66 100 Days of daily repetition Day 21: about 60% Day 21: about 60% Day 66: 95% Day 66: 95%
An illustration of the shape found in the London study: a fast start that levels off, here reaching 95% of its plateau on day 66. The steepest climb is in the first three weeks, which is why they feel like fast progress. Individual curves vary widely.

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

How long it took, from the fastest person to the slowest
0 100 200 300 days 21 days London study, 96 people: 18 to 254 days London study, 96 people: 18 to 254 days London study, 96 people: 18 to 254 days 2024 review of 20 studies: 4 to 335 days 2024 review of 20 studies: 4 to 335 days 2024 review of 20 studies: 4 to 335 days
The dot is the typical (median) person. The slowest times are projections past the end of each study.

A fair expectation is two to three months. Five would not be unusual.

Why some habits take longer

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.

  1. 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
  2. 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.
  3. 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.
  4. 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.
Joining a programme alone or with friends
Joined alone Joined with three friends, with support Finished the programme Joined alone: 76% 76% Joined with three friends, with support: 95% 95% Kept all the weight off Joined alone: 24% 24% Joined with three friends, with support: 66% 66%
Weight-loss trial of 166 people. “Kept it off” means all the weight lost was still off six months after the programme ended.

What this research cannot tell you

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

  1. Wood, Quinn & Kashy (2002). Habits in everyday life: Thought, emotion, and action. Journal of Personality and Social Psychology.
  2. Lally, van Jaarsveld, Potts & Wardle (2010). How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology.
  3. Singh, Murphy, Maher & Smith (2024). Time to form a habit: A systematic review and meta-analysis. Healthcare.
  4. Silverman & Barasch (2023). On or off track: How (broken) streaks affect consumer decisions. Journal of Consumer Research.
  5. Herman & Mack (1975). Restrained and unrestrained eating. Journal of Personality.
  6. Webb & Sheeran (2006). Does changing behavioral intentions engender behavior change? Psychological Bulletin.
  7. Ryan & Deci (2000). Self-determination theory and the facilitation of intrinsic motivation, social development, and well-being. American Psychologist.
  8. Mazar & Wood (2022). Illusory feelings, elusive habits: People overlook habits in explanations of behavior. Psychological Science.
  9. Gollwitzer & Sheeran (2006). Implementation intentions and goal achievement. Advances in Experimental Social Psychology.
  10. Harkin and colleagues (2016). Does monitoring goal progress promote goal attainment? Psychological Bulletin.
  11. Wing & Jeffery (1999). Benefits of recruiting participants with friends and increasing social support for weight loss and maintenance. Journal of Consulting and Clinical Psychology.