Skip to content

Wellbeing Guide

Habits: how long they really take to form, and what helps you build or break one

Does a habit really take 21 days? How long habits take to form in studies, what helps new habits stick, how to break bad ones, and myths about willpower.

What a habit is: the psychological meaning versus everyday use

In everyday speech a habit is something you do often, but in psychology a habit is an action that is triggered automatically by situational cues that have been linked with it in the past. Repeating a simple action in the same situation means that, later, the situation alone sets the action off (Gardner et al., 2012). Because a habit is a process in which a cue creates an impulse to act, that impulse does not always turn into behaviour when it competes with a conscious decision (Gardner, 2015).

An action you first did for a goal, once repeatedly tied to the same place or the same preceding action, comes to be triggered by the situation directly, without going through the goal (Wood & Neal, 2007). That is why habits tend to last even after motivation or interest has faded (Gardner et al., 2012). In two diary studies in which people reported on their day every hour, people doing actions performed almost daily in stable settings were often thinking about something unrelated, and felt less stress (Wood et al., 2002).

Habits run even against what you want. People who habitually ate popcorn at the cinema, largely regardless of hunger or taste, ate as much stale popcorn as fresh, but not when they were somewhere other than a cinema or ate with their non-dominant hand (Neal et al., 2011). This guide uses research to set out how long a habit really takes to form, what helps a new one stick, how to break a bad one, and some common myths.

How long it takes: where the 21 days comes from, and the 66 days

The idea that a habit takes 21 days is widespread. Habit researchers explain that it appears to have come from anecdotes about patients who had plastic surgery and typically adjusted to their new appearance within 21 days (Gardner et al., 2012). In popular culture it is usually traced to the 1960 book Psycho-Cybernetics (Gardner et al., 2012; Singh et al., 2024).

One study actually measured it: 96 people chose an eating, drinking or activity behaviour to do daily in the same situation, such as “after breakfast”, for 12 weeks, and rated each day how automatic it felt. The 82 with enough data were analysed (the curve fitted for 62, and fitted well for 39), and the time it took for the behaviour to come close to each person’s own peak level of automaticity ranged from 18 to 254 days. As the study lasted 84 days, longer values are estimates from extending the curve (Lally et al., 2010). The often-quoted 66 days is this study’s median (Lally et al., 2010; Singh et al., 2024).

In a systematic review of 20 studies (2,601 people) on forming health-behaviour habits, only 4 reported how long it took: medians of 59 to 66 days and means of 106 to 154 days, with individual times from 4 to 335 days. The authors concluded that most health behaviours take 2 to 5 months to become automatic (Singh et al., 2024). In one of these, a healthy-eating study, the 59-day median was for those who formed a habit, and 23% reached the study’s threshold (Keller et al., 2021; Singh et al., 2024).

It also depends on the behaviour. In a study that used machine learning on the attendance records of 30,110 US gym members and the handwashing records of 3,124 hospital staff, measuring habit as how predictable behaviour became from context, going to the gym typically took 4 to 7 months while handwashing in hospital took a few weeks (9 to 10 shifts). The researchers suggested as one possible reason that gym attendance is a less frequent and more complex behaviour (Buyalskaya et al., 2023). What matters, in the end, is how consistently you repeat something in the same situation rather than the number of days: an action done several times a day would be expected to become a habit in less time than a once-weekly activity (Gardner et al., 2022).

What helps a new habit stick

A new habit takes hold when it is repeated with the same cue in the same situation. Choosing a cue within an existing daily routine, such as “when I go on my lunch break”, gives a convenient and stable starting point (Gardner et al., 2012). In a trial that randomised 192 people, linking a behaviour to a routine such as “after breakfast” or to a set time worked similarly, and actually repeating the plan was a key predictor of automaticity (Keller et al., 2021). A small exploratory study (50 people) also found that those told to floss after brushing tended to form stronger habits than those told to floss before, and flossed more often 8 months later (Judah et al., 2013). What is often called “habit stacking” is similar.

