Science

How long does it take to form a habit?

You have probably heard it takes 21 days to build a habit. That number is a myth with a strange origin. The honest answer from research is longer, more variable, and a lot more useful to know.

The "21 days" rule is everywhere. It shows up in self-help books, productivity blogs, and the marketing copy of every fitness program. It is also wrong, or at least far more slippery than it sounds. Before you set a three-week deadline for a new habit and feel like a failure when it has not stuck, it is worth knowing where that number came from and what the actual research says.

Where the 21-day myth came from

The 21-day idea traces back to a plastic surgeon named Maxwell Maltz. In his 1960 book Psycho-Cybernetics, Maltz observed that it took his patients a minimum of about 21 days to get used to a change, such as adjusting to a new face after surgery or to the absence of a limb. His exact wording was that it took "about 21 days or more" for the old mental image to dissolve.

That qualifier, "or more," got quietly dropped as the idea spread. A careful observation about a minimum adjustment period became a hard rule: 21 days to form any habit. It was never a controlled study, it was never about everyday behaviors like flossing or going to the gym, and it was never meant to be a precise number. Decades of repetition turned a loose clinical note into a law that does not exist.

What the research actually found

The most cited real study on this question was led by Phillippa Lally and colleagues at University College London, published in 2010. The researchers asked 96 people to choose a new daily behavior, something simple like drinking a glass of water with lunch or going for a short walk after dinner, and to repeat it in the same context every day. Each day, participants rated how automatic the behavior felt, and the researchers tracked how long it took for that behavior to reach a stable level of automaticity.

The headline result: on average, it took about 66 days for a behavior to become automatic. But the average hides the most important part. The range across individuals was enormous, stretching from roughly 18 days at the fast end to around 254 days at the slow end, depending on the person and the behavior.

It is worth being honest about the limits here. This was one study with a modest sample of fewer than 100 people, and not everyone reached full automaticity within the study period. So treat 66 days as a useful guide, not a guarantee, and definitely not a countdown timer. The real lesson is not the specific number, it is the shape of the finding: habit formation takes a couple of months for most people, and the spread between individuals is wide.

The honest answer

On average, roughly two months. In practice, anywhere from a few weeks to several months, depending on you and the behavior. There is no magic 21-day deadline.

What "automatic" actually means, and how it is measured

The whole question only makes sense once you pin down what counts as a formed habit. Researchers do not measure a habit by asking "do you do it." A habit is defined by automaticity: the degree to which a behavior runs on its own, triggered by a cue, with little conscious effort or deliberation. When a behavior is automatic you do not weigh it up each time. The cue appears, the behavior follows, and you barely notice the decision.

Because automaticity is an internal experience, it is measured by self-report. In the Lally study, participants rated statements like "I do this automatically" and "I do this without having to consciously remember," and those ratings combine into a single automaticity score for each day. Plot that score over time and you get a curve that climbs and then levels off. The point where the curve stops rising and settles is treated as the habit being formed, and the days it took to get there is the figure that became the famous median.

This matters for how you read your own progress. The signal is not "I managed to do it again today." It is the quieter shift where the behavior stops feeling like a task you talk yourself into and starts feeling like something you just do. That effortlessness is the real finish line, and it arrives gradually rather than on a particular date.

Why the range is so wide

A spread from 18 to 254 days is not noise, it reflects real differences in what people were trying to do. A few factors explain most of it:

  • Complexity of the behavior. Drinking a glass of water becomes automatic far faster than doing 50 situps. The harder and more effortful the routine, the longer it takes to wire in.
  • Consistency. People who repeated the behavior reliably, in the same context each day, formed the habit faster than those who were patchy about it.
  • Strength and consistency of the cue. A behavior tied to a clear, unmissable trigger that fires in the same context every day forms faster than one floating without a reliable prompt. When the cue keeps moving, the brain never gets a stable pairing to learn from. This is exactly why anchoring a new habit to an existing routine helps so much.
  • How rewarding it feels. Behaviors that deliver something pleasant or satisfying, even a small sense of progress, tend to wire in faster than ones that feel like pure obligation. A reward, including the quiet satisfaction of marking the day done, gives the brain a reason to repeat the loop and speeds up the pairing of cue and action.
  • Individual differences. Some people simply build automaticity quicker than others, the same way some people pick up a language faster. The Lally study saw this directly: given the same instructions and similar behaviors, people landed all across that 18-to-254-day range. That is normal and not something to fix.

If your new habit is complex, give it more time. If you want it to stick sooner, make it small, tie it to a strong cue, and find a way to make the rep feel even slightly rewarding. The principles behind that are covered in how to build a habit that sticks.

