Habit formation: the science-backed system for building habits that last

Picture of Ramon
Ramon
28 minutes read
Last Update:
5 hours ago
Habit Formation: The Science-Backed System That Works

Habit formation: about 43% of your daily actions are habits

You already run on habits. In diary studies by psychologist Wendy Wood and her colleagues, about 43% of everyday actions were performed almost daily, usually in the same context [1][2]. People often did these actions while they thought about something else [2]. Ask yourself which of your habits you built on purpose.

Habit formation is the neurological process by which repeated behaviors become automatic responses to specific cues [1][3]. A routine needs conscious effort each time, while a fully formed habit needs little effort once the cue is present.

If you have tried to build a habit and stalled, a missing cue is a common cause. A habit forms when you repeat a behavior in the same context until the context prompts the behavior [1][4]. In our view, motivation helps you start. After that, you repeat the behavior after a clear cue until it becomes automatic.

This guide explains how habit formation works in the brain, gives you 6 steps to build a habit, and shows how to fix the 5 common failures.

This guide is part of our Growth collection.

What this habit formation guide covers

  • How habit formation works in the brain: the basal ganglia, dopamine, and repetition
  • The habit loop (cue, routine, reward) and the 4 stages of habit formation (cue, craving, response, reward)
  • How long it takes to form a habit, and where the 21-day claim comes from
  • How to build a habit in 6 steps, from the first cue to daily tracking
  • The 5 most common reasons habits fail and how to fix each one
  • How to set up your home and your devices so that good habits take less effort
  • Advanced habit formation strategies: breaking a habit, identity-based habits, keystone habits, and a comparison of 3 frameworks

Key takeaways

  • In Wendy Wood's diary studies, about 43% of everyday actions were habits: performed almost daily, usually in the same context [1][2].
  • The habit loop has 3 parts: a cue triggers a routine, and a reward makes the routine more likely next time [5].
  • Habit formation takes 18 to 254 days with a 66-day median, not 21 days as commonly claimed [4].
  • Start with a version of the habit that takes under 2 minutes, and extend it once you do it without thinking [6].
  • Set up your surroundings so that the good habit takes fewer steps and the bad habit takes more [6].
  • James Clear argues that a habit lasts longer when you tie it to an identity, such as "I am a reader" [6].
  • Habit stacking ties a new habit to a habit you already have, so the existing habit works as the reminder [7][6].
  • The Habit Formation Flywheel is our name for the way each repetition of cue, routine, and reward lowers the effort of the next repetition.
  • Missing 1 day did not materially affect habit formation in Lally's study [4]. Return to the habit the next day.

How does habit formation work in your brain?

The science of habit formation points to the basal ganglia, a group of structures deep in the brain. Neuroscientist Ann Graybiel at MIT describes how these circuits change with experience, so that a repeated behavior can become habitual [3]. In an earlier paper, Graybiel proposed that the basal ganglia package a learned sequence of actions into a single unit, a process called chunking [8].

Learning to drive is an everyday example of chunking. At first each action needs your attention, and with practice the sequence runs as one.

Did You Know?

In diary studies by Wendy Wood and colleagues, about 43% of everyday actions were habits: people did them almost daily, usually in the same context. When willpower is low, people fall back on their strong habits, according to the review by Wood and Rünger.

Automatic behavior
Stable context
Cue-routine-reward
Based on Wood, Quinn, & Kashy, 2002; reviewed in Wood & Runger, 2016

In this proposal, chunking lets a repeated sequence run as one unit [8]. The mechanism is the same for a healthy habit and a harmful habit. For more on the brain structures involved, see the neuroscience of habit formation.

Dopamine is the second part of the mechanism. Wolfram Schultz and his colleagues showed that dopamine neurons signal the difference between the reward you expect and the reward you get [9]. Researchers call this difference reward prediction error. The signal is strong when an outcome is better than predicted and weak when the outcome matches the prediction [9].

Reward prediction error is one possible reason why a new habit feels exciting in the first weeks and plain later, because the reward has become expected. A small change to the reward, such as a new way to track the habit, can make the habit feel fresh again. This advice is our reading of the research. The studies measured neurons and did not test habit trackers.

A habit that is well learned does not vanish when you learn a new one. Wood and Rünger report that old habit memories are not necessarily replaced, so an old context can still prompt the old behavior [1].

A good habit lasts for the same reason, once it has formed.

Free Interactive Tool
Implementation Intentions Builder - interactive tool preview
Implementation Intentions Builder

Pick a goal, choose your trigger situation, and build concrete if-then plans that turn intentions into automatic behavior.

Try It Now

What is the habit loop and how do you use it?