If-then plans that set when, where and what you will do also help. In a meta-analysis of 94 studies, people who made such plans reached their goals to a medium-to-large degree more than people who only set goals (d = 0.65; Gollwitzer & Sheeran, 2006; Rozental et al., 2018). A recent analysis of 642 tests found effect sizes of 0.27 to 0.66 depending on the kind of outcome, and larger effects when plans had a proper if-then form, people really wanted to reach the goal, and the plans were rehearsed (Sheeran et al., 2025). These studies did not measure habit formation itself, though. How to make such plans is covered in procrastination: what helps.

Start small and simple. Simpler actions become habits more quickly (Gardner et al., 2012). In a study that followed 111 new gym members for 12 weeks, consistency, a less complex routine, the environment and enjoying the exercise all predicted habit formation (Kaushal & Rhodes, 2015). For the same number of repetitions, habits grew stronger when the behaviour was pleasant or valued for its own sake, whereas thinking it useful or beneficial did not help (an exploratory study of 118 people; Judah et al., 2018).

Keep a record, and make it easy. In a meta-analysis of 138 experiments (19,951 people) that helped people monitor their progress towards a goal, those prompted to monitor reached their goals more than people in control conditions (d = 0.40), and the effect was larger when progress was physically recorded (Harkin et al., 2016). A Cochrane review found that placing food farther away reduced how much people ate (12 studies, 1,098 people), but most studies were in laboratories and the certainty of the evidence was low (Hollands et al., 2019).

Programmes built on habit principles have mostly modest effects. In a meta-analysis of 5 trials (630 people) of habit-based weight-loss programmes, participants lost an average of 1.4 kg more than control groups after 8 to 14 weeks (Cleo et al., 2020), and in a UK primary care trial that randomised 537 people, those given a habit leaflet lost 0.87 kg more than with usual care over 3 months, but after 2 years the usual-care group had lost a similar amount (Beeken et al., 2017). In a study testing 54 four-week programmes with 61,293 members of US gyms, the most effective one offered small rewards for returning after a missed workout (0.40 more weekly visits, 27% more, than a placebo control), but only 8% of the programmes still had a significant effect after they ended (Milkman et al., 2021).

Why repetition and surroundings matter more than willpower

It is easy to think that people with strong willpower are good at resisting temptation. Yet studies including one in which 205 adults recorded their desires for a week found that people with better self-control reported fewer attempts to resist temptation (Hofmann et al., 2012, as cited in Galla & Duckworth, 2015). A meta-analysis of 102 studies (32,648 people) also found that self-control was more strongly linked with automatic behaviours than with behaviours requiring conscious effort (de Ridder et al., 2012).

In six studies (2,274 people), people with more self-control had more settled good habits (in the first study, healthy snacking, exercising and regular sleep), and the researchers concluded that beneficial habits, perhaps more than effortful resistance, may be what links self-control with good outcomes. The studies were not experiments, however, so cause and effect cannot be confirmed (Galla & Duckworth, 2015). The “ego depletion” idea that willpower runs out with use also fared poorly: in a preregistered replication by 23 laboratories with 2,141 people following the same protocol, the effect was small (d = 0.04), with a 95% confidence interval (−0.07 to 0.15) that included zero (Hagger et al., 2016).

Intending is not enough. In a meta-analysis of 47 experiments that changed people’s intentions by a medium-to-large amount, behaviour changed only by a small-to-medium amount (compared with control groups, intention d = 0.66, behaviour d = 0.36; Webb & Sheeran, 2006). Among people who intended to exercise, 46% did not reach the recommended amount (Rhodes & de Bruijn, 2013), and a review notes that interventions that raise knowledge and good intentions typically bring only short-term change (Wood & Neal, 2016). So, for habits, arranging your routine and surroundings so you can repeat something at the same time and place may help more than willpower. Reaching for your phone without thinking is covered in smartphone overuse, and sleep habits in insomnia: what helps.

Breaking a bad habit: change the situation and plan a replacement

Breaking a bad habit is different from forming a new one and takes more effort (Gardner et al., 2012). Habits build up slowly and do not shift much with current goals or occasional exceptions (Wood & Neal, 2007). They do falter when the situation that triggers them changes: the exercising, newspaper reading and TV watching habits of students who transferred to a new university survived only when the setting stayed the same, and when it changed, students sometimes acted on their current intentions instead (Wood et al., 2005).

