Blog

How long does it take to form a habit? Not 21 days

Shadowkit Habit: everything it doesStreaks that allow a day off

You’ve probably heard that it takes 21 days to form a habit. It’s a tidy number, and it’s on countless posters and challenge apps. The research says something different, and more encouraging than it first sounds: it usually takes longer, but a missed day along the way doesn’t undo your progress.

The short answer

In the best-known study of habit formation, it took people a median of 66 days for a daily action to become as automatic as it was going to get. But the range was huge: from 18 days to 254. A 2024 review of the research since found much the same: typical times of about two months, and for some people much longer.

Study Who Typical time Range
Lally and colleagues, 2010 96 volunteers, one daily habit each for 12 weeks Median 66 days 18 to 254 days
Singh and colleagues, 2024 20 studies, 2,601 people; 4 studies timed it Medians 59 to 66 days; means 106 to 154 days 4 to 335 days

So if you’ve been at something for three weeks and it still takes effort, nothing has gone wrong. You’re right on schedule.

What the 66-day study found

In 2010, Phillippa Lally and colleagues at University College London published How are habits formed: Modelling habit formation in the real world in the European Journal of Social Psychology. The design was simple. Ninety-six volunteers each chose one eating, drinking or activity behaviour to do every day in the same situation, “after breakfast”, for example, for 12 weeks. Each day they recorded whether they did it and how automatic it felt.

For most people, automaticity rose quickly at first and then levelled off. The researchers measured how long each person took to reach 95% of their own plateau. That ranged from 18 to 254 days, “indicating considerable variation in how long it takes people to reach their limit of automaticity and highlighting that it can take a very long time”, in the paper’s own words. The median was 66 days, as the 2024 review reports it. The longest was a forecast: the study ran for 84 days, and the slowest person hadn’t levelled off by the end, as the researchers’ colleagues at UCL explain.

Two things are worth knowing about it. It was a small study, of simple, healthy actions: drinking water, eating fruit, exercising. And not everyone’s data fitted the curve well: of the 82 people who gave enough data, the model fitted 62, and 39 of them well. So 66 days is a useful rule of thumb, not a deadline.

What newer research says

In December 2024, Ben Singh and colleagues at the University of South Australia published a systematic review and meta-analysis in Healthcare. It gathered 20 studies of 2,601 people forming health habits: physical activity, healthy eating, drinking water, flossing, taking vitamins and more.

Only four of those studies timed how long a habit took. Their medians fell between 59 and 66 days, their means between 106 and 154 days, and individuals ranged from 4 to 335 days. The authors write that habits “can start forming within about two months” and that people should expect “at least two to five months” for new health habits to become automatic. They also found that habits done in the morning and habits people chose for themselves tended to grow stronger.

The review is honest about its limits: it’s a small number of studies, and 11 of the 20 were rated at high risk of bias. But it points the same way as the 2010 study, and it says plainly that its results “refute the popular notion that habits can be formed in approximately 21 days”.

Where “21 days” came from

The number goes back to Maxwell Maltz, a plastic surgeon, and his 1960 book Psycho-Cybernetics. In its preface he wrote that “it usually requires a minimum of about 21 days to effect any perceptible change in a mental image”. He gave examples from his work: his patients took about 21 days to get used to a new face, and people took about three weeks before a new house seemed like home.

That’s getting used to a change, not building a habit, and Maltz said “a minimum of about”. Somewhere along the way, as Ben Gardner, then at UCL’s Health Behaviour Research Centre, explains, adjusting to something was confused with forming a habit, and “a minimum of about 21 days” became “21 days”. His verdict: “21 days is a myth; habit formation typically takes longer than that.”

Does one missed day set you back?

This is the most useful finding of all, and the least known. Lally’s study says it directly: “Missing one opportunity to perform the behaviour did not materially affect the habit formation process.” Lally and Wardle, with their UCL colleague Ben Gardner, repeated it in advice written for family doctors in 2012: missing the occasional opportunity “did not seriously impair the habit formation process”, and gains in automaticity “soon resumed after one missed performance”.

What builds a habit is repetition in the same situation, over weeks. One day off is a small dent in a long curve. What does the damage is the thought that the whole thing is ruined, and giving up.

How to build a habit that lasts

These are common ways to make it easier, drawn from the research above. None of them is a guarantee, and everyone’s pace differs.

  • Start small. The same 2012 advice for doctors says to aim for “small and manageable” changes, “because failure can be discouraging”, and that “simpler actions become habitual more quickly”. Ten pages beats an hour; one glass of water beats two litres.
  • Tie it to a cue. Do it at the same point in your day: after breakfast, after you park, before you sleep. Lally’s volunteers each picked a cue like that. One trial in the 2024 review found a set time (09:00) and a routine (after breakfast) worked about as well as each other, so pick whichever your days already have.
  • Choose it yourself, and try mornings. In the review, self-chosen habits and morning ones tended to be stronger.
  • Count the days, and plan for ten weeks, not three. The 2012 advice suggests telling people to expect a daily habit “to take around 10 weeks”. Ticking each day gives you something to see while it still feels like effort.
  • Allow a day off. If you miss one, start again the next day, at the same cue. It’s the next day that matters, not the one you missed.

Keeping count without the all-or-nothing

A habit tracker helps with the counting, as long as it doesn’t punish the day off the research says is fine. That’s how Shadowkit’s Habit skill is built:

  • Mark a day skipped and your streak passes over it, neither broken nor added to. It’s left out of your completion rate too.
  • Today never breaks a streak while it’s still today, and a day you forgot to tick can be ticked later.
  • A habit can be a few times a week, with the streak counted in weeks, so a rest day isn’t a miss.
  • Your best streak is kept, along with your total and a 25-week grid of the days you did it.

To be clear about what it doesn’t do: a scheduled day you neither do nor mark skipped does end the current streak, Habit can’t tell you when a habit has become automatic, and it sends no reminders itself (set one in Notify). Habit streaks that don’t punish a day off has the exact rules.

If you’d rather not start from nothing, Shadowkit’s goals set up a habit and what goes with it in one tap, and every one is free:

  • Morning routine adds four small morning habits, from getting up on time to planning the day, and a reminder at 07:00.
  • Read more adds a habit to read 20 pages a day, a tracker for the pages, a reminder at 21:30 and a list of books to read.
  • Drink more water adds a water counter with a goal of 8, a habit it ticks when you reach it, and a reminder every two hours from 09:00 to 21:00.

Habit is free for five habits in a profile. It works offline, with no account, and your days stay on your phone. Change the habit, the cue or the time as you go: at two months in, you’ll know what works for you.

Shadowkit Habit: everything it doesEach habit in its own colour. Skip a day without breaking the streak.

Get Shadowkit

Scan with your Android phone’s camera, or tap Google Play. iPhone is coming soon.Tap Google Play to get it. iPhone is coming soon.

iOS

App Store

Android

Google Play