Habits

How habits form: the science, without the 21-day myth

How do habits form, and how long does it take? What the research says about repetition, cues and missed days, and how to make a new habit easier.

By The Stryver team Updated 15 min read 13 sources

In short

  • Habits develop when an action is repeated in a familiar context and becomes increasingly automatic. Motivation and planning can help people get started.
  • In one influential study, the median among people whose data fitted the model well was 66 days for a daily action to approach automaticity, with a range of 18 to 254 days. A 2024 review found typical (median) times of about two months, with a very wide range.
  • Missing a single day didn't measurably set people back. What matters is coming back to it, not keeping an unbroken run.
  • Simple, appealing actions with a recognisable cue may be easier to repeat. Tracking can help with goals, although it doesn't by itself show a habit has formed.
  • Not every good thing needs to become a habit. For things like date nights or days out, a total over a few months works better than a daily rule.

A habit is something you start doing almost without thinking because a familiar situation prompts it. Put the kettle on, reach for a mug. Get into bed, pick up a book. These are the kinds of links between a cue and an action that habit researchers study. Repetition builds the association; motivation and planning help you make those repetitions happen.

How long does that take? There’s no fixed number of days. In one influential study, the median was 66 days1 among participants whose data fitted the model well, with a lot of variation between people. The same study found that missing one opportunity didn’t materially change the process. Those are useful findings, not a deadline or a guarantee.

How habits form in three steps

  1. Notice a cue. Something consistent happens: you finish breakfast, arrive home or switch off the light.
  2. Repeat an action. You do a small, specific thing in that situation, often enough for an association to develop.
  3. Feel it become more automatic. Over time, you need less deliberate effort to start. That doesn’t mean you lose the ability to choose differently.

Below, we unpack the studies, the famous 21-day myth and a practical way to try it yourself.

What a habit actually is

In everyday speech “habit” means anything you do often. Psychologists use it more narrowly. Benjamin Gardner, Phillippa Lally and Jane Wardle, writing for GPs, define habits as “actions that are triggered automatically in response to contextual cues that have been associated with their performance” (Gardner et al., 20122).

Three parts of that definition matter:

  • A cue. Something in the situation: a time, a place, a thing you’ve just finished, a person, a feeling.
  • An action that’s been done in response to that cue many times.
  • Automaticity. The action starts with little or no conscious thought. You might still choose to stop it, but you don’t have to decide to start it.

That’s why “exercise more” isn’t a habit, but “put my trainers on when I get home from the school run” can become one. The first is a wish. The second has a cue and a specific action.

Habits are useful for a reason. In diary studies where people reported what they were doing every hour, Wendy Wood and colleagues found that during habitual actions (things done almost daily, in the same setting) people’s minds tended to be on something else, and they reported less stress than during actions they did less often or in changing settings (Wood, Quinn and Kashy, 20023). A habit can free some of your attention. It also means the action depends less on how motivated you feel that day.

How a habit forms

The process is simple to describe and slow to live through.

  1. Choose an action and a situation. “After I pour my morning coffee, I’ll write one line in my journal.”
  2. Repeat it in that situation. Each repetition strengthens the link between the cue and the action.
  3. Notice it getting easier. Over weeks, the action needs less remembering and less effort, until it starts to happen on its own.

Lally’s team measured this directly. They asked 96 volunteers to pick one eating, drinking or activity behaviour to do daily in the same context, such as “after breakfast”, and to rate how automatic it felt every day for 12 weeks (Lally et al., 20101). For most of the people whose data could be modelled, automaticity climbed quickly at first and then levelled off, like a curve flattening towards a ceiling.

You can’t reliably judge your own progress against that curve week by week. But it helps explain why habit formation is gradual, not a switch that flips on a particular day, and why the later weeks can feel slower than the first few.

How long it takes

The short answer: some behaviours begin to feel automatic after weeks, others take months. There’s no countdown that works for everyone. In Lally’s study the median was 66 days among the 39 people whose results fitted the curve well, with individual estimates from 18 to 254 days. A 2024 review of 20 studies found only four that measured timing: the two reporting medians found 59 and 66 days, and individual times ranged from 4 to 335 days (Singh et al., 20244). Gardner and colleagues suggest a practical rule for GPs to pass on: expect it to take around ten weeks of daily repetition (Gardner et al., 20122).