So the period right after a big change such as moving house may be a good time to start new habits. In a field experiment with 800 participants, an intervention promoting a sustainable lifestyle worked better among people who had recently moved, and the “window of opportunity” seemed to last about 3 months after the move (Verplanken & Roy, 2016). Searches for “diet”, gym visits and goal commitments also rise after moments that feel like a fresh start, such as a new week, month or year, or a birthday (Dai et al., 2014).

Plan what you will do instead, rather than what you will not do. Plans that only say what not to do, such as “I will not eat crisps”, actually strengthened the habit, especially when it was strong (Adriaanse et al., 2011a). Plans that named another action for the same situation could override the habit, but behaviour changed only when people really wanted that alternative (Adriaanse et al., 2011b). In a Swedish study that followed 1,066 people with New Year’s resolutions for a year, 55% of those who responded at one year said they had kept their resolution, and resolutions framed as doing something were kept more often than those framed as not doing something (58.9% vs 47.1%; Oscarsson et al., 2020).

For habits already set in stone, diary studies found that the most helpful approach was vigilant monitoring, noticing the moment and telling yourself not to do it. It did not weaken the habit itself, though, and in these studies avoiding the cue did not help with strong habits (Quinn et al., 2010). One review concludes that a two-pronged approach, breaking unhealthy habits while building healthy ones at the same time, is best for lasting change (Wood & Neal, 2016).

When it is more than a habit

For repetitive behaviours that are hard to stop on your own, such as nail biting, thumb sucking or tics, there is a behavioural therapy, delivered with a therapist, called habit reversal training (HRT). In a meta-analysis of 18 studies (575 people), it had a large effect compared with control conditions (d = 0.80; Bate et al., 2011). The individual studies were small, though. Tics are covered separately in tics and Tourette syndrome.

For trichotillomania, repeatedly pulling out one’s hair, a meta-analysis of 24 medication and behavioural therapy trials (857 people) found that behavioural therapy including habit reversal training also had a large benefit compared with control conditions (Farhat et al., 2020). For repeated skin picking there were only 2 randomised trials of habit reversal training, and the methods of the trials reviewed were of questionable quality (Lee et al., 2019). If such behaviours go on to the point of getting in the way of daily life, they may be conditions that need diagnosis and treatment, so talk to a professional.

If you keep going despite knowing it harms you, spend more and more time on it, and feel distressed or strongly pulled when you stop, it may be an addiction or a compulsion rather than a simple habit. In that case, see the guides on gaming disorder, gambling, smartphone overuse, alcohol use, drug addiction and OCD. The gaming guide also explains why gaming every day out of habit is not a disorder on its own.

Five common myths

Myth 1: A habit takes 21 days. The figure appears to come from anecdotes about how plastic-surgery patients adjusted (Gardner et al., 2012), and in a study that actually measured it, times varied widely, from 18 to 254 days (Lally et al., 2010). Contrary to the belief in a “magic number” of days, going to the gym took months and handwashing in hospital took weeks (Buyalskaya et al., 2023).

Myth 2: Miss one day and you have to start again. Missing one opportunity did not materially affect habit formation (Lally et al., 2010). Studies have found that the impact of a missed day was temporary and faded over time (Gardner et al., 2022). Just as rewarding people for coming back after a missed workout worked best, what matters is picking it up again the next day (Milkman et al., 2021).

Myth 3: You need strong willpower to form habits. People with more self-control tended to rely on good habits rather than gritting their teeth against temptation (Galla & Duckworth, 2015). That does not mean willpower plays no part: people who kept their New Year’s resolutions reported using more stimulus control, rewards and willpower than those who did not (Norcross & Vangarelli, 1988).

Myth 4: Enough motivation is all you need. Even large changes in intention changed behaviour less (Webb & Sheeran, 2006), and 46% of people who intended to exercise did not do as much as recommended (Rhodes & de Bruijn, 2013). Habits, by contrast, tend to last even after motivation or interest fades (Gardner et al., 2012).

