For most healthy adults, it's fine to exercise in the evening as long as a hard workout ends at least 1 hour before bed, and 2 or more hours is the safer target. A 2019 meta-analysis of 23 studies found evening exercise didn't hurt sleep overall. The one warning sign was vigorous exercise ending within about an hour of bedtime.
So the old rule of "never work out at night" doesn't hold up. The timing and intensity matter more than the time on the clock.
Free toolSleep CalculatorBest bedtime or wake-up time, based on 90-minute sleep cycles.How long before bed is it OK to exercise?
Aim to finish a vigorous workout 2 or more hours before bed, and never less than 1 hour. Light or moderate exercise gives you more leeway.
| Bedtime | Hard workout ends by (2 h) | Absolute latest for hard workout (1 h) |
|---|---|---|
| 9:30 PM | 7:30 PM | 8:30 PM |
| 10:00 PM | 8:00 PM | 9:00 PM |
| 10:30 PM | 8:30 PM | 9:30 PM |
| 11:00 PM | 9:00 PM | 10:00 PM |
| 11:30 PM | 9:30 PM | 10:30 PM |
| 12:00 AM | 10:00 PM | 11:00 PM |
"Ends" means when you stop training, not when you start. If your bedtime moves around, use the sleep calculator to set one that fits your wake-up time, then plan the workout back from it.
What the research says about evening exercise and sleep
Two meta-analyses suggest evening exercise is generally fine for sleep in healthy adults, with a caution about very late, very hard sessions.
The 2019 review in Sports Medicine pooled 23 studies of a single evening workout compared with no exercise. On average, people who exercised in the evening got slightly more deep (slow-wave) sleep, not less. The authors concluded the evidence didn't support the idea that evening exercise harms sleep. The exception: after vigorous exercise ending 1 hour or less before bed, falling asleep, total sleep time and sleep efficiency might be impaired.
A 2021 meta-analysis looked specifically at high-intensity evening exercise in good sleepers aged 18 to 50. Hard sessions ending 30 minutes to 4 hours before bed caused a small drop in REM sleep (about 2 percentage points) and no other significant changes. Sessions ending 2 to 4 hours before bed didn't disrupt sleep, and doing high-intensity exercise regularly in the evening didn't either.
These studies were mostly in young, healthy people who already slept well. If you have insomnia, your response may be different, and it's worth testing for yourself.
How long before bed should you work out, by intensity?
The harder the session, the more buffer you want before bed. Here's a practical guide based on the research above:
- Hard intervals, heavy lifting, a race-pace run, competitive sports: end 2 or more hours before bed. Never inside 1 hour.
- Moderate cardio or a regular gym session: 1 to 2 hours is usually fine for most people.
- Easy walk, gentle yoga, stretching or mobility work: fine right up to your wind-down. Many people find it helps them relax.
A hot, stuffy gym or a very late session can leave you warm at bedtime. The 2019 review found that a higher body temperature at bedtime was linked to worse sleep efficiency, though that finding was less robust. A cool shower and a cool bedroom can help.
Is it bad to sleep after working out?
No. Sleeping after a workout is normal, and sleep is when much of your recovery happens. The issue is only whether you can fall asleep easily.
If you feel wired after a late session, give yourself a short buffer:
- Cool down for 5 to 10 minutes with easy movement instead of stopping cold.
- Shower, ideally lukewarm or cool, to help your body temperature come back down.
- Eat a sensible recovery snack rather than a huge meal. See how long before bed you should eat.
- Dim the lights and put the phone down for the last 30 minutes or so.
Napping after a morning or midday workout is fine too. Keep it short and early so it doesn't cut into your night.
The bigger sleep problem is often caffeine
If late workouts wreck your sleep, check what you drank before them. Stimulant pre-workout powders can carry 200 mg of caffeine or more, and with an average 5-hour half-life, a lot of it is still in you at bedtime. That can keep you up far more than the exercise itself. See pre-workout before bed for cutoff times, or check your own timing with the caffeine calculator.
Finding your own best time
The best time to exercise is the time you'll actually stick with. Skipping workouts because you think evening training is bad for sleep costs you more than a late session does.
Try your normal evening routine for a week and note how long it takes to fall asleep and how you feel in the morning. If hard sessions late at night leave you lying awake, move them earlier or swap them for easier work on those days. If you train hard most days, make sure you're getting enough total sleep: here's how much sleep athletes need.
If you're struggling to fall asleep most nights no matter when you exercise, and it's gone on for weeks, talk to a doctor.