The popular “21 days” isn’t from habit research at all2. Our guide to how long it takes to form a habit has the full numbers, where the 21-day figure came from, how to tell when something is becoming automatic, and how to plan around the real timescale.

What makes a habit form faster

The time varies so much because some actions and some situations suit habit-forming better than others. These are the factors with the most support.

A clear, stable cue

Habits attach to cues, so a vague cue gives the habit nothing to hold on to. “In the evening” is vague. “When I sit down on the sofa after the kids are in bed” is clear. The best cues happen every day, at a similar point, without you having to arrange them.

One well-tested way to set this up is an if-then plan (researchers call it an implementation intention): “If it’s Tuesday lunchtime, then I’ll walk round the park.” Across 94 independent tests, forming if-then plans had a medium-to-large effect on reaching goals (Gollwitzer and Sheeran, 20065).

A small, simple action

Simple actions may be easier to repeat and turn into habits2 than more elaborate ones. In Kaushal and Rhodes’s gym study, lower complexity was one of the things that predicted habit forming over time, alongside consistency, the environment and how enjoyable people found exercise (Kaushal and Rhodes, 20156). The 2024 review also lists frequency, timing, the type of habit, personal choice and how people felt about the action among the factors that mattered (Singh et al., 20244).

This is the thinking behind BJ Fogg’s Tiny Habits method: anchor a tiny version of the behaviour to something you already do, so it’s almost too small to skip (Fogg, 20197). One push-up after brushing your teeth. One page after getting into bed. Once it’s automatic, Fogg suggests, you can build it up. Our list of 60 tiny habit ideas puts this into practice, each with an anchor and a realistic total.

Something you actually like

Enjoyment isn’t a luxury. How people felt about exercise predicted how the habit developed in the gym study. If you dislike running, walking with a friend might be something you’re more willing to repeat. Enjoyment helps you come back to an action, though no single ingredient guarantees it becomes automatic.

Your own choice

People who pick their own action, rather than being handed one, seem to do better: the 2024 review found self-selected habits generally ended up stronger. It’s one reason a list of other people’s resolutions rarely works. Use lists for ideas, then choose what you’d genuinely like more of.

Missing a day doesn’t break it

One of the most reassuring findings comes from Lally’s study: “missing one opportunity to perform the behaviour did not materially affect the habit formation process” (Lally et al., 20101). Gardner and colleagues put it plainly: automaticity gains “soon resumed after one missed performance” (Gardner et al., 20122).

That matters because lots of habit tracking counts unbroken runs of days. An unbroken run can feel motivating while it lasts. The trouble comes when it ends, as it will: a sick child, a late train, a bad night. If the run was the point, the day it breaks feels like starting from zero, and that’s often when people stop. One missed opportunity doesn’t mean you have to begin again. That’s what the study found, though no study can predict every person or every behaviour.

After a missed day, the useful question isn’t “how do I protect the chain?” but “when’s my next natural chance to do it?” James Clear makes a similar point in his writing on habits: one mistake is just an outlier, and the thing to avoid is letting it become a pattern (Clear, “Avoid the Second Mistake”8).

Willpower is the wrong thing to rely on

A popular idea says self-control is like a muscle that runs out as you use it, so by evening you’ve none left. That idea, known as ego depletion, didn’t hold up in a large pre-registered replication across many labs, where the effect was close to zero (Hagger et al., 20169). The research on willpower is still debated, so we don’t say it definitely does or doesn’t run out.

What the habit research does say is that you shouldn’t need much of it. A habit is, by definition, the thing that happens without a decision. The work is in the set-up: choosing a cue, making the action small, making it pleasant, and making it easy to come back to. If you’re relying on summoning willpower every day, that’s a sign the set-up needs changing, not that you need more character.

Why doing something is easier to plan than not doing it

Many of the habits people want are really about stopping something: less phone, less wine, fewer takeaways. Many people find it easier to build a habit of doing something than a habit of not doing something, perhaps because “not doing” has no action to repeat and no moment to anchor it to.

