This is one of the areas where the evidence is unusually direct, because researchers did the obvious experiment: they restricted people's sleep and then deliberately infected them.

The study people cite

Volunteers had their sleep monitored for two weeks, then had rhinovirus — the common cold — administered directly into the nose, and were quarantined and observed.

Those sleeping less than six hours a night were substantially more likely to develop a cold than those sleeping seven or more. The relationship held after adjusting for the obvious confounders: season, age, BMI, smoking, stress, and pre-existing antibody levels.

That design matters. It is not "tired people report more colds," which could be explained several ways. Everyone got the same viral dose under controlled conditions, and short sleepers got sick more.

What is happening underneath

Several mechanisms, all operating during sleep.

T cell function. T cells need to adhere to infected cells to kill them, which depends on proteins called integrins. Research has found that sleep improves integrin activation, and that the stress hormones which stay elevated during wakefulness suppress it. Short sleep leaves T cells less able to do their job.

Cytokine production. Certain signalling proteins central to the inflammatory response are produced preferentially during sleep. Restriction reduces them.

Natural killer cell activity drops measurably after even a single night of partial sleep restriction — some studies report substantial reductions after one night.

Chronic inflammation rises. Long-term short sleep is associated with elevated inflammatory markers such as CRP and IL-6, which is the opposite pattern from acute infection response and is part of why chronic sleep loss tracks with cardiovascular and metabolic disease.

So acute short sleep blunts the response you need against infection, while chronic short sleep raises baseline inflammation you do not want. Both directions are unhelpful.

Sleep and vaccination

A practical application with reasonably consistent evidence.

Multiple studies have found that people who sleep poorly around the time of vaccination mount weaker antibody responses. A meta-analysis found the effect was clearer in men than women, and effect sizes vary across studies.

The pragmatic reading: prioritise sleep the night before and the night after a vaccination. It is a free intervention on an occasion where you would like the response to be strong, and the downside is nil.

Why you sleep more when ill

Not incidental. It is an organised response.

Cytokines released during infection promote sleep directly, and the fever, lethargy and increased sleep drive of being ill are part of a coordinated defence rather than a side effect of feeling rotten. Sleeping more when sick is your immune system asking for resources.

Which is a reason to let it happen rather than push through.

What this does and does not mean

It does not mean sleep prevents infection. It shifts probability. Plenty of well-rested people catch colds.

It does not mean more sleep is always better. Long sleep duration is associated with worse outcomes in some studies, though that is widely thought to reflect underlying illness causing the long sleep rather than the reverse.

Seven to nine hours is the range where the immune findings cluster for adults.

Quality, not just quantity

Worth flagging because it is the part most sleep-and-immunity coverage skips.

The mechanisms above run during sleep — particularly deep sleep. Fragmented sleep that never consolidates properly does not deliver them at full value, even when the hours look adequate on paper. (How much deep sleep you actually need.)

Obstructive sleep apnea is specifically associated with elevated systemic inflammation, and untreated apnea produces exactly the chronic-inflammation pattern described above. If you sleep eight hours and wake exhausted, the hours are not the problem. (The full checklist.) (How to decide whether you need a sleep study.)

Mouth breathing is a fixable contributor to that fragmentation, and the nose additionally filters and humidifies air before it reaches the lungs — a first line of defence that mouth breathing bypasses entirely. (Titan's summary of the research, with the papers cited.)

The practical version

Sleep seven to nine hours consistently. Prioritise it hard around vaccination, travel, and when everyone around you is ill. Let yourself sleep more when you are actually sick.

And if your hours are adequate but your sleep is fragmented, fix that — because the immune work happens during consolidated sleep, not during time in bed.

The bottom line

Under six hours a night raises your odds of developing a cold after controlled viral exposure, blunts T cell function and natural killer activity, and weakens antibody response to vaccination.

Sleep does not make you immune to anything. It moves the probabilities, measurably, in the direction you want.