Health· Explainer

How long does it take to make exercise a habit? What the studies found

The biggest study of gym habits first said 4–7 months, then corrected it to 2–3 months. Here is what the exercise studies found, how often to train, what a missed session does and a 12-week plan built on the evidence.

By Updated 9 min read
A man ties the laces of his trainers on a leafy park path before a morning jog.
Photo: Yazid N / Pexels

The short version

5 key points
  1. In the best-known habit study, of 96 volunteers, a new daily behaviour took a median of 66 days to reach 95% of its peak automaticity, with individual times from 18 days to a predicted 254.
  2. A machine-learning analysis of 30,110 gym members, corrected in August 2023, puts the time for gym visits to become habitual at 68–78 days, not the 4–7 months first published.
  3. In a 12-week study of 111 new gym members, exercising at least 4 times a week for 6 weeks was the minimum that established an exercise habit.
  4. Missing one day did not materially affect habit formation in the 2010 study, but in the gym data the time since someone's last visit was the strongest predictor of whether they went again.
  5. In a 2022 review that pooled 35 of its 41 randomised trials (more than 5,400 people in all), planning when, where and how to be active raised self-reported activity by a small-to-moderate amount, slightly more when the plans were reinforced later.

Making exercise a habit typically takes about 2–3 months of regular sessions, and some people need much longer. In the best-known study, a new daily behaviour took a median of 66 days to become automatic. A corrected 2023 analysis of check-ins from 30,110 gym members put gym habits at 68–78 days, and in a separate study new gym members needed at least 4 sessions a week for 6 weeks.

How long does it take to form an exercise habit?

Typical times for exercise habits ranged from about 5 weeks to 5 months in the studies that have tracked them, depending on who took part and how habit was measured. A 2024 systematic review of 20 studies and 2,601 people, covering a range of health behaviours, found median times of 59–66 days and mean times of 106–154 days, with individuals ranging from 4 to 335 days. Two studies supply most of those figures: the 59-day median and the 4–335-day spread come from a healthy-eating trial in which only 23% of people formed a habit, and the means from the stretching study in the table below.

We built this table from the studies that tracked exercise or physical activity habits, oldest first.

Study Who Tracked for How habit was measured Result
Armitage, 2005 94 people joining a gym 12 weeks Gym attendance, monitored objectively Stable exercise habits developed in the first 5 weeks
Lally et al., 2010 96 volunteers, 82 analysed, each adding a daily eating, drinking or activity behaviour 84 days Daily self-rated automaticity Median 66 days to reach 95% of the plateau, from 18 days to a predicted 254
Kaushal and Rhodes, 2015 111 new gym members 12 weeks Self-rated habit strength, in surveys At least 4 sessions a week for 6 weeks was the minimum to establish a habit
Phillips and Gardner, 2016 123 healthy adults 1 month Self-rated habits for starting and for doing a workout, plus daily diaries Only the habit of starting uniquely predicted how often people exercised
Fournier et al., 2017 48 students, randomly assigned to do a stretch on waking or before bed 90 days Daily self-rated automaticity Predicted time to automaticity: 106 days in the morning group, 154 in the evening group
Buyalskaya et al., 2023, corrected 30,110 members of a North American gym chain, each with at least a year of data Median of just over 4 years How predictable each person’s check-ins became, by machine learning 68–78 days (2–3 months) for groups of gym-goers whose data fitted the model

The answers differ partly because the studies measured different things. Most asked people to rate how automatic the behaviour felt. The PNAS study judged habit by how well a person’s past visits and the calendar predicted their next one: objective, but a measure of routine rather than of how effortless exercise feels.

That study’s headline figure changed after publication. The April 2023 paper put gym habits at 122–226 days, or about 4–7 months. A correction on 17 August 2023 changed it to 68–78 days, or about 2–3 months, so check the date of any article quoting the older number.

68–78days

for gym visits to become habitual, in the corrected analysis of 30,110 gym members

Source: Buyalskaya et al., PNAS, corrected 17 August 2023

The 2024 review shows how thin the timing evidence is: only four of its 20 studies measured how long habits took, and 11 had a high risk of bias. Its authors advise expecting at least 2–5 months for a new health habit to become automatic.

Is the 21-day habit rule a myth?

Yes. The 21-day figure does not come from habit research: the 2024 review traces it to the book Psycho-Cybernetics by Maxwell Maltz, and none of the exercise studies above found habits typically forming that fast.

In Lally’s study, the quickest time was 18 days, but the median was 66. Three weeks does capture the steep early part of the curve, because automaticity rose fastest with the first repetitions before levelling off. The review’s authors warn that “21-day challenges” are often not enough for complex behaviours such as exercise.

