Habit stacking: how to anchor a new habit to something you already do
AI-generated content. How we make it
In brief
- Tying a new action to something you already do every day is a form of “if–then” plan. In a trial with 192 adults it worked just as well as setting a time; what mattered most was doing the action every time the cue came up.1
- A good anchor happens every day, you notice when it occurs, and it leaves you in the place where you'll do the new action. These criteria are deduced from how a habit forms, not compared one by one in trials.67
- Right before or right after? A small study pointed to “after,” but a larger study by the same researcher found no difference.23
- In a four-week study, text-message reminders made people follow through more, but by the end the action felt less automatic to them than to those who tied it to the end of a meal.4
- If your routine changes, the anchor may disappear along with it: it's worth having another one in mind.8
“After I do X, I'll do Y.” It's one of the most repeated habit recipes in books and on social media, under names like “habit stacking” or “habit chaining.” The idea has a basis: using something you already do every day as a cue for a new action. But specific research on how to choose that cue is scarce, and some details that are often repeated haven't been confirmed.
This article expands on one part of the habits guide: deciding in advance when and where you'll do the action. Here we focus on the anchor: what makes it a good one, what's known about its position, and why so many chains break.
What anchoring a habit means, and why it might work
“Habit stacking” and “habit chaining” are popular labels. They don't appear under those names in the studies consulted, which talk instead about plans with a routine-based cue, as opposed to a time-based cue, or about where a behavior sits within a routine.12 In practice it's an “if–then” plan in which the “if” is something you already do: “when I close my laptop, then…”
Why might it work? According to a theoretical model of habits, when a behavior is repeated, it becomes associated with what surrounds it — the place, but also the action that comes before it — until that context is enough to set it in motion.7 An article for family doctors turns this into a piece of advice: choose a cue you'll come across and notice every day; a situation in your daily routine, it says, is a convenient and stable starting point.6
A routine or a set time?
This is the best-studied comparison. In a trial in Germany, 192 adults chose an eating behavior — drinking water and eating fruit were the most common — and were randomly assigned to tie it to a daily routine (“after breakfast”) or to a time (“at nine o'clock”). For 84 days they recorded whether they did it and to what extent it came without thinking.1
Both groups progressed in a similar way: there were no differences in how often they followed through or in how automatic the action became. What did matter was repetition: those who did the action every time their cue came up found it more automatic, and that gain was faster at the beginning.1 How long it took each person is covered in how long it takes to form a habit.
The authors suggest a possible explanation for the tie: perhaps those who chose a time picked, without saying so, a moment when they already tended to do the same thing every day, so the time also worked as a routine.1 In a survey of 1,244 Australian adults, physical activity that always started after the same routine was associated with it feeling more automatic, and activity that always started at the same time, with doing more of it.5 This is an association measured at a single point in time, not proof that one cue is better than the other.
The practical takeaway, as a deduction: choose the cue that really does come up every day in your week. If your schedule changes often, a routine has the advantage of moving with it; the trial's authors note that observational studies pointed in that direction, although their trial didn't confirm it.1
How to recognize a good anchor
No trials compare anchors one by one. The criteria in this table come from what studies say forms a habit — repeating the action in the same context, after a cue that's easy to detect — and we point out when they are a deduction.
| What to check | Strong anchor | Weak anchor | Why it matters |
|---|---|---|---|
| Frequency | Happens every day, weekends included: brushing your teeth at night | Only on some days: getting back from the gym, a weekly meeting | The researchers' advice is to choose a cue you'll come across every day.6 |
| Clear moment | Has an ending you notice: closing your laptop, finishing breakfast | Vague: “in the morning,” “when I have a moment” | The cue has to be easy to detect.6 That a specific ending helps more is a deduction. |
| Place | Leaves you where you'll do the action, with what you need at hand | Makes you move somewhere else or go looking for equipment | Place is part of the context that ends up triggering the habit.7 Keeping things at hand is a deduction. |
| Stability | Holds even when your week changes | Depends on a schedule that changes often: shift work, travel | When the context changes, the habits that depended on it are disrupted.8 |
| Room | The new action fits there without rushing | Is tied to a rushed moment: dashing out of the house | Deduction: if there's no room, the action will often be skipped, and repeating it is what matters most.1 |
The place criterion ties in with another idea from the guide: setting up your environment so that what you need is where the cue appears. And an anchor can come up several times a day: if you want to get up from your chair more often, the end of each call can work. What's known about breaking up sitting time is covered separately.
Figure 1. A day with possible anchors
When you get up
- Anchor: starting the coffee maker.
- New action: drinking a glass of water while the coffee brews.
During the workday
- Anchor: hanging up after a long call.
- New action: standing up and walking for a couple of minutes.
After dinner
- Anchor: starting the dishwasher.
- New action: laying out your workout clothes for tomorrow.
At bedtime
- Anchor: brushing your teeth.
- New action: leaving your phone to charge outside the bedroom.
These are examples to choose one from, not a list to start all at once: one new action at a time.
Right before or right after?
It's often taken for granted that the new action works better right after the anchor. In an exploratory study with 50 people, half were asked to floss before brushing their teeth and the other half after. Those who flossed after tended to form a stronger habit and, eight months later, had a stronger habit and flossed more often.2
The same researcher tested it again in her doctoral thesis, with 118 people in a 16-week study. This time the full analysis found no differences between before and after, in either frequency or automaticity; in a simpler comparison, the “before” group even gained slightly more automaticity.3 In the thesis she also notes that the first result didn't reach statistical significance at four weeks and that the eight-month result was based on the 29 people, out of 50, who responded.3
Given what's available, the exact position doesn't seem decisive. Our suggestion is to pick whichever fits your routine: if you rush out of the bathroom after brushing, “before” may feel more natural.
Alarms and reminders: they help you follow through, but do less to make it automatic
Many people replace the anchor with a phone alarm. A four-week study compared this indirectly: 133 people had to send a text message every day saying what they had eaten, and 96 completed the four weeks; what was really being studied was whether sending that message became automatic. Some got a reminder in the afternoon; others were asked to send it right after they finished eating; others had no cue at all.4
With a reminder they followed through more, but by the end the action felt less automatic to them than to those who tied it to the end of a meal or had no cue; between those two groups there were no significant differences.4 The authors, who study app design, suggest using notifications to remind people of the plan (“after you brush your teeth, do…”) and phasing them out over time; it's a proposal they didn't test.4
The deduction for everyday life: if you use an alarm at first, have it remind you of the anchor, not take its place.
Why a chain breaks
- The anchor doesn't happen every day. If it only exists on weekdays, on Saturday the action is left without a cue. That's why a daily cue is recommended.6
- Your routine changes. In students who transferred to another university, the habits of exercising, reading the newspaper or watching TV held up only when something about the context stayed the same.8 Vacations, shift work or a new job can wipe out the anchor; our suggestion is to have another one in mind for those days.
- The first step isn't clear. In a survey of 229 students, how often they did three behaviors was more closely related to the habit of getting started on them than to the habit of going through their steps without thinking.10 Hence a deduction: right after the anchor, know exactly what you do first.
- The anchor is used to stop doing something. According to the researchers, you can't form a habit of not doing something; they recommend choosing a new action instead of trying to suppress another one.6
- Too many links at once. We haven't found studies on long chains of new actions. The prudent thing is to consolidate one before adding the next; in the guide we explain why starting with a single change is a practical option, not a proven rule.
A blank day, on the other hand, doesn't break the chain: we cover this in what happens if you skip a day.
What isn't known yet
Research on anchors is scarce: one trial comparing routine and time, small studies on flossing or phone messages, and a survey or two. Almost everything is measured with questionnaires in which each person rates how automatic the action feels to them, and the results vary a lot from one person to another.13 We don't know which kind of anchor suits each behavior or how many new actions can be chained together.
Anchoring a habit is a technique for organizing your day, not a treatment. If you want to make a major change to your physical activity or your diet and you have an illness, take medication or are pregnant, talk to a health professional first.
Keep reading
Sustainable healthy habits: how to start and stick with them
The section of the guide on the “if–then” plan: how much it helps to decide in advance when and where, and what its limits are.
How long does it take to form a habit? Not 21 days, and not exactly 66
How long it usually takes for an action to come automatically, what the 21-day and 66-day studies measured, and what happens if you miss a day.
Healthy habits when you're short on time: the minimums that really count
If your anchor is the end of a call or a meeting: what's known about breaking up sitting time, and what isn't.
How to turn a wellness data point into a question and a test
If you want to know whether the new habit changes anything in your sleep or activity data: how to test it without fooling yourself.
Want to turn information into action?
naro helps you prioritize 2–3 high-potential habits and sustain them over time, with context and follow-up.
Sources
Each small number in the text leads to the source that statement rests on. Practical advice without a number is a deduction from these sources, and examples with a person's name are made up. It is general information: it does not replace an assessment by a health professional. How we make this content
Sources consulted up to 26 October 2026.
- Randomized trial. Keller J, Kwasnicka D, Klaiber P, Sichert L, Lally P, Fleig L (2021). Habit formation following routine-based versus time-based cue planning: a randomized controlled trial. British Journal of Health Psychology. 192 adults in Germany, mostly women and young people; one eating behavior over 84 days; no group that didn't plan, and data reported by the participants.
- Exploratory study. Judah G, Gardner B, Aunger R (2013). Forming a flossing habit: an exploratory study of the psychological determinants of habit formation. British Journal of Health Psychology. 50 participants and a single behavior, flossing. The authors themselves call for more rigorous designs. We could only read the abstract.
- Doctoral thesis. Judah G (2015). An investigation into the psychological determinants of health habit formation. Doctoral thesis, London School of Hygiene & Tropical Medicine. 118 people over 16 weeks; it retests the “before or after” question of the 2013 study and finds no differences. The same sample has a peer-reviewed article (Judah et al., BMC Psychology, 2018) that, according to its abstract, deals with reward and not with this comparison.
- Experimental study (conference). Stawarz K, Cox AL, Blandford A (2015). Beyond self-tracking and reminders: designing smartphone apps that support habit formation. Proceedings of the 33rd Annual ACM Conference on Human Factors in Computing Systems (CHI '15). 133 people started and 96 completed the four weeks; the behavior studied was sending a text message, not a health habit.
- Cross-sectional study. Pimm R, Vandelanotte C, Rhodes RE, Short C, Duncan MJ, Rebar AL (2016). Cue consistency associated with physical activity automaticity and behavior. Behavioral Medicine. 1,244 Australian adults (mean age, 55); a single measurement, so it shows associations, not causes. We could only read the abstract.
- Analysis article. Gardner B, Lally P, Wardle J (2012). Making health habitual: the psychology of 'habit-formation' and general practice. British Journal of General Practice. Aimed at family doctors; it summarizes the research and gives advice, but it isn't a systematic review.
- Theoretical model. Wood W, Neal DT (2007). A new look at habits and the habit-goal interface. Psychological Review. Proposes how habits form and are triggered; it doesn't measure the effect of any technique. We could only read the abstract.
- Longitudinal study. Wood W, Tam L, Witt MG (2005). Changing circumstances, disrupting habits. Journal of Personality and Social Psychology. Students who transferred to another university; everyday habits, not interventions. We could only read the abstract.
- Three studies, one of them experimental. Orbell S, Verplanken B (2010). The automatic component of habit in health behavior: habit as cue-contingent automaticity. Health Psychology. We use only the flossing study; the abstract doesn't give the sample size. We could only read the abstract.
- Conceptual analysis and prospective survey. Gardner B, Phillips LA, Judah G (2016). Habitual instigation and habitual execution: definition, measurement, and effects on behaviour frequency. British Journal of Health Psychology. 229 students; flossing, snacking and breakfast, with one week of follow-up. The authors call for confirming it with experiments. We could only read the abstract.