So, how long does it take to form a habit? Not 21 days for most people. A well-known 2009 study at University College London found new daily habits took anywhere from 18 to 254 days to become automatic, with a median of 66 days. Simpler habits form faster. Harder ones take months.
If you've ever tried to start studying daily or going to the gym, and felt like a failure when it still felt hard after three weeks, this is for you.
The truth is kinder than the myth. Habits take longer than we're told, which means struggling at day 20 is completely normal, not a sign you're doing it wrong.
In short:
- The "21 days" idea is a myth that grew from a 1960s self-help book, not a habit study.
- Research by Phillippa Lally found a median of 66 days, with a huge range of 18 to 254 days.
- Simple habits with a clear cue form faster than complex ones.
- Missing one day didn't meaningfully set people back.
- Focus on repetitions in a stable context, not on a deadline.
Where did the 21-day habit myth come from?
The number usually traces back to Maxwell Maltz, a plastic surgeon who wrote Psycho-Cybernetics in 1960. He observed that patients seemed to take a minimum of about 21 days to get used to changes, like a new face in the mirror.
Notice the words "a minimum of about". Over decades of retelling, that became "it takes 21 days to form a habit". It's catchy, it's hopeful, and it fits neatly on a poster. But it wasn't based on a study of habit formation.
The problem with the myth isn't that it's too optimistic. It's that people give up when day 22 arrives and the habit still takes effort.
What does the research actually say?
The best-known study on this is by Phillippa Lally and colleagues at University College London, published in 2009 in the European Journal of Social Psychology.
Here's what they did:
- Volunteers each picked one new eating, drinking or exercise habit to do daily in the same context, like "drink a bottle of water after lunch".
- For about 12 weeks, they rated each day how automatic the behavior felt.
- The researchers modeled how long it took for automaticity to level off.
And here's what they found:
- The median time to reach a plateau of automaticity was 66 days.
- The range was enormous: from 18 days to 254 days (the longer figures were projections for habits still growing when the study ended).
- Automaticity rose fastest early on, then slowed as it approached a plateau.
- Missing one opportunity did not meaningfully affect the overall process.
- Simpler habits, like drinking water, tended to become automatic sooner than more effortful ones, like a daily exercise routine.
Later work backs up the "it depends" message. A 2023 study led by researchers at Caltech, which used large datasets of gym check-ins and hospital hand-washing, found that gym habits typically took months to form, while hand-washing habits formed within weeks.
So the honest answer to "how long does it take to form a habit" is: probably around two months, but anywhere from a few weeks to most of a year depending on the habit and your situation.
What makes a habit form faster or slower?
Habit formation speed isn't random. A few factors make a big difference.
| Factor | Forms faster | Forms slower |
|---|---|---|
| Complexity | One small action | Many steps, needs equipment |
| Cue | Same time and place daily | "Sometime today" |
| Effort | Under two minutes | 45 minutes of hard work |
| Reward | Feels good right away | Payoff comes weeks later |
| Frequency | Daily | A few times a week |
| Context | Stable routine | Changing schedule |
Complexity
"Review five flashcards after breakfast" is simple. "Do a full revision session" has lots of decisions inside it. Each decision is a chance for your brain to say "not now".
Cue consistency
Habits are tied to context. Wendy Wood's research at the University of Southern California shows that habits are strongly triggered by places, times and preceding actions. If your cue changes daily, your brain has nothing stable to link the behavior to.
Frequency
A daily habit gets more repetitions per week than a three-times-a-week one, so it usually becomes automatic sooner. That's one reason to start with something you can do every day, even if small.
Reward
If a habit feels good right after you do it, your brain is keener to repeat it. If the benefit is distant (better grades at the end of term), you need to add a small immediate reward, like ticking it off or earning points.
How can you speed up habit formation?
You can't skip the repetitions, but you can make every repetition count and make each one easier. Here's how.
Shrink the habit
Start with a version that takes under two minutes. BJ Fogg's Tiny Habits method is built on this. "One practice question after dinner" forms faster than "an hour of maths", and it can grow later.
Anchor it to an existing routine
Use habit stacking, the approach James Clear describes in Atomic Habits (2018): "After I [existing habit], I will [new habit]." Your existing routine becomes a reliable cue.
- After I sit down in the library, I will open my to-do list.
- After I finish dinner, I will do one practice question.
- After I plug in my phone at night, I will write tomorrow's top task.
Use an if-then plan
Peter Gollwitzer's research on implementation intentions, starting in 1999, found that specific "if-then" plans help people follow through much more often than vague intentions. "If it's 8pm on a weeknight, then I review my notes at my desk" is a strong plan.
Keep the context stable
Same place, same time, same prior action. If your schedule changes each day (common for college students), anchor to an action instead of a clock time, like "after my last class".
For the full step-by-step method, read our guide on how to build good habits that stick.
How do you stay consistent until a habit sticks?
Knowing it might take 66 days is useful, but two months is a long time to rely on willpower. These strategies help you get there.
- Track every repetition. Seeing a row of check marks is motivating and shows real progress even when the habit still feels effortful. Our list of habit tracker ideas for students can help you choose what to track.
- Count repetitions, not days. "30 reps done" feels better than "day 30 of 66".
- Plan your minimum version. On bad days, do the tiny version so the cue and action stay linked.
- Use the "never miss twice" rule. One missed day barely matters, as Lally found. Two in a row starts a new pattern.
- Expect the middle to feel boring. Novelty fades around week two or three. That's the moment to lean on your system, not your mood.
A tracker that shows your streak and history makes this easier. In UseFlo, each habit has one-tap check-ins, a streak with streak freezes for the days life gets in the way, and a 12-week history grid, which is roughly the length of Lally's study. Watching that grid fill in is a nice reminder that the work is adding up.
If you do slip, don't panic. Our guide on how to keep a streak going covers how to recover without starting from zero emotionally.
How long does it take to break a bad habit?
There's less solid research on a specific number for breaking habits, so be wary of anyone who gives you one. What we do know is that old habits don't disappear. The cue-behavior link weakens over time, but it can come back when you're stressed or in the old context.
That's why replacement works better than willpower alone:
- Keep the cue, change the routine. If you scroll when you sit at your desk, make "sit at desk" trigger "open task list" instead.
- Add friction to the old habit. Put your phone in another room while you study.
- Change the environment when you can. A new study spot can help you start fresh.
Give it the same patience you'd give a new habit. Weeks to months is normal.
Conclusion: stop counting down, start counting up
How long does it take to form a habit? Usually about two months, but it varies widely, and that's okay. The real goal isn't to hit a magic number. It's to keep repeating a small action in the same context until it feels natural.
So swap the 21-day countdown for a simple count-up. Here's your next step for today: pick one tiny habit, write down its cue using "After I..., I will...", and mark your first repetition tonight.
If you want a boost along the way, our guides on a morning routine for students and how to stay motivated are good next reads.
Frequently asked questions
Is 21 days enough to form a habit?
For a very simple habit, sometimes. In Phillippa Lally's 2009 study, the fastest habits became automatic in around 18 days. But most took much longer, with a median of 66 days. Treat 21 days as a useful first milestone, a point where things usually start to feel easier, rather than the finish line.
Does missing a day reset habit formation?
No. Lally's research found that missing a single opportunity didn't meaningfully affect the habit-forming process. What matters is the overall pattern of repetition. The risk is emotional: one miss can make you feel like you've failed and quit. Get straight back to it the next day and you lose very little.
How do I know when something has become a habit?
Look for automaticity. You start the behavior without a debate, you'd feel odd skipping it, and you sometimes find yourself doing it before you've consciously decided to. It also takes less effort than it did at the start. If you still have to talk yourself into it every time, keep going.
Why do some habits form faster than others?
Simpler habits with a clear, consistent cue form faster. Drinking a glass of water after breakfast is easier to automate than a 45-minute workout that needs time, energy and equipment. Habits that feel rewarding right away, and that happen in the same place and time every day, also tend to stick sooner.
Can you form a habit in a week?
You can build a strong start in a week, and very small habits may already feel easier by then. Full automaticity usually takes longer, often weeks to a few months. Use the first week to lock in your cue, shrink the habit to a size you can repeat daily, and set up a simple way to track it.