Immunity is often discussed as something you can boost on demand, usually with a single product or a short burst of effort. The research points somewhere less dramatic. Immune function responds to the ordinary conditions of daily life: how much you sleep, how often you move, what you eat, and whether you wash your hands.
Some of these habits have strong experimental support. Others rest on weaker evidence than the marketing around them suggests. Both are worth knowing, because the difference determines where your effort is best spent.
What follows is a look at eight everyday habits, with a note on how solid the evidence is for each.
Prioritize Consistent, Quality Sleep
Sleep has some of the clearest experimental evidence of anything on this list.
In a study published in the journal Sleep, researchers tracked the sleep of 164 healthy adults using wrist actigraphy for a week, then deliberately exposed them to a rhinovirus. Participants who slept fewer than five hours a night were roughly four and a half times more likely to develop a cold than those sleeping more than seven hours. Those sleeping five to six hours were about four times more likely.
The detail worth noticing is where the effect stopped. People sleeping between six and seven hours were at no significantly greater risk than those sleeping more than seven. That suggests a threshold rather than a smooth gradient, and the association held after accounting for age, body mass index, season, stress, and pre-existing antibody levels.
Sleep also appears to influence how well vaccines work. Studies on hepatitis B and mRNA vaccines have found that objectively measured sleep duration around the time of vaccination correlates with the antibody response produced. Interestingly, self-reported sleep duration did not show the same relationship, which suggests our estimates of our own sleep are less reliable than we think.
A reasonable target is seven hours or more, most nights. Consistency of timing appears to matter alongside total duration.
Eat a Colorful, Nutrient-Dense Diet
The evidence here is less about any single food and more about avoiding shortfalls.
Immune function depends on a wide range of nutrients. Vitamins A, C, D, E, B6, and B12 all play documented roles, as do zinc, iron, selenium, and copper. A deficiency in any of them can impair some aspect of the immune response, which is why varied eating tends to outperform focusing on one nutrient at a time.
Practical ways to widen the range:
A caution about expectations. No individual food has been shown to prevent infection. Claims about garlic, elderberry, and similar remedies rest largely on small studies with inconsistent results. Correcting a genuine nutritional gap has measurable effects; adding a superfood to an already adequate diet generally does not.
Stay Hydrated Throughout the Day
Hydration is worth including, but it deserves an honest framing.
The mechanism is reasonable. Your airways and digestive tract are lined with mucous membranes that form a physical barrier against pathogens. Adequate fluid helps keep those surfaces functioning and supports the movement of nutrients and immune cells through blood and lymph.
What is harder to find is direct evidence that increasing fluid intake in an already-hydrated person reduces infection rates. The stronger claim is the reverse: dehydration is unhelpful, and it is common enough during illness that it becomes a real problem in its own right.
Fluid needs vary considerably by body size, activity level, and climate. Thirst and urine color remain reasonable everyday guides for most healthy adults. Drinking substantially more than you need offers no established immune advantage.
Where hydration clearly matters is during illness itself, particularly with fever, vomiting, or diarrhea, when fluid losses rise sharply.
Move Your Body With Regular Exercise
Regular moderate activity has a reasonably consistent evidence base, along with a well-documented limit.
Work by exercise immunologist David Nieman found that near-daily moderate exercise sustained over 12 to 15 weeks reduced the number of days with upper respiratory symptoms by 25% to 50% compared with sedentary control groups. A separate trial in postmenopausal women found that moderate-intensity exercise reduced the incidence of colds relative to a stretching control, with the difference widening over the second half of the year-long study.
A Cochrane review found exercise reduced the severity of acute respiratory infection symptoms and shortened the number of symptom days by roughly two days. The review authors rated the certainty of that evidence as low to moderate, citing limitations in study design and inconsistency between trials.
The limit is worth respecting. Researchers describe the relationship as a J-shaped curve: moderate activity lowers infection risk relative to a sedentary baseline, while prolonged high-intensity training appears to raise it. Studies of marathon and ultramarathon runners have found elevated rates of upper respiratory infection in the weeks after competition.
Around 30 minutes of moderate activity on most days aligns with both public health guidance and the exercise immunology research.
Get Sunlight and Vitamin D Exposure
Vitamin D is one of the more contested topics in this area, and the disagreement is instructive.
A 2017 individual participant data meta-analysis published in The BMJ, led by Adrian Martineau, pooled data from randomized trials and found that vitamin D supplementation reduced the risk of acute respiratory infection. The benefit was concentrated in two groups: people who were very deficient at baseline, and people taking daily or weekly doses rather than large intermittent ones.
An editorial published alongside it disagreed about the significance. The authors noted that the absolute reduction amounted to roughly two percentage points, from 42% of participants experiencing an infection down to 40%, and that the definition of respiratory infection used was broad. They argued the findings were not sufficient to justify routine supplementation across the general population.
Both readings can be true. Correcting a real deficiency appears to help meaningfully. Supplementing someone already sufficient appears to help very little.
Sunlight remains the primary natural source, though production varies with latitude, season, skin tone, and sunscreen use. In northern latitudes during winter, skin synthesis drops substantially regardless of time spent outdoors. A blood test is the only reliable way to know your status.
Practice Good Hand Hygiene
Hand hygiene is unglamorous and unusually well supported.
According to the CDC, handwashing education in a community reduces respiratory illnesses such as colds by 16% to 21%. Soap and water protects roughly one in five young children from respiratory infections like pneumonia, and reduces school absenteeism from gastrointestinal illness by 29% to 57%.
The recommended technique is straightforward:
Sanitizer is a reasonable substitute but not a complete one. It does not remove all types of germs, and soap and water remains preferable when both are available.
Limit Alcohol and Avoid Smoking
These two are grouped because both work by removing a defense rather than adding one.
Smoking damages the cilia lining the airways, the tiny structures that sweep mucus and trapped particles out of the lungs. With that clearance impaired, pathogens linger longer. Smokers experience higher rates of respiratory infection, pneumonia, and influenza complications, and the effect extends to people exposed to secondhand smoke.
Heavy alcohol use impairs immune function through several routes, including reduced bacterial clearance in the lungs and disruption of the gut barrier. Research links chronic heavy drinking to increased susceptibility to pneumonia and slower recovery from infection.
Moderate drinking is less clear-cut, and the epidemiological literature on it remains genuinely contested. What is not contested is the effect of heavy or binge drinking, which measurably impairs the immune response.
Of everything on this list, not smoking likely has the largest single effect on respiratory infection risk.
Stay on Top of Key Vitamins and Minerals
This section requires the most caution, because supplement claims often outrun the evidence.
Where supplementation has reasonable support is in correcting a deficiency. Vitamin D is the clearest case, as described above. Zinc is essential for immune cell development, and low zinc status is associated with more frequent infection, though a 2024 Cochrane review concluded that evidence for zinc shortening colds is currently insufficient. Iron deficiency impairs immune function and remains common, particularly among women of reproductive age.
Where evidence is weaker is routine supplementation in people who are already sufficient. Reviews of vitamin C have consistently found it does not prevent colds in the general population, though it may modestly shorten duration.
For anyone with a genuine dietary gap, consistency matters more than dose. Nutrients like vitamin D and zinc work through steady daily intake over weeks, which is why formats that are easy to take daily tend to produce better real-world outcomes than higher-strength products taken sporadically.
The sensible order is to test before supplementing where possible, address confirmed gaps, and treat everything else as unproven. A blood test costs less than a year of guessing.
A Realistic View
None of these habits produce dramatic, immediate results, and any source promising otherwise is overstating what the research shows.
What the evidence does support is modest, cumulative benefit from sleeping adequately, moving regularly, washing your hands, not smoking, and correcting real nutritional deficiencies. The effects are individually small and collectively meaningful.
You will still catch things. Exposure is part of ordinary life. The realistic goal is fewer infections, milder ones, and a body better equipped to handle what it encounters.
