Skills and Learning

How Habits Form and Change

How the cue, routine and reward habit loop works, why habits can feel automatic, and general ideas for building new routines and changing old ones.

On this page
  1. What a habit is
  2. The cue, routine and reward loop
  3. How long does it take?
  4. Ideas for building a new routine
  5. Changing an existing habit
  6. When habits are more than habits
  7. Putting it together

What a habit is

A habit is a behavior that has become fairly automatic through repetition in a consistent setting. You do not decide to do it each time; the situation tends to trigger it. Reaching for your phone when you sit down, brushing your teeth before bed, or taking the same route to work are everyday examples.

Psychologists have studied habits for a long time, and a common view is that habits help the brain save effort. Repeating an action in the same context gradually shifts it from deliberate choice toward something that happens with little thought. This frees attention for other things, which is useful when the habit is helpful and frustrating when it is not.

The cue, routine and reward loop

A popular way to describe this, widely spread by Charles Duhigg’s book on the subject, is the habit loop:

  • Cue. A trigger that starts the behavior. It might be a time of day, a place, an emotional state, a preceding action, or the presence of certain people.
  • Routine. The behavior itself.
  • Reward. The payoff that makes the brain more likely to repeat the loop. It can be pleasure, relief, comfort, a sense of progress or simple novelty.

A simple example: feeling bored at your desk (cue), checking social media (routine), a small burst of stimulation (reward). Over time, boredom alone can prompt the check.

This framework is a simplification. Real behavior also depends on motivation, environment, stress and how easy or hard an action is. But the loop gives a practical way to examine your own patterns by asking what triggers a behavior and what you are getting out of it.

How long does it take?

You may have heard that it takes 21 days to form a habit. That number is a popular myth without solid backing. One often-cited study of everyday habits found that the time to reach automatic-feeling behavior averaged around two months, but with a very wide range between people and between behaviors. Simple actions tended to become automatic sooner than complex ones, and missing a day occasionally did not seem to ruin the process.

The honest answer is that it varies. What matters more than the count is repetition in a stable context.

Ideas for building a new routine

The following are general approaches people commonly try. None is guaranteed.

Start small. A routine that takes two minutes is easier to repeat than one that takes an hour. Once the pattern is established, it can grow. Starting too big is a common reason new routines fade.

Attach it to an existing cue. Linking a new behavior to something you already do reliably, such as stretching after brushing your teeth, gives it a ready-made trigger. Some call this habit stacking, and psychologists describe a related idea as an implementation intention: deciding in advance “when X happens, I will do Y.”

Make it easy. Reduce friction. Lay out clothes the night before, keep a book on the pillow, keep fruit visible. Environmental design often beats willpower.

Make the reward noticeable. If the benefit comes much later, as with exercise or saving money, a small immediate reward or a simple way to track progress can help. A checkmark on a calendar works for some people, while others find tracking stressful.

Be consistent about context. Doing the behavior at the same time and place helps tie it to those cues.

Expect lapses. Missing a day is normal. Many people find that treating a slip as information, instead of failure, makes it easier to resume. Harsh self-criticism can make quitting more likely, which is one reason ideas like self-compassion are discussed in this context.

Changing an existing habit

Old habits can be harder to change than new ones are to build, because the cues remain. Some commonly suggested strategies:

  • Identify the cue and the reward. Noticing what sets off the behavior and what need it meets (stress relief, a break, company) clarifies what to address.
  • Keep the cue and the reward, swap the routine. If you reach for a snack for a break, a short walk or a drink of water might meet the same need. This does not always work, since the substitute needs to be actually satisfying.
  • Change the environment. Removing or hiding cues, such as moving apps off your home screen, makes the old routine less automatic.
  • Add friction. Making a behavior slightly harder to do, for instance by logging out, creates a pause in which you can choose.
  • Plan for tough moments. Deciding in advance what you will do when a craving or trigger appears can help.

Everyone’s circumstances differ, and these ideas may not fit every situation. Habits are also tied to emotions: people often turn to certain behaviors when stressed, tired or anxious, so addressing the underlying state can matter as much as the habit itself. Ties between delay and mood, for example, are explored in our discussion of why people procrastinate.

When habits are more than habits

Some behaviors, such as substance use, compulsive gambling or behaviors connected to mental health conditions, may involve addiction, compulsion or other factors that go beyond ordinary habit. For these, general tips are not a substitute for support from a health professional. Seeking such help is a reasonable and common step.

Putting it together

Habit change is rarely dramatic. It tends to look like picking one small behavior, giving it a clear cue and a satisfying finish, repeating it in a stable setting, and adjusting after slips. The loop is a useful model, but the outcome depends on the person, the setting and the behavior, so treat any specific method as an experiment you can revise.

The complete guide to skills and learning

Emotional Intelligence: The Key to Success
Read the guide

Keep exploring

Guides from other topics

All topics →