Habits

Habit formation: how habits are formed

Habits are formed by repeating an action in the same situation until the situation starts the action with little thought: a learned link between a cue and a response (Gardner, Lally and Wardle, 2012). In the study of habit formation cited most often, that took 66 days on average, anywhere from 18 to 254 (Lally and colleagues, 2010).

Last updated

Reviewed by Mohammed Raqeeb

Share this page

The definition

What is a habit? The definition researchers use.

When psychologists say “habit,” they mean something narrower than the everyday word. Benjamin Gardner, Phillippa Lally and Jane Wardle, writing for family doctors, define habits as actions “triggered automatically in response to contextual cues that have been associated with their performance” (Gardner, Lally and Wardle, 2012). Their example is washing your hands after using the toilet. The toilet is the cue, washing is the action, and after enough repeats you no longer decide to do it.

Wendy Wood and David Neal, two psychologists who have studied habits for years, describe the same thing from the inside (Wood and Neal, 2007). In their account, a habit grows out of links learned slowly between an action and what surrounds it when you do it: a place, a time of day, or the action that came just before. Once the habit has formed, being in that situation is enough to set off the action, with no goal having to step in first.

A habit, in one line

A learned link between a situation and an action, strong enough that the situation starts the action with little thought.

The last part of that line is what separates a habit from something you merely do often, or a goal you are working toward. You can go running three times a week by planning every run. A habit is when getting home and changing into your running shoes happen together, with no debate in between.

Habits are worth understanding because so much of an ordinary day runs on them. When Wood, Quinn and Kashy had students keep hourly diaries, somewhere between a third and a half of what the students did counted as habit, repeated almost daily in the same place (Wood, Quinn and Kashy, 2002). Gardner and colleagues add that habits are “cognitively efficient”: once an action runs by itself, your attention is free for something else (Gardner, Lally and Wardle, 2012).

The habit loop

The habit loop: cue, routine, reward.

The idea most people meet first is the habit loop, from The Power of Habit, a popular book by the journalist Charles Duhigg (Duhigg, 2012). Duhigg describes a habit as a loop with three parts. A cue tells your brain which habit to run, the routine is the behavior itself, and the reward tells your brain whether this loop is worth remembering for next time.

  1. CueDinner ends, and you sit on the couch.
  2. RoutineThe phone comes out.
  3. RewardAn easy hour that asks nothing of you.
The reward makes the cue a stronger trigger the next evening, and the loop runs again.

Duhigg built the loop from research he reported on, in particular experiments in Ann Graybiel’s lab at MIT, where rats learned a maze until running it became automatic. Graybiel’s own review of that work describes how all kinds of routines become habitual through learning, with circuits deep in the brain, called the basal ganglia, taking a large part (Graybiel, 2008).

The loop is a fair summary, with one caution. It is a story told by a writer who read the research, not a finding from a single study, and studies measure its parts in different ways. What they back most clearly is the first part, the cue, and what repeating an action after it does over time.

Atomic Habits

The four steps and four laws of Atomic Habits.

James Clear’s Atomic Habits, a popular book from 2018, splits the loop into four steps instead of three: cue, craving, response and reward (Clear, 2018). The craving is the new piece. It is the want that sits between noticing the cue and acting on it, like the pull toward an easy, empty hour that the sight of the couch can set off.

For each step, Clear gives a rule he calls a law of behavior change. To build a habit: make it obvious, make it attractive, make it easy, make it satisfying. To break one, he turns each law around: make it invisible, make it unattractive, make it difficult, make it unsatisfying.

