How to stay awake on night shift: plan the shift around 2 to 5 am.

The things that have evidence behind them are few and specific: a nap of 1.5 to 3 hours before the shift, caffeine at the start of the shift and again right before a 20- to 30-minute nap in your break, bright light in the first half of the shift and less in the second, and active tasks rather than passive ones between 2 and 5 am, when the drive for sleep is strongest. Everything else on the usual lists, cold water, snacks, music, buys minutes at most. The numbers on this page come from the US National Institute for Occupational Safety and Health (NIOSH), the FDA, the CDC and Safe Work Australia, all read on 29 October 2026. Below is the plan as a table you can print, the caffeine cut-off worked out, and the rule for when to stop pushing.

Why 2 to 5 am is the hard part, and why it is predictable

NIOSH's training for nurses on long hours puts it plainly: the strongest drive for sleep is between 2 and 5 am, with a weaker window from midnight to 2 am. That is the circadian low, and it arrives whether or not you slept well yesterday. On night shift you are also usually short of sleep, because daytime sleep is shorter and lighter than night sleep. The two stack up: the longer you have been awake, the harder the 2 to 5 am dip hits. Safe Work Australia turns the same fact into a rule for employers: if night work is necessary, limit consecutive nights to three and avoid safety-critical work between 2 am and 6 am. You cannot move the dip. You can decide what you are doing when it arrives.

The shift plan, hour by hour

The table assumes a 7 pm to 7 am shift. For a 10 pm to 6 am shift, shift the "before" rows later and drop the second half-shift block. Print it and put it in your bag; the right-hand column is what the research actually shows, not a tip.

Night shift alertness plan (7 pm to 7 am example)
WhenDoWhy, with source
2 pm to 5 pm, or later in the eveningNap for 1.5 to 3 hours. Dark room, alarm set, no caffeine beforehand.NIOSH cites a 1.5-hour nap at 3:30 to 5 pm, a 2.5-hour nap at 7:30 to 10 pm and a 3-hour nap at 2 to 5 pm, each giving more alertness during the following night shift than no nap. It warns that staying awake all day before the first night leaves you awake too long.
Shift start, 7 pmOne caffeine drink. Count it against the day's total.NIOSH: caffeine takes about 30 minutes (range 15 to 45) to act. FDA: 400 milligrams a day is not generally associated with negative effects in healthy adults; a 12-ounce brewed coffee is 113 to 247 milligrams, a 16-ounce energy drink 54 to 328.
7 pm to about 1 am (first half)Work in the brightest area you can. Eat your main meal before midnight.NIOSH: increase light exposure in the first half of the shift; you do not need to sit at a light, just work near it. NIOSH diet guidance: avoid or cut back on eating between midnight and 6 am, and skip sugar-rich, low-fibre foods when you need to stay alert.
Break, ideally 1 am to 3 amCaffeine, then lie down immediately for 20 to 30 minutes with an alarm. Then 15 to 30 minutes of light work before anything critical.NIOSH: a brief nap of about 30 minutes during the scheduled break increases alertness on the night shift, and caffeine followed immediately by a short nap gives the benefits of both. Waking at about 20 minutes, before deep sleep, leaves grogginess that fades within 15 to 30 minutes.
2 am to 5 amActive tasks only: walking rounds, checks that need your hands, talking to a colleague. Nothing passive. Stand up every 30 minutes. This is the last caffeine window.NIOSH: strongest drive for sleep is 2 to 5 am; go somewhere brighter when sleepy between 3 and 5 am. Safe Work Australia: avoid safety-critical work between 2 and 6 am.
5 am to 7 am (last two hours)No caffeine. Dim your light where you safely can. Decide now how you are getting home.NIOSH: caffeine's half-life is five to six hours, so a coffee near the end of the shift can cause restlessness or waking during the morning's sleep. Reduce light in the second half of the shift to make sleep easier, unless you are very sleepy, when bright light may be the safer choice.
7 am, leavingIf someone else is driving or you are on transport: dark or blue-blocking sunglasses on before you step outside, and keep them on until your bedroom is dark. If you are driving yourself: no sunglasses for this purpose, and do not drive if you are very sleepy.NIOSH: wraparound blue-blocking sunglasses from before leaving work until you are in darkness at home; but sunglasses can block light's alerting effect, so wear them after a night shift only if someone else drives.
Home, about 8 amStraight to bed. A small meal with protein and carbohydrate first only if hungry. Dark room, earplugs or white noise, phone on silent.NIOSH: go directly to bed when you arrive home; the more sleep you get before 2 pm, the better rested you will be; do not use early morning for errands.

The caffeine cut-off, worked out