One experiment supports that for New Year’s resolutions, though it doesn’t prove avoidance goals are always worse. In a year-long experiment with 1,066 people, those whose resolutions were about approaching something (“start doing X”) were more likely to say they’d succeeded than those whose resolutions were about avoiding something (“stop doing Y”): 58.9% against 47.1% (Oscarsson et al., 202010).

So “less phone” might become “20 screen-free evenings, reading instead”. Counting alcohol-free days works the same way for many people. If you think you might be dependent on alcohol, that needs more than a habit guide: the NHS says stopping overnight could be harmful and suggests a GP as a good place to start. There’s more on how to rewrite a stopping goal as a doing goal in our guide to approach and avoidance goals.

Tracking helps, and it doesn’t have to be daily

Writing down what you’ve done is well supported by research. Across 138 studies with nearly 20,000 people, prompting people to monitor their progress improved goal attainment, and the effect was larger when progress was physically recorded, and when it was reported to other people or made public (Harkin et al., 201611).

Those studies measured reaching goals, not whether an action had become automatic. Tracking helps you stay with something while you repeat it, but a growing total isn’t a measure of habit strength.

Notice what’s being measured in your own record: progress, not perfection. A record that shows “22 walks so far” tells you something useful on a bad week. A record that shows a broken chain of days tells you mostly that you had a bad week. If you’d like to read more about this, we’ve written about how to stick to a habit without the pressure of an unbroken run.

Fresh starts give you a push

People are more likely to start new things after “temporal landmarks”: the start of a week, a month or a year, a birthday, a holiday. Researchers found Google searches for “diet”, gym visits and commitments to goals all went up after these points (Dai, Milkman and Riis, 201412).

You can use this deliberately. If a habit has slipped, you don’t have to wait for January. The next Monday, the 1st of the month or your birthday can be a clean start. Our guide to the fresh start effect has a calendar of good restart dates.

Not everything should be a habit

Habit research studies actions done in the same context, usually daily. Lots of the things people want more of don’t fit that mould: a date night, a day out with the kids, a museum visit, a long walk on a free Saturday. You can’t do them daily, and you wouldn’t want them to become automatic.

For those, a habit isn’t the right goal. A total is. “Ten date nights this year” or “six family days out by the summer” gives you something to aim at and count, without pretending it should happen every Tuesday.

Even for things that can become habits, a total over a period is a forgiving way to keep going through the slow weeks before the habit forms. That’s the argument in our guide to goals and systems: a total has a goal’s direction and a system’s tolerance for bad weeks.

A plan for your first habit

Here’s the whole guide boiled down to steps you can do this evening.

  1. Pick one thing you’d genuinely like more of. Not a should. Something you’d enjoy or be glad you did.
  2. Make it small. The version you could do on your worst day. Ten minutes, one page, one stretch.
  3. Choose a cue that already happens. “After I…” plus something in your day that’s reliable: coffee, the school run, getting into bed.
  4. Write the plan as an if-then sentence. “If it’s after the school run, then I walk the long way home.”
  5. Set a total for a period, not a daily rule. Count the chances you have and aim for well under all of them, so ordinary life has room. There’s no research-backed percentage that suits everyone.
  6. Write it down when you do it. In a notebook, on a printout, in an app. Seeing the number grow is the point.
  7. When you miss, just do the next one. No catching up, no starting again. The research found one missed day made no real difference.
  8. Review after a few weeks. If it isn’t happening, change the cue or make it smaller. That’s the plan being adjusted, which is what a review is for.

When to bring in other people

Doing things with other people can help, but how you share matters. In one set of four experiments, people whose intentions about who they wanted to become (a future lawyer, say) were noticed by others then acted on them less, apparently because being noticed gave them a premature sense of already being that person (Gollwitzer et al., 200913). Progress monitoring, on the other hand, helped more when it was reported to others (Harkin et al., 201611). So share what you’ve done, not just what you plan to do. A friend who walks with you, or a partner who can see your total going up, gives you company and a gentle nudge without turning it into a contest.

You can build this as your own Stryve: 30 walks, 40 chapters of a book and 20 phone-free evenings over three months, with a few walks with a friend if you like. There are no daily rules, and you log each one whenever it happens.

