How Many Days Does It Take to Form a Habit? (Hint: Not 21)

The honest answer is a median of 66 days, with a range from 18 to 254. Here's where 21 came from, what the studies measured and a 66-day plan.

Masons on a wooden crane lower the glowing keystone into a half-built stone arch bridge over a river, the arch still resting on its timber frame.
Stone by stone, until the day the arch holds without its frame.

Key takeaways

  • A new daily habit takes a median of 66 days to become automatic, not 21, and in the best-known study individual times ranged from 18 to 254 days.
  • The 21-day rule comes from plastic surgeon Maxwell Maltz, who wrote in 1960 that an old mental image needs a minimum of about 21 days to change, not from a habit study.
  • The 66-day median comes from the 39 participants whose data fit the model well, and the 254-day figure is a projection beyond the 84-day study.
  • Missing one day did not materially affect habit formation in the 2010 study, so never miss twice is a better rule than starting over.
  • Simple, frequent habits with a steady cue seem to form faster: in a 2023 study, hospital handwashing became a habit in weeks while going to the gym took months.

It takes a median of 66 days to form a habit, not 21. That number comes from the best-known study, where a new daily behavior took anywhere from 18 to 254 days to become automatic, depending on the person and the habit.

So if you're three weeks into a new habit and it still feels like work, nothing is wrong with you. Below: how long it takes to build a habit, where the 21-day myth comes from, why your habit may go faster or slower, what a missed day does, and a 66-day plan with a tracker you can print.

How long does it take to form a habit?

It takes a median of 66 days to form a habit, with a range from 18 to 254 days. Those numbers come from a 2010 study led by Phillippa Lally at University College London, which followed 96 volunteers for 12 weeks. A median means half of the people it was calculated for got there faster and half took longer.

66 days

median time for a daily behavior to become automatic

Lally and colleagues, 2010

18 to 254 days

the range of individual estimates in the same study

Lally and colleagues, 2010

59 days

median in a 2021 trial, among the 27 people who formed a small nutrition habit

Keller and colleagues, 2021

Newer research hasn't moved the number much. A 2024 systematic review and meta-analysis by Ben Singh and colleagues covered 20 studies with 2,601 participants. Only four of them reported how long a habit took: medians of 59 to 66 days, means of 106 to 154 days and individual times from 4 to 335 days. We take those numbers apart further down.

So how many days does it take to form a new habit? Plan on about two months for a simple daily habit, and longer for something complex like going to the gym.

Where the 21-day myth comes from

The idea that it takes 21 days to form a habit traces back to a plastic surgeon, not to a habit study. In his 1960 book Psycho-Cybernetics, Maxwell Maltz wrote that it takes "a minimum of about 21 days" for an old mental image to fade and a new one to settle in.

He was describing how long his patients needed to get used to a new face after surgery, and how long a phantom limb seemed to linger after an amputation. Here's how that turned into a rule:

  1. 1960: a surgeon's observation. Maltz ran no study, and he wasn't writing about habits like flossing or running.
  2. The retelling. As the idea got repeated, the words "a minimum of about" fell away. A floor became a finish line: "it takes 21 days to make a habit."
  3. The challenge era. Our reading: three weeks is short, sounds doable and fits neatly on a calendar, a natural length for a challenge.

To be fair, 21 days isn't wrong for every habit: the fastest person in Lally's study needed 18. It just isn't a rule. Neither is the "21/90 rule" (21 days to build a habit, 90 days to make it a lifestyle), a popular rule of thumb with no study behind it.

The myth has a cost. If you expect to be done in three weeks and it's still an effort on day 22, it's easy to decide you failed and stop, while the habit was still climbing toward its plateau.

What the 66-day study actually found

The study behind "66 days to form a habit" found that a daily behavior, repeated in the same context, gets steadily more automatic until it levels off.

The setup: Lally and her colleagues asked 96 volunteers to pick one new eating, drinking or activity behavior. Each person tied it to a daily cue, such as "after breakfast", and tried to do it every day for 84 days.

What "automatic" means

The researchers measured automaticity. Every day, participants rated statements about their behavior, along the lines of "I do it without thinking."

Definition

Automaticity
How much a behavior happens without you having to decide, remember or push yourself: the situation starts it for you.

A habit counted as formed when a person's score reached 95 percent of their own plateau. So "formed" means about as automatic as this behavior was going to get for this person, not effortless forever.

