Fastly

Intermittent Fasting on Night Shift: Set Your Eating Window

Updated 2026-10-20

To do intermittent fasting on night shift, build your eating window around your own day, not the clock. Treat the hour you wake up as your morning, put your eating window in the hours after it, and let your fast run through the end of your shift and your sleep. A person who wakes at 5 pm can eat from 6 pm to 2 am or 6 pm to 10 pm, and the "fasting" part is the stretch from their last meal until the next one.

The usual advice you find online, such as "eat from 12 to 8, skip breakfast", was written for people who sleep at night. If you work nights, that window can land in the middle of your sleep. This guide shows how to anchor the window to your waking hours, gives example windows for a 7 pm to 7 am shift, rotating shifts and nights with no fixed pattern, and covers the hard part: what to do about the 3 am snack table. The free fasting schedule calculator does the arithmetic for you, including the overnight wrap past midnight.

This is general information, not medical advice. Talk to a doctor before fasting if you have a medical condition (such as diabetes), take medication, are pregnant or breastfeeding, are under 18, or have ever had an eating disorder. Stop and get help if you feel unwell.

Why the normal fasting schedules don't fit night shift

Most fasting schedules you see are written as clock times. "16:8, eat from 12 pm to 8 pm" works for a person who wakes at 7 am and sleeps at 11 pm. For a person who works 7 pm to 7 am and sleeps from 9 am to 4 pm, noon to 8 pm is mostly sleep followed by the commute and the first half of the shift. Copying it means your first meal is at the end of your sleep and your last meal is at the start of your shift, which leaves the whole night with nothing planned.

People on night shift ask the same questions again and again, and a few of those questions are what this guide is built around:

  • Do I count my sleep as part of the fast?
  • Should my "breakfast" be when I wake up, even if that is at 5 pm?
  • What window works if my shifts change every week?
  • How do I stop snacking at work at 3 am?

People often ask these in threads like the ones on night shift fasting, a schedule for 12-hour nights, and fasting as a night-shift worker. The answers below are general and sourced where a source exists. Where the honest answer is "nobody knows yet", we say so.

The idea: anchor your window to your wake-up time

A simple rule works for almost every schedule:

  1. Find the time you wake up (the start of your "day", wherever it falls on the clock).
  2. Decide how long your fast should be, for example 12, 14 or 16 hours.
  3. Put your eating window in your waking hours, after you wake and before you go to bed.
  4. Let the fast run from your last meal, through sleep, until your first meal after waking.

Your biology doesn't care that it is 5 pm. What you control is the order of things: wake, eat in a block, work, eat a little, stop, sleep. The fast is the long gap, and sleeping through part of it is what makes any fasting plan easier. If you want a longer overview of how the hours add up on a regular day, the 16:8 schedule guide shows the same idea with daytime windows.

Do I count sleep as fasting?

Yes, the hours you sleep without eating are part of the fast. That is how most fasting patterns work on a normal day too: the overnight gap is the biggest piece of a 12 to 16 hour fast. On night shift the difference is that your sleep happens in the day, and your longest stretch awake without eating may be your shift. If you eat at 6 pm, work until 7 am, and then eat nothing before you sleep, your next meal might come 18 hours later. That is a long fast you did not plan, so decide on purpose where the meals go.

Should my first meal be when I wake up?

Many people find it easiest to eat soon after waking, because that is when appetite is highest and you have time before work. Some people prefer to wait one or two hours. Either can work. A nutrition blog or a coach may give a rule such as "wait three hours after waking", but that is a preference, not a researched requirement. Pick the version you can stick with, and change it if you feel awful at work.

