How long does it take to form a habit?

There is no fixed number. The best-known study on habit formation found that it took people a median of 66 days for a new daily behavior to become automatic — and anywhere from 18 to 254 days depending on the person and the habit. The famous “21 days” is a myth.

Where the 21-day rule came from

The idea traces back to Maxwell Maltz, an American plastic surgeon, and his 1960 bestseller Psycho-Cybernetics. Maltz noticed that his patients took a minimum of about three weeks to get used to their new appearance, and that people needed a similar time to adjust to other changes. He was describing his own observations of adjustment, not running an experiment on habits — and he spoke about a minimum, not a guarantee.

Over the following decades, self-help books and seminars shortened this to a neat rule: “it takes 21 days to form a habit”. The number was easy to remember and sounded achievable, so it spread. But it was never based on research into habit formation.

What the research actually found

The study most often cited was carried out by Phillippa Lally and colleagues at University College London and published in the European Journal of Social Psychology in 2010 (the data were collected in 2009).

The results:

It is one study, with a modest sample and self-reported data, so treat the exact numbers as a guide rather than a law. But it is the most solid answer we have, and it clearly contradicts the 21-day rule.

Why is the range so wide?

Several things affect how quickly a habit forms:

What this means in practice

Plan for months, not weeks

If you expect a habit to be automatic after three weeks, day 22 feels like failure: it is still hard, so maybe you are “not the type”. Expecting two to three months — longer for complex habits — removes that false deadline.

The first weeks matter most

Automaticity grows fastest at the start. Early repetitions bring the biggest gains, so this is when it pays most to keep things simple and consistent.

One missed day is fine

The study suggests that a single slip does not undo your progress. What hurts is turning one miss into a week. Get back on the next day — more in what to do if you missed a day.

Make it easier, not harder

Since simpler habits form faster, start with a small version and tie it to a fixed cue. The practical steps are in how to build a habit.

Watch automaticity, not the calendar

A habit is formed not on a particular date but when you notice you do it without deciding, and skipping it feels odd. That is your signal — not day 21 or day 66.

Try a 30-day or 66-day challenge if a round target motivates you — just treat it as a checkpoint, not the finish line. Keep going after it ends.

Tracking the long haul

Two months is long enough to lose track of how far you have come. A habit tracker helps you see it. In Temfy - Habit Tracker, the streak shows how many days in a row you have kept going, the stats show how many times you did the habit this month and overall, and the progress calendar shows each day. A skipped day (a second tap on the circle) does not break the streak, and if you pause a habit while sick or on vacation, paused days do not reset it either — which fits what the research says about occasional misses.

Check off habits with one tap

Temfy - Habit Tracker counts your day streak, shows a progress calendar, reminds you at the right time and puts your habits on the home screen. Free for up to 2 habits.