The law names below are his. Everything else is our own account of each step and of what research says about it, because Atomic Habits is a popular book, not a study, and some steps have far more evidence behind them than others.

  1. Cue

    To build: Make it obviousTo break: Make it invisible

    A habit is set off by its situation, so the cue is where most of the work happens (Wood and Neal, 2007). One way to make a cue obvious has been tested many times: an if-then plan that names the moment in advance, such as “after dinner, I will read,” decided before the moment comes. Gollwitzer and Sheeran pooled 94 tests of plans like this and found they helped people reach their goals by a medium to large margin (Gollwitzer and Sheeran, 2006).

    Hiding a cue works from the other side. Students who moved to a new university kept their old habits only where the new setting looked like the old one (Wood, Tam and Guerrero Witt, 2005).

  2. Craving

    To build: Make it attractiveTo break: Make it unattractive

    The want itself is the step research has measured least directly, but enjoyment does seem to help. In a study of 118 people building flossing and vitamin C habits, those who found the behavior pleasant, or worth doing for its own sake, gained more habit strength from each repeat (Judah and colleagues, 2018).

    Making an old habit unattractive is harder to count on. People with a strong habit of eating popcorn at the movies ate stale popcorn as readily as fresh, because the habit, not the taste, was doing the eating (Neal and colleagues, 2011).

  3. Response

    To build: Make it easyTo break: Make it difficult

    Simple actions became automatic sooner than demanding ones: a glass of water got there faster than 50 sit-ups (Gardner, Lally and Wardle, 2012).

    A little effort in the way also changes what people do. At a cafeteria salad bar, putting a food about 10 inches farther away, or serving it with tongs instead of a spoon, cut how much people took by 8 to 16% (Rozin and colleagues, 2011).

  4. Reward

    To build: Make it satisfyingTo break: Make it unsatisfying

    Habits grow as people repeat what gets them something they want (Wood and Rünger, 2016), so a reward matters most while the habit is new. Once a habit is strong it can run with the reward gone, as the stale popcorn showed.

    For breaking a strong habit, the closest tested idea is vigilant monitoring: watching for the slip and telling yourself “don’t do it.” In diary studies it was the one strategy that held strong bad habits back (Quinn and colleagues, 2010).

Clear’s law for building The same law, turned around for breaking

Read side by side, the four laws line up with the research better than most popular advice does, with one shift of weight. The studies put most of the load on the cue and on repetition, and less on the reward once a habit has formed. For the breaking side in practice, see how long it takes to break a habit.

How habits form

How a habit forms, step by step.

Every account of habit formation comes back to one recipe, and the researchers who wrote it up for doctors put it in a line: repeat an action consistently in the same context (Gardner, Lally and Wardle, 2012). Each time the cue and the action happen together, the link between them grows a little stronger, until the cue starts the action before you have decided anything.

The clearest measure of how long that takes comes from a study by Phillippa Lally and colleagues at University College London. They asked 96 volunteers to pick one new daily eating, drinking or exercise habit, such as a glass of water after breakfast, and to do it after the same cue for 12 weeks. Every day, each volunteer rated how automatic the behavior felt (Lally and colleagues, 2010).

The ratings climbed quickly at first, then slowed, then leveled off, the way a curve flattens as it nears its ceiling. For the people whose ratings followed that shape clearly, the median time to reach the flat part was 66 days, and single habits took anywhere from 18 to 254. A later review of 20 studies put the usual time for health habits at 2 to 5 months (Singh and colleagues, 2024).

Two other findings from the Lally study change how a bad week should feel. Missing one chance to do the behavior did not really affect how the habit formed, so a missed evening is not a restart. And simple actions got there sooner than longer routines. The full numbers, and a countdown to your own day 66, are on how long it takes to form a habit.

What “automatic” feels like

Researchers measure a habit by asking how automatic it feels, using four plain statements from a short questionnaire (Gardner and colleagues, 2012). The statements are: I do it automatically, I do it without having to consciously remember, I do it without thinking, and I start doing it before I realize I’m doing it.

Early on, you have to remember the habit and talk yourself into it. Later, you notice you have already started. The shelf where the book lives, or the shoes by the door, has taken over the job of reminding you.

A worked example

One habit loop, by the clock.

Here is the loop in real evenings, from the example person further down this page, a designer who wanted to read after dinner instead of scrolling. The cue stayed the same for all four weeks: dinner ending. What changed was the routine that followed it, and you can see it in the hours the app counted from their words.

  1. Before: the phone takes the whole evening after dinner.

    Reading
    0m
    Phone
    2h 30m
  2. The book comes first, with the phone left in another room.

    Reading
    20m
    Phone
    2h
  3. A bad day at work, and no reading. The cue still fires.

    Reading
    0m
    Phone
    2h
  4. Week four: reading runs first, and the phone gets less than before.

    Reading
    45m
    Phone
    1h

Dinner Reading Phone

Phone, a week

19h 30m to 6h 45m

week one to week four

Reading, a week

20m to 4h 20m

week one to week four

Reading by day 66, at week four’s pace

41 h

37m a day on average