Charles Duhigg made the habit loop popular in his book The Power of Habit: every habit runs through a cue, a routine, and a reward [5]. The cue triggers the behavior, the routine is the behavior, and the reward makes the loop more likely to run again. For the full mechanism, see the trigger, action, and reward habit loop. For a technique that builds on the loop, see habit stacking for beginners.

Free Interactive Tool
Habit Stack Builder
Habit Stack Builder

Chain new habits to an anchor habit already in your day, with capacity checks and a printable stack card.

Try It Free
Definition
The Habit Loop

The habit loop is a three-part pattern in which a cue triggers a routine, and the routine delivers a reward. After enough repetitions the brain can run the sequence as a single unit, a process called chunking (Graybiel, 1998), so the behavior needs little conscious decision.

1
Cue: a trigger that tells your brain to start the behavior.
2
Routine: the action itself, physical or mental.
3
Reward: the benefit that reinforces the loop.
Example: You walk into the kitchen (cue), brew coffee (routine), and feel the warm alertness kick in (reward).

The table shows each part of the habit loop with two examples.

Component Definition Example
CueThe trigger that initiates the behaviorAlarm goes off (morning coffee) or walking through the door after work (evening run)
RoutineThe physical or mental action you take after the cueMaking and drinking coffee, or changing clothes and running 20 minutes
RewardThe benefit right after the routine, which teaches your brain to repeat the sequenceCaffeine boost and warm ritual, or runner’s high and shower relaxation

The cue is the part of the habit loop that is easiest to forget. It is common to plan the routine and leave the trigger open. Without a clear cue you depend on memory, and memory fails on busy days.

Duhigg sorts cues into 5 kinds: a time, a place, a preceding action, an emotional state, and other people [5]. "After I pour my morning coffee" is a preceding action. "When I sit at my desk at 9 AM" joins a time and a place. A cue that names an exact moment is easier to notice than a vague cue.

The reward closes the habit loop. A small reward is enough, and it works best right after the behavior. You can check off the habit on a tracker, say "done" out loud, or notice how you feel. BJ Fogg calls this step celebration and recommends it immediately after the behavior [7].

A habit, a routine, and a ritual are three different things. A habit starts by itself when the cue appears, and a routine is a sequence you still have to remember. A ritual is a routine that carries meaning for you.

A morning run can pass through all three. It starts as a routine, becomes a habit that follows your alarm, and turns into a ritual if you use the run to reflect.

What are the 4 stages of habit formation?

The 4 stages of habit formation are cue, craving, response, and reward. The model comes from James Clear's book Atomic Habits, and it adds one stage to Duhigg's loop: the craving [6]. Clear's own example is the morning coffee.

  1. Cue: a signal that a reward is near. You wake up.
  2. Craving: the wish for the change the reward brings. You want to feel alert.
  3. Response: the action you take. You drink a cup of coffee.
  4. Reward: the result that satisfies the craving. You feel alert, and coffee becomes linked to waking up.

Clear turns the 4 stages into 4 laws for building a habit: make it obvious, make it attractive, make it easy, and make it satisfying [6]. The 6 steps in this guide follow the same order.

How long does it take to build a habit?

The claim that a habit takes 21 days goes back to Maxwell Maltz, a plastic surgeon. In his 1960 book Psycho-Cybernetics, Maltz wrote that patients needed at least about 21 days to get used to their new appearance [10]. Maltz described how people adjust to a new self-image. Later writers turned his number into a rule for habits.

Important
The “21-day habit” rule is a myth

Lally et al. (2010) followed people who were building a new daily habit. Reaching automaticity took from 18 to 254 days, with a median of 66 days. The time depends on the behavior and the person, so no single number of days fits everyone.

Bad"It's been 21 days and the habit still doesn't feel automatic, so I must have failed."
Good"A simple habit can form within weeks. A demanding habit can need months. Both are normal."
Don’t quit at day 22
Count the days you did it
Based on Lally et al., 2010; Maltz, 1960

The research gives a different picture. Phillippa Lally and her team at University College London asked 96 volunteers to repeat one new behavior every day in the same context for 12 weeks [4]. Each volunteer chose an eating, drinking, or activity behavior.

For the volunteers whose data fitted the model, reaching automaticity took from 18 to 254 days, with a median of 66 days [4]. A missed day did little harm:

"Missing one opportunity to perform the behaviour did not materially affect the habit formation process." [4]

Lally, van Jaarsveld, Potts, and Wardle, 2010

Simple actions became automatic sooner. In the same data, automaticity peaked more quickly for drinking a glass of water than for doing 50 sit-ups [11].

Later studies agree that no fixed number exists. A 2024 review covered 20 studies with 2,601 participants [12]. The studies that reported a time found medians of 59 to 66 days, means of 106 to 154 days, and individual results from 4 to 335 days [12]. In a study of gym visits and hospital handwashing, gym habits took months to form and handwashing habits took weeks [13].

