Psychology

How Long Does It Take to Form a Habit? The Truth About the 21-Day Rule

Does it really take 21 days to form a habit? What research says about how long habits take, how the habit loop works in the brain, and practical steps to build habits that last.

Published 4 min read

You may have heard that forming a new habit takes just 21 days. It’s a comforting, motivating idea, but is it true? The short answer: no. The longer answer is more useful, because it explains why so many people fail to build habits, and how you can succeed.

Where did the 21-day rule come from?

The idea goes back to American plastic surgeon Maxwell Maltz, who wrote in his 1960 book Psycho-Cybernetics that his patients seemed to need a minimum of about 21 days to adjust to changes in their appearance.

Over time, “a minimum of about 21 days” was shortened to simply “21 days” and spread as if it were a scientific law.

What does the research actually say?

In 2009, a team at University College London led by researcher Phillippa Lally published a well-known study on this question. Ninety-six participants each chose a new healthy habit, such as drinking water with lunch or running for 15 minutes a day, and recorded every day how automatic it felt.

The results:

  • On average (the median), it took 66 days for the habit to become automatic.
  • The range was 18 to 254 days, depending on the person and the habit.
  • Missing a single day did not noticeably affect habit formation.

The important lesson: the real timeline varies from person to person and habit to habit. Simple habits (like drinking a glass of water) form faster than hard ones (like daily exercise). So don’t give up if it hasn’t clicked within 21 days.

How do habits work in the brain? The “habit loop”

In his book The Power of Habit, writer Charles Duhigg explained that every habit runs through three stages:

  1. Cue: a trigger that starts the behaviour, such as waking up or feeling bored.
  2. Routine: the behaviour itself, such as opening your phone or going for a run.
  3. Reward: the good feeling that makes your brain want to repeat the loop.

With repetition, the brain links the cue to the reward, and the behaviour becomes automatic, needing no thought.

8 practical steps to build a habit that lasts

  1. Start very small. Instead of “I’ll read for an hour a day”, start with two pages. In Atomic Habits, writer James Clear suggests starting with a version of the habit that takes no more than two minutes.
  2. Attach it to an existing habit: “After I drink my morning coffee, I’ll write down three goals for the day.”
  3. Make the cue obvious: put the book on your pillow, the water bottle on your desk, your running shoes by the door.
  4. Remove friction: the easier a habit is to start, the more likely you are to do it.
  5. Reward yourself immediately: a tick on the calendar, or a cup of your favourite tea after a workout.
  6. Track your progress: seeing a streak of days is a powerful motivator in itself.
  7. Never miss twice in a row: missing a day is normal, but missing two can be the start of the opposite habit.
  8. Change your identity, not just your goal: say “I’m someone who takes care of my health” instead of “I want to lose 5 kilos”.

What about breaking bad habits?

Reverse the steps above:

  • Hide the cue: keep your phone out of the bedroom, and don’t leave sweets in plain sight.
  • Make it harder: log out of distracting apps, or move them off your home screen.
  • Replace, don’t just remove: if you snack when stressed, try a short walk or deep breathing instead.
  • Know your triggers: when, where and with whom does the bad habit happen?

Frequently asked questions

Why do I keep failing to stick to new habits?

Usually because you start with a goal that’s too big, or rely on motivation alone. Motivation comes and goes; a simple, clear system keeps going.

Is the morning the best time to build habits?

Many people find mornings easier because there are fewer interruptions, but what matters most is choosing a consistent time and cue that fit your day.

Key takeaway

The 21-day rule is an oversimplified myth; research points to an average of around 66 days, with big differences between people. The secret isn’t the number of days but starting small, linking the habit to a clear cue and an immediate reward, and not giving up after a missed day.

Read next