You have probably heard that it takes 21 days to build a habit. It is one of those numbers that sounds precise enough to be true.

It is not.

The figure can be traced to Maxwell Maltz’s book Psycho-Cybernetics. Maltz was a plastic surgeon who wrote that it usually took a minimum of about 21 days for a perceptible change in a person’s mental image. It was an observation rather than controlled habit research, and Maltz presented three weeks as a minimum, not a universal deadline.

The real science is messier. In a widely cited study, Phillippa Lally and colleagues recruited 96 people who chose an eating, drinking or activity behaviour to repeat each day in the same context. Among the participants whose data fitted the researchers’ model, the median estimated time to reach 95 percent of their eventual automaticity was 66 days, with individual estimates ranging from 18 to 254 days.

That does not make 66 the new magic number. It shows that habit-formation times vary greatly between people and behaviours.

What research can offer is a collection of strategies that make repetition easier and give a behaviour more opportunity to become automatic.

A quick note before we go on: I am not a psychologist, therapist or behavioural clinician. This is a piece of reading and reflection on habit-formation research, not personal advice. Studies describe patterns across groups, and no average or median can predict exactly how one person’s experience will unfold.

1. Start smaller than feels worth it

The instinct when beginning a habit is often to go big: thirty minutes of exercise, a full page of writing or a complete overhaul of your diet. But behaviours that demand less time and effort are generally easier to perform when motivation is low.

BJ Fogg, founder of Stanford’s Behavior Design Lab, built his Tiny Habits method around shrinking a behaviour until it is easy to begin. That might mean one push-up, one sentence or, in Fogg’s own example, flossing a single tooth.

The tiny action is not necessarily the final goal. It is a manageable starting point that can still be completed on a difficult day.

Fogg also argues that positive emotion immediately after an action helps the habit form. 

2. Attach the behaviour to a clear cue

Fogg’s model holds that a behaviour occurs when motivation, ability and a prompt come together. Rather than relying only on alarms, his method connects a new action to a routine that already happens reliably. As he puts it, “You don’t use alarms or Post-its — you find an existing routine to remind you.”

A related research strategy is the implementation intention: an “if-then” plan that specifies when, where and how a person will act. Peter Gollwitzer and Paschal Sheeran’s review of 94 tests found that these plans had a medium-to-large positive effect on goal achievement.

Instead of vaguely deciding to read more, you might decide: after I make my morning coffee, I will read two pages. The cue removes some of the deliberation by identifying the situation in which the action should begin.

3. Design the environment before relying on self-control

Friction is important: small environmental details can make an action easier or harder to repeat.

As researcher Wendy Wood told the APA, ” We’d be more successful though, if we focus on friction in our environment, trying to make the things that we want to do easier, things that we don’t want to do harder.”

Put the running shoes beside the door and one step has been removed from the workout. Prepare lunch the night before and the healthier option takes less effort the next day. Keep distracting apps off the home screen and opening them becomes less immediate.

This does not remove the need for self-control, particularly while a routine is still being established. It simply reduces the number of obstacles between intention and action.

4. Plan for the miss, not just the streak

An unbroken streak can be motivating, but one missed day does not have to become a complete reset. In the Lally study, missing one opportunity to perform the behaviour did not “materially affect the habit-formation process”.

Consistency still matters because habits develop through repeated links between situations and actions. The point is that one disruption does not erase what came before it. Returning at the next reasonable opportunity is more useful than declaring the attempt a failure.

There is also no need to make the behaviour harder every time it begins to feel easy. Fogg also cautions that “if you keep raising the bar, you’re going to reach a point where you eventually fail.” A small habit can grow naturally without being forced into constant escalation.

5. Give the habit the time it needs, not a fixed deadline

The problem with the 21-day or whatever-day claim is that it encourages people to treat a set amount of time as a test. If the behaviour does not feel automatic by then, they may assume it has failed.

Lally’s median estimate of 66 days is a more realistic reference point, but it should not become another countdown. The study found substantial variation, and its longest times were estimates produced by the researchers’ model rather than observations of every participant for 254 days.

A 2024 review from Singh and colleagues at the University of South Australia examined 20 studies involving 2,601 participants. Reported medians ranged from 59 to 66 days, reported means ranged from 106 to 154 days, and individual estimates stretched from four to 335 days.

Putting it all together

Start with a behaviour small enough to repeat, attach it to a clear cue, reduce the friction surrounding it, treat an occasional miss as a lapse rather than a reset, and expect the process to take weeks or months.

Lasting habits are not built by obeying a magic number, it seems. They are built by arranging a behaviour so it can be repeated often enough, in a stable enough context, that it gradually requires less deliberation than it did at the beginning.