How Long Does It Really Take to Form a Habit? Science Says Not 21 Days
Photo by Bảo Minh on Pexels
Health & Safety

How Long Does It Really Take to Form a Habit? Science Says Not 21 Days

November 1, 2026•8 min read

We’ve all heard the claim: it takes 21 days to form a habit. This tidy number has been repeated so often that it’s become folk wisdom, promising a quick fix for everything from exercise to healthy eating. But is there any truth to it? The short answer is no—and the real science is far more nuanced, and far more interesting.

The Origin of the 21-Day Myth

The 21-day myth is often traced to Maxwell Maltz, a plastic surgeon who noticed in the 1950s that patients seemed to take about 21 days to adjust to their new appearance after surgery. In his 1960 book Psycho-Cybernetics, Maltz wrote that “it requires a minimum of about 21 days for an old mental image to dissolve and a new one to jell.” Notice the word minimum—Maltz never claimed that habits form in exactly 21 days, nor that the process is uniform across behaviors. Yet the idea was simplified and repeated, eventually becoming a cultural shorthand for habit change.

What the Research Actually Says

The most widely cited study on habit formation comes from Phillippa Lally and colleagues at University College London, published in 2009 in the European Journal of Social Psychology. The researchers asked 96 participants to choose a new eating, drinking, or activity behavior and perform it daily in response to a cue for 12 weeks. They tracked how automatic the behavior felt over time.

The results were striking: the average time to reach a plateau of automaticity was 66 days, but the range was enormous—from 18 days to 254 days. In other words, some people formed habits relatively quickly, while others took more than eight months. The study also found that missing an occasional opportunity to perform the behavior did not significantly impair habit formation. This challenges the common belief that a single missed day ruins progress.

Lally’s study also revealed that the complexity of the behavior matters. Simple actions, like drinking a glass of water after breakfast, became automatic more quickly than complex ones, like doing 50 sit-ups each morning. The researchers concluded that habit formation is a gradual process, and that the 21-day rule is an oversimplification.

Why Habits Take Time: The Neuroscience of Automaticity

To understand why habits take varying amounts of time, it helps to look at what’s happening in the brain. Habits are learned associations between a cue and a response. When you repeat a behavior in a consistent context, the brain gradually shifts control from goal-directed systems (which require deliberation and effort) to automatic systems (which are triggered by the context).

This shift is thought to involve the basal ganglia, a set of structures deep in the brain that play a key role in procedural learning and habit formation. Research in animals has shown that as a behavior becomes habitual, activity in the basal ganglia changes, and the behavior becomes less dependent on the prefrontal cortex—the brain region responsible for planning and decision-making. In a sense, the habit becomes “stamped in” by the cue.

However, the timeline for this neural shift varies depending on the behavior, the individual, and the context. There is no fixed number of repetitions that guarantees automaticity. The process is gradual and continuous, not a switch that flips after a set number of days.

Factors That Influence Habit Formation

Several factors can speed up or slow down habit formation. One is the consistency of the cue: performing the behavior in the same context each day strengthens the association. Another is the reward: behaviors that are inherently pleasurable or that provide immediate benefits are more likely to become habitual. Conversely, behaviors that are unpleasant or that have delayed rewards take longer.

Individual differences also matter. Some people appear to be more habit-prone than others, and personality traits such as conscientiousness have been linked to better habit formation. Stress and fatigue can impair the ability to form new habits, as can competing goals and a chaotic environment.

Lally’s study found that missing a single opportunity did not derail habit formation, but frequent interruptions may slow the process. The key is to get back on track as soon as possible.

The Role of Context and Cues

Much of the research on habit formation emphasizes the importance of context. Habits are cue-driven: they are triggered by specific situations, times, places, or emotional states. This is why moving to a new home or changing jobs can disrupt existing habits—the cues that triggered the old behaviors are no longer present.

To build a new habit, it helps to tie it to a consistent cue. For example, if you want to start flossing, you might do it immediately after brushing your teeth. The cue (brushing) becomes a trigger for the new behavior (flossing). Over time, the association strengthens, and the behavior becomes automatic.

How to Apply the Science

Given that habit formation takes longer than 21 days for most people, what can you do to increase your chances of success? First, choose a simple behavior and a consistent cue. Start small: a behavior that is too ambitious may require more time and effort to become automatic. Second, be patient. Expect that it may take weeks or even months for the behavior to feel automatic. Third, don’t be discouraged by occasional lapses. Missing a day is not a failure; it’s a normal part of the process. Fourth, focus on repetition in the same context. The more consistent you are, the stronger the cue-response association will become.

Finally, remember that habit formation is not an all-or-nothing process. Automaticity exists on a continuum, and you may find that a behavior becomes easier and more routine over time even if it doesn’t feel completely automatic. The goal is progress, not perfection.

Real-Life Examples of Habit Formation

To make this concrete, consider two common habits: drinking a glass of water after waking up and going for a 20-minute walk after dinner. The water habit is simple and has an immediate reward (quenching thirst), so it might become automatic in a few weeks. The walking habit, while not complex, requires more effort and planning, so it may take several months to feel automatic. This variability is normal and expected.

For dog owners, habit formation applies to pets too. Dogs learn routines through consistent cues—like going to the door to signal a walk, or sitting before meals. If you’re curious about why dogs sometimes engage in odd behaviors like eating grass, you might wonder if it’s a habit or a health issue. Our article Why Does My Dog Eat Grass? (And Is It Safe?) explores this common canine habit. Similarly, licking is often a learned behavior; learn more in Why Does My Dog Lick Me? The Gross, Fascinating Truth Behind The Slobber.

Common Myths and Misconceptions

Beyond the 21-day rule, several other myths persist. One is that habits become automatic after a fixed number of repetitions. Research shows there’s no magic number—it depends on the behavior and the person. Another myth is that missing a day ruins your progress. Lally’s study found that occasional lapses don’t significantly impair habit formation. Finally, some believe that habits are either fully formed or not at all; in reality, automaticity is a continuum.

How Habit Science Relates to Pet Care

Understanding habit formation can also improve your pet’s health. For instance, establishing a consistent routine for flea and tick prevention is crucial. Our guide The Best Tick And Flea Prevention For Dogs In 2026: Oral Vs Topical can help you choose the right method and stick to a schedule. Similarly, if your dog suffers from chronic scratching, it might be linked to gut health; see Stop the Scratching: The Hidden Secret Behind Dogs, Gut Health & Probiotics for insights. And for a broader look at how science can extend your dog’s life, check out Can Science Help Dogs Live Longer And Healthier Lives?.

Conclusion

The 21-day myth is just that—a myth. Research suggests that habit formation takes, on average, about 66 days, but the range is wide, from 18 to 254 days. The process depends on the behavior, the person, and the context. By understanding the science of habit formation, we can set more realistic expectations and design strategies that work with our brains, not against them. So the next time you hear that you can form a habit in three weeks, you’ll know better: real change takes time, but with patience and consistency, it’s within reach.

Source: University College London

You might also like

Related Articles