Myth

Myth: It takes 21 days to form a habit.

The evidence

The figure traces to a popular book, not to habit studies. In the research, typical times are about 2 months or more: a median of 66 days in a 2010 study and 68–78 days for gym visits in corrected 2023 data.

What counts as an exercise habit?

An exercise habit means a cue prompts you to exercise with little or no deliberation, not simply that you exercise often. Researchers call this automaticity, and frequency alone does not prove it.

The PNAS study shows the difference. Two members who went to the gym about equally often in March 2018 had very different patterns: one was highly predictable and the other close to random. Across the 30,110 gym-goers, frequency and predictability were uncorrelated.

For exercise, the habit that matters most is starting. In a 2016 study of 123 adults who kept daily exercise diaries for a month, the strength of their habit for starting a workout was the only habit measure that uniquely predicted how often they exercised. A habit for running through the workout on autopilot did not.

That is good news for beginners: heading out at your usual time can become automatic while the session itself stays deliberate and gets harder as you progress.

How often should you exercise to build the habit?

Aim for at least 4 sessions a week for the first 6 weeks. In a 12-week study of 111 new gym members, that was the minimum that established an exercise habit, and consistency was the strongest predictor of habit strength.

Simpler exercise, enjoyment and environmental factors also predicted stronger habits in that study. A second study, of 94 gym joiners whose attendance was logged objectively, found stable habits developed in the first 5 weeks, which suggests the opening weeks matter most.

Frequent sessions don’t have to be long. The WHO recommends at least 150 minutes of moderate-intensity activity a week and says all physical activity counts, so you can split the weekly target into shorter sessions. Our arithmetic below uses Lally’s 66-day median as a marker.

Sessions a week Minutes each for 150 a week Sessions in the first 6 weeks Sessions by day 66
2 75 12 19
3 50 18 28
4 About 38 24 38
5 30 30 47

Four sessions of under 40 minutes reach the weekly target and give you twice as many repetitions in the first 6 weeks as two long workouts.

What happens if you miss a day or a week?

Missing a single session is unlikely to set back the habit you are building. In Lally’s 2010 study, missing one opportunity did not materially affect habit formation, but longer gaps may matter: in the PNAS gym data, the time since the last visit was the most important predictor of whether someone would go again.

For 76% of those gym-goers, the longer it had been since their last visit, the less likely they were to go on a given day. The pattern is observational, so it can’t show that the gap itself is to blame: an injury or a busy month could keep someone away for longer either way.

Neither study tested a planned week off, so on our reading the restart matters more than the miss. Go back at your next usual cue rather than waiting for a fresh week or month. If a long break has cost you fitness, see how fast you lose fitness.

Why do gym habits take longer than habits like handwashing?

Gym habits may form more slowly because going to the gym is a longer, less frequent chain of actions than washing your hands. In the PNAS study, hospital staff typically formed a handwashing habit after 9–10 shifts, which the authors put at a couple of weeks, while gym habits took 2–3 months.

The authors suggest gym attendance is less frequent and more complex. Each hospital shift brought an average of 26 room visits, each with two chances to wash, so staff had about 50 chances to repeat the behaviour every shift. A gym visit means packing a bag, travelling, changing and training, and in the study of 111 new members, lower complexity predicted stronger habits. The handwashing figure also had a head start: staff were tracked only after monitoring began, not from their first day at work.

The behaviour matters in self-reports too: in Lally’s study, water-drinking habits ended up stronger than exercise habits, the 2024 review reports, though the time to reach a plateau did not differ significantly. So make your cue as simple as handwashing: one trigger and one first action, such as putting on your running shoes as soon as you get home.

How to make exercise a habit in the first three months

Use the first 12 weeks to tie one simple session to a fixed cue, repeating it at least 4 times a week for the first 6. The plan below is ours, built on the studies above; the session lengths are our suggestion, not study findings.

