longevitywatch
Evidence answer · Sleep

What does exercising right before bed do to my sleep?

Yes · Strong evidence

Vigorous exercise within 4 hours of bedtime demonstrably worsens your sleep; schedule your workout earlier in the day and you need not sacrifice any sleep quality.

The full answer

Vigorous exercise in the evening, where your workout ends less than 4 hours before bedtime, is associated with poorer sleep. This was shown in a large-scale study of nearly 15,000 people covering more than 4 million nights: you fall asleep later, sleep for shorter periods, sleep less deeply, and your heart rate during the night stays elevated. The more intense the effort and the later the time, the greater the effect.

If your workout ends at least 4 hours before bedtime, there is no measurable negative effect on your sleep, no matter how hard you have trained. This gives you a clear rule of thumb: preferably schedule intense workouts before 7 p.m. if you want to be asleep by 11 p.m.

Exercising regularly at a suitable time is actually beneficial for your sleep. Multiple studies show that strength training, aerobic training (such as running or cycling), and yoga and tai chi all significantly improve sleep quality compared with not exercising at all. In older adults with insomnia, strength training appears to be the most effective, outperforming aerobic training alone or combined training.

Similar findings apply to specific groups. In women who are going through or have been through menopause, movement-based exercises such as yoga, tai chi and Pilates noticeably improved sleep quality, although there was considerable variation between individual studies. In middle-aged and older adults with sleep problems, twelve weeks of moderate aerobic training was already sufficient to produce a clear improvement.

The evidence
8 studies · 3 meta-analyses · ≈ 15,000 participants

All claims are based on a large-scale observational study (n=14,689, 4 million+ nights) for the evening-exercise finding, and on multiple randomised studies and meta-analyses for the positive effects of regular exercise on sleep. The associative nature of the evening-exercise study means that causality has not been fully proven, but the scale and consistency of the evidence are substantial.

Last reviewed: June 2026
Related answers
What can I do to sleep better?
What can I do to sleep better?
Read answer · Moderate evidence
How much sleep do I really need?
Does stopping coffee in the afternoon really help my night's sleep?
What does alcohol do to my sleep quality, and is there anything I can do about it?
Related research
12 Jun
Faking sleep in mice actually works
06 Jun
Bad memories and bad sleep reinforce each other
05 Jun
Melatonin shields the liver from alcohol damage
Can't find your question?
Ask it and we'll dig into the evidence for you.
Ask a question
Newsletter

Stay in the loop

Every two weeks, the most notable longevity research in your inbox. No hype.