What the research says about eating at night (and what it doesn't)

It helps to know what is and isn't established, because most fasting advice for shift workers comes from blogs and coaches.

  • Night shift is linked to health risks. The US National Institute for Occupational Safety and Health (NIOSH) explains in its nurse training material that when your body clock hasn't adjusted, you may eat at times when your digestive system is prepared for sleep, which raises the risk of stomach and gut symptoms, and it links shift work to problems such as obesity, heart disease and diabetes. See NIOSH's diet suggestions for night-shift nurses.
  • NIOSH's practical advice is cautious about midnight to 6 am. The same page suggests limiting how much you eat between midnight and 6 am, keeping a pattern close to three meals per 24 hours, choosing foods such as vegetables, fruit, yogurt, eggs and nuts during the shift, and avoiding sugary or low-fiber foods that can make you sleepier.
  • Researchers are still working out whether fasting timing helps night-shift workers. A trial protocol published in Frontiers in Public Health describes a randomized study called SWIFt, which compares different dietary approaches in night-shift workers and asks whether the timing of energy restriction matters. The authors write that there is limited guidance for this group and that meal timing may need to be considered alongside how much people eat. You can read it here: the SWIFt trial protocol. A protocol describes a plan, not a result, so it is not proof that any schedule works.
  • There is also a registered trial of time-restricted eating in night-shift workers. Its registry entry describes a 10-hour eating window with a fast from midnight to 6 am. It is a trial, so the results aren't in this page. See the registry entry.
  • Fasting evidence is mixed overall. Harvard Health's overview of time-restricted eating calls the weight-loss evidence murky, notes small and short studies, and lists people who should avoid it, including people with diabetes, eating disorders, those who are pregnant or breastfeeding, and people who need food with their medications. It is worth a read before you start: Harvard Health on intermittent fasting.

Put together, the safe summary is this: nobody can promise that fasting on nights will do anything in particular for you. What you can do is choose a pattern that fits your day, keeps you alert and lets you sleep, and talk to a doctor if you have any health condition.

Sleep comes first

Night work already puts pressure on your sleep. The Sleep Foundation describes shift work disorder as a circadian rhythm sleep disorder that affects people on night, early morning or rotating shifts, with trouble sleeping, excessive sleepiness at work and trouble concentrating. See its page on shift work disorder. It also says many drowsy-driving collisions happen between midnight and 6 am, which matters for the drive home.

A fasting window should never make your sleep worse. A few practical points that fit this:

  • Don't go to bed hungry enough that you can't sleep. If a long fast keeps you awake, shorten it.
  • Don't eat a huge meal right before bed. A heavy meal can make sleep harder for some people. Finishing a few hours before bed works for many people, which is also what the calculator suggests by default.
  • Watch caffeine late in the shift. It is common to drink coffee through the night, but too much near the end of the shift can delay your sleep. If you drink caffeine, keep it earlier in your shift.
  • If you feel dizzy, shaky or unwell at work, eat. A skipped meal is not worth a mistake on the job or on the road.

Example eating windows for night shift

These are examples, not prescriptions. Shift the hours to match your own wake-up. Each assumes you sleep once per 24 hours.

A 7 pm to 7 am shift (12-hour nights)

This is the pattern in most of the "12-hour nights" questions. Say you sleep from 9 am to 4 pm and wake at about 4 pm.

Plan Eating window What the fast covers
12:12 5 pm to 5 am The shift is split: a meal before work, one mid-shift, one after
14:10 5 pm to 3 am Last bite about 3 am, fast through the end of the shift and sleep
16:8 5 pm to 1 am Meals before and early in the shift, then nothing until you wake

Some points on these:

  • The 12:12 plan is the gentlest. It looks like a normal three-meal day pushed to nights, and it fits NIOSH's suggestion to keep close to three meals across the 24 hours.
  • A 14:10 or 16:8 window puts your last meal during the shift and means you work the second half hungry. If that makes you tired, start with 12:12 and try 14:10 later.
  • Eating a real meal before the shift and a small meal about halfway through can keep the 3 am pull toward vending machines under control.

Rotating shifts

Rotating means one week of nights, then days or days off, then back. You have two choices.

  1. Move the window each time. Keep the same fasting length and shift the start time to your new wake-up. The rule stays the same: first meal after you wake, last meal a few hours before bed.
  2. Keep a short window on your worst days. On transition days, when you sleep at odd times, shorten the fast to 12 hours (12:12) so you aren't adding a strict plan to a day that is already hard.

Some people only fast on days off and eat normally on shift. That is a legitimate pattern if it makes work easier.

No set schedule at all

If your shifts change without warning, a fixed window may be the wrong tool. A flexible pattern works better: pick a fast length (12 hours is a good start), count from your last meal, and eat when the fast is done. The When can I eat timer is built for this. Enter when your last meal ended and the plan, and it shows how long until your window opens.

One long meal pattern (OMAD) and 20:4 on nights

Very long fasts on a night shift are harder, because you are awake at the hours when the body expects to sleep. They are also the patterns that need a doctor's go-ahead most. If you are curious, the OMAD, 20:4 and 18:6 guide explains how they work and who they might not suit.

How to plan a meal at work

The fasting window is the easy part. The real problem is what to eat during the shift, because the options at 3 am are often a vending machine, a late-night drive-through, or leftovers from a staff birthday.

  1. Eat a proper meal before the shift. Protein and something with fiber (eggs, yogurt, beans, a sandwich on whole-grain bread) holds you better than something sugary.
  2. Pack the mid-shift meal. Plan it as a meal at a set time, such as 11 pm or 1 am, so it is not a series of snacks. Soup, a salad, fruit, nuts and cheese are the sort of foods NIOSH lists.
  3. Choose where you eat. NIOSH suggests eating with colleagues in a pleasant place away from the work area. It helps with focus, and it keeps food from turning into a habit at your desk.
  4. Keep water, tea or black coffee nearby if you are fasting during part of the shift. Plain drinks are fine for most plans, but if you are unsure what breaks your fast, the 16:8 guide covers the common questions.
  5. Decide the "last bite" ahead of time. The most common reason a window slips is that nobody decided when it ends. If your window ends at 1 am, tell yourself so before the shift starts.

How to avoid late-night snacking at work

Snacking at 3 am is usually a mix of boredom, tiredness and habit. A few things that help, none of which are magic:

  • Eat enough in your window. Under-eating before the shift is the most common reason for snacking during it.
  • Prepare something to do with your hands and mouth: tea, gum, sparkling water.
  • Keep the snack food out of sight and out of your bag.
  • If hunger hits hard, the plan is too long. Shorten the fast. Being able to repeat it matters more than a perfect number.

If your goal is weight and the scale isn't moving, the guide to what to check when the scale won't move is a calm checklist covering window length, what you eat inside the window, sleep and how to read a trend.

Use the schedule calculator for your window

The free fasting schedule calculator was built for exactly this problem. It runs in your browser and needs no account.

  1. Pick a plan: 16:8, 18:6, 20:4, OMAD or your own hours.
  2. Enter your wake-up and sleep times. For a night worker that might be a wake-up at 4 pm and a bedtime at 9 am. The calculator handles the time that wraps past midnight, so you don't have to count on your fingers.
  3. Read the result: an eating window and a fasting window on a 24-hour ring.
  4. Look at the notes. It tells you if your window would start before you wake up or end after you go to sleep, which is the mistake day-shift schedules cause on nights.
  5. Press Print if you want to stick the plan on the fridge or in your locker.

Its default suggestion is to finish eating about three hours before bed and never to start before you wake. That is the same idea as the rule above, applied to whatever hours you actually keep.

Where Fastly helps (and where it doesn't)

Fastly is a fasting timer app for iPhone and Android, made by the same people as this site. Here is what it does that is useful on nights:

  • One-tap timer. Tap Start Fast when you finish your last meal, and a ring counts the time. If you tapped late, you can change the start time to when you really stopped eating.
  • Plans for any hours. There are presets for 12:12, 14:10, 16:8, 18:6, 20:4 and OMAD, plus a custom fasting goal. Because a plan is a number of hours, not a time on the clock, it works the same at 3 am as at 3 pm.
  • Notifications and a home screen widget. You get a notification when your fast is complete and milestone alerts along the way, and the widget shows the fast without opening the app.
  • No account. There is no sign-up and no email. Your fasts, weight and water are stored on your phone and the app works offline, which helps in a hospital basement or a warehouse with no signal.
  • Streak, weight and water logs. A streak card, weekly activity and weight and water charts show how consistent you have been.

Here is the honest part. Fastly doesn't know your shifts. It has no shift calendar, and it won't move your plan when your rota changes, so on a rotating schedule you will start each fast yourself and pick the length that fits the day. It doesn't tell you what to eat, and it isn't medical advice. The "fasting stages" card is educational and doesn't measure anything in your body. Some features, such as full history and CSV export, need Fastly Pro. If a printed plan and a timer in your pocket are enough, the free tools on this site cover the same ground. If you want a comparison of what to check in any fasting app, see the guide to free fasting apps. You can find the app on the home page.

Questions

Is intermittent fasting safe on night shift?

It depends on you. Night work already stresses sleep and appetite, and fasting adds one more thing to manage. Harvard Health lists people with diabetes, a history of eating disorders, and anyone pregnant, breastfeeding or on medication that needs food as groups who should avoid or get advice first. Talk to a doctor before you start, and stop if you feel unwell, dizzy or unable to concentrate at work.

What is the best eating window for a 12-hour night shift?

There isn't one best window, but 12:12 anchored to your wake-up time is the easiest place to start: eat soon after you wake, have a meal mid-shift, and stop a few hours before sleep. If that feels easy after a couple of weeks, try 14:10. The table above shows windows for a 7 pm to 7 am shift.

What window works if I have no set schedule?

Use the fast length, not the clock. Count from your last meal and eat when the fast is over. A 12-hour fast is a reasonable starting point on days when your sleep keeps moving. The When can I eat timer shows how long is left, and the idea is discussed in threads like this one on non-set schedules.

Should I eat between midnight and 6 am?

NIOSH's night-shift diet advice suggests limiting or reducing food between midnight and 6 am, because your body may not be ready to digest then. If you do eat, a small, light meal such as soup, yogurt, fruit or nuts is the kind of food it lists. The trial listed above is testing a fast over that same time window, so it is a reasonable thing to ask your doctor or dietitian about.

Do I count sleep as fasting?

Yes. Sleep hours without food are part of the fast. The practical difference on nights is that your sleep comes in the daytime and your shift may be the longest stretch without a meal, so plan where the meals go.

How do I stop snacking at work?

Eat a solid meal before the shift, pack a planned mid-shift meal, keep snack food out of reach, and decide your last bite in advance. If hunger keeps winning, shorten the fast. A plan you can repeat beats a strict one you abandon.

This is general information, not medical advice. If you have a medical condition, take medication, are pregnant or breastfeeding, or have had an eating disorder, speak to your doctor before changing when you eat.

Get Fastly free on Android and iPhone.