Two things stand out. The cue fired on the bad Wednesday as well: dinner ended, there was nothing left for the book, and the old routine took the evening. And by the fourth week reading ran on all 7 evenings, which is what repetition after one steady cue looks like from the outside. Whether it feels automatic yet is the question the self-check answers, further down.

Habit vs habituation

Habit and habituation are not the same thing.

Habituation sounds like the process of forming a habit, and many people search for it meaning exactly that. In psychology, though, it names a different kind of learning: getting used to something that keeps happening, until you stop reacting to it.

The classic description comes from a 1966 paper by Richard Thompson and William Spencer, two neuroscientists who listed the features habituation shows across many animals (Thompson and Spencer, 1966). In 2009, a group of researchers led by Catharine Rankin met to update that list, and they define habituation as a drop in a response that comes from repeated stimulation and is not simply tired senses or tired muscles (Rankin and colleagues, 2009). It is often called the simplest form of learning.

You know it from ordinary life. A new clock ticks loudly on the first night and is silent by the end of the week, though the clock has not changed. The first buzz of a new phone makes you look; a month later you barely hear it. If the sound stops for a while and then returns, it tends to catch you again, which the researchers call spontaneous recovery.

Habit

What happens
You start doing something without thinking.
How it is learned
Built by repeating an action in the same situation.
An example
Reaching for the phone the moment dinner ends.

Habituation

What happens
You stop reacting to something without thinking.
How it is learned
Built by meeting the same thing again and again.
An example
No longer hearing the clock tick by the end of the week.

So if you searched for habituation because you want an action to become automatic, the part you want is how a habit forms, above. If you wanted to know why you stopped noticing a sound, a smell or a buzz, habituation is the right word. The two can sit side by side in one evening: you stop noticing the buzz of the phone, and you still pick it up the moment dinner ends.

Habit map

Map your own habit loop.

Choose whether you are building a habit or breaking one, start from an example or write your own, and fill in the four steps. The map turns your words into four moves, one for each of Clear’s laws, and shows what the habit takes: minutes a day, hours a week and hours a year.

I want to
Start from an example

Or write your own in the four steps below.

The loop runs in this order: the cue sets off a want, the want sets off the action, and the reward teaches you to do it again next time.

Minutes a day
20 min
Days a week

Four moves to build it

  1. Make it obviousCue

    Say the plan in full: “After the dinner plates are in the sink, I will read a chapter on the couch.” Same cue, same place, every day, so the situation can do the starting.

  2. Make it attractiveCraving

    Keep the want in view: “A quiet stretch of the evening that feels like mine”. Pick a version of the habit you enjoy, because habits people enjoyed grew stronger with each repeat.

  3. Make it easyResponse

    Shrink “Read a chapter on the couch” until skipping it is harder than doing it, and set out what you need ahead of time.

  4. Make it satisfyingReward

    Let “The story, and a calmer evening” come straight after, and count the minutes the habit got each week, so the progress is something you can see.

What this habit takes

122 hours a year

2.3 hours a week, from 20 min a day on 7 days a week.

Each dot is one whole day of 24 hours: 5.1 days a year.

By day 66, the median in the habit study, that is 22.0 hours given to the habit.

Copy your four moves as one short plan.

Hours a year = minutes a day × days a week × 365 ÷ 7 ÷ 60. The step and law names are James Clear’s; the moves are written from the research on this page. Nothing you enter leaves this page.

The test

How you know a habit has formed.

A habit has formed when it stops getting more automatic, not when a set number of days has passed. The practical test is the four statements above. Rate each one from 1 to 7 once a week, and the habit has settled when the score sits above the middle of the scale and stops rising. The self-check on how long it takes to form a habit asks the four questions and keeps your weekly scores in your browser.

The test

The habit starts on its cue on most days without a reminder, and its weekly minutes hold steady

for three weekly check-ins in a row, alongside a self-check score that has stopped rising.

The minutes are the part people get wrong: “I read most evenings” can turn out to be two. A good way to track a habit counts the minutes from what you already write or say about your day, with no timer to start. Most journaling apps stop at how the day felt, not where it went, so a habit's real minutes never add up anywhere you can compare.

One app built for this is Think in Numbers, a smart journaling app with time tracking built in.

You write or say your day in your own words, as it happens or all at once. The app reads what you wrote and counts the hours that went to each part of it: the minutes your habit got, what it replaced, your phone, and the time you never mentioned (shown as unaccounted). Then it shows those hours over days and weeks. Habits keep their streaks and reminders, and insights over weeks show whether the minutes are holding.

