How Long Does It Take to Form a Habit? Why the 21-Day Rule Is a Myth
Twenty-one days is the number that apps, books and motivational mugs all repeat, and it’s wrong. The first study that actually measured how long it takes to form a habit found something less convenient: there is no single number.
The magic number has a curious backstory. The deeper story, why habits exist at all, was told by William James in 1890 better than almost anyone since.
Where the 21-day rule came from
Not from a lab, but from an operating room. Maxwell Maltz was a plastic surgeon. In Psycho-Cybernetics (1960) he wrote that “it usually requires a minimum of about 21 days for an old mental image to dissolve and a new one to jell.” He was describing patients getting used to their new faces.
The key word is “minimum.”
Over the years, the line passed from book to book and seminar to seminar. Two things got lost along the way:
- the word “minimum,”
- and the fact that Maltz was talking about adjusting to a self-image, not acquiring a behavior.
Result: a clinical observation turned into a universal law.
How long does it take to form a habit, according to science?
The first serious measurement arrived in 2010.
Phillippa Lally and her team at University College London followed 96 volunteers for 12 weeks. Each picked a simple behavior (eating, drinking or a bit of physical activity) and repeated it daily in the same context.
Every day, they rated how automatic it felt.
The data:
- The median was 66 days to reach 95% of peak automaticity (calculated for participants whose data allowed the curve to be modeled).
- The range was huge: 18 to 254 days.
- Exercise took somewhat longer than eating or drinking, although with so few cases the difference wasn’t statistically significant.
A systematic review by Singh and colleagues (2024), covering 20 studies and 2,601 participants, confirms the pattern: medians of 59 to 66 days, means of 106 to 154, and individual variation from 4 to 335 days.
Plain translation: 21 days is possible for someone, with something. It isn’t the rule.
Habits according to William James: a flywheel
Long before habit apps, James devoted chapter IV of The Principles of Psychology to habit (first published in Popular Science Monthly in 1887).
His starting point is physical. Living matter has plasticity: “a structure weak enough to yield to an influence, but strong enough not to yield all at once.”
His examples, borrowed from Léon Dumont, are domestic:
- a garment that gradually takes the shape of the body,
- a lock that works better with use,
- paper that folds more easily the second time,
- water that carves out its own channel.
Then comes the image that has survived more than a century:
Habit is thus the enormous fly-wheel of society, its most precious conservative agent.
William James, The Principles of Psychology
A flywheel is the heavy wheel that keeps a machine turning when the push falters.
For James, that’s what keeps the fisherman at sea through the winter and the miner in the dark.
The stories James used as evidence
James was a great collector of anecdotes.
A few from this chapter:
- The conjurer Robert-Houdin practiced juggling four balls while reading. Thirty years later he could still keep three in the air without looking up from the page.
- The veteran who, as Huxley told it, dropped his dinner when a practical joker shouted “Attention!”
- In a railroad accident involving a traveling menagerie in 1884, a tiger escaped its broken cage… and walked back in on its own.
- The Duke of Wellington’s reported exclamation that habit is “ten times nature.”
And an observation most people have lived: quoting a German author, James noted that “we learn to swim during the winter and to skate during the summer.” Practice settles during the rest.
James’s maxims versus the data
Here’s the part that has aged worst.
James, partly following Alexander Bain, laid out a set of maxims for acquiring a habit. They were his rules, written as advice for readers in 1890:
- Launch the new habit with as strong an initiative as possible, including public pledges.
- “Never suffer an exception to occur till the new habit is securely rooted in your life.” Each lapse, he wrote, is like dropping a ball of string you’ve been carefully winding: one slip undoes many turns.
- Act on the first opportunity.
- Keep up a little “gratuitous” daily exercise of effort, like an insurance premium.
The second maxim is the famous one. It’s also the one the data contradict.
In Lally’s study, missing a single day did not materially affect the automaticity process.
The ball of string didn’t unravel over one lost turn.
Another blunt claim from James: “by the age of thirty, the character has set like plaster, and will never soften again.” That doesn’t hold up either.
Roberts, Walton and Viechtbauer’s 2006 meta-analysis of 92 longitudinal samples found that traits like conscientiousness and emotional stability keep changing in adulthood, especially between 20 and 40.
James got the mechanism right. He overstated the rigidity.
How much of what you do is habit?
More than it seems.
In two diary studies by Wood, Quinn and Kashy (2002), about 43% of recorded behaviors were performed almost daily and in the same context.
And while doing them, people were usually thinking about something else.
That fits another of James’s ideas: the misery of the indecisive person, for whom lighting every cigar or drinking every cup becomes a matter of deliberation.
Habit frees up attention. Without it, everything would be a decision.
The Singh (2024) review adds detail on which habits consolidate best: those practiced in the morning and those chosen by the person themselves showed greater strength.
People who tend to put things off know the problem is rarely a lack of rules, as the profile of the avoidant procrastinator shows. And the routine or spontaneity quiz shows which way each person leans.
What’s left of the flywheel
The 21-day rule is a myth, but James wasn’t wrong about the essentials.
- Habits form through repetition in a stable context.
- They free the mind from deciding the same thing over and over.
- And they take longer than any mug promises.
The drunken Rip Van Winkle, in the play James cites, excused every fresh lapse with “I won’t count this time!” James’s reply: the nerve cells are counting.
We are spinning our own fates, good or evil, and never to be undone.
William James
Current science qualifies the line: one dropped thread doesn’t undo the weave. What holds it together is the sum of many, as in the profile of the steady planner.
Sources
- James, W. (1890). The Principles of Psychology. Henry Holt and Company.
- Maltz, M. (1960). Psycho-Cybernetics. Prentice-Hall.
- Lally, P., van Jaarsveld, C. H. M., Potts, H. W. W., & Wardle, J. (2010). How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology, 40(6), 998-1009. https://doi.org/10.1002/ejsp.674
- Singh, B., Murphy, A., Maher, C., & Smith, A. E. (2024). Time to form a habit: A systematic review and meta-analysis of health behaviour habit formation and its determinants. Healthcare, 12(23), 2488. https://doi.org/10.3390/healthcare12232488
- Wood, W., Quinn, J. M., & Kashy, D. A. (2002). Habits in everyday life: Thought, emotion, and action. Journal of Personality and Social Psychology, 83(6), 1281-1297.
- Roberts, B. W., Walton, K. E., & Viechtbauer, W. (2006). Patterns of mean-level change in personality traits across the life course: A meta-analysis of longitudinal studies. Psychological Bulletin, 132(1), 1-25. https://doi.org/10.1037/0033-2909.132.1.1
Want to know more about yourself?
Discover your result with one of our related tests.
Frequently asked questions
Does it really take 21 days to form a habit?
No. The number comes from Psycho-Cybernetics (1960), by plastic surgeon Maxwell Maltz, who wrote that it 'usually requires a minimum of about 21 days' for an old mental image to dissolve. He was describing patients adjusting to a new face, not habit formation. In the first real study on the subject (Lally et al., 2010), the median was 66 days.
How long does it actually take to form a habit?
It varies a lot by person and behavior. In Lally et al. (2010), the range was 18 to 254 days. A systematic review of 20 studies (Singh et al., 2024) found medians of 59 to 66 days and individual variation from 4 to 335 days.
Does missing a day ruin a habit?
According to Lally et al. (2010), no: missing a single opportunity to perform the behavior did not materially affect the automaticity process. William James argued the opposite in 1890, but modern data qualify his maxim.
How much of daily life is habit?
In the diary studies of Wood, Quinn and Kashy (2002), about 43% of recorded behaviors were performed almost daily and in the same context, that is, habitually, often while people were thinking about something else.
Is this article a substitute for a professional assessment?
No. It summarizes what William James wrote and what research has found about habit formation, for informational and educational purposes. If a specific habit causes significant distress or feels impossible to control, the right step is to consult a psychology professional.