Habit stacking: how it works and how to track it

Habit stacking means attaching a new habit to something you already do every day, using a sentence like "After I pour my morning coffee, I will write one line in my journal." The existing routine becomes the reminder, so you rely less on memory and motivation.

Habit stacking is one of the most practical ideas in the habit world, and also one of the most loosely credited. Below I explain where it comes from, with the sources, how to write a good stack, and how I would track one on iPhone.

Where the idea comes from

Three names come up, and each deserves credit for a different part.

Underneath all three is older research. Research by the psychologist Peter Gollwitzer showed that plans of the form "if situation Y, then I will do Z", which he called implementation intentions, help people follow through on what they intend; his 1999 paper in American Psychologist summarizes it. Clear describes habit stacking as a special form of implementation intention, where the situation is a habit you already have.

How to build a habit stack

1. Pick a precise anchor

The anchor should be something you do every day without thinking, and it should happen at a clear moment. Tiny Habits material from Fogg makes the point well: "After I finish dinner" is a weak anchor because there is no precise moment when dinner ends, while "After I take my plate into the kitchen" works. Good anchors include:

2. Make the new habit tiny

Start with a version you could do on your worst day: one push-up, one line in a journal, open the book. You can always do more, but the stack should never depend on having energy. "After I pour my coffee, I will write one line" survives a bad morning; "I will journal for 20 minutes" often does not.

3. Write the sentence down

Use the exact formula: "After I [anchor], I will [new habit]." Saying where and when out loud is what turns a wish into a plan.

4. Mark it straight away

Fogg's method puts a small celebration right after the behavior, because a good feeling helps the habit stick. A quiet "yes", a smile, or ticking it off counts. That last one is where a tracker earns its place.

5. Add the next link later

Once a stack feels automatic, the new habit can become the anchor for another: coffee, then one journal line, then two minutes of stretching. Add links one at a time, and only when the previous one is steady.

Use your iPhone as the anchor

Some of the best anchors are things your iPhone already notices, and the Shortcuts app can turn them into a prompt with a personal automation. Triggers include your alarm being stopped, your wake-up time, arriving home, CarPlay disconnecting and your phone being connected to a charger. An automation could show a notification such as "Stretch for two minutes" when you stop your morning alarm.

Reminders works too: a repeating reminder at the time your anchor usually happens.

How I would track a stack in Habit Forever

Habit Forever has no special "stack" feature; it does not need one. A stack is a few habits done in order, and the app handles each one well:

The free version tracks up to three habits, which is a good size for a first stack. Each habit keeps its own streak and day-by-day grid, so you can see which link in the chain is solid and which keeps slipping. To picture a year of a stack, try the habit grid maker.

Common mistakes

How long until a stack feels automatic varies a lot from person to person; how long it takes to form a habit covers the research.

FAQ

What is habit stacking?

Habit stacking means attaching a new habit to something you already do every day, using a sentence like "After I pour my morning coffee, I will write one line in my journal."

Who came up with habit stacking?

BJ Fogg created the method of anchoring a tiny new behavior to an existing habit in Tiny Habits, S.J. Scott helped popularize the term with his 2014 book Habit Stacking, and James Clear brought it to a wide audience in Atomic Habits.

What is the habit stacking formula?

James Clear's formula is "After [current habit], I will [new habit]," which follows BJ Fogg's Tiny Habits recipe "After I…, I will…".

Is habit stacking backed by research?

It builds on research into implementation intentions, if-then plans studied by Peter Gollwitzer, which help people follow through on what they intend.

Sources

About Habit Forever

Habit Forever is a habit tracker for iPhone and iPad (iOS 17 or later) by independent developer Mohamed Elatabany. Track check-off or number habits with goals, reminders, notes, streaks and colorful day-by-day grids, plus Home Screen and Lock Screen widgets and Siri Shortcuts. There is no account, and habit data stays on your device. It is free for up to three habits; Habit Forever Pro (yearly, monthly or a one-time lifetime purchase) adds unlimited habits, deeper insights, widgets for every habit and backup export/import. It is rated 4.6★ on the App Store, from 17 ratings worldwide, where it is listed as “Habit Forever: Streak Tracker” (formerly “Habit Streak Tracker: Routines”).

Spotted something out of date or wrong? Tell me and I’ll fix it.