How long does it take to form a habit? Longer than 21 days, and that is fine

You are on day twenty-four. You have done the thing most days, you missed a Tuesday and then the Thursday after it, and it still takes a deliberate decision every single time. Somewhere along the way you picked up that habits take twenty-one days, so by that arithmetic you should have finished three days ago, and the gap between the number and your actual experience starts to feel like a fact about you.
It is a fact about the number. Twenty-one days never came from a study of habits at all. The research that did ask the question found something less tidy and far more useful: the time a behaviour takes to start running on its own varies enormously from person to person and from habit to habit, and one missed day barely shows up in the data.
Below is the range, where the wrong number came from, what the weeks in the middle actually feel like, and how to tell whether something is working before it feels automatic. If you are three weeks in and still grinding, you are on schedule.
The honest answer is a range
The best evidence anyone has comes from a 2009 study run at University College London by Phillippa Lally and colleagues. Volunteers each chose one new everyday behaviour, something like drinking a glass of water with lunch or walking for fifteen minutes before dinner, committed to doing it in the same situation each day, and rated how automatic it felt every day for twelve weeks.
Two findings matter here. The first is the shape. Automaticity rises steeply at the start and then flattens out, so the early gains are large and the late ones are small and slow. The stretch that feels like nothing is happening is the stretch where the curve has gone nearly flat, and that is also the stretch where most people conclude the habit is not working.
The second finding is the spread, and it is wide. Some volunteers were there within a few weeks. Others were still climbing when the twelve weeks ran out, and the projection for the slowest ran to the better part of a year. The middle of the group landed somewhere around two months. That middle figure is the one that escaped into blog posts and got turned into a rule, which is unfortunate, because a study whose central result was variation should not be remembered as a single number.
Treat the range as a range. If you decide two months is your deadline and it does not feel automatic on the day, you have manufactured a failure out of an average. What you want instead is a system that keeps running while the curve does whatever it is going to do, which is the subject of how to build good habits.
One more thing, because most articles on this question skip it: some habits never go fully automatic, and that is a normal outcome rather than a broken one. Serious exercise is the usual example. Plenty of people who have trained for a decade still have to decide to go. What changes is that the decision gets faster, cheaper and much harder to argue yourself out of, which is most of what you wanted from automatic in the first place.
Where the 21-day number came from
Maxwell Maltz was a plastic surgeon. In 1960 he published a self-help book called Psycho-Cybernetics, and in it he described something he had noticed in his practice: patients seemed to need about three weeks before they stopped seeing the old face in the mirror, and people who had lost a limb reported a phantom sensation for roughly the same span. He wrote it down as a minimum, an observation about how long a person takes to adjust to a changed self-image.
That is a real observation about a real thing, and it has nothing to do with acquiring a new behaviour. Somewhere across sixty years of retelling, the patients disappeared, the word minimum disappeared, adjusting to a new face turned into building a new routine, and an aside in a paperback became the number that habit apps print on their onboarding screens.
It survives because it works commercially. Three weeks is short enough to sell as a challenge, long enough to sound serious, and round enough to remember. Twenty-one days fits on a poster in a way that "somewhere between a fortnight and most of a year, depending on what it is" never will.
The cost of the myth is specific. People quit on day twenty-two. They took the number as a contract, delivered their side of it, found the behaviour still required effort, and drew the only conclusion the contract allows, which is that something is wrong with them. Nothing is wrong with them. The contract was fiction.
What each week actually feels like
Averages hide the texture, and the texture is what tells you whether to keep going. Here is the ordinary shape of a new daily habit, with "ten minutes of Spanish after the kettle goes on" as the running example.
| Stage | What it usually feels like | What tends to go wrong | What helps |
|---|---|---|---|
| Week 1 | Easy and faintly enjoyable. You remember without being reminded and you often do more than you planned. | Doing thirty minutes on day two, which makes the ten minutes on day five feel like a downgrade. | Cap it. Do the ten minutes and stop, even on the day you want to keep going. |
| Week 2 | The novelty has gone and the reminder starts to matter. The first real miss usually lands here. | Reading the miss as a verdict rather than as a Tuesday. | Do it the next day at the normal time. The day after a miss decides most of this. |
| Weeks 3 and 4 | Steady and effortful. You still decide every time, and you are watching for the moment it turns automatic. | Quitting because day 21 came and went and nothing changed. | Stop checking whether it feels automatic. Count how many of the last twenty-one days you did it. |
| Weeks 5 to 8 | Something shifts in the surroundings rather than in you. The kettle starts to feel unfinished without the ten minutes. | Life changes shape, the kettle moment moves, and the habit quietly goes with it. | Choose the replacement moment the week the old one goes, not a month later. |
| Beyond week 8 | Automatic on ordinary days, still deliberate on hard ones and on holiday. | Deciding it is finished, dropping the record, and finding it gone in November. | Keep the smallest version alive through the disruption. Two minutes counts as a day. |
The pattern in that table is worth naming. Difficulty does not fall smoothly. It drops fast in the first fortnight, then sits on a long plateau where nothing appears to improve, and the plateau lasts longer than anybody warns you about. Most abandonment happens on the plateau rather than in the hard first week, which is why knowing the plateau is coming is worth more than any technique on this page.
Why some habits take far longer than others
The spread in the UCL data was not random noise. Three things account for most of it, and you can work out roughly where your own habit sits before you start counting days.
How much the behaviour actually involves
Drinking a glass of water with lunch is one movement in a place you were already standing. A forty-minute run is a change of clothes, a judgement about the weather, a route, a shower, and forty minutes you have to find. The first slots into an existing moment with nothing displaced. The second displaces a chunk of the evening, and everything it displaces pushes back.
A rough rule: if the behaviour needs more than one preparation step, expect the slow end of the range. That is the argument for starting at a size that feels faintly ridiculous, which is the whole subject of tiny habits and the two-minute rule.
How often the cue comes round
Automaticity is built by repetition in a consistent context, so the calendar sets your ceiling. A habit attached to weekday mornings gets five repetitions a week. A habit attached to Sunday afternoons gets four a month, so eight weeks of Sundays is eight repetitions, which is about a week and a half of the weekday habit. The Sunday habit is not failing. It is being measured against the wrong clock.
If you want something automatic quickly, hang it on a moment that happens every day. If it genuinely only makes sense once a week, accept in advance that the timeline is measured in seasons and stop checking it in October.
How much has to be true before you can start
Some habits carry a dependency list. A morning gym habit needs the bag packed, the alarm moved, the commute rerouted and the evening before protected. Each dependency is a separate thing that can fail, and any one of them failing looks, from the inside, exactly like the habit failing.
Remove the dependencies you can. Kit by the door rather than in a wardrobe. The book on the pillow rather than the shelf. Every step you take out is one fewer place for a Tuesday to go wrong, and it moves your habit toward the fast end of the range without changing anything about your character.
What a missed day actually does
Almost nothing, on the evidence.
The UCL researchers looked at this directly, because their volunteers missed days the way everybody does. A single missed day did not meaningfully change the curve. The behaviour did not reset and the progress did not vanish. Repetition builds automaticity, and one absent repetition is one absent repetition rather than a demolition.
What causes trouble is the second miss, and the story you attach to the first. One skipped evening is a Tuesday. Two skipped evenings in a row is the beginning of a different pattern, because the third night now has two nights of precedent behind it instead of twenty. The rule that survives contact with a real week is never miss twice, and it gets the full treatment in how to stay consistent.
This is also where a lot of habit trackers do real damage. An app that stages a small funeral for your run of days, that reddens or shatters or counts down as midnight approaches, is teaching you that the record matters more than the behaviour. People respond exactly as you would expect: a token thirty-second version at 23:58 to keep a number intact, a fake check-off, or deleting the app the day the number goes.
Loggd computes a streak from your entries rather than storing it, and a streak whose most recent entry is yesterday is still a live streak, because today has not finished yet. Nothing counts down, nothing warns you, and no screen tells you what is at stake. If you get to it at nine in the evening, you got to it.
How to see the curve while you are still on it
Checking daily for the feeling of automaticity is a bad instrument. It is like weighing yourself hourly: the signal is real and the noise is much bigger. What you want is something that shows you the shape of a month while you are living inside a day.
Count the days you did it, not the days since you started
"Day 24" is a calendar fact and it tells you nothing about the habit. "Seventeen of the last twenty-one" is a measurement of the behaviour. Those two numbers describe the same three weeks, and only one of them can be acted on: seventeen out of twenty-one says the habit is mostly working and the four gaps probably have a pattern worth finding.
Look at the shape of a month rather than at today
Today is one square and it is a terrible sample. A month of squares has a shape, and the shape is legible from across the room. A solid band with two gaps in it reads as a habit that is working. Alternating colour reads as a habit that is not attached to anything yet.
Loggd puts a 365-day grid on the home screen, the same shape as a code contribution graph, one cell per day. A missed day is one grey cell in a run of filled ones, which is roughly the weight it deserves. After six weeks the block is visible from a distance and the two gaps in it are not. The year in pixels practice does the same job on paper, and a wall calendar with a marker does most of it for the price of the marker.
One detail matters if you are going to read a grid at all: a habit meant for weekdays should be scheduled as weekdays. Loggd habits run daily, on weekdays, or on a custom set of weekdays you pick, so a Saturday that was never a working day is not a gap you have to explain to yourself six weeks later.
Give it eight weeks before you decide anything
Put a date eight weeks out in the calendar and agree with yourself that you will not evaluate the habit before it. On that date you ask one question, and it is not whether the habit feels automatic yet. The question is how many of the last fifty-six days you did the thing.
Above forty, keep going and stop thinking about it. Around thirty, the habit is fine and the moment is wrong: it is landing at a time that only works on some days, so move it. Under twenty, the version you chose is too big, and the fix is a smaller version rather than more resolve.
Any tracker that shows you a run of days will do this job. Streaks and Loop Habit Tracker are the minimal end and do one thing well. Habitica turns the whole business into a role-playing game with parties and quests, which is the reason some people stay with it for years and the reason others last a fortnight. Loggd keeps habits, tasks, goals, focus sessions and a daily check-in in one place and draws the year back as that grid, and the guide walks through how the pieces fit. The free plan carries three habits, which reads like a limit and works like a filter while you are still finding out which behaviours stick; pricing has the rest of what it includes.
Frequently asked questions
Is it really 21 days to form a habit?
No. The figure traces to a 1960 self-help book by a plastic surgeon describing how long his patients took to adjust to a changed appearance, and it was never a study of habit formation. The research that has looked at the question directly found a range running from a couple of weeks to most of a year.
How long does it take to form a habit of exercise?
Longer than average, usually. Exercise involves more steps than most habits, takes a real block out of the day, and depends on kit, weather and travel, all of which push it toward the slow end. Expect months rather than weeks, and pick a version small enough that a bad Tuesday cannot cancel it.
Does missing one day reset habit formation?
No. In the UCL data a single missed day did not meaningfully change the curve. Two misses in a row is the thing worth avoiding, because the second one is what turns an ordinary gap into a new pattern.
What is the 21/90 rule?
It is internet folklore that says twenty-one days makes a habit and ninety days makes a lifestyle. Neither number has habit research behind it. The twenty-one comes from the Maltz observation and the ninety appears to have been added later because it sounded like a sequel.
How do I know when a habit is formed?
The usual sign is that skipping it feels stranger than doing it, and that you notice you have already started before you remember deciding to. It arrives gradually, and you will not be able to name the day it happened.
Can I build two habits at the same time?
You can, and it roughly doubles the number of ways a week can go wrong. If both hang off the same moment, like stretching and then a glass of water straight after brushing your teeth, they behave almost like one habit. If they sit in different parts of the day, do one first and add the second when the first stops needing a decision.
Put a date eight weeks out, write it down, and refuse to judge the habit before it arrives. Spend those eight weeks on the two things you actually control, which are the size of the habit and the moment it hangs on. The seven steps for doing that are in how to build good habits, and the day after your first miss is worth planning now, while it is still hypothetical.
Read next

How to build good habits: a system that survives a bad week
Seven steps, each with an example you can set up tonight, built around the bad week that usually ends things.
9 Sept 2026~13 min
Habit stacking: anchor new habits to the ones you already keep
Attach the new habit to one you already keep, and spend your effort on picking an anchor that does not move.
9 Sept 2026~12 min
Tiny habits and the two-minute rule: start smaller than feels reasonable
Shrink the habit until the version you would do at 11 pm on a bad day is the version you promised.
9 Sept 2026~11 min