Exercise and sleep help each other. People who are regularly active fall asleep faster, spend more of the night in deep sleep and report better sleep quality, and this holds across ages and across most kinds of activity. It is one of the more consistent findings in sleep research, even if the size of the benefit is moderate rather than dramatic.
The question most people actually have is about timing: is it bad to exercise in the evening? For years the standard advice was to avoid it. Recent reviews have largely overturned that. Moderate evening exercise does not harm sleep for most people and may improve it slightly. The one reasonable caution is against very vigorous exercise that ends within about an hour of bed, which can delay sleep for some.
Here is what the evidence supports, where it is thinner, and how to fit movement into a day in a way that helps the night.
What exercise does for sleep
Several mechanisms are at work, and they are all fairly intuitive.
More sleep pressure. Physical effort uses energy and the body responds with a stronger drive to sleep. People who have been active during the day tend to fall asleep faster and sleep more deeply, particularly in the first part of the night.
A steadier body clock. Exercise is a time cue in its own right, and if it happens outdoors in daylight it doubles up with the strongest cue of all. A morning walk does two jobs at once.
Lower arousal. Regular exercise reduces anxiety and low mood, both of which are common drivers of poor sleep. It also improves the body's handling of stress hormones over time. The effect on sleep here is indirect but real.
Temperature. Exercise raises core body temperature, and the fall afterwards mimics the natural drop in temperature that precedes sleep. This is one reason a workout a few hours before bed can help you drop off, and also why one immediately before bed can get in the way.
Reviews pooling many studies find that regular exercise modestly improves sleep quality, shortens the time to fall asleep and reduces time awake in the night, including in people with insomnia. The benefits build over weeks. A single session may or may not show up that night.
In short: Being regularly active is good for sleep, at almost any time of day. Only very hard exercise right before bed is worth avoiding.
The evening exercise question
The traditional warning against exercising in the evening came from the temperature and arousal effects above: raise your heart rate and body heat at 9pm and you will not be sleepy at 10. It is a sensible theory, and it is true for some people some of the time. But when researchers actually measured sleep after evening sessions, the picture turned out to be more forgiving.
A 2019 systematic review and meta-analysis in the journal Sports Medicine, by Stutz, Eiholzer and Spengler, looked at studies of evening exercise in healthy adults and found no overall harm to sleep, with a small increase in deep sleep. The one exception was vigorous exercise finishing less than an hour before bedtime, which was associated with taking longer to fall asleep and getting less sleep overall. More recent studies using wearable data from large numbers of people point the same way: the later and harder the session, the more likely it is to push sleep back, while moderate evening activity looks neutral or mildly helpful.
So the practical rule has shifted from "never exercise in the evening" to "leave a gap after hard sessions". A moderate run, gym session or class finishing two hours before bed is fine for most people. A brutal interval session or a competitive match finishing at 10pm may cost you some sleep, though even then some people are unaffected.
If you tend to feel wired late in the evening regardless of exercise, our guide to why you get a second wind at night explains what is going on with your body clock.
Does the time of day matter otherwise?
Less than people assume. Studies comparing morning with afternoon exercise find small or inconsistent differences in sleep. The case for morning is mostly about daylight: exercising outdoors soon after waking gives your body clock its strongest signal and makes evening sleepiness arrive on time. That fits with everything in our guide to how your morning routine shapes tonight's sleep. The case for afternoon is that performance and injury risk are often better then, and many people find it easier to keep up. Neither beats the exercise you will actually do.
Which kinds of exercise help?
Almost all of them. The research covers walking, running, cycling, swimming, resistance training, yoga and tai chi, and finds sleep benefits from each. A few notes:
- Brisk walking is the most studied and the most accessible. A daily 20 to 30 minute walk, ideally in daylight, is a reasonable place to start and is associated with better sleep in older adults in particular.
- Resistance training appears to be at least as good for sleep as aerobic exercise, and some trials suggest it is slightly better for sleep quality.
- Yoga and stretching are lower intensity and suit the evening well. A few gentle poses can be part of a wind-down; our guide to bedtime stretches has a short sequence.
- High-intensity intervals are effective for fitness and fine for sleep earlier in the day. This is the category to keep away from the last hour before bed.
The UK guideline is 150 minutes of moderate activity a week plus strength work twice a week. For sleep, the important thing is regularity, not hitting the target. Three 20-minute walks beat one Saturday morning of heroics.
If you have to train late
Shift patterns, work and family often leave the evening as the only slot. If that is you:
- Finish at least an hour before bed, two if the session is hard.
- Cool down properly. Ten minutes of easy movement and a lukewarm or cool shower bring temperature down faster. Keep the bedroom cool too; the best temperature for sleep explains why a few degrees matter.
- Eat something light afterwards rather than a large meal, and avoid caffeinated pre-workout products in the evening.
- Dim the lights once you are home. A bright gym followed by a bright kitchen keeps arousal up.
- Give it two weeks. Some people adapt to evening training and sleep well; some do not. Judge by the pattern, not one night.
When exercise is not the answer
Exercise reliably improves sleep in the population, but it is not a treatment for chronic insomnia on its own. If you have been sleeping badly for months, becoming fitter will help at the edges but is unlikely to fix it; the recommended first-line treatment is cognitive behavioural therapy for insomnia (CBT-I). It is also worth being wary of the trap where exercise becomes another rule you must follow to earn sleep. Our guide to sleep hygiene and its limits looks at where good habits stop helping.
If exercise leaves you exhausted rather than pleasantly tired, or you are sleeping plenty and still have no energy for it, that is worth a conversation with a GP.
Tonight's version
If you have been putting off evening exercise for fear of ruining your sleep, go: a moderate session finishing a couple of hours before bed is fine. If you have been doing hard sessions late and sleeping badly, try moving them earlier or dropping the intensity for a fortnight. And if you do nothing else, a brisk walk in daylight tomorrow morning is the simplest exercise-for-sleep change in the whole of the Sleep Habits collection.
Frequently asked questions
Is it bad to work out at night before bed?
For most people, no. Reviews of the research find that moderate exercise in the evening does not harm sleep and may slightly improve it. The exception is very intense exercise finishing within about an hour of bedtime, which can delay sleep for some people. If you can, give yourself an hour or two to cool down.
What is the best time of day to exercise for sleep?
The best time is whichever one you will actually keep. Morning exercise outdoors has an extra benefit because the daylight helps set your body clock, but the difference between morning and afternoon sessions for sleep is small. Consistency matters more than the clock.
How much exercise do I need to improve my sleep?
The UK guideline of 150 minutes of moderate activity a week, such as brisk walking, is a good target, and sleep benefits show up well before that. Even a daily 20-minute walk is associated with better sleep. The effects build over weeks rather than appearing after a single session.
Why can't I sleep after a hard workout?
Intense exercise raises your core temperature, heart rate and stress hormones, and it can take an hour or more for these to come down. Late-evening competition or a very hard interval session can leave you buzzing. A cool shower, a light snack, dim lights and some gentle stretching help the body wind down faster.
Sources and further reading
- NHS: Exercise
- Sleep Foundation: Exercise and sleep
- NHS: Sleep and tiredness
Written and reviewed by the Quiet Mind Sleep editorial team in line with our editorial policy. Spotted an error? Let us know.