How Habits Form in the Brain

    How Memory Works

    How Habits Form in the Brain

    How habits form: a habit is a memory you never have to recall. What the research says about the memory behind habits, how BJ Fogg's Tiny Habits method builds one on purpose, and what an ice bucket thrown across a bar showed me about thinking habits.

    By Published Updated

    You pick up your phone before you have decided to. You drive home and arrive with no memory of the roundabouts. Someone asks how you are and "fine, thanks" is out before they have finished the question. None of those was a decision. Each one was a habit, and each one was your memory at work.

    So how do habits form? Start with what a habit is. Neuroscientists split memory into two kinds: conscious memory for facts and events, the kind you go looking for, and non-conscious memory for skills, habits and emotional reactions, the kind that simply runs (Squire, 2004). A habit sits in the second group. You never recall it; it just runs.

    The way I explain it is that a habit forms like any conditioned response: something in your day keeps being followed by the same behaviour, again and again, until the cue alone sets the behaviour off and you no longer have to choose it. That is the one idea to carry away. A habit is a memory of what to do next, and you can write one on purpose.

    A habit is a memory you never have to recall

    When you hear the word memory, you probably think of the conscious kind: a name, a date, what you came into the kitchen for. That is the kind you try to remember, and the kind that lets you down.

    The non-conscious kind works differently. You do not make an effort, and often you could not explain how you do it. The sequence for making your morning coffee, the hand that reaches for the light switch in the dark, the swerve your thoughts take whenever a particular person's name comes up: all memory, none of it recalled on purpose. Larry Squire's 2004 review sets out how the idea of separate memory systems developed, and Types of Memory: Working, Short-Term, Long-Term and More walks through every part of it.

    The simplest picture of how that kind of memory gets laid down is about a century old. The Russian physiologist Ivan Pavlov showed that his dogs began to salivate at a signal that came before their food: learning that needed no conscious recall at all. The signal meant nothing to begin with. Paired with food often enough, it started to produce the response on its own. Conditioned Response: How Your Brain Learns to React Without You is where that story is told in full.

    Put another way, a conditioned response is a different type of implicit long-term memory, and it is how we create habits. Implicit here means memory that shows up in what you do rather than in what you can say. Implicit vs Explicit Memory: Knowing How and Knowing That covers that distinction.

    What you can do with that today: pick one thing you did this morning without deciding to. Ask what came just before it. That is its cue.

    The ice bucket at the Long Bar

    Habits are not only things your hands do. Here is one from behind a bar.

    Back in the nineties I worked behind the Long Bar. I was going like a train, and a woman threw an ice bucket at me. It missed my head.

    I did not react. I said, "I'm not going to serve you." There was no malice in it. It was simply: you have just thrown an ice bucket at me, so I am not serving you now. She went to talk to the manager.

    I could have shrugged and served her, but that would have said her behaviour was okay, and it was not. What I did not have was any emotion towards her. I had been so conditioned in how to deal with moments like that. I still understood there was a reason she did it. It might not have been a good reason. She might simply have wanted to be served and felt she should have been by now, after waiting. So had everyone else at the bar. Maybe there was a story behind it. I did not know. Knowing there was a reason allowed me not to get involved in the emotion. She was not able to affect how I felt.

    That was the moment I learned you could do that, and it became far more useful later in the corporate world, because I knew I could control any flaring when a debate got heated.

    These days the question I condition myself to ask in a moment like that is: what need has not been met here?

    Here is how I describe it now. It is a technique, so if you practise the technique and condition it, it becomes a habit, and then it is just how you start to respond. That does not mean you stop feeling the emotion. You can be aware of it without it taking over.

    Notice what kind of habit that was. Not a movement, like brushing your teeth. A question. From what I have seen, habits can form in your thinking as well as in your hands, and the question you ask yourself in a heated moment can be conditioned the same way a morning routine can.

    What you can do with that today: think of one moment that regularly winds you up. Write down the question you would like to be asking yourself in it.

    How long does it take to form a habit?

    The research: Lally and colleagues, 2010

    • In short: Researchers at University College London followed people as they built one new daily habit in ordinary life. The habit grew more automatic quickly at first and then levelled off, and the time that took varied enormously, from 18 days to an estimated 254.
    • What they did: Each volunteer chose one healthy thing to eat, drink or do, tied to something that happened once a day, such as eating a piece of fruit with lunch. For 84 days, about 12 weeks, they recorded each day whether they had done it and how automatic it felt, rating statements such as "I do it without thinking". The researchers then plotted each person's scores and worked out when they reached 95% of the level where the habit stopped becoming any more automatic.
    • Who was involved: 96 volunteers, mostly postgraduate students with an average age of 27. 82 kept enough daily records to analyse, and for 39 of them the pattern fitted the researchers' model well.
    • What they found: Among those 39, the median, the middle figure, was 66 days, with a range from 18 days to 254. Anything past 84 days was projected from the curve, because some people were still becoming more automatic when the study ended. The early repetitions brought the biggest gains and later ones added less and less. Missing a single day made no real difference.
    • What they concluded: Doing the same thing in the same daily situation makes it steadily more automatic, rising fast and then flattening out. There is no fixed number of days: it depends on the person and on the habit. The authors point out that the group with a good fit was small and that the habits were self-rated.

    As evidence, it is one careful study of a small group who rated their own habits, so trust the shape of the curve more than any exact number of days.

    What I take from it

    What I see is that a small habit done for five days starts to become something you just do. That sits comfortably with the study: the early days bring the biggest gains, which is why it feels easier so quickly. What the study adds is patience. Feeling easier is not the finish line, so keep going well past the first week, and if you miss a day, simply pick it up the next.

    Building a habit on purpose

    The habits you never chose formed by accident: a cue happened to be followed by a behaviour, often enough, and the pairing stuck. The good news is that the same process can be run deliberately. The method I use comes from BJ Fogg.

    The research: Fogg, 2019

    • In short: BJ Fogg, who founded the Behavior Design Lab at Stanford, sets out his Tiny Habits method in a book: make a new behaviour very small and attach it to something you already do. As evidence, it is a method set out by its own creator in a popular book, not a study.
    • What they did: Fogg set out the method he coaches in a book, Tiny Habits: shrink a new behaviour until it is very small, and attach it to something you already do.
    • Who was involved: No study participants. By his own count, Fogg has personally coached more than 40,000 people through the method; that is the figure his publisher gives, and his Tiny Habits site now says "thousands".
    • What they found: A book like this reports no controlled findings. What it offers is a method, and its creator's experience of using it with the people he has coached.
    • What they concluded: Fogg presents it as a practical method: start a new habit so small it is easy to do every time, and tie it to an existing routine.

    What I take from it

    I am big on habit design. Many years ago I trained with BJ Fogg and learned Tiny Habits. Even before that, back in the nineties, I was always looking at how I could create habits in my life. When I wrote my first book, I designed my own ways of doing it with memory techniques: one so I would always know where I had put my keys, and one to make a job pop into my head at the right moment on the way home. You will find versions of both in How to Remember Things: Keys, Errands and What You Came In For. Fogg's method is a little more sophisticated than mine, and you can add memory techniques to it.

    What they have in common is association. All of this is really conditioned response, that implicit type of memory. You are pairing a cue with a behaviour until the cue does the work.

    If you have struggled to make habits stick, Fogg's method is what I would point you to first, because it teaches you how to design habits yourself, and how to do it easily. The way I put it in workshops: you create new habits and behaviours without needing willpower or motivation.

    The way I use it, a tiny habit has three parts: an anchor (something you already do that reminds you), a tiny behaviour (a version of the new habit small enough to take almost no effort), and a celebration straight afterwards (a small moment of feeling good about it). Each one is written as a recipe: "After I..., I will...".

    How a habit forms, step by step

    Here is the process as I use it, built on Tiny Habits.

    1. Choose the anchor. Associate the new behaviour with something you are already doing in your life, something that is already a habit. It has to happen every day without you thinking about it: sitting down for breakfast, switching the kettle on, opening your laptop.

    2. Shrink the behaviour. Make it so small that it takes almost no effort. For example: "After I sit down for breakfast, I will review the memory palace I am working on." A memory palace is a route through a place you can picture, with what you want to remember stored as images along the way. Reviewing one takes a minute. That is the point.

    3. Celebrate straight away. Celebrate the moment you have done it: a quiet "good", a smile, a small fist pump. It can feel silly. Do it anyway: the celebration is one of the three parts, not an optional extra.

    4. Put the cue where you will see it. While a habit is new, your environment can do the reminding. If you want to start each working day by asking yourself what matters most, put a post-it note on your computer with one word on it: prime. You sit down, you see it, you remember to ask the question. If you want to take vitamins every day, put them next to your breakfast cereal. You reach for the cereal, you see the vitamins.

    5. Repeat it, and let it grow. Do it consistently and in time you do not need the reminder any more, because it has become part of what you do. Miss a day and carry on the next: in Lally's study, one missed day did not undo the habit.

    Thinking habits form the same way

    The habits that cost you most can be the ones you never noticed forming, and some of them live in your head. Going over the same worry again and again is one.

    Two researchers, Watkins and Nolen-Hoeksema, have argued that rumination, that repetitive going over of the same problem, can become a mental habit, set off automatically by the same places and moods, which is why it is so hard to just stop (Watkins and Nolen-Hoeksema, 2014). It is a theory paper, a framework still to be tested, not a proven result. It is the ice bucket idea pointed the other way: a way of thinking, repeated in the same situations, starts to run on its own.

    If that is how a thinking habit forms, it suggests how to change one. Notice where and when the loop usually starts: the commute, bedtime, after a certain meeting. Those are its cues. Then plan a different response to that cue, ahead of time, rather than relying on willpower in the moment.

    One question I use is "does it fuel me?" Ask it when you are looking at something to eat or drink, and you will usually know the answer. If that question becomes a habit, you will find you are more drawn towards the things that fuel you. Same mechanism, a different cue, a better question.

    What you can do with that today: name one loop of thinking you would like to change, and the place or mood where it usually starts. Choose the question you will ask instead when you notice yourself there.

    Your ten-day habit

    Here is a challenge that works for anything. Over the next ten days, do one small habit.

    1. Write the recipe: "After I [anchor], I will [tiny behaviour]."
    2. Make the behaviour small enough to take a minute, three at most.
    3. Celebrate the moment you have done it.
    4. Put a cue in your environment for the first few days.
    5. After ten days, notice whether it still needs the reminder.

    If it has started to run on its own, you have watched a habit form. Then make the behaviour a little bigger, or start the next one.

    Where to take it next

    The same process sits behind these. The Daily Memory Workout uses it to turn memory practice into a daily routine. How to Remember Things: Keys, Errands and What You Came In For conditions three small memory habits in a week. How to Improve Concentration: Three Strategies That Hold Up attaches three focus strategies to moments that already happen in your day. And for the skills that live in your body rather than your head, Procedural Memory Explained shows how repetition builds them and how to rebuild a bad one.

    Memory map

    1. A habit is a memory you never have to recall: the non-conscious kind, alongside skills and emotional reactions. Image: a hand reaching for a light switch in a dark hallway, eyes closed.
    2. Pavlov: a signal that predicts food comes to trigger the response on its own. Image: a dog drooling at a buzzing signal box with no bowl in sight.
    3. As I see it, a habit forms when a cue keeps being followed by the same behaviour until the cue alone sets it off. Image: a kettle clicking on and an arm already reaching for a mug.
    4. The ice bucket at the Long Bar: conditioned to know there was a reason, I stayed out of the emotion. Image: an ice bucket flying past a barman's head while he calmly shakes his head.
    5. Habits can form in your thinking as well as your hands. Image: a head with a small question mark spinning on a turntable inside it.
    6. Lally 2010: a daily habit took 18 to 254 days to become automatic, median 66, and one missed day did not matter. Image: a line climbing steeply then flattening across a wall calendar, one square left blank.
    7. Tiny Habits, the way I use it: anchor, tiny behaviour, celebration, written as "After I..., I will...". Image: a breakfast bowl, a single small card, a smile.
    8. Put the cue where you will see it: a post-it saying "prime", vitamins beside the cereal. Image: a yellow note on a laptop screen and a vitamin jar leaning on a cereal box.
    9. From what I have seen, a small one starts to feel like something you just do within five days; keep going past that. Image: five calendar pages turning, the last one with no reminder note on it.
    10. Rumination can become a mental habit set off by places and moods; notice the cue, plan a new response. Image: a commuter on a train with a storm cloud that only appears at one station.
    11. The ten-day habit: one tiny recipe, celebrated daily, for ten days. Image: ten small tick boxes on a fridge, the last one ticked with a flourish.

    Sources

    • Squire, L. R. (2004). Memory systems of the brain: a brief history and current perspective. Neurobiology of Learning and Memory, 82(3), 171 to 177. https://doi.org/10.1016/j.nlm.2004.06.005 (the home for this study is Types of Memory: Working, Short-Term, Long-Term and More)
    • Pavlov, I. P. (1927). Conditioned Reflexes: An Investigation of the Physiological Activity of the Cerebral Cortex (G. V. Anrep, Trans.). Oxford University Press. https://psychclassics.yorku.ca/Pavlov/ (the home for this study is Conditioned Response: How Your Brain Learns to React Without You)
    • Fogg, B. J. (2019). Tiny Habits: The Small Changes That Change Everything. Boston: Houghton Mifflin Harcourt. ISBN 9780358003328. https://behaviordesign.stanford.edu/people/bj-fogg
    • 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. https://doi.org/10.1002/ejsp.674
    • Watkins, E. R., and Nolen-Hoeksema, S. (2014). A habit-goal framework of depressive rumination. Journal of Abnormal Psychology. https://ore.exeter.ac.uk/repository/handle/10871/17092

    Loci

    Build the memory palace in this article inside Loci — store your locations, link images, and rehearse with spaced repetition.

    Try it in Loci

    Memory School community

    Learn directly with Mark inside the Memory School community on Skool — monthly lessons, practice, and Q&A.

    Join Memory School

    About the author

    Grand Master of Memory (1995). Author of three books on memory published by Hodder and Nick Hern. Creator of BBC1's Monkhouse's Memory Masters. Memory coach on Channel 4's Can I Improve My Memory?

    Read full bio →