Curious Minds

Clear answers to science and history questions

How Do People Form and Change Habits?

· 7 min read · Science

People form habits through repeated behavior in a consistent context, which creates automatic associations in the brain; they change habits by disrupting those associations and replacing the cue-routine-reward loop with a new behavior, often using the same cue and reward. This process is grounded in neurological feedback loops, not sheer willpower.

What a Habit Is and How It Works

A habit is a behavior that becomes automatic after enough repetition, meaning it is triggered by a cue (a time, place, emotion, or preceding action) and followed by a reward (a feeling of pleasure, relief, or accomplishment). The brain's basal ganglia, a region involved in motor control and procedural memory, stores these sequences so that the conscious prefrontal cortex can rest. That is why you can drive a familiar route while thinking about something else.

The classic model, popularized by Charles Duhigg, describes a three-part loop: cue, routine, reward. For example, you might feel stressed (cue), eat a cookie (routine), and get a brief sugar rush (reward). Over time, the brain starts to anticipate the reward as soon as the cue appears, which strengthens the loop. A crucial part of habit formation is the craving—the desire for the reward that makes the loop self-reinforcing.

The Science of Habit Formation

Research in behavioral psychology and neuroscience shows that habits form through a process called “chunking,” where the brain groups a sequence of actions into a single automatic unit. In experiments with animals, neurons in the basal ganglia fire rapidly at the start and end of a learned routine but stay quiet during the middle, suggesting the brain treats the whole sequence as one event.

In humans, one well-known study involving repeated snacking and exercise found that habit strength grows in a curve that flattens over time—early repetitions produce rapid gains, but after about 66 days on average, the behavior becomes as automatic as it will get. However, the range is wide: some habits form in as little as 18 days, while others take over 250 days. The key is consistency, not intensity.

How to Form a New Habit

To form a habit effectively, you need to design the conditions for automaticity. The following steps are supported by behavioral science:

  • Choose a specific cue: Instead of “I’ll exercise more,” say “I’ll walk for 10 minutes right after my morning coffee.” The cue must be something you already do reliably.
  • Make the behavior small: Start with a version that is ridiculously easy—two minutes of stretching, one page of reading, one vegetable serving. This lowers the barrier to starting.
  • Attach it to an existing routine: This is called habit stacking. For example, after you brush your teeth (existing habit), you floss one tooth (new habit). The existing cue triggers the new behavior.
  • Make the reward immediate: The brain values immediate rewards over delayed ones. If you’re saving money, transfer a small amount to a savings account and immediately log it in a visual tracker. The feeling of progress becomes the reward.
  • Repeat in a stable context: The same time and place helps the brain link the cue to the behavior. If you always read in the same chair, the chair itself becomes a cue.

How to Change an Existing Habit

Changing a habit is not about erasing it—old neural pathways never fully disappear—but about overriding them with a new routine that gives a similar reward. The most effective strategy is the “golden rule of habit change”: keep the same cue and reward, but insert a different routine.

For example, if you habitually eat a cookie when you need a break at work (cue: fatigue or boredom; reward: a moment of pleasure and a sugar lift), you might replace the cookie with a short walk or a few minutes of deep breathing. The cue and reward stay the same, but the routine changes. This works because the brain still gets the break it craves, just through a healthier action.

Another evidence-based approach is implementation intentions: if-then plans. You decide in advance, “If I feel the urge to check social media while working, then I will stand up and stretch for 30 seconds.” This pre-decided response makes the new behavior more likely to kick in automatically.

Common Problems and Misconceptions

One common misconception is that it takes exactly 21 days to form a habit. That number comes from a 1960s plastic surgeon’s observation about patients’ adjustment to new appearances, not from scientific research. The actual average is around 66 days, but it varies widely by person and behavior.

Another problem is relying on motivation. Motivation is a feeling that fluctuates; habits are built on repetition and context, not on feeling like it. Missing one day is not a failure—research shows that a single lapse does not erase progress, but missing two or more in a row can slow the curve. So the rule is: never miss twice.

Also, people often try to change too many habits at once. The brain’s self-control resources are limited, and attempting multiple new habits simultaneously usually leads to failure. Focus on one at a time.

Why Habits Are Hard to Break

Habits persist because they are stored in the basal ganglia, which operates without conscious input. Even after you decide to quit, the old cue-reward link remains dormant but intact. For instance, smokers who quit for years can still feel a strong urge when they see someone lighting up—the cue triggers the old craving.

Stress also makes habits harder to break. Under pressure, the brain reverts to automatic behaviors because they require less energy. That is why you might bite your nails during an exam or reach for junk food after a hard day, even if you thought you had kicked the habit. Managing stress through sleep, exercise, and mindfulness can indirectly support habit change.

Alternatives to Habit-Based Change

Not all behavior change needs to be habit-based. For some goals, you can rely on deliberate decisions each time, especially if the behavior is infrequent (like filing taxes) or requires high effort (like writing a book). Another alternative is environmental design: you can change your surroundings to make the desired behavior easier and the unwanted behavior harder. For example, keeping fruit on the counter and chips in a high cupboard reduces the need for willpower.

Another approach is using a “commitment device”—a pre-commitment that locks you into a future action, such as scheduling a workout with a friend or setting a deadline with a penalty. These work by changing the immediate consequences of your behavior, rather than relying on automaticity.

Frequently Asked Questions

How long does it really take to form a habit?

Research suggests an average of about 66 days, but it ranges from roughly 18 to 254 days depending on the behavior, the person, and the consistency. Simple habits like drinking a glass of water after waking up may form faster than complex ones like exercising for an hour.

Can you break a habit by just stopping?

Stopping alone rarely works because the cue and reward loop remains. You need to replace the routine with something that gives a similar reward, or remove the cue entirely. If you can’t remove the cue, you can practice noticing it and deliberately choosing a different action.

Why do habits come back after I've stopped?

Old habits are never fully erased; they are stored as neural pathways that can be reactivated by the original cue or by stress. That’s why relapse is common. The key is to not see a lapse as a failure—just get back on track immediately, because missing two times in a row is what really sets you back.

What is the best way to start a habit when I have no motivation?

Use the “two-minute rule”: scale the habit down to a version that takes less than two minutes. Instead of “run 5K,” start with “put on running shoes and step outside.” This reduces the mental barrier, and once you start, the momentum often carries you further. Also, attach the habit to an existing routine so you don’t have to make a decision.

Are some people just not able to form habits?

No, habit formation is a fundamental brain function. However, people with certain conditions like ADHD may find it harder due to differences in executive function and reward processing. For them, external cues, reminders, and immediate rewards are especially important. But everyone can form habits with the right conditions.

In this article
  1. What a Habit Is and How It Works
  2. The Science of Habit Formation
  3. How to Form a New Habit
  4. How to Change an Existing Habit
  5. Common Problems and Misconceptions
  6. Why Habits Are Hard to Break
  7. Alternatives to Habit-Based Change
  8. Frequently Asked Questions