Skip to content

Habit stacking: the formula, examples and common mistakes

How habit stacking works (after I..., I will...), where it comes from, a dozen examples from morning to bedtime and the mistakes that make stacks collapse.

5 min read

Habit stacking means attaching a new habit to something you already do every day, using one sentence: "After I [current habit], I will [new habit]." The habit you already have becomes the reminder, so the new one stops depending on your memory or your mood. Done well, it's one of the simplest ways to make a new behavior stick.

The formula

After I [current habit], I will [new habit].

That's the whole thing. A few versions:

  • After I pour my morning coffee, I will take my vitamins.
  • After I sit down on the train, I will review ten flashcards.
  • After I take off my work shoes, I will change into workout clothes.

Why it works: a new habit needs a cue, and the cues people invent ("sometime this evening") are easy to miss. A habit you already do every day is a cue that shows up on its own, in the same place, at roughly the same time. In research terms, a habit stack is an implementation intention, an if-then plan where the "if" is an existing routine. A 2006 meta-analysis by Peter Gollwitzer and Paschal Sheeran, covering 94 studies and more than 8,000 people, found that if-then plans had a medium-to-large effect on reaching goals.

Where it comes from

The method comes from BJ Fogg, who directs the Behavior Design Lab at Stanford. In his Tiny Habits method, laid out in his 2019 book of the same name, the existing routine is called an anchor, and the recipe has three parts: the anchor, a tiny new behavior and a small celebration right after it. His rule for the new behavior is strict: at first, it should take less than 30 seconds and very little effort.

James Clear made the idea famous as "habit stacking" in Atomic Habits (2018), and he credits Fogg for it.

One finding worth knowing before you get attached to your anchors: in a 2021 randomized trial with 192 adults, people who tied a new eating habit to a daily routine did about as well as people who tied it to a fixed time of day. The anchor has no special power. Its advantage is practical: it's hard to forget something that happens every day anyway. What built the habit in both groups was doing it again and again.

A dozen stacks, from morning to night

Borrow these, or use them as templates.

Morning

  • After I turn off my alarm, I will sit up and put both feet on the floor.
  • After I start the coffee, I will drink a full glass of water.
  • After I brush my teeth, I will floss.
  • After I get dressed, I will make the bed.

During the day

  • After I sit down at my desk, I will write the day's most important task on a sticky note.
  • After I end a video call, I will stand up and stretch for a minute.
  • After I finish lunch, I will walk for ten minutes before going back to work.
  • After I get off the bus, I will take the stairs instead of the elevator.

Evening

  • After I drop my keys in the bowl, I will put my gym bag by the door for tomorrow.
  • After I wash the last dish, I will lay out tomorrow's clothes.
  • After I plug my phone in to charge in the kitchen, I will pick up my book.
  • After I turn off the bedroom light, I will think of one thing that went right today.

Notice the pattern: each anchor is a precise moment, and each new habit is small enough to do on your worst day. A morning routine or a night routine is really just a longer stack, built one link at a time.

How to pick an anchor that holds

A good anchor has four qualities:

  1. It happens every single day. A weekday-only anchor breaks the stack every Saturday. If your commute vanishes on weekends, pick a different anchor or accept a five-day habit.
  2. It's a precise moment. "In the evening" is a zone. "After I lock the front door for the night" is a moment. Fogg's materials make the same point: a fuzzy moment doesn't work as an anchor.
  3. It's in the right place. The anchor should happen where the new habit happens. Flossing anchors well to brushing your teeth. Push-ups anchor badly to your commute.
  4. It matches the energy. Don't ask a 10 p.m. anchor to launch a 45-minute workout. Match the size of the new habit to the moment you're attaching it to.

If you can't think of anchors, list everything you do every day without fail, from turning off the alarm to plugging in the phone. Then list the things that happen to you every day: the coffee finishing, the bus arriving, the last meeting ending. Your best anchors are on one of those two lists.

Why stacks collapse

  • The anchor is vague. "When I get to work" could mean the parking lot, the elevator or the second coffee. Pin it to one moment.
  • You stacked six habits on one anchor. "After I wake up, I will meditate, journal, stretch, read, plan my day and make a green smoothie." That's a brand-new morning routine wearing a habit-stack costume, and it falls over at the first late night. Add one link, wait until it's automatic, then add the next.
  • The new habit is too big. "After I get home, I will run 5K" is a daily negotiation. "After I get home, I will put on my running shoes" is a deal you will actually keep, and once the shoes are on, the run is a much smaller step.
  • There's no payoff. Fogg's method insists on a small celebration right after the new behavior. It feels silly. Do it anyway: a quiet "nice" or a fist pump tells your brain the sequence was worth repeating.
  • You never rehearsed it. Fogg's program suggests acting out the sequence, anchor then new behavior, five to eight times in a row when you set it up, so it feels familiar before you need it.

How to grow the stack

Once a link runs on its own (skipping it would feel odd), you have two options:

  • Make the habit bigger. One page becomes ten. Two push-ups become a set. Grow it slowly enough that it stays easy to start; the two-minute rule is the same idea from the other direction.
  • Add a new link. The habit you just built can anchor the next one: after I floss, I will take my vitamins.

If a link breaks, don't rebuild the whole chain at once. Go back to the anchor, restart the first new habit at its smallest size and add the rest back one at a time. It's the same principle behind building good habits in general: one thing, small, same cue, every day.

Write your first stack tonight

Pick one anchor you never miss. Pick one new habit you can do in under a minute. Write the sentence on a sticky note and put it where the anchor happens: the bathroom mirror, the coffee maker, the charger. Rehearse it a few times tonight. Tomorrow, the anchor does the reminding. Your only job is the second half of the sentence.

Quick answers

What is habit stacking?

Habit stacking means attaching a new habit to one you already do every day, with a sentence like "After I brush my teeth, I will floss." The existing habit becomes the reminder for the new one.

What is an example of habit stacking?

After I pour my morning coffee, I will write down the one task that matters most today. After I plug my phone in to charge at night, I will open my book.

How many habits can you stack at once?

Start with one new habit per anchor. Add the next link only when the first one happens without thinking, or the whole chain gets fragile.

Does habit stacking actually work?

It's a form of if-then planning, which has strong evidence behind it. In a 2021 trial, tying a new habit to a daily routine worked about as well as tying it to a set time, and what mattered most was repeating it.

All articles →