Ask the internet and you'll hear 21 days. Ask the research and you'll get a different answer — one that's honestly more encouraging.
In 1960, plastic surgeon Maxwell Maltz observed that his patients took "a minimum of about 21 days" to get used to their new faces. His book Psycho-Cybernetics sold 30 million copies, the "minimum of about" got sanded off, and a myth was born. No habit study was ever involved.
The best real-world study we have comes from University College London, where health psychologist Dr Phillippa Lally and colleagues tracked 96 people forming everyday habits — drinking water with lunch, running before dinner. Published in the European Journal of Social Psychology in 2010, the study found behaviours took 66 days on average to become automatic, with a huge range: 18 days for the simplest habits to a projected 254 for the hardest [1].
Sixty-six days sounds worse than 21 — until you realise it means you're not failing. You're just not finished yet.
Buried in Lally's study is the finding that matters most: "missing one opportunity to perform the behaviour did not materially affect the habit formation process" [1]. Habits aren't glass. One rough morning doesn't reset the clock — quitting after one rough morning does.
Same cue, every time. Habits attach to context — what researchers call cue-consistent repetition [1]. An action performed after the same trigger daily — like an alarm going off — automates far faster than one squeezed in "whenever". As Wendy Wood's research at Duke University showed, around 43% of our daily actions already run this way: triggered by context, not decisions [2].
Start smaller than feels impressive. Stanford behaviour scientist BJ Fogg built his Tiny Habits method on this: a behaviour small enough to be easy gets repeated, and repetition — not ambition — is what wires the loop [3].
Never miss twice. The one-day grace is real (see Lally above); the two-day slide is how habits actually die. As James Clear puts it in Atomic Habits: "You do not rise to the level of your goals. You fall to the level of your systems." [4]