The habit formation curve

Automaticity didn't rise in a straight line. In a 2012 summary for family doctors, Benjamin Gardner, Phillippa Lally and Jane Wardle describe the pattern:

The habit formation curve as a pattern: what Lally and colleagues reported, not exact data points
StageWhat automaticity does
Early repetitionsRises fastest
The middleKeeps rising, more slowly
The plateauLevels off

Three details from the paper that rarely survive the retelling:

  • The 66 comes from 39 people. Of the 96 volunteers, 82 gave enough data to analyze, and the curve fit 39 of them well. The median is theirs.
  • 254 days is a projection. The study ran for 84 days, so the longest times are estimates from each person's curve, not something anyone watched happen.
  • Exercise looked slower. Exercise habits took about one and a half times as long to level off as eating or drinking habits. But each group was small, so treat it as a hint, not a rule.

What newer research adds

The timing numbers in Singh's 2024 review come from different studies of different habits, so they aren't one pooled estimate. The 66 is Lally's study, counted again, and one of the four studies only asked people to estimate their own time. The other figures come from two small studies:

  • A 2021 trial. In a trial led by Jan Keller, 192 adults linked a small nutrition habit to a daily routine or to a set time for 84 days. Of the 117 who followed the protocol, 27 (23 percent) met the researchers' bar for a formed habit. Those 27 took a median of 59 days, with modeled times from 4 to 335 days (anything past day 84 is a projection).
  • A 2017 study. In a study led by Marion Fournier, 48 students did a daily stretch for 90 days, after waking or before bed. The curves projected automaticity at about 106 days for the morning group and about 154 days for the evening group: the review's two means.

The review also looked at what helps: morning practice and self-chosen habits each came out stronger in a single study, so treat both as leads, not rules.

Why some habits take 18 days and others 254

How long it takes to develop a habit depends mostly on what the habit is, how often you repeat it and how steady its cue is.

In a 2015 study of 111 new gym members, Navin Kaushal and Ryan Rhodes found that people needed at least 4 workouts a week for 6 weeks to establish an exercise habit. It's one 12-week study, based on surveys.

Time of day is less clear. Fournier's morning group was projected to get there sooner, but that's one small study, and Caltech's summary of the 2023 gym study says time of day had no effect on gym habit formation.

Here's how that adds up.

How long different habits take: what the research suggests for six kinds of habits, and why
Habit typeExampleWhat the research suggestsWhy (our reading)
A simple drinking habitA glass of water with breakfastLooked faster than exercise in Lally's study (overall median: 66 days)One easy action with an obvious daily cue
An eating habitA piece of fruit with lunchAlso looked faster than exercise in that studySimple, and tied to a meal you already eat
A simple exercise habitA 15-minute run before dinnerAbout one and a half times as long as eating or drinking habits in Lally's study (small groups)More effort and more steps, so more ways to skip
Gym visitsThe gym 4 times a weekAbout 2 to 3 months in the 2023 gym data; at least 4 workouts a week for 6 weeks in the 2015 studyTravel, a packed bag and an hour of your day
Handwashing in a fixed settingHospital staff cleaning their handsWeeks in the 2023 hospital data (about 9 to 10 shifts)A short action with a clear cue, many times per shift. Some staff may have had the habit before tracking began
Morning vs eveningThe same stretch after waking or before bedAbout 106 days (morning) vs about 154 (evening), projected, in one small 2017 studyUnclear. The authors point to cortisol, higher in the morning

None of these numbers is a promise for your habit. Five things move your own timeline:

Complexity. In the Kaushal and Rhodes study, simpler workouts predicted stronger habits. What to do: start with the simplest version of your habit.

Frequency. A daily habit collects repetitions faster than a weekly one. What to do: make it daily if you can, even if the daily version is tiny.

A stable context. Same place, same trigger, same days: the trigger is the cue, the first step of the habit loop. What to do: tie your habit to something you already do every day.

Enjoyment. Kaushal and Rhodes also found that people who felt good about their workouts built stronger habits. What to do: pick a version you like, and give yourself a check mark right after.

You. How long it takes to create a habit differs enormously from person to person: from 18 to 254 days in Lally's study. What to do: compare this week with your own last week, not with the median.

Repetitions, not days: what actually builds a habit