The table lists factors that can shift your timeline. Row 1 comes from the comparison of water and sit-ups [11]. Row 2 fits the 2024 review, which names frequency and timing among the influences on habit strength [12]. The other three rows are our rules of thumb.

Factor Faster formation Slower formation
Behavior complexitySimple (drink water)Complex (full workout)
Consistency of cueSame time/place dailyVariable context
Intrinsic motivationAligned with identityExternally imposed
Physical effortLow effortHigh effort
Existing routineAttached to anchor habitStandalone

So plan for about 10 weeks of daily repetition, which is the time Gardner, Lally, and Wardle suggest telling people to expect [11]. You can keep going after a missed day. For the research behind these numbers, see the truth about how long it takes to form a habit.

How to build a habit in 6 steps

To build a habit, choose one small behavior, tie it to a cue you already meet every day, and reward yourself right after you do it. Repeat the behavior daily and track it. The same steps show how to build good habits of any kind, from exercise to reading.

These 6 steps combine three well-known approaches to habit formation: BJ Fogg's Tiny Habits [7], James Clear's Atomic Habits [6], and Charles Duhigg's habit loop [5]. Fogg and Clear supply the small start and the anchor. Duhigg supplies the loop of cue, routine, and reward.

Premium Interactive Tool
Habit System Designer
Habit System Designer

Design a complete habit system with triggers, environment layers, keystone habits, and a weekly review loop.

Try It Free
Four habit-building stages from Initiation to Automaticity. Rep ranges are illustrative.
The Habit Building Stages: a simplified illustration of the move from conscious effort to automaticity. The repetition ranges are illustrative.

The 6 steps to build a lasting habit:

  1. Choose one habit and write it as an if-then plan.
  2. Design your cue: pick something you already do every day.
  3. Start with a version of the habit that takes under 2 minutes.
  4. Stack the new habit onto a habit you already have.
  5. Reward yourself within seconds of the behavior.
  6. Track the habit each day and review it each week.

We call the idea behind these steps the Habit Formation Flywheel. The name is our framing, and it builds on Fogg [7], Clear [6], and Duhigg [5]. The Flywheel maps directly onto the 6 steps: steps 1 to 3 start it with a cue, a small behavior, and a first reward. Steps 4 to 6 keep it turning through stacking, rewards, and tracking.

The Habit Formation Flywheel is our name for a cycle in which each repetition of cue, routine, and reward lowers the effort of the next repetition. James Clear's idea of compounding describes the long-term result of small gains, while the Flywheel covers how a single habit gets easier.

Lally measured a curve that climbs first and then levels off as repetition builds automaticity [4]. The Flywheel follows the same shape. The early repetitions need attention and feel slow. Later the cue is enough to start the behavior, and researchers call that state automaticity [4].

BJ Fogg gives his own example in Tiny Habits. Fogg began by flossing one tooth after he brushed his teeth, and the habit grew from there [7]. Brushing was already automatic, so brushing worked as the cue. One tooth was small enough to do without motivation.

Step 1: Choose one habit and define it precisely

Researchers call an if-then plan an implementation intention. Psychologist Peter Gollwitzer developed the concept, and his 1999 review describes how such plans help people act on their goals [14]. A later meta-analysis by Gollwitzer and Sheeran found a medium-to-large effect of if-then plans on goal attainment [15]. "I'll exercise more" is a wish, and "After I turn off my alarm, I will do 10 pushups" is an implementation intention.

Write your habit in this format: "After [CUE], I will [BEHAVIOR] for [DURATION/AMOUNT]." Make the behavior exact enough that someone who watches you could tell whether you did it. For more starting points, see habit system design architecture.

Write the habit as something you will do, and avoid wording it as something you will stop. In a study of 1,066 people with New Year's resolutions, Oscarsson and colleagues compared the two wordings one year later [16]. Of the people with approach goals, 58.9% reported success, against 47.1% of the people with avoidance goals [16]. "I will walk 15 minutes after lunch" is an approach goal, and "I will stop skipping exercise" is an avoidance goal.

Step 2: Design your cue

A good cue is something you already do every day without thinking. Examples are pouring coffee, sitting down at your desk, and closing your laptop in the evening. These anchor habits remind you at the right moment, so you need no separate reminder.

A fixed time can work as well as a routine. In a randomized trial, 192 adults planned an everyday nutrition behavior around a routine or around a time of day [17]. Automaticity rose in both groups, with no difference between them [17].

Our practical advice goes beyond the trial. Choose a routine cue when your days vary and a time cue when your schedule is steady.