Write my first day

For iPhone and Android. Try it on your own day before you pay.

An example person

One evening loop, four weeks.

Here are the four weeks behind the worked example, for one made-up person, a designer who swapped evening scrolling for a book. Each day was written in plain words, and the app read the words and counted the hours. Reading rises as it takes over the after-dinner cue, the phone falls, and there are misses along the way.

Example person
ReadingPhone

Reading after dinner, and the phone it replaced

Reading a week

20m4h 20m

4h more in week four than in week one

Phone a week

19h 30m6h 45m

12h 45m less in week four than in week one

  1. Week one

    20mReading

    19h 30mPhone

    The cue led to the phone almost every evening.

  2. Week two

    1h 45mReading

    14h 45mPhone

    A new book and a new rule: reading first. Two misses.

  3. Week three

    3h 5mReading

    10h 30mPhone

    Reading on six evenings, with one gap: the bad Wednesday.

  4. Week four

    4h 20mReading

    6h 45mPhone

    Reading every evening, the phone under an hour on average.

An example person's four weeks, each day read and counted by the app. A made-up person, not a real user. Real output from the part of Think in Numbers that reads your words and adds up the hours (version v21), last run on with the app’s starter categories. Stored as written, not edited.

The day the routine changed, in their words
Example person
“Slept until 8:30. Breakfast until 9:30. Yoga from 10 to 11. Bought a novel at the bookshop from 11:30 to 12. Lunch. Side project from 2 to 4. Cooked dinner from 6 to 7:30. Decided the book comes first now: read from 7:45 to 8:05. On my phone from 8:30 to 10:30. Asleep at 11.”

The hours it became

Reading

20m

  • Sleep9h 30m
  • Food & Meals3h
  • Work2h
  • Using Phone2h
  • Fitness1h
  • Household30m
  • Self-Growth20m
  • Unaccounted5h 40m

18h 20m of 24 hours accounted for. Unaccounted is the time the words never mentioned.

An example person's day, read and counted by the app. A made-up person, not a real user. Real output from the part of Think in Numbers that reads your words and adds up the hours (version v21), last run on with the app’s starter categories. Stored as written, not edited.

Example person

Week four · What the log shows

to
Reading in total
4h 20m
A day, on average
37m
Days with any
7of 7 days
Longest unbroken stretch
45m, to
Most in one day
45m
Least in one day
30m

What took the time that day

  • Work8h
  • Food & Meals2h

An example person's four weeks, each day read and counted by the app. A made-up person, not a real user. Real output from the part of Think in Numbers that reads your words and adds up the hours (version v21), last run on with the app’s starter categories. Stored as written, not edited.

In short

The short version.

A habit is a cue and an action that have happened together often enough to run on their own. Pick one cue you meet every day, keep it steady, make the action small and pleasant, and expect weeks of repeats, not days.

Choose tonight’s cue now. The repeats start the first time you meet it.

Sources

