Sleep hygiene & daily habits

Does exercise help you sleep? How it works and when to work out

Exercise is one of the few sleep aids with solid evidence behind it, and the advice about when to do it is changing. Here is what regular activity does for your nights, what the research says about evening workouts, and how to time movement so your body clock works with you.

A woman sleeping peacefully on her side in a softly lit bedroom, with a pair of running shoes resting on the floor beside the bed.
Dr. Adekunle Ajisebutu, Sleep Physician

Medical reviewer

Dr. Adekunle Ajisebutu, MD

Sleep Physician · Board-certified in Sleep Medicine

Pending medical review

In short

Yes. Regular moderate exercise improves sleep quality, helps you fall asleep faster and modestly lengthens sleep, and in pooled studies the benefit did not clearly depend on intensity. In healthy adults, evening exercise did not harm sleep unless it was vigorous and ended within about an hour of bed; if you have insomnia, keep a longer buffer. Morning or afternoon exercise, ideally outdoors, also strengthens your body clock.

Key takeaways

  • Regular exercise gives a moderate boost to sleep quality and helps you fall asleep faster; in the pooled studies, the benefit did not clearly depend on intensity.
  • In healthy adults, evening exercise did not harm sleep; only vigorous sessions ending within about an hour of bed tend to delay it. NHS advice is still more cautious, so if you have insomnia, keep a longer buffer for now.
  • Morning and early-afternoon exercise, ideally outdoors, shifts your body clock earlier; exercise between 7 pm and 10 pm shifts it later.
  • A daily walk you can keep up beats an occasional punishing workout.
  • Older adults benefit too, and sleep that worsens during heavy training is a sign to ease off, not push through; see a doctor if it does not recover.

What exercise actually does for your sleep

Yes, and the effect is real rather than wishful. A 2015 meta-analysis pooling 66 studies found that regular exercise moderately improved how people rated their sleep quality, helped them fall asleep faster, and gave small gains in total sleep time and sleep efficiency (the share of time in bed actually asleep). Even a single session nudged the same measures the right way that night.

Taking a long time to fall asleep and sleep that feels thin are two of the most common insomnia complaints, and the reviewers discussed exercise as a possible addition to insomnia treatment. Be realistic, though: the gains are modest and build over weeks. If you have slept badly most nights for months, exercise works best alongside treatment such as cognitive behavioural therapy for insomnia (CBT-I; see our guide to what actually helps insomnia), not instead of it.

And across the pooled studies, the benefit did not clearly depend on how hard people exercised. You do not have to suffer to sleep better.

Does working out in the evening really hurt your sleep?

The old advice was to avoid evening exercise because it would leave you too wound up. Studies of healthy sleepers now tell a more reassuring story.

What the studies show

A 2019 systematic review in Sports Medicine gathered 23 studies in which healthy adults exercised in the evening and had their sleep measured against no-exercise nights. Evening exercise did not harm sleep. If anything it helped slightly: a little more slow-wave (deep) sleep and a little less of the lightest stage.

One exception: the reviewers concluded that vigorous exercise ending within about an hour of bedtime may make it take longer to fall asleep and shorten sleep. People still warm at bedtime also tended to sleep less soundly: your body needs to shed heat and settle before sleep comes.

Two cautions. These were healthy sleepers, so the findings may not transfer if you already struggle at night. And official advice remains more conservative: the NHS insomnia guidance still says not to exercise in the four hours before bed. If you have insomnia, keep that longer buffer until you have learned your own response.

A simple timing rule

  • Moderate evening activity is fine for most healthy sleepers. A brisk walk, bike ride, yoga or light gym session after dinner is unlikely to cost you sleep.
  • Finish hard sessions at least an hour before bed, and more if you can. Interval training, heavy lifting or a competitive game close to lights-out is where problems show up.
  • Cool down on purpose. A warm shower followed by a cool bedroom helps your body dump heat, and a short, calm bedtime routine helps your mind follow.
  • Trust your own pattern. These are averages; if late workouts leave you staring at the ceiling, move them earlier.

Why morning or daytime exercise helps your body clock