Automaticity builds on a curve, not a line

One of the clearest patterns in the data is that automaticity does not grow at a steady pace. It follows a curve with diminishing returns. The earliest repetitions add the most automaticity, each new rep in those first weeks moves the needle a lot. As the habit settles in, later repetitions add less and less. You climb quickly at first, then the gains flatten out as the behavior approaches "automatic."

That has a practical upside that surprises people: in this study, missing a single day did not measurably hurt the habit-forming process. One slip was absorbed without setting you back. What did damage formation was missing many days in a row, where the behavior never got enough consecutive repetition to take hold. So a perfect, unbroken record is not the requirement. Consistency over time is.

What this means for actually building a habit

Knowing the real numbers changes how you plan. A few takeaways follow directly from the research:

  • Plan for two to three months, not three weeks. If you quit at day 21 because it does not feel automatic yet, you are quitting right in the middle of the normal formation window.
  • Favor consistency over streak perfection. One missed day will not undo your progress. The thing that matters is showing up most days over a long stretch, not protecting a flawless chain.
  • Pick an easy version first. A small, low-effort behavior reaches automaticity faster, which means an earlier payoff and a stronger foundation to build on.
  • Expect a flat middle stretch. There is a period after the novelty fades but before the habit clicks where it feels like nothing is changing. That stretch is the work, not a sign of failure.

This is also why streaks are so useful as a tool, as long as you do not treat them as all-or-nothing. A visible run of completed days keeps you repeating the behavior through the flat middle, which is exactly the part that builds automaticity. For more on why that works and how to keep it healthy, see why habit streaks work.

A realistic plan you can actually follow

Translated into something you can hold onto, the science points to a simple plan. None of it is complicated, and that is the point: the research rewards patience and consistency, not cleverness.

Start by committing to roughly two to three months, not three weeks. Decide from day one that this is a season, not a sprint. With the right expectation set up front, the slow middle stops feeling like failure and starts feeling like the stage the research told you to expect. Quitting at day 21 is quitting before the typical habit has had a chance to form.

Next, track consistency instead of chasing a perfect streak. The goal is to show up on most days across that window, not to defend a flawless chain that one bad day can shatter. Aim for a high percentage of days done over the month, not an unbroken line. When you measure the right thing, a single miss is just a single miss, and you carry on the next day instead of declaring the whole effort blown.

Then, expect a flat middle stretch and plan to push through it. After the first burst of motivation fades and before the behavior clicks into place, there is a stretch where it feels like nothing is happening. That plateau is where most people quit, precisely because it feels unrewarding, and it is also the part doing the work of building automaticity. Knowing it is coming is half the battle.

Finally, pick the easy version first. Choose the smallest form of the behavior you can stand: one push-up, two pages, a single glass of water. An easy behavior reaches automaticity sooner, which means an earlier sense of "this is just what I do now" and a solid base to build on. You can always scale up once the foundation is automatic, but you cannot build anything on a habit you abandoned in week two.

What the research does not say

It is just as important to be clear about what this evidence does not establish, because the 66-day figure gets repeated almost as carelessly as the 21-day myth it replaced.

It is one study with a modest sample. The Lally research followed fewer than 100 people, and not everyone reached full automaticity inside the study window. A single study of that size is a strong starting point, not the final word. It should make you cautious about treating any precise number as settled fact.

Sixty-six days is a median for simple, once-a-day behaviors, things like drinking water or taking a short walk, performed in a fixed context. It was never measured for complex routines, behaviors you do several times a day, or habits without a clean daily cue. Stretching that number to cover learning an instrument or overhauling your diet is reading more into the data than is there.

And it is not a deadline. Nothing in the research says a habit is "supposed to" be automatic by day 66, or that you have failed if it is not. The honest takeaway is the shape of the finding, not a number on a calendar: habit formation usually takes a couple of months, the spread between people is wide, and consistency over that stretch is what counts. Treat any single figure, including 66, as a rough guide rather than a stopwatch.

Hone app icon

Track it through the long middle

Hone lets you track any habit as a check, counter, or timer, with streaks you can protect using streak freezes, XP for every completion, and partners who keep you honest. Free and ad-free, no account needed.

Get it onGoogle Play

The short version

Forget 21 days. It came from a misread observation, not a study of habits. The best evidence we have points to roughly two months on average, with a real range from a few weeks to the better part of a year, driven by how hard the behavior is, how consistent you are, and how clear your cue is. Missing one day is fine. Stopping for a week is not. Pick something small, attach it to a strong trigger, and give it the time it actually needs. If you do break a long run somewhere along the way, that is recoverable too, see how to get back on track after a broken streak.