Step 3: Start impossibly small

A common mistake in building good habits is to start too big. In the first weeks the aim is repetition, and a small behavior is easy to repeat. James Clear's two-minute rule says that a new habit should take less than 2 minutes to do [6].

For a meditation habit, start with 30 seconds. For exercise, start with 5 pushups, and for reading, start with one page. Extend the habit once you do it without thinking about it.

Step 4: Stack it onto an existing habit

Habit stacking means that you attach a new habit to a habit you already have. Stacking gives you a reliable cue, it fits into your day as it is, and it leaves you fewer decisions to make. The formula comes from BJ Fogg's Tiny Habits, and James Clear made the name habit stacking popular [7][6].

The formula is: "After [EXISTING HABIT], I will [NEW HABIT]." Here are 3 examples:

  • After I pour my morning coffee, I will drink a glass of water.
  • After I close my laptop at the end of the day, I will do 10 squats.
  • After I get into bed, I will write down 3 things I'm grateful for.

The existing habit is your trigger. To choose anchor habits and build longer stacks, see how to master habit stacking.

Step 5: Engineer your reward

Reward yourself within seconds of the behavior. A mental "yes" or a checkmark is enough. Fogg's explanation is that the good feeling right after a behavior helps the brain repeat the behavior [7].

Here are 4 rewards that take a few seconds:

  • Check off the day on a calendar or a habit tracker.
  • Say "done" out loud.
  • Add a small movement, such as a fist bump or a stretch.
  • Notice how you feel after the behavior.

Change the reward when it starts to feel flat. Dopamine neurons respond most to rewards that are better than expected [9], so a new tracker or a different small reward can bring back some interest. This step is our suggestion, because Schultz and colleagues recorded neurons and did not test trackers. For apps that track habits, see the best habit tracking apps.

See also: Habitica alternatives, 7 habit apps with or without the game.

Step 6: Track and review

Mark the habit each day, and look at the record once a week. A meta-analysis of 138 studies found that people who monitor their progress toward a goal are more likely to reach the goal [18]. The effect was larger when people recorded their progress physically [18]. A calendar with one mark per day is enough.

Tracking does two jobs. It gives you a small reward each day, and it shows you a gap early. When you see two empty days in a row, restart the same day with the small version of the habit. In the weekly review, count the marked days and decide whether the cue needs a change.

Why habits fail: 5 failure patterns and how to fix them

Habits fail for a small number of reasons, and each reason has its own fix. Find the failure pattern that matches your case before you try harder. For a full diagnosis, see why habits fail.

Failure pattern 1: No clear cue. You rely on memory to start the habit. Once a habit has formed, context cues activate it automatically [1], and a habit without a stable cue gets less of that help. Fix: attach the habit to an existing behavior, or to a fixed time and place.

Failure pattern 2: The behavior is too big. You started with a 30-minute workout. Fogg's method is to shrink a new behavior until it takes less than 30 seconds [7]. Fix: cut the habit to the 2-minute version from Step 3, and extend it once you do it without thinking.

Failure pattern 3: No immediate reward. You finish the behavior and move on. In Duhigg's habit loop, the reward is what teaches the brain to repeat the routine [5]. Fix: add a small reward within seconds.

Failure pattern 4: Wrong anchor habit. You attached the new habit to something that does not happen every day, such as a coffee run. Fix: pick an anchor you do daily without thinking, such as sitting down at your desk.

Failure pattern 5: Too many changes at once. You are trying to build 5 habits in the same week. Each new habit needs your attention until it is automatic, and your attention for new routines is limited. Fix: start with 1 to 3 habits, and add the next habit when the first ones run without effort.

Check the cue first. The other four fixes depend on a cue that reliably starts the habit, so a missing cue is the first thing to repair.

What to do when you miss multiple days. One missed day made no material difference in Lally's study [4], so a single slip does not show that you failed. Return to the habit the next day, even in its small version.

After a longer gap, restart with the small version and check the cue. A cue that failed several days in a row is less reliable than you assumed.

We suggest that you track a consistency ratio for the next 7 days: the days you did the habit out of the days you planned it. The ratio tells you more about your system than a streak that starts again at zero.

Design your environment so good habits become the default

Environment design is the practice of structuring your physical and digital spaces so desired behaviors require less effort than undesired ones. James Clear builds two of his laws on this idea: make a good habit obvious and easy, and make a bad habit invisible and difficult [6]. Wood and Rünger also note that a change of cues in the place where you act reduces the pull of an old habit [1].

Make good habits obvious. Put your gym clothes on your bed, your journal on your pillow, and your water bottle on your desk. When you see the object, you remember the habit.

