Do It Today

How to Build a Habit (and Why 21 Days Isn't Enough)

Where the 21-day myth came from, how long a habit really takes to stick, and the exact steps to build one without quitting in week two.

How to Build a Habit (and Why 21 Days Isn't Enough)

You decide to start running in the mornings. The first three days go great. Day four it rains. Day five you oversleep. By the end of the week the shoes are back in the corner and there's that familiar sting inside: I just don't have the willpower. Sound familiar? The problem is almost never willpower. The problem is that people try to build a habit in a way habits don't actually form, and then quit at the exact moment the habit hasn't had time to take hold.

Short answer

A habit sticks when the action gets tied to a steady cue and pays off quickly, not when you survive an arbitrary 21 days. The number 21 is a myth that grew out of a surgeon watching his patients, not a rule about habits. In one well-known study, people took about two months on average to reach automatic behavior, with a range from three weeks to several months. So pick one small habit, attach it to something you already do every day, mark it off, and don't quit after the first miss.

How a habit actually forms

Every habit has three parts that run in a loop. The cue is what triggers the action: a time of day, a place, a previous task, an emotion. The routine is the behavior itself. The reward is what your brain gets at the end, the reason it wants to repeat.

Until those three parts lock into a loop, you don't have a habit, you have a one-off act of effort. You don't brush your teeth because you make a heroic decision every morning. The loop closed long ago: you get up (cue), you brush (routine), your mouth feels clean (reward). Your brain stopped spending attention on it.

That points straight to the fix. To build a habit, stop grinding through raw willpower every day and instead assemble those same three parts around the action: a clear cue, a doable routine, a noticeable reward. Over time attention drops out, and the behavior runs on its own.

Check your loop

Take the habit you want and write three lines: what the cue is, what the action is, what the reward is at the end. If any line is blank, the habit is resting on bare willpower and it will collapse.

Where the 21 days came from

The number 21 traces back to a book by plastic surgeon Maxwell Maltz, published in 1960. He noticed his patients needed about three weeks to get used to a new face after surgery, or to stop feeling a limb that had been amputated. He wrote it carefully: a minimum of about 21 days.

Then the thing that always happens to a tidy number happened. The word minimum dropped away, the part about surgical patients vanished, and what remained was a cheerful promise: build any habit in 21 days. Seminars, books, and apps picked it up, and the number took on a life of its own, even though it had nothing to do with ordinary habits.

The trouble with the myth isn't that the figure is imprecise. It's that it sets a false expectation. Someone holds on for three weeks, feels no automatic pull, decides something is wrong with them, and quits. But almost anyone in their place would feel the same: three weeks is simply too little for most habits.

How long it really takes

A different number sits closer to the truth. In a study at University College London, people took on simple habits like a glass of water at lunch or a short walk, and on average it took about two months for the behavior to become automatic. But the average hides the real story: the spread was huge, from three weeks for the easiest actions to several months for harder ones.

Three things are worth keeping. First, the timeline depends on difficulty: drinking water locks in faster than a full workout. Second, there's no exact date when a habit turns automatic. It isn't a timer, it's a gradual slope. Third, and this matters most, one missed day doesn't wreck the picture. In that same study, people who occasionally skipped still reached automatic behavior.

A familiar picture

You make it 21 days, the habit still takes effort, and you decide the method doesn't work. In reality you just reached the middle of the road and quit right before the second half.

Start with one habit and a tiny size

The most common mistake is grabbing at everything at once. New life starting Monday: running, a language, early mornings, no sugar. A week later the tank is empty on every front, because each new habit demands attention, and attention is a limited supply.

Take one. Until it runs on its own, the others wait. This isn't slow. It's the only approach that leaves you with five habits by the end of the year instead of zero.

And make the first step laughably small. Not thirty minutes of exercise, but five push-ups. Not a chapter, but one page. Not twenty minutes of meditation, but three breaths. A tiny size removes the real barrier, which is the reluctance to start. Starting is almost always harder than continuing: once you've done five push-ups you often do ten, but deciding to sit down for a big workout is what your brain keeps postponing.

What this gets you

A tiny habit meets almost no resistance, so you do it even on a bad day. And a bad day you still showed up for is exactly what separates people whose habit stuck from people whose didn't.

Anchor the new thing to something you already do

The most reliable cue is an action you already perform every single day. Coffee, brushing your teeth, the commute home, the lunch break. You hook the new habit onto that anchor: after I pour my coffee, I do five push-ups. After I brush my teeth, I read one page.

This works because you don't have to remember the new habit separately. The old action, already fixed in place, reminds you. You aren't relying on memory and motivation, you're wiring the new thing into a groove that's already worn in.

The formula is simple: after I [do the established thing], I [do the new thing]. The more specific the anchor, the better. Not after breakfast in general, but after I put the mug in the sink. A vague cue slips right past you. A precise one fires.

Don't blow it up over one miss

Misses will happen. Illness, travel, a crunch at work, or just a hard day. The question isn't whether you'll miss, it's what you do next. And one rule carries the load here: miss a day, fine, but never miss two in a row.

One miss is an accident, it breaks nothing. Two in a row is the start of a new pattern, and now the skip itself is becoming the habit. So the whole task shrinks to coming back the next day, even in the most stripped-down form. Couldn't run? Walk for five minutes. Couldn't study properly? Open the book for one minute. The point isn't the value of that minute, it's keeping the chain from snapping.

It also removes the guilt that sinks habits on its own. People quit not after a miss, but after they've beaten themselves up over it. Missed, came back, kept going, no post-mortem.

Make the reward fast and visible

The brain locks in whatever it gets rewarded for right away. That's the core difficulty with good habits: their reward is far off. Exercise gives you fitness in months, reading gives you range in years, but the effort is needed right now. A gap yawns between effort and reward, and the brain picks whatever pays off immediately.

So pull the reward closer. The methods are simple. Mark it off, since a checkmark carries a small satisfaction of its own. Tie the habit to something you enjoy: listen to your favorite podcast only while running. Say nice job out loud, it sounds silly and it works. The idea is one thing: hand your brain a small plus in the same minute, while the big reward is still far away.

Mark it off every day

A simple completion mark does three things at once. It gives you that fast reward. It shows a chain of days you don't want to break. And it tells you honestly how it's going: a vague sense of I run sometimes is one thing, a row of marks won't lie.

The chain of marks becomes motivation on its own. With nine filled-in days behind you, you do the tenth just to avoid resetting the row. That works as long as you remember the goal is the habit, not a pretty streak. If the chain breaks, you start a new one from the same day, without the feeling that everything is lost.

Mark it right away, not from memory

Check it off the moment you finish, not from memory at night. By evening it's easy to forget and easy to flatter yourself. A mark right after the action is more honest, and it completes the loop: action, checkmark, small reward.

Different people trip over different things

General advice only goes so far, because habits fall apart differently for everyone.

A student is tripped up by a broken schedule: classes at different times, exams one week and a break the next. A time-based anchor won't hold. Attach the habit not to the clock but to a constant action, like the first coffee, whenever it happens.

Someone working from home loses the edges of the day. There's no commute to mark the end of work time. An artificial anchor helps: close the laptop, take a short walk, and that walk becomes the new boundary.

A parent of a small child struggles to find a stable block of time at all. Here only a genuinely tiny size saves the day: two minutes that fit into any gap, not the perfect half hour that never comes.

Someone with ADHD has the hardest time with routine that lacks a fast payoff. For them it matters more than for anyone to pull the reward close to the action and make the cue impossible to miss: not a mental intention but a sticky note in plain sight, an alarm, clothes laid out the night before.

Why a habit won't stick: the mistakes

Too big a first step. You aimed for an hour and can't find ten minutes. The brain sees a mountain and postpones. Cured by shrinking to something absurdly small.

No clear cue. The habit floats in the air as sometime during the day. And sometime never arrives. Cured by anchoring it to a specific action.

Reward only in the future. Effort every day, joy in six months. The brain won't take that deal. Cured by a fast small plus right here and now.

Everything at once. Five habits split one supply of attention between them, and none of them pulls. Cured by a queue: one, then the next.

Perfectionism. You miss a day, decide it's all ruined, and quit. Even though one miss means nothing. Cured by the never two in a row rule.

Leaning on mood. I'll do it when I feel like it. You won't feel like it every day, and a habit holds precisely on the days you don't. Cured by keeping the action tiny and tied to an anchor rather than a mood.

Where this won't work

Honestly: it isn't a magic button. There are cases where habit mechanics alone fall short.

If burnout sits behind the reluctance, habits won't cure it. You have to recover first, and forcing a habit on an empty tank only finishes you off. If you're trying to lock in an action you don't genuinely need, no loop will help: the brain won't automate something that gives it nothing. And if the habit depends on other people or on circumstances outside you (the gym closed, your schedule changed), the fault isn't yours. Change the condition instead of blaming your willpower.

Habit mechanics work well for what depends on you and what you actually want. For everything else, answer honestly first: do I really need this habit at all.

What to do today

Don't wait for Monday, the perfect mood, or the first of the month. Right now:

  1. Pick one habit. Only one.
  2. Shrink it to a ridiculously small step: one page, five push-ups, three breaths.
  3. Anchor it to something you do every day: after coffee, after brushing your teeth, after closing the laptop.
  4. Decide where you'll mark it off.
  5. Remember the rule: miss a day, come back tomorrow, but never miss two in a row.

And forget the 21 days. Count not the days to a finish line, but the filled-in squares behind you. The habit won't arrive on a scheduled date. It settles in quietly, somewhere along the way, when you suddenly notice you're doing it without any inner negotiation.

Frequently asked questions

So how many days does it actually take to build a habit?

There's no exact number. According to the University College London study, about two months on average, but the range is wide: a simple action can lock in within three weeks, a hard one over several months. Track the feeling that the action is getting easier, not the calendar date.

Is it true that one missed day ruins everything?

No. A single miss barely affects the process. People who occasionally skipped still reached automatic behavior. What's dangerous isn't the miss itself but two or more in a row, because then the skip starts turning into a new habit of its own.

Can I build several habits at once?

Better not to, while you're new at this. Every new habit spends attention and willpower, and that supply is shared and limited. Take one, get it to automatic, and only then add the next. That way a year leaves you with several settled habits instead of zero.

What's the difference between a cue and a reward?

The cue sits at the start and triggers the action: a time, a place, a previous task. The reward sits at the end and makes the brain want to repeat: a pleasant feeling, a checkmark, a bit of self-praise. A habit needs both, plus the action between them.

What if a habit became automatic and then fell apart again?

That happens after a disruption: illness, travel, a move. Don't restart from zero carrying guilt. Go back to the tiny size and the old anchor, work them for a couple of weeks, and the habit clicks back faster than the first time, because the groove was already there.

Does willpower help build a habit?

Willpower is needed at the start, before the loop closes, but leaning on it alone won't do. It runs out, especially on hard days. The whole point is to ask less of willpower by using a tiny size, an anchor, and a fast reward. A habit resting on willpower alone is bound to break.

Why are good habits harder to build than bad ones?

Bad habits reward you instantly: sweetness, a like, rest right now. Good habits keep the reward far off, fitness or knowledge or health in months. The brain locks in whatever feels good immediately, so a good habit has to pull its reward closer artificially: with a mark, a pleasant pairing, a word of praise.

Marking habits off every day is easier when it doesn't turn into a chore of its own. The free Do It Today tracker has a habits section: you mark a habit done with one tap, see the chain of days and your history, and the focus timer and daily tasks sit right next to it, so the whole day lives in one place. It installs like an app on your phone, works in light and dark themes, and syncs across devices, which helps when you mark things off from your phone one day and your laptop the next.

Try it right now

Tasks, a focus timer and habits on one screen. Open it and you instantly see what to work on.

Start for free
Free. Takes a minute to sign up.
Paul Breit
Maker of Do It Today

Marketer and online school founder. Runs his own day in this tracker – which is where the three-state tasks, the focus timer and the day history came from.

Read next