How Long Does It Really Take to Build a Habit: 21, 40, or 66 Days?

Illustrated wooden bridge over a stream, a path from one side to the other

It takes about 66 days on average to build a habit — but the real range is anywhere from about 18 to 254 days, depending on the person and how hard the behavior is. The popular "21 days" figure is a misquote, and 66 days is an average, not a deadline. For most goals, a 40 day challenge is a practical middle ground: long enough to change your routine, short enough to finish.

Here's where each number comes from, what the research actually found, and how to choose the right length for your goal.

Where the "21 days" idea comes from

The 21-day figure traces back to the 1960 book Psycho-Cybernetics by plastic surgeon Maxwell Maltz, who observed that patients seemed to take a minimum of about 21 days to get used to a change, such as a new face after surgery.

Over the decades, "a minimum of about 21 days" was shortened to "it takes 21 days to form a habit" — a much stronger claim than the original, and not one Maltz tested. Three weeks can be enough to start a simple routine, but for most people it isn't enough for a behavior to feel automatic.

What the research says: 66 days, on average

The most cited study on habit formation was published in 2010 by Phillippa Lally and colleagues at University College London. Participants chose a simple daily behavior — like drinking water after breakfast or going for a short run — and reported each day how automatic it felt.

Key findings:

  • On average, it took about 66 days for a behavior to reach its peak level of automaticity.
  • The range was huge: from 18 days to 254 days, depending on the person and the behavior.
  • Simple behaviors (drinking a glass of water) became automatic faster than harder ones (doing sit-ups).
  • Missing a single day did not meaningfully hurt long-term habit formation.

That last point matters a lot in practice: consistency over weeks counts for more than a perfect streak. (If you've slipped, read what happens if you miss a day.)

21 vs 30 vs 40 vs 66 days compared

Illustrated autumn trees along a path
Different goals need different amounts of time

21 days 30 days 40 days 66 days
Where it comes from Maltz (1960), misquoted Calendar month, popular "30 day challenges" Long tradition of 40-day periods of focus Average in Lally et al. (2010)
Best for A quick test Trying something new Building a routine you'll keep Fully automatic habits
Commitment feel Very light Light Focused, clearly finite Long, needs strong motivation
Habit strength by the end Just started Early stage Noticeably easier to continue Close to the research average

21 and 30 days: good for experiments

A 21 or 30 day challenge is perfect when you want to try something: a new sport, a writing routine, a diet change. It's low-risk and easy to start. The downside is that, for many behaviors, it ends right when things are getting easier — so the habit often fades once the challenge is over.

66 days: closest to the research, hardest to finish

A 66 day challenge matches the study average, which makes it appealing. But two months is a long commitment, and many people lose momentum somewhere in the middle weeks. A long challenge you abandon builds less than a shorter one you complete. (If the middle is where you usually stall, see how to stay motivated through the middle of a long challenge.)

40 days: the practical middle

A 40 day challenge sits in a sweet spot:

  • It's long enough that the daily action stops feeling like a novelty and starts feeling like part of your day.
  • It's short enough to feel finite, so motivation lasts from Day 1 to Day 40.
  • Forty is a number many cultures already associate with a meaningful period of change — here's why — which makes it easy to commit to.

Habit formation also keeps going after a challenge ends. A completed 40 days is a strong launch pad: many people simply continue, or choose a next challenge that builds on the first.

What makes a habit form faster

The number of days matters less than how you practice. Factors that help, consistent with the habit research:

  • A simple behavior. "Drink a glass of water after breakfast" automates faster than "work out for an hour."
  • A stable cue. Do it at the same time or right after the same existing routine every day.
  • Repetition in the same context. Same place, same trigger, same small action.
  • Something you actually like. Enjoyable behaviors are easier to repeat.

How to choose your challenge length

Ask yourself three questions:

  1. Am I testing or committing? Testing → 21–30 days. Committing → 40 or 66 days.
  2. How hard is the behavior? Simple actions can stick in weeks; complex ones (exercise, deep work) usually need longer.
  3. How have past challenges gone? If you've dropped long challenges before, choose 40 days and focus on finishing.

Tips that matter more than the number

  • Tie the action to an existing cue. "After I pour my morning coffee, I'll write my top three tasks."
  • Keep the daily action small. You can always do more; the minimum is what keeps you going. (How to break a big goal into daily actions.)
  • Don't restart after a missed day. Just continue.
  • Reflect briefly each evening. One sentence about what helped or got in the way turns a streak into real learning.
  • Make progress visible. A daily goal tracking app or a paper calendar both work; what matters is seeing the days add up.

FAQ

Is it really 21 days to form a habit?

No. The 21-day idea comes from a misquote of Maxwell Maltz's observation of "a minimum of about 21 days." In the 2010 UCL study, the average was about 66 days, with a range of roughly 18 to 254.

Why do some habits take longer than others?

Complexity and effort. Simple, enjoyable behaviors tied to a clear cue automate faster than effortful ones like intense exercise.

Is 40 days enough to build a habit?

For many simple and moderate behaviors, 40 days gets you well on the way, and the habit often keeps strengthening after the challenge. For harder behaviors, treat 40 days as the first stage.

The bottom line

There's no universal habit number. 21 days is a myth, 66 days is an average with a very wide range, and 30 days is often too short to stick. For most personal growth goals, a 40 day challenge is the practical choice — and WholeLifeLog is built around exactly that: one goal, 40 days, a small daily action and a short reflection each evening.