Preventing sickness comes down to a handful of habits that strengthen your body’s defenses and limit your exposure to the viruses and bacteria that cause common infections. None of them are complicated, but the details matter more than most people realize. Here’s what actually works, based on what the science supports.
Wash Your Hands the Right Way
Handwashing is the single most effective thing you can do to avoid getting sick. The key detail most people get wrong is time: you need to scrub with soap and water for at least 15 to 20 seconds, using enough friction to cover all surfaces of your hands and fingers. A quick rinse under the faucet does almost nothing. Soap works by breaking apart the outer layer of viruses and lifting bacteria off your skin, but it needs those 15 to 20 seconds of rubbing to do its job.
The moments that matter most are before eating, after using the bathroom, after blowing your nose, and after being in public spaces where you’ve touched shared surfaces like doorknobs, elevator buttons, or shopping carts. Common cold viruses like rhinovirus can transfer from a contaminated surface to your fingertips up to 18 hours after that surface was touched. That’s a wide window for picking something up on your hands and then transferring it to your eyes, nose, or mouth.
Hand sanitizer with at least 60% alcohol is a reasonable backup when soap and water aren’t available, and products in the 60 to 95% alcohol range are most effective. But sanitizer has real blind spots. It does not reliably kill norovirus (the most common cause of stomach bugs), Clostridium difficile, or Cryptosporidium. For those pathogens, soap and water is the only option that works well.
Sleep Is Your Immune System’s Foundation
People who habitually sleep five hours or less per night are significantly more vulnerable to respiratory infections compared to those sleeping seven to eight hours. This isn’t just a correlation. When researchers deprive people of sleep in controlled settings, measurable immune changes show up quickly: the body shifts away from producing the types of immune signals that fight off viruses and bacteria and toward a pattern associated with weaker defense. Specifically, sleep deprivation reduces the activity of T-cells, which are the immune system’s frontline soldiers against infected cells.
Short sleep also suppresses the production of key signaling molecules that your immune cells use to coordinate their response to a new threat. Think of it like your immune system trying to fight an invasion with the communication lines cut. This doesn’t just affect colds and flu. People with chronic sleep disorders show a 23% higher risk of developing shingles, a painful reactivation of the chickenpox virus that the immune system normally keeps dormant.
If you’re serious about not getting sick, protecting your sleep is non-negotiable. Seven to eight hours is the target for most adults.
Exercise Helps, but Intensity Matters
Regular moderate exercise is one of the most reliable ways to reduce how often you get sick. People who do aerobic exercise five or more days per week for at least 20 minutes per session experience 43% fewer days with upper respiratory infections compared to people who are mostly sedentary. That’s a massive difference from something as simple as a brisk walk or a bike ride.
The mechanism is straightforward: each bout of moderate exercise temporarily boosts the circulation of immune cells, including natural killer cells and cytotoxic T-cells, that patrol your body for pathogens. Over time, these repeated surges add up to better baseline immune surveillance. The effect works best when exercise stays under about 60 minutes at moderate to vigorous intensity.
The catch is that extreme endurance exercise can temporarily work against you. Marathon runners and athletes doing prolonged, intense training sessions show suppressed immune function in the one to two weeks after heavy exertion, with a two to six times higher risk of upper respiratory infections during that window. The relationship between exercise and immunity follows a J-shaped curve: moderate activity protects you, but extreme output temporarily leaves you more exposed.
Feed Your Gut to Support Your Immune System
A large portion of your immune system lives in your gut, and the bacteria that thrive there play a direct role in how well it functions. One of the most important things those bacteria do is ferment dietary fiber into compounds called short-chain fatty acids. These molecules act as chemical messengers that train your immune system to respond appropriately, ramping up when there’s a real threat and dialing back to prevent unnecessary inflammation.
Short-chain fatty acids promote the development of regulatory T-cells, a specialized type of immune cell that keeps inflammation in check. They also suppress the production of inflammatory molecules like TNF-alpha and IL-6, which, when chronically elevated, wear down your body’s ability to fight new infections. In practical terms, this means that eating enough fiber from vegetables, fruits, legumes, and whole grains doesn’t just help digestion. It actively calibrates your immune response.
Most adults fall well short of the recommended 25 to 30 grams of fiber per day. Increasing your intake gradually is one of the simplest dietary changes with the broadest immune benefits.
Get Vaccinated Against What You Can
Vaccines remain the most targeted tool for preventing specific illnesses. For the 2024-2025 flu season, CDC data from multiple surveillance networks show the seasonal flu vaccine reduced outpatient influenza illness by roughly 42 to 56% in adults and 59 to 60% in children. For preventing hospitalization, the numbers were even more striking in children: the vaccine reduced flu-related hospitalizations by 63 to 78%.
No vaccine is 100% effective, and flu vaccine performance varies by season depending on how well the vaccine matches circulating strains. But even in years with moderate efficacy, vaccination substantially reduces the severity of illness if you do get infected. Staying current on recommended vaccines, including flu, COVID-19 boosters, and others appropriate for your age, eliminates a category of preventable illness that hand hygiene and lifestyle habits alone cannot address.
Improve the Air You Breathe Indoors
Many respiratory viruses spread through tiny airborne particles that linger in poorly ventilated indoor spaces. HEPA filters capture at least 99.97% of particles down to 0.3 microns in size, which includes the droplets and aerosols that carry respiratory viruses. Running a portable HEPA air purifier in rooms where you spend the most time, especially during cold and flu season, reduces the concentration of viral particles in the air you’re breathing.
Opening windows for even 10 to 15 minutes when weather permits also makes a meaningful difference by diluting indoor air with fresh outdoor air. In winter, when people spend more time in sealed, heated rooms, viral transmission spikes partly because ventilation drops. Anything you can do to increase air exchange or filtration works in your favor.
Break the Face-Touching Habit
Your eyes, nose, and mouth are the entry points for most respiratory and gastrointestinal viruses. Studies consistently find that people touch their faces dozens of times per hour without realizing it. Every touch is a potential transfer of whatever pathogen is sitting on your fingertips. This is the link between contaminated surfaces and actual infection: viruses don’t jump from a doorknob into your lungs. They ride your fingers to your mucous membranes.
Building awareness of this habit is surprisingly effective. Simply being conscious of how often you touch your face, especially in public settings, can cut down the frequency. Keeping your hands busy, wearing glasses as a partial physical barrier to eye-touching, and carrying tissues for nose itches are small practical strategies that interrupt the chain of transmission.
Vitamin D Is Not a Magic Shield
Vitamin D supplementation has been widely promoted as a way to prevent respiratory infections, but the most current evidence is less convincing than earlier studies suggested. A large meta-analysis covering over 61,000 participants across 40 studies found that vitamin D supplementation did not produce a statistically significant reduction in overall respiratory infection risk. The point estimate showed a modest 6% reduction, but the confidence interval crossed the threshold of no effect, meaning the benefit could plausibly be zero.
This doesn’t mean vitamin D is irrelevant to immune function. Severe deficiency does impair immunity, and correcting a true deficiency is worthwhile. But for people with adequate vitamin D levels, taking extra supplements as an illness prevention strategy is unlikely to make a noticeable difference. Your effort is better spent on sleep, exercise, and hand hygiene, which have far stronger and more consistent evidence behind them.