Exercise is also a time cue for the circadian clock that decides when you feel sleepy and alert. In a study of exercise at eight different times of day and night, moderate treadmill exercise at 7 am, and again between 1 pm and 4 pm, shifted the body clock earlier. Exercise between 7 pm and 10 pm shifted it later.

If you struggle to fall asleep and to get going in the morning, a morning walk or run pulls your rhythm earlier, and doing it outdoors adds daylight, the strongest clock cue of all (see our article on short winter days and sleep). If instead you are asleep by 8:30 pm and wide awake at 4 am, an early-evening walk may gently push your clock later.

Consistency beats intensity

Because the sleep benefit did not clearly track intensity in the pooled studies, the useful question is not "what is the best workout for sleep?" but "what can I keep doing?" A 25-minute walk most days is a better bet than a punishing session once a fortnight.

Regularity also feeds the clock effect: a walk at the same time each day gives your circadian system a repeating signal, much as a fixed wake-up time does. Add the basics of good sleep hygiene and you have covered most of what daytime habits can do.

Exercise and sleep in older adults

Sleep often gets lighter and more fragmented with age, so does exercise still help? It does. The body-clock study above included fit adults aged 59 to 75 alongside younger adults, and the clock responded to timing the same way in both. The 2015 review found benefits across age groups, although the size of the effect varied with age.

Choose joint-friendly activities such as walking, swimming, cycling or tai chi, add strength and balance work, and keep an outdoor morning walk as your anchor. Talk with a doctor before starting or stepping up exercise if you have heart disease, chest pain or breathlessness with exertion, poorly controlled blood pressure or dizziness, and see one if your sleep stays poor for more than a few weeks despite regular activity.

When more training means worse sleep

If you are training for an event, more is not always better. In a small study of 27 male triathletes put through three weeks of deliberately heavy training, the nine who became "overreached" (performance fell, fatigue climbed) slept less and less efficiently, measured nightly with wrist sensors. Athletes on the same programme who coped did not. Once training was tapered, sleep recovered; the overreached group also had far more respiratory infections.

Worsening sleep during a training block is a warning sign, not something to push through. The first fix is a lighter week. If sleep, energy and performance do not recover after that, or the slump comes with weight loss, missed periods, palpitations or low mood, see a doctor: under-fuelling, anaemia, thyroid problems, infection and depression can all look like overtraining.

If you exercise regularly, sleep long enough and still wake unrefreshed, especially if you snore loudly, our guide to sleep apnea explains what to look for.

In summary

Regular moderate exercise improves sleep quality, helps you fall asleep faster and modestly lengthens sleep; in pooled studies the benefit did not clearly depend on intensity. In healthy adults, evening exercise did not harm sleep unless it was vigorous and ended within about an hour of bed; with insomnia, keep a longer buffer for now. Daytime exercise pulls your body clock earlier; late-evening exercise pushes it later. Older adults benefit too. If sleep worsens as training ramps up, ease off, and see a doctor if it does not recover.

Questions people ask

Is it bad to exercise right before bed?

In studies of healthy adults, moderate evening exercise did not harm sleep; only vigorous exercise ending within about an hour of bedtime tended to delay sleep and shorten the night. Official advice such as the NHS's is still more cautious, so if you have insomnia, keep a longer buffer until you know how you respond.

What time of day is best to exercise for sleep?

Any time you can keep up consistently. Morning and early-afternoon exercise, especially outdoors, also shifts your body clock earlier, which helps if you struggle to fall asleep at night, while exercise between 7 pm and 10 pm tends to shift it later.

How long does it take for exercise to improve sleep?

A single session can make a small difference the same night, but the larger gains in sleep quality and time to fall asleep come from regular activity over weeks. Expect modest, steady improvement rather than a transformation.

Can exercise cure insomnia?

Exercise helps people fall asleep faster and rate their sleep better, and researchers have discussed it as an addition to insomnia treatment, not a replacement. If you have slept badly most nights for months, talk with a doctor and ask about cognitive behavioural therapy for insomnia (CBT-I), the recommended first-line treatment, and keep exercising alongside it.

Two-minute check

Wondering about snoring or daytime sleepiness? STOP-Bang is scored in your browser.

Take the self-check

Keep reading