How to Build Habits That Stick: What Science Says (and Why 21 Days Is a Myth)
To build habits that stick, repeat one small behavior in the same situation every day, tie it to something you already do, make it easy to start and satisfying to finish, and expect it to take around two months – not 21 days – before it feels automatic. Missing a day is fine; what matters is getting back on track quickly.
- In the best-known study on habit formation (Lally et al., 2009), it took participants a median of 66 days for a new daily behavior to reach its peak automaticity, with a range of 18 to 254 days.
- The "21 days to form a habit" idea traces back to plastic surgeon Maxwell Maltz's 1960 book Psycho-Cybernetics, where he wrote that people need "a minimum of about 21 days" to adjust to a change – an observation, not a study on habits.
- In the same study, missing a single day did not materially affect habit formation; consistency in the same context mattered more than perfection.
- Habits form fastest when a behavior is repeated in a stable context: same time, same place, or right after an existing routine (habit stacking).
- Simpler behaviors (like drinking a glass of water) tend to become automatic sooner than demanding ones (like a full workout).
How long does it take to form a habit?
The honest answer: about two months on average, but anywhere from a few weeks to most of a year, depending on the person and the habit.
The most cited research comes from Phillippa Lally and colleagues at University College London (published 2009). They asked 96 volunteers to pick one eating, drinking or exercise behavior – for example "drink a bottle of water with lunch" or "run for 15 minutes before dinner" – and to do it every day in the same context for 12 weeks. Each day, participants rated how automatic the behavior felt.
For participants whose data fit the model well, automaticity rose quickly at first and then leveled off. The time to reach that plateau had a median of 66 days and ranged from 18 to 254 days. Simple behaviors tended to get there sooner than complex ones.
| What the study looked at | What it found |
|---|---|
| Time to reach peak automaticity | Median 66 days |
| Range between people | 18 to 254 days |
| Missing one day | Did not materially affect the process |
| Shape of progress | Fast gains early, then slowing toward a plateau |
Two caveats keep this honest: the study was small, and automaticity was self-reported. Treat "66 days" as a realistic expectation, not a finish line. The useful takeaway is that if your habit still feels effortful after three weeks, nothing is wrong with you – you're right on schedule.
Does 21 days make a habit?
No – at least not reliably. The 21-day figure comes from Psycho-Cybernetics (1960) by Maxwell Maltz, a plastic surgeon who noticed that his patients needed "a minimum of about 21 days" to get used to a new face, and that similar adjustment periods showed up elsewhere, such as getting used to a new home. Over time "a minimum of about" was dropped, and the idea turned into "it takes 21 days to form a habit".
Twenty-one days can be a good first milestone. It is long enough to see whether a habit fits your life and short enough to commit to. Just don't quit on day 22 because it still feels like work.
How habits actually form
A habit is a behavior that is triggered automatically by a situation, without you having to decide. Every time you do something in the same context – after brushing your teeth, when you sit at your desk, when you get home – the link between the situation and the action gets a little stronger. Eventually the situation alone starts the behavior.
That gives you three levers to pull:
- The cue: a clear, stable trigger (time, place or a preceding action).
- The behavior: small and easy enough to do even on a bad day.
- The reward: something that makes the behavior feel good right away, so you want to repeat it.
Most failed habits break at one of these three points: the cue is vague ("sometime in the evening"), the behavior is too big ("work out for an hour"), or the reward is too far away ("lose 10 pounds by summer").
7 steps to build habits that last
1. Pick one habit, not five
Willpower and attention are limited. Starting a new morning routine, diet, workout plan and reading goal on the same Monday is a recipe for dropping all of them. Choose the one habit that would make the biggest difference and give it a month or two before adding another.
2. Start with the 2-minute version
James Clear's "two-minute rule" from Atomic Habits (2018): scale the habit down until it takes two minutes or less. "Read 30 pages" becomes "read one page". "Go for a run" becomes "put on running shoes and step outside". You're not trying to get results yet; you're training the habit of showing up. Once that's automatic, you scale up.
3. Stack it onto an existing routine
Habit stacking means attaching the new habit to something you already do every day: "After I pour my morning coffee, I will write three lines in my journal." The existing routine becomes the cue. It works because of the same principle as if-then plans in psychology (implementation intentions), which consistently help people follow through on what they intend.
4. Design your environment
Make the good habit obvious and easy: the book on your pillow, the water bottle on your desk, the guitar on a stand instead of in its case. Make bad habits harder: phone charger outside the bedroom, snacks out of sight, social apps logged out. You will lose a fight with your environment more often than you win one.
5. Make it satisfying immediately
The long-term benefits of a habit arrive slowly, so give your brain a short-term reason to repeat it: check a box, color a square, see a counter go up, earn points. A visible streak or tracker is a reward in itself.
6. Never miss twice
Missing one day doesn't ruin a habit – Lally's study found a single missed opportunity did not materially affect the process. What hurts is the second miss, because it starts a new pattern. The rule: if you skip a day, the next day's only goal is the 2-minute version.
7. Track it – lightly
Tracking makes progress visible and keeps you honest. Keep it simple: one mark per day, either on paper (try our free printable habit tracker) or in a habit tracker app. If tracking takes longer than the habit, it will die first.
Habit plan template: worked examples
Fill in one row before you start. If you can't write the cue and the 2-minute version, the habit isn't ready yet.
| Habit | Cue (after I…) | 2-minute version | Environment tweak | Instant reward |
|---|---|---|---|---|
| Read more | …get into bed | Read one page | Book on the pillow, phone charging in the hallway | Mark the day in the tracker |
| Exercise | …close the laptop for the day | Put on workout clothes, do 5 squats | Clothes laid out on the chair | Favorite playlist only during workouts |
| Drink more water | …sit down at my desk | Drink one glass | Full bottle on the desk | Counter goes up |
| Study a language | …pour my morning coffee | One lesson or 5 flashcards | App on the home screen, notifications on | Points / progress bar |
| Plan the day | …start the computer | Pick today's one must-do task | Planner open as the first tab | Checking it off |
Good anchors are things you do every day without fail: waking up, coffee, brushing teeth, commuting, lunch, getting home. Routines are just habits chained together – our morning routine and evening routine guides show how to build a whole sequence this way.
Why habits fail (and what to do instead)
- "I'll do it when I feel like it." Motivation is unreliable. Tie the habit to a fixed cue instead.
- Starting too big. An ambitious habit you do twice beats nothing – but a tiny habit you do daily beats both. Scale up only after it's automatic.
- All-or-nothing thinking. Breaking a streak feels like failure, so people quit. Use the never-miss-twice rule and keep a minimum version for bad days.
- Relying on willpower. Discipline helps you start, but environment and routine keep you going. See our guide to self-discipline for why it's more about systems than grit.
- No feedback. If you can't see progress, the habit feels pointless. Track it.
Building habits with ADHD
People with ADHD often say routines are hard to start and even harder to keep once the novelty wears off. This isn't medical advice, but a few adjustments to the steps above tend to help:
- Make cues loud. Use alarms, visible objects and notifications rather than relying on memory.
- Plan for novelty fatigue. Keep the habit, change the flavor: new music, a new place, a new challenge every few weeks.
- Reward instantly. Points, sounds, check marks and small treats right after the behavior beat any long-term promise.
- Lower the minimum, not the standard. The 2-minute version is a legitimate win, every time.
For more on this, see our ADHD planner app page. If ADHD affects your daily life significantly, a qualified professional can help.
Tracking habits in CORTEX
CORTEX is a free gamified productivity app – tasks, a one-click day plan, time tracking and habits, with XP, levels and real-life rewards. Its habit features are built around the steps above:
- Good habits and bad habits. Add good habits as "buffs" and bad ones as "debuffs". Each can be yes/no ("Read one page") or numeric with a daily target ("8 glasses of water"); a bad habit fails when you go over your limit ("max 2 coffees").
- Everything on one screen. Habits sit on the Today screen next to your work timers, next goal and daily log, so the cue to check them is opening the app.
- An activity streak. CORTEX tracks one overall activity streak (current and best) plus a daily-log streak – it rewards showing up every day rather than punishing you for a single missed habit.
- XP, levels and rewards. Completed tasks, goals and daily logs earn XP and credits you spend on your own real-life rewards in the shop – the "make it satisfying" step, built in. More on that on our RPG habit tracker page.
- A 30-day commitment. A personal commitment contract lets you pick up to three pillars and optional habits, write down your "why" and sign it – CORTEX then creates the tasks and habits for you.

