How to Recover From an All-Nighter: 20-Minute Nap and Tonight's Bedtime

After an all-nighter, a 20- or 90-minute nap before 3 p.m. is a common starting point, then keep your normal bedtime. Quick references for today, tonight, and the days that follow.

Written and periodically reviewed by our editorial team, drawing on public health institutions and established medical bodies. See our sources

This article is about one bad night — pulling a single all-nighter and trying to get through the day after. If you have been short on sleep for weeks, the picture is different; see How long does sleep debt take to recover? instead. For the everyday "how long should a nap be" question outside of all-nighters, see How long should a power nap be?.

A practical starting plan looks like this. Get morning light and a small protein-rich breakfast. Take a 20- or 90-minute nap in the early afternoon, before about 3 p.m. Go to bed at your usual time tonight, or only slightly earlier. The numbers in this article are general guidance, not promises — recovery depends on the night you had, the day ahead, and you.

What to do now: a quick chart by the next few hours

Start with how much time you have before you need to function. The chart below picks the most common starting point for each situation.

Your next few hoursA common starting point
You have 30–60 minutes before needing to be sharpLight, water, small protein-rich snack, one cup of coffee. No nap yet
You have 2–3 hours and can lie down onceA 20-minute nap before 3 p.m., set the alarm for 25–30 minutes
You have 4+ hours and can rest properlyOne 90-minute nap before 3 p.m. (one full sleep cycle), then back to normal day
You can call it and sleep nowSleep until your usual wake-up time, not later. Long daytime sleep tends to push tonight's bedtime back

These are starting points, not rules. Naps may not be safe before driving, operating machinery, or making high-stakes decisions; see the safety section below.

If you do decide to start the night now and want a sense of when you would wake feeling lighter, If I Sleep Now maps the current time to wake-up candidates at 90-minute cycle boundaries. The 90-minute figure is an approximation — individual cycles run roughly 80 to 110 minutes, as covered in What is a sleep cycle? — so treat the result as a suggestion, not a fixed schedule.

Right after the all-nighter ends

The goal in the first half hour or so is to nudge your body clock toward "day" without overdoing stimulants.

  • Bright light. Outdoor light in the morning is the strongest signal that the day has started. Even a short walk helps. Sleep Foundation lists morning light as one of the most direct ways to set the body clock.
  • Water. A glass or two helps reset after a night of caffeine, alcohol, or just dehydration.
  • A small protein-rich breakfast. Eggs, yogurt, fish, or beans pair well with slow carbs like oats. Heavy, sugary breakfasts tend to drag you down later.
  • One cup of coffee or tea, early. Caffeine masks sleep pressure for a few hours; it does not erase it. Front-load it in the morning so it does not bleed into your evening (see When should you stop drinking caffeine?).

These steps help you stay functional. They do not bring back the sleep you missed, and they do not make you safe to drive.

Safety: what to avoid today

Acute sleep loss makes mistakes more likely. Public health bodies treat drowsy driving as comparable to driving with measurable alcohol in your system. CDC/NIOSH summarizes that being awake for 18 hours produces impairment similar to a blood alcohol concentration of about 0.05%, and 24 hours similar to about 0.10%.

Until you have slept properly:

  • Avoid driving and operating heavy or sharp machinery if you can. Get a ride, public transit, or rest first.
  • Postpone irreversible decisions — contracts, hard conversations, money moves. Note them down, decide tomorrow.
  • Be more cautious with stairs, knives, hot pans, and anything that requires steady reaction time.

If you absolutely cannot avoid driving, plan a short stop with caffeine and a 15–20 minute nap before the trip, and pull over the moment you feel drowsy. This is not a fix; it buys some time.

Same-day nap: 20 minutes or 90, before about 3 p.m.

If you can lie down, two starting points work for most people: a short 20-minute nap or a longer 90-minute nap. The middle range, around 30 to 60 minutes, is more likely to leave you groggy because you wake mid-cycle.

