Sub topic 1
What counts as a habit
Prerequisites
This chapter assumes you have:
- Everyday experience with routines and goals, such as a morning routine or a fitness target.
- Willingness to look at your own behavior as data. You will need to notice what you do and when.
You do not need any background in psychology or programming. The short Python snippets are optional. They give you a precise way to write down what you observe.
Why the definition matters
People use "habit" for many things. They say they have a habit of going to the gym, but also a habit of biting their nails. They say a goal like "exercise more" is a good habit to have. These uses mix together behaviors that work in different ways.
If you cannot tell a habit from a deliberate action, you will use the wrong tools. A habit responds to cues and context. A deliberate action responds to reasons and intentions. Advice that works for one can fail for the other.
This chapter gives a working definition, separates habits from goal-directed actions, and lists the common mistakes in labeling a behavior. Later chapters take the habit apart into its cue, routine, and reward.
A working definition
A habit is a behavior that has been repeated in a similar context until a cue in that context triggers it with little deliberate thought.
The definition has four parts:
- Repetition. The behavior has happened many times. One occurrence is not a habit.
- Stable context. The repetitions happened in a similar situation, such as the same time, place, or preceding event.
- Cue-triggered start. The situation itself prompts the behavior. You do not first decide to do it.
- Low deliberation. The behavior runs with little conscious effort or decision-making.
Brushing your teeth after breakfast is a habit for most adults. You do not weigh the pros and cons each morning. Finishing breakfast prompts the action.
Habit versus goal-directed action
A goal-directed action is a behavior you choose because you expect it to produce an outcome you want right now. A habit is triggered by the situation. The two can look identical from the outside, so the difference lies in how the behavior starts and what controls it.
| Feature | Goal-directed action | Habit |
|---|---|---|
| How it starts | You decide to do it | A cue in the situation prompts it |
| Effort and attention | Needs attention and effort | Needs little of either |
| Sensitivity to the outcome | Changes if you stop wanting the outcome | Often continues even if you no longer want the outcome |
| Dependence on context | Can happen anywhere you choose | Tied to the usual context |
| Flexibility | Easy to adjust on the spot | Runs in its usual form until something interrupts it |
The third row is the key one. Suppose you drive to a workplace you no longer work at, because you took the old route on autopilot. The action no longer serves your goal, but the situation still triggered it. That is a habit at work.
A single behavior can move between the two. When you first learn to take a daily walk, each walk is goal-directed. You decide, you plan, and you push yourself out the door. After months in a stable context, the same walk may start without a decision. Early on it is goal-directed, and later it is more habitual. The behavior did not change. What controls it changed.
The arrow from the habit back to the start matters. A habit is not a trap. You can notice the cue, pause, and choose again. It just takes attention, which the habit was saving you.
Habits are a matter of degree
Habit strength is not on or off. A behavior sits on a range. At one end, you must force yourself each time. At the other, the behavior starts before you notice. Most real behaviors fall in between.
Some signs that a behavior is near the habitual end:
- You often start it without having decided to.
- You would feel odd or incomplete if you skipped it.
- It is hard to describe exactly when you decided to do it.
- It happens in the same situation almost every time.
- You can do it while thinking about something else.
None of these signs proves a habit alone. Together they suggest one.
What does not count
Several things get called habits but fail the definition. Checking each against the four parts helps.
A goal or a resolution
"I want to read more" is a goal. It states a desired result and says nothing about a cue. It becomes a habit only after a specific behavior has been repeated in a specific context. Many plans fail because the person keeps the goal and never builds the cue.
A one-off or rare behavior
Going to a concert once a year may be a tradition, but it lacks the repetition for a habit. Frequent repetition in a similar context is what makes a cue effective.
A behavior that always needs effort
If you do something every day but must argue yourself into it each time, it is a routine you maintain by effort. It is regular, but it is not yet habitual. This is common with new exercise routines. Regularity and automaticity are different measures.
A trait or personality description
"I am a morning person" describes you. It does not name a behavior with a trigger.
A compulsion or addiction
These can look like habits. They are driven by strong cravings and may continue despite serious harm. The loop model helps explain part of them, but they often need professional support, and this tutorial is not a treatment guide.
Writing a habit down
Writing a behavior as a structure shows whether you can name its parts. The tutorial's later chapters use cue, routine, and reward. For now, notice that a real habit can be described with all three.
from dataclasses import dataclass
@dataclass
class HabitLoop:
cue: str
routine: str
reward: str
def describe(self) -> str:
return f"When {self.cue}, I {self.routine}, so that I get {self.reward}."
walk = HabitLoop(
cue="I finish my morning coffee",
routine="walk around the block",
reward="a few minutes of fresh air",
)
print(walk.describe())Running this prints: When I finish my morning coffee, I walk around the block, so that I get a few minutes of fresh air.
If you cannot fill in the cue field with something specific, the behavior is probably a goal or an effortful routine. "When I feel like it" is not a cue. It names the decision, not a trigger.
Common errors
- Treating a goal as a habit. "Exercise" is a goal. "Walk after coffee" is closer to a habit.
- Counting regularity as automaticity. Doing something daily by willpower is not the same as doing it by cue.
- Assuming a habit is always bad. Habits are neutral. Most of your day is built from useful ones, such as locking the door or buckling a seat belt.
- Assuming a habit cannot be changed. Habits are context-linked, so changing the context or the response is often effective. Later chapters show how.
- Assuming one occurrence settles the question. One automatic action does not make a habit. Look for a pattern.
A quick self-check
Pick one behavior you do often. Ask four questions:
- Have I done it many times?
- Do I do it in about the same situation each time?
- Does something in that situation prompt it, without me deciding first?
- Can I do it with little attention?
Four yes answers point to a strong habit. Mostly no answers point to a goal-directed action or an effortful routine. Both are fine. The label tells you which tools to use.
Exercises
Exercise
You have gone to the gym every weekday for three weeks, but each morning you must talk yourself into leaving the house. Is this a habit? Explain using the four parts of the definition.
Show answer
Not yet, or only weakly. It meets repetition and may meet stable context. It fails low deliberation, because you decide each time and use effort. The regular schedule shows consistency, not automaticity. A cue in the situation, such as a fixed preceding event, would help move it toward habit.
Exercise
You move to a new office but keep taking your old route and end up at the old building. Which row of the habit versus goal-directed table does this illustrate, and why?
Show answer
Sensitivity to the outcome. You no longer want to go to the old building, but the situation (starting the commute) still triggered the behavior. A goal-directed action would have changed as soon as your goal changed.
Exercise
Fill in the HabitLoop for this behavior: you check your phone every time you sit on the train. Then say whether your cue is specific enough.
Show answer
One answer: cue="I sit down on the train", routine="check my phone", reward="a bit of novelty and distraction". The cue is specific because it names a situation that can be observed. "When I am bored" would be weaker, because boredom is vague and hard to detect.