Make good habits easy. Prepare your workout clothes the night before, leave your meditation cushion out, and keep your book on the nightstand. Each step you remove makes the habit easier to start.

Make bad habits invisible. Put your phone in another room, cover the TV remote with a blanket, and move the junk food to the back of the pantry. A cue you do not see cannot prompt the habit.

Make bad habits hard. Uninstall the app that tempts you, delete the saved passwords for the sites that distract you, and use an app blocker. Each extra step gives you a moment to stop.

A prepared room means one less decision at the moment you act. For a plan that goes room by room, see home environment design for better habits. To match habits to your energy during the day, see habit pairing and energy management.

Advanced habit formation strategies

These strategies help once the basic habit runs. They cover how to change an old habit, how to keep a formed habit alive, and how to choose the next habit to build.

How to modify or break an existing habit

To break a habit, you use the same loop as to build one. Old habit memories are not necessarily replaced when you learn a new habit [1], so a decision to stop is rarely enough.

Duhigg's method is to keep the cue and the reward and to replace the routine [5]. Say you pick up your phone (routine) each time you sit down at your desk (cue), because the phone gives you a short break (reward). A 30-second breathing exercise at the same moment gives you a similar break with a different behavior.

Routine substitution has 3 steps. First, name the cue and the reward before you change anything. Second, choose a replacement routine that gives a similar reward. Third, use the replacement daily for about 10 weeks before you judge it, the time Gardner and colleagues suggest for a new daily habit [11].

If no replacement routine works, remove the cue instead. To remove a cue, you change your surroundings so that the trigger no longer appears.

What to do once a habit becomes automatic

A habit that runs by itself can still fade. The habit can get boring, and the reward can start to feel flat. Each of these two problems has its own fix.

Against boredom, make the habit slightly harder once the current version feels effortless. If 5 pushups are automatic, move to 10. James Clear calls this approach the Goldilocks rule: you stay at the edge of what you can do [6].

Against the flat feeling, change the reward or the way you track the habit. If the habit no longer serves you, stop it on purpose and decide which behavior takes its place at that cue.

How to tell that a habit has formed. In Lally's study, people rated each day how automatic the behavior felt [4]. In practice, you start the behavior without deciding, you sometimes notice only afterward that you did it, and a skipped day feels odd.

What to do when your routine changes. A move or a new job changes the cues that trigger your habits, which Wood and Rünger describe as a window of opportunity for change [1]. A good habit can also get lost when its cues change. Choose a new cue in the new setting on the first day, and restart with the small version of the habit.

Identity-based habits

James Clear separates outcome-based habits from identity-based habits [6]. An outcome-based habit starts from a result, such as "I want to run a marathon." An identity-based habit starts from the kind of person you want to be, such as "I am a runner."

Example habit progress dashboard: 23-day streak, 87% completion, 34.8% toward 66-day automaticity goal. 66-day framework based on Lally et al. (2010).
Example of a habit tracking dashboard. The 66-day automaticity goal derives from Lally et al. (2010). All streak and completion figures are sample data for demonstration.

"I want to read more" becomes "I'm a reader." "I want to exercise" becomes "I'm a person who exercises." Clear's argument is that people act in line with how they see themselves, so a habit tied to an identity is easier to keep [6].

Clear describes each repetition as a vote for the person you want to become [6]. Ten pushups are a vote for "someone who works out." One page is a vote for "a reader." This model is Clear's framing, so treat it as a useful way to think about habits.

Keystone habits

A keystone habit is a habit that makes other good habits easier. Charles Duhigg introduced the term, and his main example is regular exercise: people who start to exercise often also eat better [5]. Duhigg reports these effects as observations, so expect the effect to differ from person to person.

Duhigg also names making your bed, eating dinner as a family, and keeping a food journal as keystone habits [5].

To find your keystone habit, ask which single habit would make your other plans easier if you kept it. For some people the answer is exercise, and for others it is sleep or a fixed morning routine. See the keystone habits guide for ways to identify yours.

The Goldilocks rule: difficulty calibration

The Goldilocks rule comes from James Clear: motivation is highest when a task sits at the edge of your current ability [6]. The idea is related to Mihaly Csikszentmihalyi's work on flow, the state of full absorption in a task that matches your skill [19]. For habit formation, the right level is hard enough to feel like progress and easy enough that you still do it.

If a habit is too easy you get bored, and if it is too hard you skip it. Raise the difficulty a little when the current version feels effortless. To adjust difficulty over time, see the Goldilocks rule for habits.

A 30-day ramp from small to full effort

A ramp turns the Goldilocks rule into a plan for your first month. Pick your full target, such as a 30-minute workout. Then split the month into three phases. Each phase has a flex day, where you do a 2-minute version or rest without penalty.