Nap lengthWhat it tends to offerRight after wakingEffect on tonight
10–20 minLess sleepiness, clearer headLightSmall if taken in the early afternoon
30–60 minSome recovery, but waking is awkwardGrogginess (sleep inertia) is more likelyCan push tonight's sleep onset back
~90 minOne full sleep cycle, deeper recovery on an exhausted dayLighter if you wake near a cycle boundaryMore likely to delay tonight's bedtime

Two practical notes. First, the "20 minutes" refers to time asleep; most people take 10 to 20 minutes to drift off, so set the alarm for 25 to 30 minutes after lying down. Second, "before 3 p.m." is a rough cutoff that works for typical schedules. If your usual bedtime is late, the cutoff shifts later with it. A common pointer is to finish a nap roughly six to eight hours before bed.

After an all-nighter, the body is sleep-deprived enough that even a 20-minute nap can come with some grogginess. A literature review by Hilditch and McHill (2019) found that sleep inertia after short naps is usually mild but real, especially when prior sleep loss is heavy. Plan a buffer of 10 to 20 minutes before you need to think clearly again.

If you are weighing whether to nap at all, the everyday rules of thumb in How long should a power nap be? apply, with two adjustments: keep the nap firmly before 3 p.m., and consider a longer 90-minute option if your day allows it. That article covers nap timing for normal days; this one is about today.

Tonight: keep your usual bedtime

The most common mistake on an all-nighter day is going to bed at 8 p.m. trying to catch up. It feels intuitive — your body is begging for sleep — but it often backfires.

Going to bed several hours earlier than usual shortens the time you have been awake. That reduces sleep pressure, the part of the brain's signal that pushes deep, consolidated sleep. You may fall asleep fast, then wake at 1 or 2 a.m. and stay awake longer than you would have. Your body clock is also still tied to your usual bedtime; sleeping much earlier nudges it out of phase.

A calmer approach:

  • Keep tonight's bedtime within 30 to 60 minutes of normal. Earlier is fine, much earlier is risky.
  • Keep tonight's wake-up time roughly normal too. Sleeping in past your usual time tends to delay your body clock further.
  • Use the Sleep Calculator to set a bedtime based on tomorrow's wake-up. It works back from when you need to be up, in 90-minute cycle steps.

A 7 to 9 hour night tonight is plenty. Trying to "make up" the entire missed night in one go usually does not work.

The days that follow

A single all-nighter is not always cleared by one night of recovery sleep. Different parts of how you feel and perform recover on different timelines, and the literature is honest about the spread.

  • Alertness and reaction speed. These tend to improve substantially within the first night of normal sleep. They do not always return all the way; some studies show small residual deficits two to four days later, depending on the demand.
  • Memory and complex decision-making. These can lag. A 2020 study by Ochab and colleagues found that some cognitive measures had not fully returned to baseline a week after one night of total sleep deprivation.
  • Mood and emotional sensitivity. Often noticeably improved after a single good night of sleep, but irritability and low motivation can linger.
  • Immune function and inflammation. Markers of inflammation often recover over a few nights.

The headline "24 hours and you are back to normal" is not quite right. Some functions do come back that fast; others take a few days. The Sleep Foundation summarizes the picture as a few days of partial recovery, not an instant reset.

A workable plan for the next two to three days:

  • Anchor your wake-up time. Get up around the same time you normally would.
  • Push tonight's bedtime earlier by 15 to 30 minutes for the next two or three nights, not by hours.
  • Keep mornings bright and afternoons unhurried where you can.

If you are also carrying weeks of short sleep, that is a different problem — How long does sleep debt take to recover? covers a one- to two-week plan for accumulated debt.

Five things to avoid today

  1. Going to bed at 7 or 8 p.m. tonight. This often leads to a 2 a.m. wake-up.
  2. A long afternoon nap that runs past 3 p.m. or stretches beyond 90 minutes. Tonight pays the price.
  3. Late-afternoon or evening coffee or strong tea. Caffeine's effects can last six hours or more in many adults.
  4. Late-night screens to "stay productive." Bright screens close to bed make it harder to wind down.
  5. Sleeping in tomorrow until noon. A late wake-up shifts your body clock the wrong way.