There is no fixed number of repetitions that builds a habit. What the research supports is repeating the same behavior after the same cue, many times. The calendar is just how we count it.

In Lally's study people aimed for once a day, so 66 days means at most about 66 repetitions in the same context, and fewer for anyone who skipped days. The study counted days, not repetitions.

In the 2023 hospital data, handwashing became predictable after about 9 to 10 shifts, which was roughly 220 chances to wash: a couple of weeks on the calendar.

A habit you do three times a week collects repetitions less than half as fast as a daily one, so expect it to need more calendar time. No study gives a clean conversion.

Does missing a day reset your progress?

No. In Lally's study, missing one opportunity to do the behavior did not materially affect the habit formation process. Gardner, Lally and Wardle add that the gains in automaticity soon resumed after a single miss.

Long gaps look different. In the 2023 gym data, the longer it had been since a person's last visit, the less likely they were to go on a given day. That held for 76 percent of gym-goers. It's a pattern, not proof that a gap causes quitting.

One practical rule covers both findings: never miss twice. It's a rule from James Clear's Atomic Habits, one of the techniques on our Atomic Habits cheat sheet. One miss is noise. The day after is the one that counts.

Why does the stretch after week 3 feel like the place to quit? No study pins down a quitting window; this is our reasoning. The novelty is gone, the fast early gains have slowed, and the habit doesn't feel automatic yet. A streak helps here as a way to see your repetitions pile up, not as an exam you fail with one empty box.

How to tell when a habit has formed

A habit has formed when the situation starts it for you: you do it without deciding, remembering or pushing. You don't have to wait for a day number to find out.

Researchers use a four-question scale for this, the Self-Report Behavioural Automaticity Index, published in 2012 by Benjamin Gardner, Charles Abraham, Phillippa Lally and Gert-Jan de Bruijn. Here are its four ideas in our own words, as an "Is it a habit yet?" check:

  • It happens on autopilot.
  • I don't need a reminder to do it.
  • I do it without thinking it through.
  • I've often started before I notice I'm doing it.

Scoring: answer yes or no for one habit. Three or four yeses: you're close to your plateau. Two or fewer: keep the cue steady and keep going. The cutoff is our rule of thumb, not part of the scale.

Worked example

Dana, a fictional example, runs the same morning routine every day: a glass of water, five slow breaths and 10 pages of a book, right after the alarm. She runs the check for each habit.

  • Day 10No yeses yet. She needs a sticky note on the nightstand to remember.
  • Day 35Two yeses for the water, which now happens on its own. The reading still takes a push.
  • Day 60Four yeses for the water and the breathing, three for the reading. One morning she's on page 4 before she has decided anything.

A 66-day plan to start a habit and make it stick

How long does it take to start a habit? One day. The work is the two months or so after it.

This plan splits those two months into four stages. The day ranges are our suggestion, not something a study tested. For the full how-to, see our guide to habit formation.

  1. Days 1 to 7: make it tiny

    Goal: show up every day. Pitfall: starting at full size.

    Begin smaller than you want to. James Clear's Two-Minute Rule says a new habit should take less than two minutes to do, so "read before bed each night" becomes "read one page".

    Pick one time and one place. If you keep putting off day 1, here's how to stop procrastinating.

  2. Days 8 to 21: protect the cue

    Goal: the same trigger every day. Pitfall: "sometime today".

    Attach the habit to something you already do, which is habit stacking: "After I pour my coffee, I will read one page." Pick a cue you'll meet every day, and lay out what you need the night before.

  3. Days 22 to 45: survive the dip

    Goal: keep the repetitions coming while it still feels like effort. Pitfall: reading "not automatic yet" as "not working".

    Never miss twice, tell one friend what you're doing, and keep your count where you can see it.

  4. Days 46 to 66 and beyond: let it run

    Goal: grow it carefully. Pitfall: doubling it overnight.

    Add a little (one page becomes five) and run the four-question check above. If day 66 comes and it isn't automatic yet, you're not behind. You may just be on the longer side of an 18 to 254 day range.

Give day 66 a date. It's 9 weeks and 3 days: start on March 1 and it's May 5. Our days since calculator counts the days from your start date and can count the start day as Day 1.

One way to hold all of this: give the habit a fixed spot in a morning or evening routine in Greatr. You tap Play and run the routine one habit at a time, so the habit before it becomes the cue. Every habit earns XP, your streak counts the days, and the apps you chose stay locked until the routine is done.