DaysEffortFlex day
1 to 1050% of target (15 minutes)Day 7
11 to 2075% of target (about 22 minutes)Day 14
21 to 30100% of target (30 minutes)Days 21 and 28

If 50% still feels hard, start with the two-minute version from Step 3. If you miss two days in a row, drop back one level for three days, then return to your phase. Day 30 is a checkpoint. With a 66-day median to automaticity in Lally's study, expect about 5 more weeks [4].

Habit pairing for energy management

Habit pairing matches each new habit to the energy you have at that time of day. Habit stacking is a separate tool: it chains a new habit after an existing one. When you stack, pick an anchor that happens every day and fits the new habit, as BJ Fogg recommends [7].

Give each habit an anchor with matching energy. A calming meditation fits well after a morning workout. The same meditation fits badly into a commute that leaves you stressed.

Comparing frameworks: Atomic Habits vs. Tiny Habits

Three books shape how habit formation is taught today: Atomic Habits by James Clear [6], Tiny Habits by BJ Fogg [7], and The Power of Habit by Charles Duhigg [5]. The three books describe the same process from different angles and fit together well. For a side-by-side comparison, see Atomic Habits vs. Tiny Habits.

The first table shows the core idea of each framework.

Framework Core principle How it works
Atomic Habits (Clear)Small improvements compound; identity drives behavior1% gains daily; environment design and habit stacking make each repetition easier
Tiny Habits (Fogg)Start absurdly small; celebrate immediatelyUnder 30 seconds to start; immediate celebration closes each loop
The Power of Habit (Duhigg)Cue-routine-reward loop governs all habitsIdentify the existing loop, then substitute the routine while keeping cue and reward

The second table shows our assessment of which reader each framework suits.

Framework Best for Weakest at
Atomic Habits (Clear)People who want a complete system linking identity, environment, and long-run growthReaders who need the very first step to cost zero motivation
Tiny Habits (Fogg)People who have failed with ambitious goals and need a near-zero starting pointReaders building complex multi-habit systems or needing identity work
The Power of Habit (Duhigg)People who want to change existing bad habits rather than build new onesReaders starting from scratch with no existing loop to modify

Pick the framework you will use, and stay with it for a few months before you switch.

Habit formation in specific situations

The 6 steps stay the same in each situation. The cue and the starting size are the parts that change.

For people with ADHD

ADHD often comes with difficulties in working memory and self-control, as Russell Barkley and his colleagues describe [20]. A habit that depends on remembering is therefore a weak plan. Put the reminder into your surroundings instead.

Use timers, alarms, and visual cues. Dawson and Guare recommend external supports of this kind for children and adolescents with weak executive skills [21]. We apply the same idea to adults.

Put a sticky note on your bathroom mirror, set a phone reminder, or leave your gym clothes at the door. The cue has to be hard to miss, because working memory might not hold it.

Stack your habit onto something you already do every day. If routines are hard for you, build one fixed morning sequence and place the habit inside it. For a full approach, see habit building for ADHD.

Reward every repetition in the first weeks. You do not need to wait until the habit feels automatic.

For working parents

As a working parent you have little spare time, so use the fixed points of your day as anchors. Examples are the morning with the kids, lunch preparation, and the bedtime routine. For more anchors, see habits for working parents.

Start smaller than the 2-minute version: 30 seconds is enough. A habit that short fits between two tasks.

Let the habit differ between weekdays and weekends if your days differ. A habit you keep on 6 days and skip on a chaotic Monday is still a habit in progress.

For remote workers

Remote work removes the cues that an office provides, such as the commute and the arrival. Replace these cues: use one place for work, start at the same time each day, and mark the start of work with a short ritual.

At home you control most of your surroundings, which helps with habit stacking. Stack a focus block onto your morning coffee, and stack a walk onto your lunch break.

For knowledge workers and creatives

For creative work, set the habit at the edge of your ability, as the Goldilocks rule suggests [6]. The work stays interesting at that level.

Stack creative work after something that leaves you with energy, such as exercise or a walk. Avoid placing it after a draining task.

Track the habit so that you can see progress, for example in pages written or sessions completed. For morning routines that support creative work, see morning routines for habit building.

Ramon’s take

43% of your day runs on autopilot before you even notice. That number wrecked me a little. I spent a week trying to build a daily writing habit through sheer intention, no cue, no anchor, just "I will write today", and I skipped it eight times before admitting the cue did not exist. Once I attached it to making my first coffee, it held. Does that mean I should be designing more habits deliberately, or have I just been assigning blame to the wrong thing this whole time?

Conclusion

Habit formation follows a simple pattern. Repeat a behavior after the same cue and it becomes more automatic with repetition [4]. Make the behavior small and reward it right away [7]. The Habit Formation Flywheel is our name for this effect.

