Sleep2 logo Sleep2 logo

Sleep and Immune System: Why Rest Before Your Vaccine

Manuel Schabus | 05.11.2026

Every autumn brings the same situation: the flu shot is booked, half the office is coughing, and the nights keep getting shorter. What rarely gets factored in is that sleep and immune system function are more tightly linked than most people assume. How well a vaccine takes, and how well your defences hold up through winter, demonstrably depends on how long you sleep in the nights around the appointment; a regular rhythm supports this further.

This article explains what happens in the immune system at night, what the vaccination studies found, how chronic poor sleep shifts the inflammatory balance, and which habits matter most in cold and vaccination season. And it says honestly what sleep cannot do.

What happens in the immune system at night

The immune system does not work less during sleep. It works differently. Think of it as a nightly update: by day, the body collects information about the pathogens it has met; by night, that information is processed and turned into memory. Three processes are well described.

First, deep sleep. Stage N3 dominates the first half of the night and makes up around 20 % of sleep in healthy young adults, often under 15 % by age 50 (polysomnography norms, Ohayon et al., 2004). Restorative processes run preferentially here. We describe each stage in our article on the four stages of sleep.

Second, immune learning. To recognise a pathogen next time, antigen-presenting cells hand their information to T cells. Sleep research assumes that the deep-sleep-rich early hours of the night, with their hormonal milieu (high growth hormone and prolactin, low cortisol), support this exchange (review: Besedovsky et al., 2019), much as the brain consolidates memories in deep sleep. That is why vaccination studies are so revealing: a vaccine is a controlled learning exercise for the immune system.

Third, cytokine regulation. Messengers such as interleukin-6 follow a day-night rhythm: during sleep they coordinate immune cells, by day they are dampened. When sleep is regularly cut short, this timing drifts.

Sleep and immune system response to vaccines: what the studies show

The clearest data come from vaccination studies, because the immune response can be measured directly in the blood. Prather et al. (2021) followed 83 healthy young adults around a flu vaccination; sleep was recorded over 13 days with sleep diaries, i.e. purely self-reported. Those who slept less, especially in the two nights immediately before the shot, had lower antibody levels against one of the vaccine strains one and four months later. The association was clearest for the window right before the appointment; sleep efficiency and subjective sleep quality played no role.

A controlled hepatitis A experiment (Lange et al., 2003) went further. All 19 participants were vaccinated in the morning; one group slept normally the following night, the other stayed awake until the next evening. Four weeks later, the sleep group had achieved nearly twice the antibody response. A single night made the difference, and in a follow-up study by the same group the sleep group's advantage was still measurable one year later (Lange et al., 2011).

A meta-analysis of seven studies (Spiegel et al., 2023) confirms the pattern: with objectively measured sleep (actigraphy or polysomnography), sleeping less than six hours around vaccination was associated with a markedly weaker antibody response. With purely self-reported sleep the effect was not significant, and it was clearer in men.

Strikingly, these studies still mostly rely on subjective sleep diaries or actigraphy, methods that do not measure sleep precisely. Accurate wearable methods such as sleep² will add a great deal here, above all findings that may be specific to individual sleep stages: what role does deep sleep play, and what role REM sleep, in the immune response?

An important qualification: in both cases the vaccine still worked in short sleepers, only less well. Sleep is not a switch that turns a vaccine on or off. It is an amplifier.

Silent inflammation: when poor sleep becomes chronic

After a few short nights, the immune system recovers quickly. The picture changes when poor sleep becomes the norm: in people with chronically disturbed sleep, inflammatory markers such as C-reactive protein (CRP) and interleukin-6 are slightly elevated (meta-analysis of 72 studies with over 50,000 people: Irwin et al., 2016; the effects are small but consistent). Not acute inflammation with fever, but a slightly raised background level that persists. Clinicians call it low-grade or silent inflammation.

That background noise is one plausible mechanism behind the associations seen in large cohort studies. Cappuccio et al. (2011), in a meta-analysis of 15 prospective studies with around 475,000 people, found habitually short sleep (assessed by questionnaire) associated with a 48 % higher risk of coronary heart disease and a 15 % higher risk of stroke. Associations, not proven causes, but they fit the picture of an immune system under strain. More in our article on sleep, blood sugar and longevity.

Duration is not the whole story. Seven hours in bed with frequent awakenings means less deep sleep. We explain why in sleep quality over quantity.

Six rules for cold and vaccination season

Duration. Adults need 7 to 9 hours of sleep. Plan for at least 7 hours of sleep opportunity plus 30 minutes of buffer; nobody falls asleep instantly.

Regularity. Fixed bed and wake times within 30 minutes, weekends included. Windred et al. (2024) found in the UK Biobank (around 61,000 people, sleep measured for one week by wrist actigraphy) that very regular sleep was associated with a 20 to 48 % lower risk of death, independent of duration. A reliable rhythm stabilises the body clock on which the nightly timing of immune messengers also depends.

The two nights before the shot. Schedule your vaccination so that the two nights before it do not fall on a night shift, a long-haul flight or a late party. The point is not to catch up on sleep but to protect the window in which the immune system starts learning.

Caffeine. Caffeine has an average half-life of about 5 hours, ranging from roughly 2 to 10 hours between individuals; a coffee at 2 pm is on average still half active at 7 pm, and much longer in slow metabolisers. Drake et al. (2013) showed in a placebo-controlled study of 12 healthy sleepers that 400 mg of caffeine six hours before bedtime cut objectively measured total sleep time by more than an hour, without participants noticing.

Alcohol. A glass of wine may make falling asleep easier, but it fragments the second half of the night, and from moderate doses upwards it also suppresses REM sleep (meta-analysis: Ebrahim et al., 2013). In vaccination week especially, skip it.

Evening light. From about three hours before bedtime, dim the lights: warm colour around 2,700 kelvin, well below 50 lux, i.e. a single dimmed floor or bedside lamp rather than the ceiling light (a normally lit living room is around 100 to 300 lux); the expert consensus recommends no more than 10 melanopic lux in the evening (Brown et al., 2022). Chang et al. (2015) found in 12 young adults who read on a tablet at full brightness for four hours on five consecutive evenings that melatonin onset was delayed by around 1.5 hours, falling asleep took about 10 minutes longer and REM sleep was about 10 minutes shorter; with shorter, dimmer use the effects are likely to be much smaller. More in our article on improving your sleep.

What sleep cannot do

Sleep is not a shield. Someone who sleeps eight hours can still catch a cold; good sleep does not prevent infections, it shifts the odds. When 164 volunteers were deliberately exposed to a cold virus, those who had slept less than 6 hours (measured by actigraphy) in the week before fell ill about four times as often as those sleeping more than 7 hours (Prather et al., 2015). A vaccine still works after a short night, only less well. A missed appointment is worse than a vaccination on imperfect sleep.

If you live with chronic insomnia, do not try to force sleep; pressure tends to make sleep worse. What helps is covered in our article on insomnia and sleep disorders.

Seeing regularity and duration over time

Whether vaccination week really included two full nights of sleep is hard to remember, but easy to look up. sleep² uses the Polar Verity Sense to measure total sleep time, sleep stages including deep sleep and heart rate variability (HRV), and shows duration and regularity as a weekly trend: patterns, not single nights. If you see that your weekday time in bed sits at six hours, you have found your lever. sleep² PRO adds a digital sleep coach for the winter.

If you want to know how regularly and how long you actually sleep this cold season: sleep² is available on the App Store and Google Play, and at www.sleep2.com.


Portrait Manuel Schabus

Article by

Manuel Schabus