How long does it take to change or break a habit?

Nobody has a solid number for how long it takes to change a habit, because breaking habits has been studied far less than building them. Our expectation, not a research finding: give it at least as long as a new habit, so think in months, not weeks.

In a 2014 review of basic laboratory research on learning, Mark Bouton concluded that the usual ways of changing behavior tend to inhibit the old behavior, not erase it, and that the change is often tied to the context where you learned it. So an old habit can resurface when you're back in the old setting.

The practical move is to build a stronger new behavior on the same cue: keep the trigger, swap the action. "After dinner, I scroll" becomes "after dinner, I walk around the block." Then the new behavior needs its own repetitions. Our list of 50 bad habits and what to replace each one with has swaps to borrow.

A 66-day habit tracker you can print (and what happens after day 66)

Print this page or copy the tracker into a notebook. Write your habit as one sentence, then cross off each day you do it. At days 21, 45 and 66, run the four-question check.

My habit: "After I ______, I will ______." Start date: ______. Day 66: ______.

66-day habit tracker: four stages, a number to cross off for each day and a self-check at days 21, 45 and 66
StageCross off each day you do itSelf-check
Make it tiny1 2 3 4 5 6 7No check this week
Protect the cue8 9 10 11 12 13 14 15 16 17 18 19 20 21Day 21: ___ of 4 yes
Survive the dip22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45Day 45: ___ of 4 yes
Let it run46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66Day 66: ___ of 4 yes

Missed a day? Leave the number open and cross off the next one. You don't start over.

Prefer a screen? Our habit tracker gives each habit a one-tap check for today, its streaks and a year heatmap, and prints monthly and weekly sheets.

What happens after day 66? Probably nothing dramatic. Our suggestion: stop checking boxes once the habit runs on its own, but keep it in its slot, because the routine around it is what protects it in a busy week.

If you'd rather keep it on your iPhone, build the habit into a daily routine in Greatr. Otto, the app's guide, keeps count of every day you show up, and medals like the 30 Day Streak and 66 Habit Days mark the way.

Yesterday is already in my notebook. Today, we add one more day.

Otto, Greatr's guide

Your next step, today: write one sentence, "After I [cue], I will [two-minute version]", do it once and cross off day 1.

Frequently asked questions

How long does it take to build a habit?

It takes a median of 66 days to build a habit, based on a 2010 study by Phillippa Lally and colleagues at University College London. Individual times in that study ranged from 18 to 254 days. Plan on about two months for a simple daily habit, such as a glass of water with breakfast, and longer for something complex like going to the gym.

How long does it take to create a habit that feels automatic?

Creating a habit that runs on autopilot took a median of 66 days in the best-known study, by Phillippa Lally and colleagues, with individual estimates from 18 to 254 days. Exercise habits took about one and a half times as long as eating or drinking habits. Count repetitions in the same context, not calendar days: that is what builds the habit.

Does it really take 21 days to form a habit?

No. The 21-day figure comes from plastic surgeon Maxwell Maltz, who wrote in his 1960 book Psycho-Cybernetics that an old mental image needs a minimum of about 21 days to change. He did not study habits. When researchers measured real habits in 2010, the median was 66 days, although the fastest person in that study needed only 18.

What is the 66-day rule for habits?

The 66-day rule is shorthand for a finding from a 2010 study led by Phillippa Lally. In it, 96 volunteers tried to repeat one behavior daily for 12 weeks. Among the 39 whose data fit the researchers' model well, the median time for it to become automatic was 66 days. It is a median from one study, not a deadline: individual times ranged from 18 to 254 days.

How many repetitions does it take to build a habit?

There is no fixed number of repetitions. In the best-known study people aimed for once a day, so the 66-day median means at most about 66 repetitions after the same cue. A habit you do a few times a week needs more calendar time. In one 2015 study of 111 new gym members, it took at least 4 workouts a week for 6 weeks to establish an exercise habit.

Does missing a day reset a habit?

No. In the 2010 study by Phillippa Lally and colleagues, missing one opportunity to perform the behavior did not materially affect the habit formation process. Long gaps are a warning sign: in a 2023 analysis of gym data, the longer it had been since a person's last visit, the less likely they were to go on a given day. A practical rule is to never miss twice in a row.