Frequent all-nighters vs. chronic short sleep

A single all-nighter is acute. Repeated all-nighters or weeks of five-hour nights are chronic — a different shape of problem with different recovery rules. Chronic short sleep accumulates as sleep debt, which one weekend rarely clears; researchers point to a rough figure of about four days to recover one lost hour, and up to nine days for a moderate debt. The Sleep Calculator can help anchor a steadier bedtime week to week, but the plan itself is paced over one to two weeks. See How long does sleep debt take to recover? for the full picture.

If you find yourself pulling all-nighters often, or if daytime sleepiness, sudden sleep attacks, loud snoring, or pauses in breathing are present even on normal nights, that is worth raising with a doctor. Persistent insomnia, suspected sleep apnea, narcolepsy, and shift-work disorder are clinical conditions that need a clinician, not a self-help plan.

FAQ

How many hours should you sleep after an all-nighter?

A normal night of 7 to 9 hours tonight is the simplest target. Trying to sleep 12 or more hours in one go often disrupts the next night and your body clock. If you sleep 9 hours and still feel tired, the rest of the recovery happens over the next two or three nights, not in one long sleep-in.

How many days does an all-nighter affect you?

The honest answer is "a few." Alertness and reaction speed tend to improve within the first night of normal sleep, while memory and complex thinking can lag for two to four days, occasionally longer. Mood often bounces back faster than performance. The Sleep Foundation summarizes the recovery as partial across several days, not a single 24-hour reset.

How many cups of coffee can you have after an all-nighter?

A common starting point is one or two cups in the morning. Caffeine cuts sleepiness for a while but does not bring back sleep, and a third cup in the afternoon often comes back to bite you tonight. The detailed timing — half-life, last-coffee-of-the-day — is covered in When should you stop drinking caffeine?.

Does a coffee nap actually work?

A "coffee nap" — drinking coffee and then napping 15 to 20 minutes — has small experimental support for boosting post-nap alertness, mostly in lab settings. It is not magic, and after an all-nighter your baseline tiredness is higher than the typical study participant. Treat it as a small bonus, not a fix. How long should a power nap be? covers nap length more broadly.

When should I see a doctor?

If you pull all-nighters often, regularly cannot sleep when you try, fall asleep without warning during the day, snore heavily, or stop breathing in your sleep according to a partner, those are not just "needing more sleep." Insomnia, sleep apnea, narcolepsy, and shift-work disorder are clinical conditions. A sleep specialist or primary care doctor is the right next step.

A note on safety

This article is general guidance, not medical advice. Pulling occasional all-nighters is uncomfortable but common; doing it frequently or alongside symptoms like daytime sleep attacks, mood changes, or breathing pauses at night is worth talking to a clinician about.

Sources

  • American Academy of Sleep Medicine. Practice guidelines on healthy sleep. aasm.org
  • Sleep Foundation. How to Pull An All-Nighter and Why Are All-Nighters Harmful? sleepfoundation.org
  • Belenky G, Wesensten NJ, Thorne DR, et al. Patterns of performance degradation and restoration during sleep restriction and subsequent recovery: a sleep dose-response study. Journal of Sleep Research. 2003;12(1):1–12.
  • Lo JC, Ong JL, Leong RL, Gooley JJ, Chee MWL. Cognitive performance, sleepiness, and mood in partially sleep deprived adolescents: the need for sleep study. Sleep. 2016;39(3):687–698.
  • Hilditch CJ, McHill AW. Sleep inertia: current insights. Nature and Science of Sleep. 2019;11:155–165.
  • Ochab JK, et al. Observing changes in human functioning during induced sleep deficiency and recovery periods. PLOS ONE. 2021;16(9):e0255771.
  • Cleveland Clinic. Sleep deprivation: symptoms, causes, treatment. my.clevelandclinic.org
  • CDC/NIOSH. Interim NIOSH training for emergency responders: drowsy driving. cdc.gov