Myth 5: Giving up after a few days means your will is weak. We found no study of quitting after exactly three days, but one study followed 200 people with New Year’s resolutions for 2 years. 77% kept their pledge for the first week but only 19% for 2 years, and even among those who succeeded, 53% slipped at least once, with an average of 14 slips over the 2 years (Norcross & Vangarelli, 1988). Slipping is common, and moments that make people want to start again, like a new week or month, keep coming (Dai et al., 2014).

Frequently asked questions

Q. How can I tell whether something has become a habit? A. If you find yourself doing it whenever the situation comes up, without having to think or make an effort, it is a sign it has become a habit (Gardner et al., 2012). Most research, too, measures this by asking people to rate it themselves (Gardner, 2015).

Q. Can I build several habits at once? A. We found no study that compared this directly. Since simpler actions become habits faster (Gardner et al., 2012), starting with one small habit is our suggestion.

Q. Do habit apps or habit trackers work? A. No particular app was tested in the studies here. But in experiments that prompted people to monitor their progress, they reached their goals more than people in control conditions, especially when they wrote it down (Harkin et al., 2016).

Q. Is it better to do it in the morning? A. In a small study of 48 students, those who stretched in the morning were estimated, by extending their curves, to reach automaticity sooner than those who stretched in the evening (Fournier et al., 2017), but this is not a rule. A systematic review also found morning habits generally stronger, though it was based on few studies (Singh et al., 2024).

Q. Can the Big Five test tell me whether I will form habits easily? A. No. The Big Five personality test looks at five personality traits, including conscientiousness, which is linked with steadiness; it does not predict whether habits will form easily.

