How Long Does It Take to Develop a Habit? What Science Says

It takes an average of 66 days to form a new habit, not the 21 days you’ve probably heard repeated everywhere. That 66-day figure comes from a widely cited study by Phillippa Lally and colleagues at University College London, which tracked how long people needed before a new behavior started feeling automatic. But averages only tell part of the story. Individual timelines varied enormously, and several specific factors determine where you’ll fall on that spectrum.

Where the 21-Day Myth Came From

The idea that habits take 21 days traces back to a 1960 book called Psycho-Cybernetics by Maxwell Maltz, a plastic surgeon turned psychologist. Maltz noticed that his patients typically needed about 21 days to adjust to their new appearance after surgery, or to adapt after an amputation. He loosely extended the idea to other life changes, like getting used to a new home. Somewhere along the way, “it takes about 21 days to adjust” got simplified into “habits form in 21 days,” and the claim stuck.

The problem is that adjusting to a new nose and building an automatic exercise routine are fundamentally different processes. When Lally’s team actually measured how long new behaviors took to become automatic, the results ranged widely. The average was 66 days, but some participants locked in simple habits much faster, while more complex behaviors took significantly longer. Twenty-one days is closer to the very beginning of the process for most people, not the finish line.

What “Forming a Habit” Actually Means

When researchers talk about a habit being “formed,” they mean the behavior has reached automaticity. You do it without deliberating, without motivating yourself, without much conscious thought. It’s the difference between reminding yourself to drink a glass of water every morning and just doing it because you’re on autopilot. Scientists measure this by asking people to rate how automatic a behavior feels: whether it requires effort, whether they do it without thinking, whether it would feel strange not to do it.

This is an important distinction. You can repeat a behavior every day for two weeks and still rely entirely on willpower to get it done. That’s consistency, but it’s not yet a habit. True habit formation means the behavior has shifted from something your decision-making brain manages to something handled by deeper, more automatic brain circuits. Your brain’s reward system plays a central role here. When you repeat a behavior and experience a positive outcome, your brain releases dopamine in a pattern that essentially stamps in the connection between the trigger and the action. Over many repetitions, the behavior gets encoded as a stimulus-response link: you encounter the trigger, and the action follows without deliberation.

Why Some Habits Form Faster Than Others

The complexity of the behavior matters enormously. A simple action like drinking a glass of water after breakfast requires almost no effort, planning, or discomfort. A 30-minute gym session involves changing clothes, traveling, physical exertion, and time management. More complex behaviors have more friction points, and each one slows the path to automaticity. The UCL study reflected this: participants working on simpler behaviors reached automaticity much sooner than those attempting demanding routines.

A systematic review and meta-analysis published in 2024 identified several other factors that significantly influence how quickly a habit takes hold:

  • Enjoyment. Behaviors you genuinely like doing become automatic faster. If you hate running but love swimming, the swimming habit will form more easily, even if the physical effort is comparable.
  • Self-selection. Habits you choose for yourself develop stronger automaticity than those imposed by someone else. Autonomy and personal motivation accelerate the process.
  • Timing. Morning habits tend to develop greater strength than those attempted later in the day, likely because mornings offer more consistent routines and fewer competing demands.
  • Specific planning. Deciding exactly when, where, and how you’ll perform the behavior (not just that you’ll do it “sometime today”) speeds up formation.
  • Context stability. Performing the behavior in the same environment, at the same time, after the same trigger creates stronger automatic associations. Changing the context each time essentially resets part of the learning process.
  • Preparatory routines. Building small supporting habits, like laying out exercise clothes the night before, creates a chain of cues that makes the target behavior easier to execute.

The Habit Loop: How Repetition Becomes Automatic

Every habit follows a loop with three core elements: a cue, a routine, and a reward. The cue is whatever triggers the behavior, whether that’s a time of day, a location, an emotional state, or a preceding action. The routine is the behavior itself. The reward is the positive outcome your brain registers afterward.

What makes this loop powerful is the craving that develops over time. After enough repetitions, your brain starts anticipating the reward the moment it encounters the cue. That anticipation is the craving, and it’s what drives the behavior forward without conscious effort. You walk into the kitchen in the morning and your brain already expects the coffee, so your hands start the routine before you’ve made a deliberate decision. This is why designing a clear, consistent cue and pairing your behavior with a genuine reward shortens the timeline. Your brain builds the anticipation loop faster when the cue is obvious and the reward is reliable.

Missing a Day Won’t Ruin Your Progress

One of the most useful findings from the research is that missing a single day does not meaningfully derail habit formation. In Lally’s study, participants who skipped an occasional day saw their automaticity gains resume right where they left off. The trajectory toward a fully formed habit barely changed.

This matters because the belief that “breaking the chain” ruins everything is one of the main reasons people abandon new habits entirely. You miss one gym session and think you’ve failed, so you stop going altogether. The science says otherwise. Habit formation is a gradual curve, not a streak that shatters on contact. What does slow the process is extended gaps or inconsistency over weeks, because the automatic association between cue and behavior needs regular reinforcement to strengthen. But a single missed day, or even the occasional missed day, is essentially noise in the data.

What You Can Realistically Expect

If you’re starting a simple daily behavior with a clear trigger and you genuinely enjoy it, you could feel it becoming automatic in as few as three to four weeks. If you’re attempting something complex, physically demanding, or tied to an inconsistent schedule, expect the process to take three months or longer. Most people building health-related habits will land somewhere around that 66-day average, assuming they practice the behavior most days in a stable context.

The early weeks are the hardest. Automaticity gains follow a curve that rises steeply at first and then levels off, meaning you’ll notice the biggest jumps in how “natural” the behavior feels during weeks two through six. After that, gains are smaller and more gradual. The behavior doesn’t flip from effortful to automatic on one specific day. It’s more like the volume slowly turning down on the internal resistance until one day you realize you did it without thinking about it at all.

The most practical thing you can do is stack the deck in your favor: pick a behavior you actually want to do, attach it to an existing routine, keep the context consistent, plan the specifics in advance, and don’t catastrophize when you miss a day. The timeline isn’t something you can force, but you can create conditions that let the process work as efficiently as possible.