What the post workout optimizer does

You enter when your workout ends, how hard it was and when you want to be in bed. The optimizer compares your gap with a guide gap for that intensity, tells you if it is enough, and lists a short recovery plan with clock times for a cool down, shower, meal and wind down.

If the gap is too short, it shows the earliest bedtime that fits and suggests moving the workout earlier or lowering the intensity.

What the research says

Stutz, Eiholzer and Spengler reviewed trials of evening exercise in healthy adults and found that moderate evening exercise does not harm sleep and may even help deep sleep. Only vigorous exercise within an hour of bed showed some signs of delayed sleep onset and shorter sleep.

Individual differences matter. Some people sleep well after a late session, and others stay wired for hours. Test it for two weeks and track how you feel.

Advertisements

Why a cool down and shower help

Exercise raises core temperature, and sleep starts when it falls. A ten minute walk or stretch lets your heart rate settle. A warm shower may seem odd, but it widens blood vessels in the skin, and your body then loses heat faster, which can help you fall asleep sooner. See the bedroom temperature gauge for the room.

Avoid an ice cold shower right before bed if it wakes you up.

What to eat after a late workout

A light meal or snack with protein and carbohydrate supports recovery without making you uncomfortable. Think yoghurt with fruit, a turkey sandwich, cottage cheese or a banana with peanut butter. Avoid very large, fatty or spicy meals close to bed, which can cause reflux.

Hydrate, but sip the last glass so you do not wake for the bathroom. Stop caffeine and pre workout powders early, because many contain large doses.

Best timing by workout type

  • Light walks and yoga: fine up to bedtime, and they can help you relax
  • Moderate cardio and cycling: finish at least 2 hours before bed
  • Heavy lifting: finish 2 to 3 hours before bed for most people
  • HIIT and hard competition: finish 3 to 4 hours before bed
  • Morning or afternoon training: usually the safest option for sleep

Sleep is part of the training plan

Muscles repair and adapt during rest. Growth hormone is released in deep sleep, and sleep loss reduces reaction time and accuracy and raises injury risk. Athletes who sleep seven to nine hours often perform better and recover faster.

If you are an athlete, explore the sleep calculator for athletes and aim for five cycles on training days.

If you can only train at night

Many people can only train after work. In that case, keep the session moderate, finish with a cool down, take a warm shower, eat a balanced snack, dim the lights and follow a consistent routine. Move your bedtime slightly later if the optimizer says so, but keep your wake time the same.

If you still toss and turn, shift the hardest sessions to weekends or earlier days and use evening sessions for lighter work.

A worked example

You finish a hard lifting session at 7 PM and plan to sleep at 11 PM. The optimizer gives a four hour gap, which meets the 4 hour guide for hard work. It suggests a cool down at 7 PM, a shower at 7:30 PM, a meal at 8 PM, the start of your wind down at 9:30 PM and lights out at 11 PM.

If you finish at 9:30 PM, the gap is only 90 minutes. The tool then tells you the earliest bedtime is 1:30 AM, so you can either delay bed or choose a lighter workout.

Hydration and electrolytes

Sweat loss can leave you thirsty at night. Drink water with your meal and sip an electrolyte drink if you trained for over an hour in the heat. Avoid large amounts of fluid in the last hour before bed to prevent night time bathroom trips.

Skip alcohol after training. It slows recovery and fragments sleep.

Advertisements

Pre workout powders and caffeine

Many pre workout products contain 150 to 300 mg of caffeine, which is more than two cups of coffee. Caffeine has a half life of around five to six hours, so an evening dose can still be active at midnight. Drake and colleagues found that caffeine taken six hours before bed reduced sleep time by more than an hour.

If you train late, choose a stimulant free option or switch to a smaller dose earlier in the day.

Calming the mind after hard training

Hard training can leave you wired. Try slow nasal breathing for five minutes, gentle mobility work or a short stretch routine. A warm shower, dim lights and a book help your nervous system shift from alert to restful.

Track your sleep and mood for two weeks. If late training clearly hurts your sleep, move sessions earlier.

Frequently Asked Questions

Is it bad to work out before bed? ›

Not for most people if the session is moderate and ends at least a couple of hours before bed.

How long after a workout can I sleep? ›

Light exercise, right away. Hard sessions, 2 to 4 hours is a good guide.

Should I shower after a workout? ›

A warm shower can help your body cool down and fall asleep.

Does exercise improve sleep? ›

Regular exercise is linked with better sleep quality and more deep sleep.

What is the best time to exercise for sleep? ›

The time you can do consistently. Morning or afternoon suits many people best.

Can protein before bed help? ›

A modest protein snack may support recovery, but a large meal can disturb sleep.

How this page was made

Written by and last updated on 5 November 2026. Claims are checked against the peer reviewed papers and public health sources listed below, and findings from small or early studies are labelled as such. We follow our editorial policy and explain how times and results are calculated in our methodology. Calculators run in your browser and store nothing. Found an error? Tell us and we will correct it.

Sources

This page gives general information for adults and is not medical advice. If you have ongoing sleep problems, loud snoring, breathing pauses or heavy daytime sleepiness, speak to a doctor. Times and results are estimates.