The research on this page.

  1. Gardner, B., Lally, P. and Wardle, J. (2012). Making health habitual: the psychology of 'habit-formation' and general practice. British Journal of General Practice, 62(605), 664 to 666.
  2. Lally, P., van Jaarsveld, C. H. M., Potts, H. W. W. and Wardle, J. (2010). How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology, 40(6), 998 to 1009.
  3. Wood, W. and Neal, D. T. (2007). A new look at habits and the habit-goal interface. Psychological Review, 114(4), 843 to 863.
  4. Wood, W., Quinn, J. M. and Kashy, D. A. (2002). Habits in everyday life: Thought, emotion, and action. Journal of Personality and Social Psychology, 83(6), 1281 to 1297.
  5. Duhigg, C. (2012). The Power of Habit: Why We Do What We Do in Life and Business (chapter one). Random House; chapter one as published on the author's site.
  6. Graybiel, A. M. (2008). Habits, rituals, and the evaluative brain. Annual Review of Neuroscience, 31, 359 to 387.
  7. Clear, J. (2018). Atomic Habits: An Easy and Proven Way to Build Good Habits and Break Bad Ones (the author's summary of its framework). Avery; the four laws as the author lists them on jamesclear.com.
  8. Gollwitzer, P. M. and Sheeran, P. (2006). Implementation intentions and goal achievement: A meta-analysis of effects and processes. Advances in Experimental Social Psychology, 38, 69 to 119.
  9. Wood, W., Tam, L. and Guerrero Witt, M. (2005). Changing circumstances, disrupting habits. Journal of Personality and Social Psychology, 88(6), 918 to 933.
  10. Judah, G., Gardner, B., Kenward, M. G., DeStavola, B. and Aunger, R. (2018). Exploratory study of the impact of perceived reward on habit formation. BMC Psychology, 6, 62.
  11. Neal, D. T., Wood, W., Wu, M. and Kurlander, D. (2011). The pull of the past: When do habits persist despite conflict with motives? Personality and Social Psychology Bulletin, 37(11), 1428 to 1437.
  12. Rozin, P., Scott, S., Dingley, M., Urbanek, J. K., Jiang, H. and Kaltenbach, M. (2011). Nudge to nobesity I: Minor changes in accessibility decrease food intake. Judgment and Decision Making, 6(4), 323 to 332.
  13. Wood, W. and Rünger, D. (2016). Psychology of Habit. Annual Review of Psychology, 67, 289 to 314.
  14. Quinn, J. M., Pascoe, A., Wood, W. and Neal, D. T. (2010). Can't control yourself? Monitor those bad habits. Personality and Social Psychology Bulletin, 36(4), 499 to 511.
  15. Singh, B., Murphy, A., Maher, C. and 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.
  16. Gardner, B., Abraham, C., Lally, P. and de Bruijn, G.-J. (2012). Towards parsimony in habit measurement: Testing the convergent and predictive validity of an automaticity subscale of the Self-Report Habit Index. International Journal of Behavioral Nutrition and Physical Activity, 9, 102.
  17. Thompson, R. F. and Spencer, W. A. (1966). Habituation: A model phenomenon for the study of neuronal substrates of behavior. Psychological Review, 73(1), 16 to 43.
  18. Rankin, C. H., Abrams, T., Barry, R. J., Bhatnagar, S., Clayton, D. F., Colombo, J., Coppola, G., Geyer, M. A., Glanzman, D. L., Marsland, S., McSweeney, F. K., Wilson, D. A., Wu, C.-F. and Thompson, R. F. (2009). Habituation revisited: An updated and revised description of the behavioral characteristics of habituation. Neurobiology of Learning and Memory, 92(2), 135 to 138.

Found this useful? Pass it on.

Questions

Questions people ask.

What is the definition of a habit?

In psychology, a habit is an action set off automatically by a situation it has often happened in. Researchers describe it as a learned link between a cue, such as a place, a time or the thing you just did, and an action, strong enough that the cue starts the action with little thought.

How are habits formed?

By repetition in a stable situation. Each time the same cue and the same action happen together, the link between them gets stronger, until the cue starts the action without a decision. In the study by Lally and colleagues, this took a median of 66 days, with a range of 18 to 254.

What are the parts of the habit loop?

In Charles Duhigg's The Power of Habit there are three: a cue, a routine and a reward. James Clear's Atomic Habits splits it into four: cue, craving, response and reward. Both are popular books that draw on research, not studies themselves.

What are the four laws of behavior change?

They come from James Clear's Atomic Habits, one for each step of his loop. To build a habit: make it obvious, make it attractive, make it easy, make it satisfying. To break one: make it invisible, make it unattractive, make it difficult, make it unsatisfying.

What is the difference between habit and habituation?

A habit is an action you start doing without thinking, because a situation has set it off many times before. Habituation is getting used to something that keeps happening, until you stop reacting to it, like no longer hearing a clock tick. One adds an automatic action; the other fades a reaction.

Can a habit form without a reward?

A reward helps most while a habit is new: in one study, people who enjoyed the behavior gained more habit strength from each repeat. Once a habit is strong, it can keep running even when the reward is gone, which is why old habits outlast the reasons they started.

Is Atomic Habits based on research?

It is a popular book that draws on research, not a study. Several of its ideas line up with published findings, such as tying a habit to a steady cue and keeping the action simple. Others, like the craving step, are a way of describing habits more than something studies have measured directly.

Does missing a day stop a habit from forming?

No. In the 2010 study, missing one chance to do the behavior did not really change how the habit formed. What slows a habit down is missing often, or doing it after a different cue each time.

Try it on my day.

Write today down in your own words, and see where the hours went.

Write my first day

For iPhone and Android. Try it on your own day before you pay.