When a habit fails, check the design first: the cue, the size of the behavior, and the reward. Expect the process to take about 10 weeks, and longer for a demanding habit. In Lally's study the range was 18 to 254 days, with a median of 66 days [4]. Start small, stack the habit onto one you have, set up your surroundings, and track each day.

Next 10 minutes

Pick one habit you want to build. Write it in the format "After [CUE], I will [BEHAVIOR]." Make sure the behavior takes under 2 minutes and follows something you already do every day. Choosing the habit is the first step, and you have just taken it.

This week

Do the habit on as many days as you can this week. Once is the minimum. Each time, check whether the cue reminded you and whether the reward followed. If the cue failed, change the cue before you change anything else.

Example: 7-day habit tracker grid showing sample check-ins for habits like Meditate and Exercise across a week with streak counts.
Example of a 7-day habit tracker. Sample check-in data shown for demonstration.

Frequently asked questions

How long does it take to form a habit?

In the best-known study, habits took 18 to 254 days to become automatic, with a median of 66 days [4]. In a 2024 review of 20 studies, the studies that reported a time found medians of 59 to 66 days [12]. The 21-day figure comes from Maxwell Maltz's 1960 book about self-image, which is not a habit study [10].

Can you build a habit even if you miss one day?

Yes. In Lally's study, missing one opportunity to perform the behavior did not materially affect habit formation [4]. The study did not test longer gaps, so return to the habit the next day.

What is habit stacking and why does it work?

Habit stacking means doing a new habit right after a habit you already have: 'After [EXISTING HABIT], I will [NEW HABIT]' [7][6]. The existing habit works as the cue, so you need no extra reminder. A good anchor happens every day, needs no decision, and has a clear end, such as putting down your toothbrush.

Why is starting small so important for habit formation?

A small habit is easy to repeat, and repetition in the same context is what makes a behavior automatic [4]. James Clear's two-minute rule says a new habit should take less than 2 minutes [6], and BJ Fogg suggests less than 30 seconds [7]. Extend the habit once you do it without thinking.

What role does dopamine play in habit formation?

Dopamine neurons signal the difference between the reward you expect and the reward you get, which researchers call reward prediction error [9]. A reward that is better than expected produces a strong signal, and a fully expected reward produces a weak one. Reward prediction error is one possible reason why a new habit feels exciting at first and plain later.

How do you fix a habit that keeps failing?

Check 5 things in this order: the cue, the size of the behavior, the reward, the anchor habit, and the number of habits you are building. Attach the habit to something you do daily, shrink it to under 2 minutes [6], and add a reward within seconds. If you cannot name your cue in one sentence, start there.

What if I can't control my environment for habit building?

Use cues you can carry or control. Examples are an object on your own desk, a chair you use only for the habit, or a playlist. A phone folder that keeps your tracking app one tap away works too. In a shared space, these small cues do the job that a prepared room does at home.

How do you pick the right identity to anchor a habit to?

Choose an identity that already feels partly true. After a week of 5-minute walks, 'I am someone who moves every day' feels believable. 'I am an athlete' may still feel like a stretch. Say the sentence out loud, and make the identity smaller if you do not believe it. The idea of identity-based habits comes from James Clear [6].

Explore the full Habit Formation library

Go deeper with these related guides from our Habit Formation collection:

Glossary of related terms

The basal ganglia are a group of structures deep in the brain. Circuits in the basal ganglia change with experience and are involved when a repeated behavior becomes a habit [3].

Automaticity is the state in which a cue starts a behavior without a conscious decision. In Lally's study, people reached automaticity after a median of 66 days [4].

Habit stacking is the technique of doing a new habit right after an existing habit, with the formula "After [EXISTING HABIT], I will [NEW HABIT]" [7][6].

A cue is the trigger that starts a habit. Duhigg names 5 kinds of cue: a time, a place, a preceding action, an emotional state, and other people [5].

An implementation intention is an if-then plan that names when and where you will act [14]. An example is "After my morning coffee, I will meditate for 30 seconds."

Reward prediction error is the difference between the reward you expect and the reward you get. Dopamine neurons signal reward prediction error [9].

A keystone habit is a habit that makes other good habits easier to start. Duhigg's main example of a keystone habit is regular exercise [5].

Environment design is the practice of arranging rooms and devices so that a wanted habit takes few steps and an unwanted habit takes many steps [6].

References

[1] Wood, W., & Rünger, D. (2016). Psychology of habit. Annual Review of Psychology, 67, 289-314. DOI: 10.1146/annurev-psych-122414-033417

[2] Wood, W., Quinn, J.M., & Kashy, D.A. (2002). Habits in everyday life: Thought, emotion, and action. Journal of Personality and Social Psychology, 83(6), 1281-1297. DOI: 10.1037/0022-3514.83.6.1281

[3] Graybiel, A.M. (2008). Habits, rituals, and the evaluative brain. Annual Review of Neuroscience, 31, 359-387. DOI: 10.1146/annurev.neuro.29.051605.112851

[4] Lally, P., van Jaarsveld, C.H.M., Potts, H.W.W., & Wardle, J. (2010). How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology, 40(6), 998-1009. DOI: 10.1002/ejsp.674

[5] Duhigg, C. (2012). The Power of Habit: Why We Do What We Do in Life and Business. Random House. https://charlesduhigg.com/the-power-of-habit/

[6] Clear, J. (2018). Atomic Habits: Tiny Changes, Remarkable Results. Avery. https://jamesclear.com/atomic-habits

[7] Fogg, B.J. (2019). Tiny Habits: The Small Changes That Change Everything. Houghton Mifflin Harcourt. https://tinyhabits.com/book/

[8] Graybiel, A.M. (1998). The basal ganglia and chunking of action repertoires. Neurobiology of Learning and Memory, 70(1-2), 119-136. DOI: 10.1006/nlme.1998.3843

[9] Schultz, W., Dayan, P., & Montague, P.R. (1997). A neural substrate of prediction and reward. Science, 275(5306), 1593-1599. DOI: 10.1126/science.275.5306.1593

[10] Maltz, M. (1960). Psycho-Cybernetics. Prentice-Hall.

[11] Gardner, B., Lally, P., & Wardle, J. (2012). Making health habitual: The psychology of 'habit-formation' and general practice. British Journal of General Practice, 62(605), 664-666. DOI: 10.3399/bjgp12X659466

[12] Singh, B., Murphy, A., Maher, C., & Smith, A.E. (2024). Time to form a habit: A systematic review and meta-analysis of health behaviour habit formation and its determinants. Healthcare, 12(23), 2488. DOI: 10.3390/healthcare12232488

[13] Buyalskaya, A., Ho, H., Milkman, K.L., Li, X., Duckworth, A.L., & Camerer, C. (2023). What can machine learning teach us about habit formation? Evidence from exercise and hygiene. Proceedings of the National Academy of Sciences, 120(17), e2216115120. DOI: 10.1073/pnas.2216115120

[14] Gollwitzer, P.M. (1999). Implementation intentions: Strong effects of simple plans. American Psychologist, 54(7), 493-503. DOI: 10.1037/0003-066X.54.7.493

[15] Gollwitzer, P.M., & Sheeran, P. (2006). Implementation intentions and goal achievement: A meta-analysis of effects and processes. Advances in Experimental Social Psychology, 38, 69-119. DOI: 10.1016/S0065-2601(06)38002-1

[16] Oscarsson, M., Carlbring, P., Andersson, G., & Rozental, A. (2020). A large-scale experiment on New Year's resolutions: Approach-oriented goals are more successful than avoidance-oriented goals. PLOS ONE, 15(12), e0234097. DOI: 10.1371/journal.pone.0234097

[17] Keller, J., Kwasnicka, D., Klaiber, P., Sichert, L., Lally, P., & Fleig, L. (2021). Habit formation following routine-based versus time-based cue planning: A randomized controlled trial. British Journal of Health Psychology, 26(3), 807-824. DOI: 10.1111/bjhp.12504

[18] Harkin, B., Webb, T.L., Chang, B.P.I., Prestwich, A., Conner, M., Kellar, I., Benn, Y., & Sheeran, P. (2016). Does monitoring goal progress promote goal attainment? A meta-analysis of the experimental evidence. Psychological Bulletin, 142(2), 198-229. DOI: 10.1037/bul0000025

[19] Csikszentmihalyi, M. (1990). Flow: The Psychology of Optimal Experience. Harper & Row.

[20] Barkley, R.A., Murphy, K.R., & Fischer, M. (2008). ADHD in Adults: What the Science Says. Guilford Press.

[21] Dawson, P., & Guare, R. (2018). Executive Skills in Children and Adolescents (3rd ed.): A Practical Guide to Assessment and Intervention. Guilford Press.

Ramon Landes

Ramon Landes works in Strategic Marketing at a Medtech company in Switzerland, where juggling multiple high-stakes projects, tight deadlines, and executive-level visibility is part of the daily routine. With a front-row seat to the chaos of modern corporate life, and a toddler at home, he knows the pressure to perform on all fronts. His blog is where deep work meets real life: practical productivity strategies, time-saving templates, and battle-tested tips for staying focused and effective in a VUCA world, whether you’re working from home or navigating an open-plan office.

image showing Ramon Landes