References: 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://doi.org/10.3399/bjgp12X659466; Gardner, B. (2015), A review and analysis of the use of ‘habit’ in understanding, predicting and influencing health-related behaviour, Health Psychology Review, 9(3), 277-295, https://doi.org/10.1080/17437199.2013.876238; Wood, W., & Neal, D. T. (2007), A new look at habits and the habit-goal interface, Psychological Review, 114(4), 843-863, https://doi.org/10.1037/0033-295X.114.4.843; Wood, W., Quinn, J. M., & Kashy, D. A. (2002), Habits in everyday life: Thought, emotion, and action, Journal of Personality and Social Psychology, 83(6), 1281-1297, https://doi.org/10.1037/0022-3514.83.6.1281; Neal, D. T., Wood, W., Wu, M., & Kurlander, D. (2011), The pull of the past: When do habits persist despite conflict with motives?, Personality and Social Psychology Bulletin, 37(11), 1428-1437, https://doi.org/10.1177/0146167211419863; 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; 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; Keller, J., Kwasnicka, D., Klaiber, P., Sichert, L., Lally, P., & Fleig, L. (2021), Habit formation following routine-based versus time-based cue planning: A randomized controlled trial, British Journal of Health Psychology, 26(3), 807-824, https://doi.org/10.1111/bjhp.12504; 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; Gardner, B., Rebar, A. L., & Lally, P. (2022), How does habit form? Guidelines for tracking real-world habit formation, Cogent Psychology, 9(1), 2041277, https://doi.org/10.1080/23311908.2022.2041277 [preprint text: https://doi.org/10.31234/osf.io/umhtz]; Judah, G., Gardner, B., & Aunger, R. (2013), Forming a flossing habit: An exploratory study of the psychological determinants of habit formation, British Journal of Health Psychology, 18(2), 338-353, https://doi.org/10.1111/j.2044-8287.2012.02086.x; Gollwitzer, P. M., & Sheeran, P. (2006), Implementation intentions and goal achievement: A meta-analysis of effects and processes, Advances in Experimental Social Psychology, 38, 69-119, https://doi.org/10.1016/S0065-2601(06)38002-1; Rozental, A., Bennett, S., Forsström, D., Ebert, D. D., Shafran, R., Andersson, G., & Carlbring, P. (2018), Targeting procrastination using psychological treatments: A systematic review and meta-analysis, Frontiers in Psychology, 9, 1588, https://doi.org/10.3389/fpsyg.2018.01588; Sheeran, P., Listrom, O., & Gollwitzer, P. M. (2025), The when and how of planning: Meta-analysis of the scope and components of implementation intentions in 642 tests, European Review of Social Psychology, 36(1), 162-194, https://doi.org/10.1080/10463283.2024.2334563; Kaushal, N., & Rhodes, R. E. (2015), Exercise habit formation in new gym members: A longitudinal study, Journal of Behavioral Medicine, 38(4), 652-663, https://doi.org/10.1007/s10865-015-9640-7; Judah, G., Gardner, B., Kenward, M. G., DeStavola, B., & Aunger, R. (2018), Exploratory study of the impact of perceived reward on habit formation, BMC Psychology, 6(1), 62, https://doi.org/10.1186/s40359-018-0270-z; Harkin, B., Webb, T. L., Chang, B. P. I., Prestwich, A., Conner, M., Kellar, I., Benn, Y., & Sheeran, P. (2016), Does monitoring goal progress promote goal attainment? A meta-analysis of the experimental evidence, Psychological Bulletin, 142(2), 198-229, https://doi.org/10.1037/bul0000025; Hollands, G. J., Carter, P., Anwer, S., King, S. E., Jebb, S. A., Ogilvie, D., Shemilt, I., Higgins, J. P. T., & Marteau, T. M. (2019), Altering the availability or proximity of food, alcohol, and tobacco products to change their selection and consumption, Cochrane Database of Systematic Reviews, 2019(9), CD012573, https://doi.org/10.1002/14651858.CD012573.pub3; Cleo, G., Beller, E., Glasziou, P., Isenring, E., & Thomas, R. (2020), Efficacy of habit-based weight loss interventions: A systematic review and meta-analysis, Journal of Behavioral Medicine, 43(4), 519-532, https://doi.org/10.1007/s10865-019-00100-w; Beeken, R. J., Leurent, B., Vickerstaff, V., Wilson, R., Croker, H., Morris, S., Omar, R. Z., Nazareth, I., & Wardle, J. (2017), A brief intervention for weight control based on habit-formation theory delivered through primary care: Results from a randomised controlled trial, International Journal of Obesity, 41(2), 246-254, https://doi.org/10.1038/ijo.2016.206; Milkman, K. L., Gromet, D., Ho, H., Kay, J. S., Lee, T. W., Pandiloski, P., et al. (2021), Megastudies improve the impact of applied behavioural science, Nature, 600(7889), 478-483, https://doi.org/10.1038/s41586-021-04128-4; Hofmann, W., Baumeister, R. F., Förster, G., & Vohs, K. D. (2012), Everyday temptations: An experience sampling study of desire, conflict, and self-control, Journal of Personality and Social Psychology, 102(6), 1318-1335, https://doi.org/10.1037/a0026545 [as described in Galla & Duckworth, 2015]; Galla, B. M., & Duckworth, A. L. (2015), More than resisting temptation: Beneficial habits mediate the relationship between self-control and positive life outcomes, Journal of Personality and Social Psychology, 109(3), 508-525, https://doi.org/10.1037/pspp0000026; de Ridder, D. T. D., Lensvelt-Mulders, G., Finkenauer, C., Stok, F. M., & Baumeister, R. F. (2012), Taking stock of self-control: A meta-analysis of how trait self-control relates to a wide range of behaviors, Personality and Social Psychology Review, 16(1), 76-99, https://doi.org/10.1177/1088868311418749; Hagger, M. S., Chatzisarantis, N. L. D., Alberts, H., Anggono, C. O., Batailler, C., Birt, A. R., et al. (2016), A multilab preregistered replication of the ego-depletion effect, Perspectives on Psychological Science, 11(4), 546-573, https://doi.org/10.1177/1745691616652873; Webb, T. L., & Sheeran, P. (2006), Does changing behavioral intentions engender behavior change? A meta-analysis of the experimental evidence, Psychological Bulletin, 132(2), 249-268, https://doi.org/10.1037/0033-2909.132.2.249; Rhodes, R. E., & de Bruijn, G.-J. (2013), How big is the physical activity intention-behaviour gap? A meta-analysis using the action control framework, British Journal of Health Psychology, 18(2), 296-309, https://doi.org/10.1111/bjhp.12032; Wood, W., & Neal, D. T. (2016), Healthy through habit: Interventions for initiating & maintaining health behavior change, Behavioral Science & Policy, 2(1), 71-83, https://doi.org/10.1177/237946151600200109; Wood, W., Tam, L., & Witt, M. G. (2005), Changing circumstances, disrupting habits, Journal of Personality and Social Psychology, 88(6), 918-933, https://doi.org/10.1037/0022-3514.88.6.918; Verplanken, B., & Roy, D. (2016), Empowering interventions to promote sustainable lifestyles: Testing the habit discontinuity hypothesis in a field experiment, Journal of Environmental Psychology, 45, 127-134, https://doi.org/10.1016/j.jenvp.2015.11.008; Dai, H., Milkman, K. L., & Riis, J. (2014), The fresh start effect: Temporal landmarks motivate aspirational behavior, Management Science, 60(10), 2563-2582, https://doi.org/10.1287/mnsc.2014.1901; Adriaanse, M. A., van Oosten, J. M. F., de Ridder, D. T. D., de Wit, J. B. F., & Evers, C. (2011a), Planning what not to eat: Ironic effects of implementation intentions negating unhealthy habits, Personality and Social Psychology Bulletin, 37(1), 69-81, https://doi.org/10.1177/0146167210390523; Adriaanse, M. A., Gollwitzer, P. M., De Ridder, D. T. D., de Wit, J. B. F., & Kroese, F. M. (2011b), Breaking habits with implementation intentions: A test of underlying processes, Personality and Social Psychology Bulletin, 37(4), 502-513, https://doi.org/10.1177/0146167211399102; Oscarsson, M., Carlbring, P., Andersson, G., & Rozental, A. (2020), A large-scale experiment on New Year’s resolutions: Approach-oriented goals are more successful than avoidance-oriented goals, PLOS ONE, 15(12), e0234097, https://doi.org/10.1371/journal.pone.0234097; Quinn, J. M., Pascoe, A., Wood, W., & Neal, D. T. (2010), Can’t control yourself? Monitor those bad habits, Personality and Social Psychology Bulletin, 36(4), 499-511, https://doi.org/10.1177/0146167209360665; Bate, K. S., Malouff, J. M., Thorsteinsson, E. T., & Bhullar, N. (2011), The efficacy of habit reversal therapy for tics, habit disorders, and stuttering: A meta-analytic review, Clinical Psychology Review, 31(5), 865-871, https://doi.org/10.1016/j.cpr.2011.03.013; Farhat, L. C., Olfson, E., Nasir, M., Levine, J. L. S., Li, F., Miguel, E. C., & Bloch, M. H. (2020), Pharmacological and behavioral treatment for trichotillomania: An updated systematic review with meta-analysis, Depression and Anxiety, 37(8), 715-727, https://doi.org/10.1002/da.23028; Lee, M. T., Mpavaenda, D. N., & Fineberg, N. A. (2019), Habit reversal therapy in obsessive compulsive related disorders: A systematic review of the evidence and CONSORT evaluation of randomized controlled trials, Frontiers in Behavioral Neuroscience, 13, 79, https://doi.org/10.3389/fnbeh.2019.00079; Norcross, J. C., & Vangarelli, D. J. (1988), The resolution solution: Longitudinal examination of New Year’s change attempts, Journal of Substance Abuse, 1(2), 127-134, https://doi.org/10.1016/s0899-3289(88)80016-6; Fournier, M., d’Arripe-Longueville, F., Rovere, C., Easthope, C. S., Schwabe, L., El Methni, J., & Radel, R. (2017), Effects of circadian cortisol on the development of a health habit, Health Psychology, 36(11), 1059-1064, https://doi.org/10.1037/hea0000510

Found this useful? Pass it on

Send this guide to a friend or family member who might find it useful too.

Tests and guides to open next