The rule is simple once you have two numbers from NIOSH: about 30 minutes to act, five to six hours for half of it to clear. Work backwards from the time you plan to be asleep. If the shift ends at 7 am and you are in bed by 8, a coffee at 5 am is still about half there at 10 or 11 am, in the middle of your sleep. A coffee at 2 am is down to about a quarter by 1 pm. So the last caffeine is at the 1 to 3 am break, and the 5 to 7 am stretch is caffeine-free however flat it feels. Two drinks a shift, start and break, keeps most people under the FDA's 400 milligrams; a third large energy drink can take you over it on its own. If you have a cup at 7 pm, 1 am and 5 am and then sleep badly all week, the caffeine is a likely reason, and NIOSH says so.

Days off: do not flip all the way back

The temptation after the last night is to stay up all day and "reset". NIOSH calls switching schedules more than once a week a perpetual state of jet lag and warns that staying awake all day after the last night raises short-term accident risk. Its compromise: on work nights, sleep as soon as you get home and as long as you can; on days off, stay up until about 3 or 4 am and sleep until noon or 1 pm. That keeps one block, roughly 8 am to noon, as sleep in every 24 hours, so your body is not asked to move the whole clock twice a week. If you rotate between day and night shifts and cannot adjust, NIOSH's advice is to see a sleep specialist rather than keep guessing.

What does not work, and what it costs

Sugar, snacks and energy drinks all night

NIOSH's diet guidance for night nurses says sugar-rich and low-fibre foods can increase sleepiness, and that eating between midnight and 6 am is best avoided or cut back. Energy drinks count towards the same 400 milligrams as coffee and arrive in the hours when caffeine does the most damage to your morning sleep.

A long nap at 4 am "to get through it"

Sleep reaches deep stages at about an hour, per NIOSH, and waking from deep sleep brings sleep inertia in which your functioning can deteriorate considerably. If you are very sleep-deprived you reach deep sleep sooner. Keep the break nap to 20 to 30 minutes, or make it a full 90-minute cycle only if your break and your role genuinely allow it.

Cold water, loud music, slapping your face

They change nothing about sleep pressure. Our driving guide explains why the same tricks fail at the wheel, where the consequence is a crash rather than an error.

Treating a nod as a cue to push harder

A nod is a microsleep, and microsleep at work is the stop rule firing. The symptoms page describes what it looks like from the outside, which matters when you are the one who cannot see it.

Where EyeJolt fits

EyeJolt, the app behind this site, watches your face through the device camera during stationary work such as monitoring, charting or a control desk, looks for sustained eye closure and head drop rather than normal blinks, and plays an alarm when it believes you are fading. Processing is on the device and it does not need to save camera frames. On a night shift its honest use is as a backstop for the 2 to 5 am window at a desk, when you may not notice your own nod; a repeated alert is the signal to take the break, tell a supervisor or stop the task, not permission to keep going. It can miss fatigue, it can alert falsely when lighting, glasses or camera position get in the way, and it is not a medical device, not a fitness-for-duty system and never the only fatigue control in a safety-critical role. It is optional; the plan above works without it. It is not for driving, ever. Details are in EyeJolt for night-shift workers and accuracy and limitations.

When this page does not apply

  • You are sleepy on days off too, or fall asleep without warning. That pattern, not a bad night, is what the NHS page on excessive daytime sleepiness below is about. Raise it with a GP; shift work can also be the trigger for a sleep disorder that NIOSH's course says deserves a specialist.
  • Your role is safety-critical. Medication rounds, machinery, vehicles, patient monitoring: the plan above is a personal routine, and your workplace fatigue procedure overrides it. Report fatigue through that process. Safe Work Australia's employer guidance is linked below so you can see what your employer is expected to provide, such as at least 12 hours between shifts and a way to report fatigue without being punished.
  • You will drive home. That decision belongs to driving home after a night shift, and nothing on this page changes it.
  • You take medicine that causes drowsiness, or you are pregnant. The caffeine figures are the FDA's general ones for healthy adults; ask a pharmacist or your doctor what applies to you.

Questions

What is the best time to take a nap during a night shift?

In your scheduled break, as close to the 2 to 5 am low as the roster allows. NIOSH describes a brief nap of about 30 minutes during the scheduled break, straight after a caffeine drink so the caffeine's roughly 30-minute onset lines up with waking. Allow 15 to 30 minutes afterwards for grogginess to clear before anything safety-critical.

When should I stop drinking coffee on a night shift?

At or before the mid-shift break. With a five- to six-hour half-life, a coffee at 5 am is still about half there at 10 or 11 am, in the middle of your daytime sleep. Stay under the FDA's 400 milligrams a day across the whole 24 hours, not just the shift.

Should I sleep before my first night shift?

Yes. NIOSH cites naps of 1.5 to 3 hours in the afternoon or evening before a night shift that improved alertness during the shift, and warns against staying awake all day before the first night.

Is it safe to work through the 2 am to 6 am period?

It is the period when sleep pressure is strongest. Safe Work Australia's guidance for employers is to avoid safety-critical work between 2 am and 6 am. If your role has safety-critical tasks, follow the workplace fatigue procedure and tell a supervisor when you are fading.

Sources

Written by the EyeJolt Editorial Team. Published and last reviewed 2026-10-29. Editorial policy.