The short version

  • Habits are actions triggered automatically by a familiar situation. They form through repetition in that situation.
  • Studies report medians of around two months for daily actions, but individual times vary widely. There’s no universal 21-day or 66-day deadline.
  • Missing one day doesn’t undo your progress. What matters is coming back to it.
  • Simple, enjoyable actions with a clear cue are easier to repeat, which helps a habit form.
  • Monitoring your progress helps with reaching goals, though it doesn’t show that something has become automatic.
  • For things that can’t or shouldn’t be daily, set a total over a period instead of trying to make them a habit.

More guides on this are collected in the habits hub, and if you’re planning for the year ahead, it’s worth reading why New Year’s resolutions fail next.

Common questions

What are the stages of habit formation?
One widely used model describes three phases: deciding on an action and a situation to do it in, repeating it in that situation, and the point where it starts to happen without much thought. In Lally's 2010 study, the feeling of automaticity rose fastest in the early weeks and then levelled off.
Is it true that it takes 21 days to form a habit?
No. The 21-day figure is usually traced to a 1960 self-help book about self-image, not to habit research. Studies that measured it found typical (median) times of about two months, with a very wide range.
Does missing a day ruin a habit?
No. In the best-known study, missing one opportunity didn't materially affect habit formation. Pick it up again at the next natural chance and carry on.
What is the habit loop?
It's a popular way of describing habits as a cue, a routine and a reward. Researchers put most weight on the cue: a habit is an action that a familiar situation triggers automatically because you've done it there many times.
Can you form more than one habit at a time?
You can, but each one needs its own clear cue and enough repetitions. Many people find it easier to start with one or two small actions, then add more once the first ones need less thought.

Sources

  1. Lally P, van Jaarsveld CHM, Potts HWW, Wardle J (2010). How are habits formed: Modelling habit formation in the real world. European Journal of Social Psychology.
  2. Gardner B, Lally P, Wardle J (2012). Making health habitual: the psychology of 'habit-formation' and general practice. British Journal of General Practice.
  3. Wood W, Quinn JM, Kashy DA (2002). Habits in everyday life: Thought, emotion, and action. Journal of Personality and Social Psychology.
  4. Singh B, Murphy A, Maher C, Smith AE (2024). Time to Form a Habit: A Systematic Review and Meta-Analysis of Health Behaviour Habit Formation and Its Determinants. Healthcare.
  5. Gollwitzer PM, Sheeran P (2006). Implementation intentions and goal achievement: A meta-analysis of effects and processes. Advances in Experimental Social Psychology.
  6. Kaushal N, Rhodes RE (2015). Exercise habit formation in new gym members: a longitudinal study. Journal of Behavioral Medicine.
  7. Fogg BJ (2019). Tiny Habits: The Small Changes That Change Everything. Houghton Mifflin Harcourt.
  8. Clear J Avoid the Second Mistake. jamesclear.com.
  9. Hagger MS, Chatzisarantis NLD, et al. (2016). A Multilab Preregistered Replication of the Ego-Depletion Effect. Perspectives on Psychological Science.
  10. 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.
  11. Harkin B, Webb TL, Chang BPI, 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.
  12. Dai H, Milkman KL, Riis J (2014). The Fresh Start Effect: Temporal Landmarks Motivate Aspirational Behavior. Management Science.
  13. Gollwitzer PM, Sheeran P, Michalski V, Seifert AE (2009). When intentions go public: Does social reality widen the intention-behavior gap?. Psychological Science.

How we checked this. Every fact in this guide links to its source: peer-reviewed studies, the NHS, government guidance or national bodies. We checked each one against that source, then a second, separate check went back to the sources and looked for anything that disagrees. We use AI to help with both, and a person spot-checks before it’s published. Our editorial policy.

Published 20 October 2026 · Last updated 21 October 2026 · Sources checked 21 October 2026. Spotted something wrong? Tell us and we’ll fix it.

A habit tracker without streaks.

Aim for a total over weeks or months, so a quiet week costs nothing. Miss a week? Just carry on.Sign up to help test it. Then continue to count the goodness.

See how Stryves work