Why do exercise habits take longer to form?

They often seem to, probably because exercise asks more of you: more time, more effort and more steps before you start. In Phillippa Lally's 2010 study, exercise habits took about one and a half times as long as eating or drinking habits, though the groups were too small to be sure. In a 2023 study, going to the gym took months to become a habit, while hospital handwashing took weeks.

How do you know when a habit is formed?

A habit is formed when the situation starts the behavior for you. Check four things, based on a research scale for automaticity: it happens on autopilot, you do not need a reminder, you do it without thinking it through, and you often start before you notice. As a rule of thumb, if three or four are true you are close to your plateau.

How long does it take to change a habit?

There is no reliable number, because breaking habits has been studied far less than building them. A reasonable expectation is months, not weeks, but no study pins it down. Laboratory research on learning suggests an old habit is inhibited rather than erased, so the practical approach is to keep the cue, replace the behavior and repeat the new one until it becomes automatic. Addiction is different and deserves professional help.

What is the 21/90 rule?

The 21/90 rule says it takes 21 days to build a habit and 90 days to make it a lifestyle. It is a popular rule of thumb with no study behind it. When researchers timed real habits in a 2010 study, the median was 66 days, with a range from 18 to 254 days. Ninety days is a round number, not a research finding.

Sources

  1. How are habits formed: Modelling habit formation in the real worldPhillippa Lally and colleagues, European Journal of Social Psychology, 2010
  2. Time to Form a Habit: A Systematic Review and Meta-Analysis of Health Behaviour Habit Formation and Its DeterminantsBen Singh and colleagues, Healthcare, 2024
  3. Psycho-Cybernetics: Updated and ExpandedMaxwell Maltz, Penguin Random House (first published in 1960), 2015
  4. Making health habitual: the psychology of 'habit-formation' and general practiceBenjamin Gardner, Phillippa Lally and Jane Wardle, British Journal of General Practice, 2012
  5. Habit formation following routine-based versus time-based cue planning: A randomized controlled trialJan Keller and colleagues, British Journal of Health Psychology, 2021
  6. Effects of circadian cortisol on the development of a health habitMarion Fournier and colleagues, Health Psychology, 2017
  7. What can machine learning teach us about habit formation? Evidence from exercise and hygieneAnastasia Buyalskaya, Hung Ho, Katherine Milkman, Xiaomin Li, Angela Duckworth and Colin Camerer, Proceedings of the National Academy of Sciences (PNAS), 2023
  8. Correction for Buyalskaya et al., What can machine learning teach us about habit formation? Evidence from exercise and hygieneProceedings of the National Academy of Sciences (PNAS), 2023
  9. Exercise habit formation in new gym members: a longitudinal studyNavin Kaushal and Ryan Rhodes, Journal of Behavioral Medicine, 2015
  10. No Magic Number for Time It Takes to Form HabitsCalifornia Institute of Technology (Caltech), 2023
  11. Atomic Habits: Tiny Changes, Remarkable ResultsJames Clear, Avery (Penguin Random House), 2018
  12. Towards parsimony in habit measurement: Testing the convergent and predictive validity of an automaticity subscale of the Self-Report Habit IndexBenjamin Gardner, Charles Abraham, Phillippa Lally and Gert-Jan de Bruijn, International Journal of Behavioral Nutrition and Physical Activity, 2012
  13. How to Stop Procrastinating by Using the "2-Minute Rule"James Clear, jamesclear.com, 2013
  14. Why behavior change is difficult to sustainMark Bouton, Preventive Medicine, 2014
  15. SAMHSA's National HelplineSubstance Abuse and Mental Health Services Administration, 2026

About this article

Jeroen Snel, co-founder of Greatr

Co-founder of Greatr

LinkedInX

Jeroen Snel is a co-founder of Greatr who writes about habit research, focus and iPhone settings: checking how a study was run before trusting its headline, then turning what holds up into steps you can take.

Read full bio

How we wrote this

Jeroen Snel wrote this guide from the studies and sources listed above, linked so you can check them. Greatr is our own app: we mention it where it fits, and it never decides what a study says. Published Nov 10, 2026. Read our editorial policy.

Hi, I’m Otto. I’ll help you build habits to transform your life in the next 66 days.

Download on theApp Store

Rated 4.9/5 on the App Store