Skip to content
Kaizora

How Long Does It Take to Build a Habit, and How Do You Make a Streak Last?

What research says about how habits form, why missing one day matters less than you think, and how to set targets you'll keep meeting.

By [Author name]5 min read

You’ve probably heard that it takes 21 days to form a habit. The research says otherwise: it usually takes longer, it varies a lot from person to person, and a single missed day doesn’t undo your progress. Here’s what the studies found, and how to set up targets and streaks that keep going after the first few weeks.

What a Habit Is

In psychology, a habit isn’t just something you do often. It’s something you do automatically, prompted by a situation, without having to decide each time. Brushing your teeth after breakfast is a habit: the situation (finishing breakfast) triggers the action, and you don’t weigh it up.

Gardner, Lally, and Wardle’s article for family doctors on making health behaviour habitual sums up the advice in one line: repeat a chosen behaviour in the same context until it becomes automatic and effortless. The context, such as a time of day or a place, becomes the cue.

How Long It Really Takes

The best-known study of this followed 96 volunteers for 12 weeks, as each tried to build a new daily habit, like eating a piece of fruit with lunch or going for a run before dinner. Every day, they rated how automatic it felt.

Lally and colleagues found:

  • Automaticity rose quickly at first and then levelled off, like a curve flattening out.
  • The time to get close to that level ranged from 18 to 254 days. For those whose data fitted the model well, the median was 66 days.
  • The more consistently people repeated the action, the better their progress fitted that curve.
  • Missing one opportunity didn’t materially affect how the habit formed.

The longer times were projections beyond the 12 weeks of the study, so treat the upper end as an estimate. But the message is clear: expect two months or more, not three weeks, and don’t give up because it still takes effort in week four.

Make the Target Easy to Meet

A streak lasts when the target fits your life:

  • Make it specific and measurable. “Walk more” can’t be checked. “At least 8,000 steps a day” can.
  • Start smaller than you think. A target you meet most days builds the habit; one you miss half the time builds frustration. You can raise it later.
  • Use a week for things that don’t happen daily. Exercise often doesn’t fit every day. “Three exercise sessions a week” lets a busy Tuesday be a rest day without breaking anything.
  • Use “at most” for things you’re cutting back. “At most 200 mg of caffeine a day” is a habit too.
  • Tie it to a cue. Meditate after you pour your morning coffee; walk after lunch. The same time and place each day is what makes it automatic.
  • One or two at a time. Several new habits at once compete for the same attention.

When the Streak Breaks

It will. A trip, an illness, a week of deadlines. What the research suggests:

  • One miss doesn’t reset your progress. In Lally’s study, a single missed day didn’t materially slow habit formation. The habit you were building is still there.
  • Restart the next period. The skill that matters is getting back on track quickly, not never missing.
  • Look at the year, not the streak. A calendar that’s mostly full, with a few gaps, is a success.
  • Change the target if it keeps breaking. If you miss most weeks, the target is too hard for now, not a test of character.

Habits in Kaizora

A habit in Kaizora is a target on any metric: at least or at most a value, checked every day over a window of days ending that day: a single day, any 7 days in a row, or any number you choose. A window that rolls with each day can’t be reset by a new week, and “every 3 days” is simply a 3-day window.

  1. Create one on the Habits page: pick a metric, such as Step Count, Exercise Sessions, Time Asleep, Meditation Time, or Dietary Caffeine; choose at least or at most; enter the target in whichever unit you like; and choose how many days it’s checked over. Kaizora describes it for you, like “At least 3 exercise sessions in any 7 days”. See Habits.
  2. Let your data fill it in. A habit is checked against your values wherever they came from: steps and workouts from your Apple Health export, foods from Cronometer, or what you log yourself. You don’t tick a box.
  3. Totals and averages. A metric that adds up, like steps, is checked by the window’s total. One that’s averaged, like resting heart rate, by its average.
  4. Watch the streak and the heatmap. Each habit shows its current streak, in days, and a year’s calendar of the days you met it. Every habit is on one heatmap of recent days on Home too, so you see them all each time you open the app.
  5. Today doesn’t break a streak. Today counts once you’ve met it, and until then your streak stands.
  6. Archive, don’t delete. When a habit has done its job, archive it. It keeps its history, and the metric’s values stay.

Habits pair well with reference ranges: a habit is a target to meet, a range is a band to stay within. For ideas on habits that build on food data, see Tracking Protein and Fiber Over Weeks.

The Short Version

  • A habit is an action that’s become automatic, cued by a time or place.
  • Forming one took a median of 66 days in one well-known study, with a range of 18 to 254.
  • Missing one day didn’t materially slow it down.
  • Set specific, achievable targets; use weekly ones for things that don’t fit every day.
  • When a streak breaks, restart; look at the year, not the streak.

Habits, streaks, and heatmaps are free in Kaizora, for every metric. Start with one.

Sources

  • Lally P, van Jaarsveld CHM, Potts HWW, Wardle J, “How are habits formed: modelling habit formation in the real world,” European Journal of Social Psychology 40, no. 6 (2010): 998–1009. doi:10.1002/ejsp.674
  • Gardner B, Lally P, Wardle J, “Making health habitual: the psychology of ‘habit-formation’ and general practice,” British Journal of General Practice 62, no. 605 (2012): 664–666. doi:10.3399/bjgp12X659466

All articles