Guide

How do habits form?

Habits form through repetition in a stable context. Each time you do the same thing after the same cue, the link between cue and action gets a little stronger, until the cue starts the action with little or no decision. A reward speeds this up, and the whole process takes weeks to months.

See the Trail quest art from XP Tracker, Hunter version

Short answer: Habits form when you repeat the same action in the same context, such as the same time, place or preceding action. Each repetition strengthens a mental link between the context and the action. After enough repetitions, the context alone starts the behaviour and you no longer have to decide. In the best-known study, this took between 18 and 254 days for a simple daily habit, with a median of 66 (Lally and colleagues, 2010).

The three ingredients

Most habit researchers agree on a short list of what a habit needs.

  • A stable context. A cue that shows up in the same form every day: waking up, sitting at your desk, getting into bed, the end of a meal. Wendy Wood, Jeffrey Quinn and Deborah Kashy (2002) found that about 43% of everyday actions were done almost daily in the same context. Habits live in those repeated situations.
  • Repetition. The action has to happen in that context many times. One heroic effort teaches your brain very little. Fifty small ones teach it a lot.
  • A reward, or at least no penalty. A pleasant result straight after the action helps you come back to it. It can be small: the taste of coffee, the feeling of a ticked box, a calmer mind after a walk.

The cue, routine and reward model from Charles Duhigg's The Power of Habit (2012) describes the same pieces from the inside. Our habit loop guide covers that model with examples. This page is about how the link gets built over time.

The three stages of habit formation

Phillippa Lally and Benjamin Gardner (2013) described habit formation in three phases. They map well onto what you feel as a habit settles.

  1. Initiation: you choose.You pick the behaviour and the context: "after I brush my teeth at night, I read two pages." At this point the habit exists only as a plan, and you have to remember it.
  2. Learning: you repeat.Each time you do it after the cue, the link gets stronger. In Lally's 2010 study, people's sense of automaticity rose fastest in the early weeks, then the gains got smaller. This is the stage where most habits fail, because it still takes effort and the payoff is not obvious yet.
  3. Stability: it runs.The behaviour reaches a plateau. You do it with little thought, and skipping it feels odd. The habit holds up as long as the context stays roughly the same.

What it feels like week by week

Here is a typical pattern for one simple habit, a glass of water after waking. Your timing may differ; harder habits move more slowly.

WhenWhat you noticeWhat's happening
Days 1 to 7You need the glass on the bedside table as a reminder. You forget twice.Initiation. The cue and action are linked only by your plan.
Weeks 2 to 4You remember most days. It still feels like a task.Learning. The link is getting stronger with each repetition.
Weeks 5 to 9Some mornings you've drunk the water before you thought about it.Late learning. The cue is starting to trigger the action.
Week 10 and onSkipping it feels strange. You do it on holiday too.Stability. The habit runs on the context.

A workout, a reading habit or an earlier bedtime has more steps and more effort, so expect the middle rows to last longer. For a realistic range, see how long it takes to form a habit.

What happens in the brain, carefully

Psychologists distinguish between goal-directed behaviour, where you act because you want a result, and habitual behaviour, where a cue triggers the action directly. Wendy Wood and David Neal (2007) described habits as responses that the context sets off, even when your goals have changed.

Brain research, much of it in animals, ties this shift to the basal ganglia, a set of structures deep in the brain. Charles Duhigg describes Ann Graybiel's work at MIT, in which rats learning a maze showed less brain activity as the route became routine, with activity concentrated at the start and end of the run. Scientists are still working out the details in humans, so be wary of anyone who claims to know exactly which "habit circuit" to train.

The practical point is simpler: as a habit forms, it needs less of your attention. That frees attention for other things, and it's also why habits are hard to stop once they're set.

Distill the Essence quest art from XP Tracker, Shaman version
With repetition, a behaviour needs less and less of your attention.

How to use this when you build a habit

  • Pick one fixed cue. An event that happens daily in the same form. "After I park at home" beats "sometime in the evening".
  • Make the action small. A small action gets repeated on bad days, and repetitions are what count in the learning stage.
  • Make it pleasant now. A good mug for the tea, music for the walk, a satisfying tick on a calendar.
  • Shape the room. Put the cue where you'll see it and remove friction. The environment design guide has room-by-room ideas.

Common mistakes

  • Relying on motivation instead of context. Motivation changes daily. A fixed cue doesn't.
  • Starting big. A one-hour habit gets skipped more often, which means fewer repetitions in the stage where they matter most.
  • Moving the habit around. Different times and places each day slow the cue-action link.
  • Stopping in the learning stage. Weeks 2 to 6 often feel like effort without payoff. That's normal. The automaticity gains in Lally's study came from steady repetition through that stretch.

What the research says

Lally, van Jaarsveld, Potts and Wardle (2010) asked 96 adults to repeat one eating, drinking or exercise behaviour daily after a chosen cue and to rate how automatic it felt. Automaticity rose along a curve that flattened out, reaching a plateau after a median of 66 days, with a range of 18 to 254. Simpler behaviours got there faster. Missing one day did not materially affect the process. The study was small and ran for 12 weeks, so the longest times were estimated from each person's curve.

What to do today

  1. Choose one habit and write its cue as an event: "After I ...".
  2. Shrink the action until you could do it on your worst day.
  3. Do it once today after the cue, and mark it somewhere you'll see tomorrow.

To see a personal range for your habit, try the habit formation calculator. If you'd like the repetitions counted for you, XP Tracker turns each daily habit into a quest with its own streak, and each one you finish gives XP right away, which adds a small reward to the learning stage. See how it works.

Questions people ask

How are habits formed in the brain?

With repetition, control of a behaviour shifts from deliberate, goal-directed thinking toward automatic responses to cues. Brain research in animals, such as Ann Graybiel's work at MIT described in The Power of Habit, links this shift to the basal ganglia, a group of structures deep in the brain. The details are still being studied.

What are the stages of habit formation?

Researchers often describe three: initiation, when you choose the behaviour and the cue; learning, when you repeat it and the cue-action link strengthens; and stability, when the habit runs with little effort and holds up over time.

Do habits form faster with rewards?

A pleasant result soon after the action helps you repeat it, and repetition is what builds the habit. Rewards that come months later, like fitness or savings, do less to reinforce today's action, so it helps to add something you get right away.

Why do habits form without us noticing?

Because the brain learns from repetition whether you meant to repeat something or not. If you check your phone every time you sit on the sofa, the sofa becomes the cue. Most bad habits form this way.

Can a habit form if I do it at different times each day?

It can, but more slowly. A habit needs a stable cue, and a different time and place each day gives it nothing fixed to attach to. Tie it to an event that happens daily, such as finishing breakfast.

Start your journey

Pick a class, do the day's quests, and watch your hero level up with you.

Start free on iPhone and Android.

Scan to install Point your phone camera at the code. iPhone opens the App Store, Android opens Google Play.