Weeks Sessions Focus Evidence behind it
1–2 4 a week, 15–20 minutes Fix the cue and write your if-then plans Automaticity rises fastest with the first repetitions
3–6 4 or more a week, 20–30 minutes Keep the cue identical and add a backup plan for bad days 4 sessions a week for 6 weeks was the minimum for a habit in new gym members
7–12 3–5 a week, building towards 150 minutes Lengthen sessions and keep the start routine the same A 66-day median in Lally’s study and 68–78 days for gym visits
  1. Fix one cue. Choose days, a time and a place you can keep every week, such as Monday, Wednesday, Friday and Saturday at 7 am from your front door. A clock time or an existing routine, such as after breakfast, worked about equally well as a cue in a healthy-eating trial in the 2024 review. Mornings may help: a daily stretch done on waking was predicted to become automatic after 106 days, against 154 for one done before bed. If evenings are your only option, see how evening exercise affects sleep.
  2. Write if-then plans, and revisit them. For example: “If it is 7 am on a Monday, then I put on my running shoes and walk out of the door.” Add one for obstacles: “If it is raining, then I do 20 minutes of my home routine.” In a 2022 review that pooled 35 of its 41 randomised trials (more than 5,400 people in all), planning when, where and how to be active raised physical activity by a small-to-moderate amount (a standardised effect of 0.35), slightly more when plans were reinforced later by phone, text or in person (0.41, against 0.28), though that gap could be chance. Nearly all the trials relied on self-reported activity.
  3. Start smaller than you think. Simpler exercise predicted stronger habits in new gym members, so a brisk walk, an easy run-walk session or a short strength routine is enough. A session you can manage on a bad day keeps the routine going.
  4. Prepare the night before. Lay out your kit or pack your bag. In one habit-building trial in the 2024 review, enjoyment, planning when and where to exercise, and a preparatory habit, such as a routine for getting exercise clothes ready, helped explain why the programme raised self-reported activity.
  5. Pick exercise you enjoy, and choose it yourself. The review found that self-selected habits tended to be stronger than assigned ones.
  6. Have a restart rule. “If I miss a session, I go at the next cue, whatever happened.” Keep gaps to a day or two.
  7. Check in at 12 weeks. Ask whether you now start without deliberating. For the physical changes to expect by then, see how long it takes to see results. If not, keep going, because some people need far longer. Then check your week against the guidelines with our activity checker.

Your questions answered

Is it true that it takes 66 days to form a habit?

Sixty-six days was the median in one 2010 study of 96 volunteers, so it is a midpoint rather than a rule: half of those whose habits could be modelled took longer, one of them a predicted 254 days. The volunteers also chose eating, drinking or activity habits, so 66 days is not a figure for exercise alone.

Can you build an exercise habit working out only twice a week?

Possibly, but the evidence is thinner. In the study of 111 new gym members, 4 sessions a week for 6 weeks was the minimum that established a habit. In the larger PNAS gym data, though, the average member went once every 4–6 days, and visit frequency was not correlated with how predictable people's routines were. If you train twice a week, keep the same days and time each week.

Is walking easier to make a habit than going to the gym?

Probably, though the studies here did not compare the two directly. Simpler exercise was linked to stronger habits in the study of 111 new gym members, and a walk from your front door has fewer steps than travelling to a gym, changing and training. A walk can also be tied to something you do every day, such as finishing lunch, which gives you more repetitions than a few gym visits a week.

Does exercising on the same days each week help it become a habit?

It seems to. In the PNAS analysis, 69% of the 30,110 gym-goers were more likely to go on the same days of the week they had gone before, and Monday and Tuesday were the most important days for attendance. Fixed days also make if-then plans easier to write and keep.

Sources and further reading

  1. Time to Form a Habit: A Systematic Review and Meta-Analysis of Health Behaviour Habit Formation and Its Determinants Healthcare, 2024
  2. What can machine learning teach us about habit formation? Evidence from exercise and hygiene Proceedings of the National Academy of Sciences, 2023
  3. Correction for Buyalskaya et al., What can machine learning teach us about habit formation? Evidence from exercise and hygiene Proceedings of the National Academy of Sciences, 2023
  4. Exercise habit formation in new gym members: a longitudinal study Journal of Behavioral Medicine, 2015
  5. How are habits formed: Modelling habit formation in the real world European Journal of Social Psychology, 2010
  6. Habitual exercise instigation (vs. execution) predicts healthy adults' exercise frequency Health Psychology, 2016
  7. The Effectiveness of Planning Interventions for Improving Physical Activity in the General Population: A Systematic Review and Meta-Analysis of Randomized Controlled Trials International Journal of Environmental Research and Public Health, 2022
  8. Effects of circadian cortisol on the development of a health habit Health Psychology, 2017
  9. Can the Theory of Planned Behavior Predict the Maintenance of Physical Activity? Health Psychology, 2005
  10. Physical activity World Health Organization, 2026
  • habits
  • motivation
  • exercise adherence
  • behaviour change
  • beginners
  • gym

Last reviewed . We update articles when the evidence changes. Spotted an error? Tell us and read ourcorrections policy.

This article is general information, not personal medical advice. If you have a health condition or symptoms, speak to your doctor or a qualified health professional.

Try a topic, a question or a term: