Plain-language guides to productivity & habits

How to Build a Habit Step by Step

how to build a habit

Wondering how to build a habit that lasts beyond the first fortnight of enthusiasm? Choose one small action, tie it to a cue you already have, and repeat it in the same place until it runs on autopilot.

This guide is part of our wider coverage of habit building.

Item Value
Average time to reach peak automaticity in a habit-formation study 66 days
Range across individuals in that study 18 to 254 days
Length of the daily tracking period 84 days
Effect of missing a single opportunity No material effect on habit formation
Effect size of if-then plans on physical activity Small, between d =.14 and d =.31

Figures come from the published abstract of the habit-formation study and a summary by UCL researchers. Research findings can change, so check the sources before you rely on the numbers.

What a habit is and how it forms

Psychologists define habits as learned actions that are triggered automatically when you meet the situation in which you have repeatedly done them. UCL’s Behavioural Science and Health department says habits form through a process called “context-dependent repetition”.

In plain terms, a link forms between a situation and a response. Eat a snack every time you get home, and getting home eventually prompts the snack without much thought.

That is also why habits are useful. The same UCL summary notes that automating frequent behaviours saves mental resources for harder or newer tasks, and that habits tend to persist because they do not depend on conscious thought, memory or willpower.

How to build a habit: the steps

The steps below follow the cue, routine and reward loop that the University of North Carolina’s Learning Center uses to explain habits. They add the “same context, repeated” principle from the UCL work.

  1. Pick one behaviour. Choose something specific you can picture yourself doing, such as “walk around the block” rather than “get fit”.
  2. Shrink it. UNC advises that the goal should be to start small and easy, then build up. A version so easy you cannot talk yourself out of it beats an ambitious plan you abandon.
  3. Choose a cue. The first step in the UNC loop is the cue: a time, place or event that tells your brain which habit to run. Anchor the new behaviour to something you already do daily, such as pouring your morning coffee.
  4. Write an if-then plan. “If I finish my coffee, then I put on my shoes.” This links the situation to the response in advance.
  5. Add a reward. Make the end of the routine feel good, even if the reward is only ticking a box.
  6. Repeat it in the same context. Same cue, same place, as close to daily as you can manage.
  7. Adjust the environment. UNC lists “not changing your environment” as a common pitfall and suggests setting up surroundings that support the habit.
how to build a habit Notebook and pen
A dark pen lies across a lined notebook beside a cup on a green saucer.

Why if-then plans and a clear cue help

An open-access research paper explains the logic: the if-then plan creates an association between the situation and the planned response that echoes the associations behind habitual behaviour. You can read this in the open-access article on reinforcing implementation intentions with imagery.

The same article is candid about the size of the benefit. It reports that implementation intentions increase physical activity with small effect sizes, between d =.14 and d =.31, and that results last after follow-up periods without contact. Treat an if-then plan as a helpful nudge, not a guarantee.

The article also stresses that the context and the behaviour need to be easy to bring to mind. A vague cue such as “sometime after work” is weaker than “when I put my keys in the bowl”.

How long does it take?

Forget the popular “21 days” claim. In a well-known study, participants repeated a chosen behaviour daily, and the UCL summary reports that it took, on average, 66 days for the habit to form, with individuals ranging from 18 days to 254 days.

The study’s abstract says the researchers fitted an asymptotic curve to each person’s automaticity scores over 84 days. Early repetitions bring big gains, then the gains shrink until automaticity levels off.

Difficulty matters too. The UCL authors note that habit strength for simple behaviours, such as drinking a glass of water, peaked quicker than for more complex ones, such as doing 50 sit-ups. For a fuller look at timelines, see our guide on how long does it take to form a habit.

What to do when you miss a day

Missing a day does not undo your progress. The study abstract states that missing one opportunity to perform the behaviour did not materially affect the habit formation process, as reported on Crossref.

The risk is the second miss, which turns into a third. A simple rule helps: if you skip a day, do the small version at the next cue and carry on. Our guide on how to stay consistent with habits goes deeper on this.

If a habit keeps failing, change the design rather than blaming yourself. Make the behaviour smaller, move the cue to a more reliable moment, or remove whatever gets in the way.

Frequently asked questions

How long does it take to build a habit?

Show answer

There is no fixed number. In the study summarised by UCL, the average was 66 days, but individuals ranged from 18 to 254 days, so expect weeks to months depending on you and the behaviour.

Should I start with a big goal or a small one?

Show answer

Start small. UNC’s habit guidance recommends beginning with something small and easy and building up gradually, because an easy start is easier to repeat.

Does missing a day ruin a habit?

Show answer

No. In the study abstract on Crossref, missing one opportunity did not materially affect habit formation. What matters is returning to the routine at the next cue.

Do if-then plans really work?

Show answer

They help, but modestly. The research reviewed in the open-access PubMed Central article reports small effect sizes for physical activity, so combine the plan with a clear cue and a consistent setting.