Frequently asked questions
How long does it take to form a habit?
In the best-known study (Lally et al., 2009), it took a median of 66 days for a daily behavior to become as automatic as it was going to get, with a range of 18 to 254 days. Simple habits tend to form faster than complex ones.
Does it take 21 days to form a habit?
Not reliably. The 21-day figure comes from Maxwell Maltz's 1960 book Psycho-Cybernetics, where he wrote that people need "a minimum of about 21 days" to adjust to changes like a new face after surgery. Research suggests most habits take longer – around two months on average.
What is the fastest way to build a habit?
Make it tiny, tie it to an existing daily routine and do it in the same context every day. A 2-minute version done daily becomes automatic faster than an ambitious version done occasionally.
Does missing a day break a habit?
No. In Lally's study, missing a single opportunity did not materially affect habit formation. The risk is missing twice in a row, so make the day after a miss a "minimum version" day.
What is habit stacking?
Habit stacking means attaching a new habit to one you already do, using the formula "After I [current habit], I will [new habit]". The existing routine acts as a reliable cue. The term was popularized by James Clear in Atomic Habits (2018).
How many habits should I build at once?
Start with one. Add a second only when the first runs on autopilot most days, which often takes weeks to a couple of months.
Sources and further reading
- Lally, P., van Jaarsveld, C. H. M., Potts, H. W. W. & Wardle, J. (2009). How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology
- UCL Health Behaviour Research Centre – Busting the 21 days habit formation myth (2012)
- Gollwitzer, P. M. (1999). Implementation intentions: Strong effects of simple plans. American Psychologist, 54(7), 493–503
- James Clear – Atomic Habits (2018)
- James Clear – Habit stacking
Level up your life
CORTEX is free for everyone. Tasks, a one-click day plan, time tracking, habits and rewards in one system – on desktop and mobile.
CREATE A FREE ACCOUNT