Habit stacking: how it works, with examples

Habit stacking ties a new habit to one you already do: after I X, I will Y. The formula, what research supports, examples, and how to fix a stack that fails.

A hand pouring coffee from a glass carafe into a clear glass mug on a table, beside a wooden bowl of coffee beans

Habit stacking means attaching a new habit to one you already do every day, so the old habit becomes the cue for the new one. The formula: After I [current habit], I will [new habit]. For example: after I pour my morning coffee, I will write one line in a journal. "Habit stacking" is a popular term rather than a scientific one. The research behind it tests the underlying ideas: planning around a specific cue, and repeating an action in a stable setting.

How the formula works

The anchor is something you already do without deciding to. The new habit is a small action that comes right after it. Once a new habit runs on its own, it can anchor the next one:

  1. After I plug in my phone at night, I will set out tomorrow's clothes.
  2. After I set out my clothes, I will read one page of a book.
A small tower of smooth green stones balanced on a pebble beach, with the sea and a cloudy sky behind
Add one at a time, and let each settle before the next. Photo: Derk29, CC BY-SA 4.0, via Wikimedia Commons

Where the term comes from

Habit Stacking: 97 Small Life Changes That Take Five Minutes or Less is a 2014 book by S.J. Scott. Outside magazine credits James Clear with popularizing the term in Atomic Habits (2018). On his website, Clear credits the phrase to Scott's book and the method to BJ Fogg, who created the Tiny Habits method, directs the Behavior Design Lab at Stanford, and calls the technique anchoring.

Why it can work: what the research says

Few studies test habit stacking under that name, so the evidence below is for the parts, not the label.

Plans tied to a cue

Psychologists call an if-then plan an implementation intention, and a stack has the same shape. A 2006 meta-analysis by Peter Gollwitzer and Paschal Sheeran found a medium-to-large effect on reaching goals (d = .65).

A much larger one, published online in 2024 with 642 tests, is more cautious. The effect on behavior change was d = .27, effects were stronger in the lab than in the field, and the authors found substantial publication bias. Their two corrections put the overall effect at d = .35 and d = .15, and they call it robust but small.

Repetition in a stable setting

Habits form when an action is repeated in the same context until the cue sets it off automatically. In a 2010 study by Phillippa Lally and colleagues, 96 volunteers repeated a behavior daily in the same context, such as after breakfast, and the time for automaticity to level off ranged from 18 days to a projected 254 days. An article for family doctors by Benjamin Gardner, Lally and Jane Wardle offers a plan that is a stack in all but name: "after I have lunch at home I will have a piece of fruit."

The closest direct tests

In a 2021 randomized trial by Keller and colleagues, 192 adults linked an everyday nutrition behavior either to a daily routine or to a set time. Over 84 days, both groups gained automaticity, with no difference between them, and carrying out the plan again and again was a key predictor. So a routine works as a cue, but it didn't beat a clock.

In a 2013 study by Gaby Judah and colleagues, 50 people were asked to floss, half before brushing and half after. Those who flossed after tended to form stronger habits and, at eight months, flossed more often. Both groups tied flossing to brushing, so this tested the order, not stacking itself, and the authors call it exploratory.

An open dental floss dispenser with a strand pulled out
Flossing after brushing built stronger habits than flossing before, in one small study. Photo: Tiia Monto, CC BY-SA 4.0, via Wikimedia Commons

None of these studies tested long chains. If a set time suits you better than an anchor, use it.

Habit stacking examples

Morning

  • After I turn off my alarm, I will drink a glass of water.
  • After I start the kettle, I will do ten calf raises.
  • After I lock the front door, I will take three slow breaths.

During the workday

  • After I sit down at my desk, I will write down my top task.
  • After I end a video call, I will stand up and stretch.
  • After I shut my laptop for the day, I will note tomorrow's first task.

Evening

  • After I hang up my keys, I will put my phone on a charger in another room.
  • After I take my plate to the kitchen, I will tidy for five minutes.
  • After I brush my teeth, I will floss.

By goal

  • Fitness: After I tie my shoes in the morning, I will do five squats.
  • Learning: After I sit down on the train, I will review ten words of a new language.
  • Money: After I pay my rent each month, I will move a set amount into savings.
  • Home: After I take out the trash on Tuesday night, I will wipe down one fridge shelf.
  • People: After I sit down to Sunday breakfast, I will text someone I miss.

If you've been inactive or have a health condition, check with your doctor before you add exercise.

How to pick a good anchor

