How long does it take to build a habit? Not 21 days
Twenty-one days is the number you hear most often for building a new habit. It was never measured. One study did measure it, and what it found is both less tidy and more encouraging.
Published October 9, 2026
Where 21 days came from
The figure usually traces back to Psycho-Cybernetics, a 1960 book by the plastic surgeon Maxwell Maltz. He wrote that people seemed to need a minimum of about 21 days to get used to a change, such as a new face after surgery.
It was an observation from his practice, not a study of habits. Over the years "a minimum of about 21 days" became "21 days to form a habit".
What was actually measured
Researchers at University College London asked 96 volunteers to pick one new daily behaviour — something to eat, drink or do — and to repeat it in the same situation every day for twelve weeks. Each day, they reported how automatic it felt.
On average, it took 66 days for the behaviour to reach its most automatic. But the spread was wide: from 18 days for the fastest to 254 for the slowest. Some habits simply take longer than others, and so do some people.
Missing a day does not reset you
The same study found something people rarely hear: missing a single day did not materially change how the habit formed, whether the miss came early or late.
Streaks make a missed day feel like starting over from zero. The research suggests otherwise. What matters is coming back the next day.
What helps in practice
Keep the habit small, and attach it to the same moment every day — the study had people repeat their behaviour in the same situation, and that is part of how automaticity builds.
And make the weeks visible. Sixty-six days is longer than most motivation lasts, and progress inside a habit is hard to feel. Seeing two months of filled days, gaps included, is a reason to keep going that a feeling cannot give you.
A habit tracker we make
KeepUp shows a year of every habit on one screen, so a run of days and the gaps in it are visible at a glance. Up to three habits are free, with no time limit.