The Best Time to Exercise for Better Sleep
What the cited studies and health guidance found about exercise, time of day and sleep.
Exercise and Sleep: The Connection
The Physical Activity Guidelines for Americans say adults who are more physically active sleep better. The evidence on the best time of day is less settled than the evidence for being active at all, so this guide separates what is well supported from what is not.
Morning Exercise
- In one study of 60-minute moderate treadmill sessions, exercise at about 7 a.m. shifted melatonin timing earlier (a phase advance). The study measured body-clock timing, not sleep
- The NHS suggests being active in the morning or early afternoon rather than close to bedtime
Afternoon Exercise
- The same study found large phase advances for exercise from 1 p.m. to 4 p.m.
- The NHLBI advises regular activity during the daytime, at least 5 to 6 hours before going to bed
Evening Exercise
- A 2019 meta-analysis found no overall negative effect of evening exercise on sleep in healthy people, though vigorous exercise ending an hour or less before bed might impair sleep onset, total sleep time and sleep efficiency
- The NHS advises avoiding exercise in the 4 hours before bed, and the NHLBI says exercising close to bedtime can make it harder to fall asleep
What the Research Says About Exercise and Sleep
The Physical Activity Guidelines for Americans (2nd edition, HHS 2018) state that greater volumes of moderate-to-vigorous physical activity are associated with reduced sleep latency (taking less time to fall asleep), improved sleep efficiency, improved sleep quality and more deep sleep. They add that the improvements are also reported by people with insomnia and obstructive sleep apnea. The guidelines found no difference by timing of activity before bed.
A meta-analysis by Kredlow and colleagues (2015) separates single sessions from regular training. It found that acute exercise has small beneficial effects on total sleep time, sleep onset latency, sleep efficiency and slow wave sleep, and a moderate beneficial effect on wake time after sleep onset. Regular exercise had small beneficial effects on total sleep time and sleep efficiency, small-to-medium effects on sleep onset latency and moderate effects on sleep quality. The authors report that the effects were moderated by factors including time of day, but the abstract does not say which time is best.
Does the Time of Day Change the Picture?
A 2019 systematic review and meta-analysis by Stutz, Eiholzer and Spengler tested the advice to avoid evening exercise. It reports that current recommendations advise against exercising in the evening because of potential adverse effects on sleep, but that the studies reviewed do not support the hypothesis that evening exercise negatively affects sleep. Evening exercise slightly increased slow-wave sleep (by 1.3 percentage points) and rapid eye movement latency (by 7.7 minutes). The review adds that sleep-onset latency, total sleep time and sleep efficiency might be impaired after vigorous exercise ending one hour or less before bedtime, and that all significant moderating effects disappeared after one study was removed.
Health bodies stay cautious. The NHLBI advises avoiding intense exercise in the hour before bed (NHLBI healthy sleep habits). The NHS suggests avoiding exercise in the 4 hours before bed (NHS Every Mind Matters).
There is a separate line of research on the body clock. In a study by Youngstedt and colleagues (2019) of about 100 adults given one hour of moderate treadmill exercise at different times, the largest phase advances (earlier melatonin timing) corresponded to about 7 a.m. and 1 p.m. to 4 p.m., and delays corresponded to 7 p.m. to 10 p.m. This shows exercise can nudge circadian timing. It does not show that morning exercise gives better sleep.
How Much Exercise?
The Physical Activity Guidelines recommend at least 150 to 300 minutes a week of moderate-intensity aerobic activity, or 75 to 150 minutes of vigorous activity, for substantial health benefits. The NHS also gives 150 minutes of exercise a week as the amount recommended for adults. These are general health targets and not sleep-specific prescriptions. The guidelines connect higher activity volumes with better sleep measures, but they do not name a minimum for sleep.
Exercise and Insomnia
The NHS lists exercising regularly during the day among its insomnia tips (NHS insomnia page). A 2024 umbrella review and network meta-analysis concluded that exercise had a positive effect on relieving insomnia and improving sleep quality, but it drew on systematic reviews rated as low or very low methodological quality. The NHLBI says cognitive behavioral therapy for insomnia (CBT-I) is usually recommended as the first treatment option for long-term insomnia. Our Complete CBT-I Guide (2026): Treat Insomnia Without Medication covers the first-line option.
What the Research Does and Does Not Show
- It supports regular physical activity as a habit linked to better sleep, with small to moderate effects.
- The 2019 meta-analysis flagged vigorous exercise ending an hour or less before bed as the case where sleep might be impaired.
To fit exercise into a wider routine, see 20 Evidence-Based Sleep Hygiene Tips (Ranked by Impact) (2026) and Your Circadian Rhythm: The 24-Hour Clock Running Everything (2026).
When To Talk to a Clinician
The NHLBI says that if not getting enough sleep is affecting your daily activities, you should talk to your doctor, and that insomnia is considered chronic when it occurs 3 or more nights a week and lasts 3 months or longer (NHLBI insomnia diagnosis). The NHS says to see a GP if changing your sleeping habits has not helped your insomnia, if you have had trouble sleeping for months, or if your insomnia is affecting your daily life in a way that makes it hard for you to cope.
Get Our Free 7-Day Sleep Reset
Get weekly sleep tips and honest product reviews every Sunday.
Subscribe FreeFrequently Asked Questions
Does the time of day you exercise affect sleep?
The evidence on the best time of day is mixed. The Physical Activity Guidelines for Americans say adults who are more physically active sleep better. A 2015 meta-analysis by Kredlow and colleagues reported that effects were moderated by time of day, but its abstract does not say which time is best. The NHS suggests being active in the morning or early afternoon rather than in the 4 hours before bed.
Can you exercise too close to bedtime?
A 2019 meta-analysis found no overall negative effect of evening exercise on sleep in healthy people, though vigorous exercise ending an hour or less before bed might impair sleep onset, total sleep time and sleep efficiency. The NHS advises avoiding exercise in the 4 hours before bed, and the NHLBI says exercising close to bedtime can make it harder to fall asleep.
Does exercise help with insomnia?
The NHS lists exercising regularly during the day among its insomnia tips. A 2024 umbrella review and network meta-analysis concluded that exercise had a positive effect on relieving insomnia and improving sleep quality, but it drew on systematic reviews rated as low or very low methodological quality. The NHLBI says cognitive behavioral therapy for insomnia (CBT-I) is usually recommended as the first treatment option for long-term insomnia.
How much exercise do you need for better sleep?
The Physical Activity Guidelines for Americans recommend at least 150 to 300 minutes a week of moderate-intensity aerobic activity, or 75 to 150 minutes of vigorous activity, for substantial health benefits. These are general health targets, not sleep-specific prescriptions, and the guidelines do not name a minimum amount for sleep.