Start with two lists, as Clear suggests: what you do every day, and what happens to you every day. Then test each candidate:

  • It always happens. A Tiny Habits guide hosted by Stanford Medicine says the anchor should be something you always do.
  • It matches the habit's rhythm. Clear's rule is that the cue should come as often as the habit. A daily habit shouldn't sit on something that only happens on Mondays, and a monthly habit can sit on a monthly anchor.
  • It has an exact moment. The Tiny Habits guide warns that the end of dinner is too fuzzy, while carrying your plate to the kitchen is precise.
  • It suits the place and time. Clear's example of a bad fit is meditating on a chaotic morning with kids running in.
  • The new action is small. The Tiny Habits guide defines a tiny habit as one that takes under 30 seconds and little effort.

Then repeat the plan to yourself once. In the 2024 meta-analysis, rehearsing a plan at least once went with larger effects and recording it went with smaller ones, though those are comparisons across studies.

Why a stack fails, and how to fix it

  • The anchor doesn't always happen. An office ritual disappears on weekends. Pick something that happens every day, or set a separate weekend stack.
  • The new habit is too big. The Tiny Habits guide calls this the most likely mistake. Shrink it until it's hard to refuse.
  • You keep forgetting. In the flossing study, people with stronger prospective memory flossed more often, so don't lean on memory. Leave the floss beside your toothbrush or, as Clear suggests, a book on your pillow. If you still forget, the Tiny Habits guide says to consider a different anchor.
  • You added too much at once. In a study by Amy Dalton and Stephen Spiller, planning helped people with one goal on a to-do list, but not people with several. Add one link and wait until it runs on its own.
  • You don't much want it. In the 2024 meta-analysis, if-then plans worked better when people were strongly motivated than when they weren't (d = .79). Choose a habit you care about.
  • Your setting changed. In a 2005 study by Wendy Wood and colleagues, students' exercise, newspaper and TV habits survived a transfer to a new university only when parts of the setting stayed the same. After a move or a new job, pick a new anchor. How to stick to a routine covers this.

Frequently asked questions

What is an example of habit stacking?

After I brush my teeth at night, I will floss. Brushing happens every night, and the floss can sit beside the toothbrush.

Does habit stacking actually work?

Its parts have research behind them, though the effect of if-then plans is often small. Studies rarely test it under that name, and one trial found a routine cue worked about as well as a set time.

How many habits can you stack at once?

Research doesn't give a number. The 2024 meta-analysis found effects dipped at three to five plans, but not at seven or eight. Add one at a time.

How long does it take for a stack to become automatic?

Plan on about two months, and possibly far longer. A 2024 review reported medians of 59 to 66 days and means of 106 to 154 days, with individuals ranging from 4 to 335 days. How to build a habit has more on timing.

Start Streaks

Tiny nudges that keep your habits alive.

Open in App Store

Psst is invite-only. Sign up with code STREAKS

Scan with your iPhone / Download Psst

Psst is invite-only. Sign up with code STREAKS

Sources

  1. Habit Stacking: How to Build New Habits by Taking Advantage of Old Ones (James Clear)
  2. Habit Stacking: 97 Small Life Changes That Take Five Minutes or Less (S.J. Scott, Open Library record)
  3. 'Who Doesn't Have Two More Minutes?' How Small Daily Habits Can Extend Your Lifespan (Marisa McMillan, Outside)
  4. Atomic Habits
  5. Tiny Habits (BJ Fogg)
  6. The ASCEND Project: Tiny Habits for Self Compassion: Getting Started (Stanford Medicine)
  7. PubMed search for "habit stacking" in titles and abstracts
  8. Implementation Intentions (Gollwitzer and Sheeran, National Cancer Institute)
  9. The when and how of planning: Meta-analysis of the scope and components of implementation intentions in 642 tests (Sheeran, Listrom and Gollwitzer, European Review of Social Psychology, published online 2024)
  10. How to form a habit (British Psychological Society Research Digest, on Lally and colleagues)
  11. Making health habitual: the psychology of 'habit-formation' and general practice (Gardner, Lally and Wardle, British Journal of General Practice, 2012)
  12. Habit formation following routine-based versus time-based cue planning: A randomized controlled trial (Keller and colleagues, British Journal of Health Psychology, 2021)
  13. Forming a flossing habit: an exploratory study of the psychological determinants of habit formation (Judah, Gardner and Aunger, British Journal of Health Psychology, 2013)
  14. Too Much of a Good Thing: The Benefits of Implementation Intentions Depend on the Number of Goals (Dalton and Spiller, Journal of Consumer Research, 2012)
  15. When does planning interfere with achieving our goals? (EurekAlert, on Dalton and Spiller)
  16. Changing circumstances, disrupting habits (Wood, Tam and Guerrero Witt, Journal of Personality and Social Psychology, 2005)
  17. Time to form a habit: a systematic review and meta-analysis of health behaviour habit formation and its determinants (Singh, Murphy, Maher and Smith, Healthcare, 2024)