You've probably heard it takes 21 days to build a habit. It's a tidy number, it fits on a sticky note, and it doesn't hold up. When researchers at University College London actually measured how long it takes to form a habit in everyday life, the answer was longer, messier and more useful.
🕐 The 30-second version
- 66 days was the median time it took for a new daily behavior to reach its peak automaticity (Lally et al., University College London, 2010).
- 18 to 254 days: the range across people and behaviors in that same study. Your mileage will vary, a lot.
- One missed day didn't materially derail the process in the UCL data.
- About 4 workouts a week for roughly 6 weeks was what new gym members needed to establish an exercise habit (Kaushal & Rhodes, University of Victoria, 2015).
What did the UCL study actually measure?
Phillippa Lally and her colleagues asked volunteers to pick one new behavior and do it once a day in the same situation: eat a piece of fruit with lunch, drink a bottle of water after breakfast, go for a run before dinner. Every day, participants rated how automatic the behavior felt, meaning how much it happened without thinking.
Think of something like committing to a daily walking goal after work. At first you have to remember, decide and push yourself out the door. With repetition in the same context, that effort fades and the walk starts to feel like the default.
The researchers plotted that automaticity over time. It didn't climb in a straight line. It rose quickly in the early weeks, then flattened out as it approached a plateau. The point where it leveled off is what "habit formed" means here, and it took a median of 66 days.
Why is the range so wide?
A median of 66 days hides an enormous spread: 18 days for some people, an estimated 254 for others. Two things drive most of that difference.
The behavior itself. Drinking a glass of water after breakfast is easier to automate than a demanding workout. The UCL team saw that exercise behaviors tended to take longer to become automatic than eating or drinking ones.
The person and the context. A stable cue (same time, same place, right after the same action) gives the behavior something to attach to. That's why planning the exact trigger matters so much; we break that down in our guide to an if-then plan.
So instead of asking "how many days does it take to form a habit?", a better question is "how do I make this specific habit easier to repeat in the same situation?"
What about exercise habits?
Exercise is one of the slower habits to stick, and the research reflects that. A University of Victoria study followed new gym members over their first weeks. The ones who built a lasting routine trained at least about four times a week, and it took around six weeks of that consistency for the habit to settle in (Kaushal & Rhodes, 2015).
If you want the full picture, including which parts of a workout routine become automatic first, read our deep dive on how an exercise habit actually forms.
Does missing a day reset the clock?
This is where the UCL findings are reassuring. Skipping a single opportunity didn't materially affect how automaticity developed. The habit isn't a house of cards.
That doesn't mean consistency stops mattering. Repeated misses slow everything down, and a pattern of skipped days is how a new behavior quietly disappears. The goal is to miss rarely and get back on track the next day, not to treat one slip as permission to quit. For why a visible run of days can keep you going, see the psychology of streaks.
How daily tracking with TrakBit helps
If a habit can take two months or more to feel automatic, the hard part is the middle stretch, when the novelty is gone and the behavior still takes effort. That's where a simple daily check-in helps:
- You see progress that isn't visible yet. Weeks 3 to 8 can feel like nothing is changing. A log shows you've shown up 30 times, and that's what builds automaticity.
- You catch drift early. Two misses in a week stand out on a calendar long before the habit fades.
- You plan rest on purpose. If your goal is four workouts a week, you can set rest days for that habit so planned days off don't break your streak. Missing a day that isn't a rest day still ends the streak, which is a useful nudge to get back on track.
Start tracking your next habit with TrakBit's habit tracker and give it the 66 days it may actually need.
Starting small also shortens the uphill part. The Tiny Habits method shows how to shrink a behavior until it's almost impossible to skip, then grow it once it sticks.
The bottom line
Plan for about two months, not three weeks, and expect your number to be different from anyone else's. Pick one behavior, tie it to a fixed cue, keep it small enough to repeat on bad days, and track it until it runs on its own. If you want an easy way to keep count, TrakBit is built for exactly that.
References
- Lally et al., University College London, 2010. https://doi.org/10.1002/ejsp.674
- Kaushal & Rhodes, University of Victoria, 2015. https://doi.org/10.1007/s10865-015-9640-7
FAQ
How many days does it take to form a habit? In the UCL study, the median was 66 days until a daily behavior felt about as automatic as it was going to get. Individual results ranged from 18 to 254 days.
Is the 21-day rule true? There's no solid evidence behind it. The best real-world data we have points to roughly two months on average, with huge differences between people and behaviors.
Does missing one day ruin a habit? In the UCL data, missing a single opportunity did not materially affect the habit-forming process. Repeated gaps are a different story.
Why do some habits form faster than others? Simpler actions tied to a clear cue tend to become automatic sooner than demanding ones. Exercise usually takes longer than something like drinking a glass of water after breakfast.