Bad sleep is one of the most common complaints adults have, and exercise is one of the most reliably effective interventions for improving it. Not a supplement, not a white noise machine, not a sleep tracking app. Exercise. The relationship between physical activity and sleep quality is well-documented, relatively straightforward, and consistently underestimated.

The mechanism is not mysterious. Exercise increases body temperature, and the subsequent cooling as you recover is a sleep signal. Exercise also reduces anxiety and depression, both of which are primary drivers of sleep disruption. It increases adenosine, the sleep pressure chemical that builds throughout the day and drives you toward sleep. More movement, more adenosine, more sleep pressure at bedtime.

What types of exercise help most

Aerobic exercise has the strongest evidence base for improving sleep. Walking, running, cycling, swimming, and similar activities consistently improve sleep duration and sleep quality in studies across age groups. A meta-analysis in Mental Health and Physical Activity found that aerobic exercise significantly reduced insomnia severity and improved subjective sleep quality.

Resistance training also improves sleep, and may be particularly helpful for sleep continuity, meaning fewer wakeups during the night. One theory is that the physical fatigue from strength training improves slow-wave (deep) sleep, which is the most physically restorative phase. A combination of aerobic and strength training appears better than either alone for overall sleep improvement.

Yoga and stretching improve sleep primarily through stress reduction and lowered cortisol. If anxiety is the driver of poor sleep, yoga is worth including. If the issue is more falling asleep than staying asleep or feeling rested, aerobic exercise is the more direct tool.

Timing: does it matter

The conventional advice, repeated everywhere, is to avoid vigorous exercise within two to three hours of bedtime because it raises core temperature and heart rate. This advice is based on older studies and is more nuanced than it sounds.

A 2019 review in Sports Medicine analyzed 23 studies and found that evening exercise did not impair sleep quality for most people, and actually improved sleep in some cases. The exception was very high-intensity exercise, like HIIT or heavy strength training, performed within an hour of bed. That does appear to delay sleep onset for many people.

The practical takeaway: moderate evening exercise is fine. A run at 7 PM, a yoga class at 8 PM, a strength session at 6 PM. Reserve the very intense sessions for earlier in the day if you are sensitive to sleep disruption. The old "no exercise after 6 PM" rule is not supported by the research for most people.

How long before you see improvement

Some sleep benefits appear quickly. A single aerobic session can improve sleep quality the same night, particularly in people with anxiety or insomnia. But the most meaningful improvements come after four to eight weeks of consistent exercise. This is roughly how long it takes for the underlying physiological adaptations, lower resting heart rate, reduced cortisol, better adenosine regulation, to consolidate.

If your sleep is significantly disrupted by anxiety or stress, exercise helps but may not be sufficient on its own. Cognitive behavioral therapy for insomnia (CBT-I) is the first-line treatment for chronic insomnia, and it works better in combination with regular physical activity than either approach alone.

Practical starting point

If sleep improvement is your goal, start with 30 minutes of moderate aerobic exercise five days a week. Walking counts. Do it consistently for six weeks and track both your activity and your sleep subjectively each morning. Most people see measurable improvement within that window.

Avoid using poor sleep as a reason to skip workouts, even though that is the logical temptation. The sedentary-bad-sleep cycle is real: poor sleep reduces motivation to exercise, less exercise makes sleep worse, which reduces motivation further. The way to break that cycle is to move even when you are tired. One moderate session often improves that night's sleep enough to create the momentum to go again the next day.