Diet tips to help support a healthy immune system
Nutrition and food have a direct impact on a person’s immune system. Here’s what to know.
In this article:
How the immune system works
The immune system is a complex system of cells, tissues and organs that work together to fight off infections and certain diseases. It’s responsible for detecting and fighting off germs that make a person sick. The immune system also works to heal the body from an infection or injury, and it even helps fight off certain diseases like cancer.
Infections occur when germs such as bacteria, viruses, fungi, or parasites multiply in the body, triggering illnesses like the common cold or the flu. The immune system works by noticing the difference between these unhealthy cells and a person’s normal cells. Unhealthy cells can be caused by infections or other things like a sunburn or cancer.
There are two major parts of the immune system: the innate immune system and the adaptive immune system. The innate immune system, which includes the skin, acts as a protective barrier against any germ, even if the body has never encountered the germ before. The adaptive immune system learns to recognize certain organisms and helps fight them off when the body encounter them again. This is how vaccines work.
When the immune system isn't working properly, this increases the risk of infection. People can also get sick when the immune system is overactive (which can cause allergic diseases or severe allergic reactions) or when the immune system turns against itself and starts attacking healthy tissues (which can cause autoimmune disease).
Parts of the immune system
How does the body detect bad cells? It requires good partnership from the key players that make up the immune system:
- The skin is a person’s first line of defense against germs that can hurt them. It acts as a barrier, keeping germs out of the body.
- White blood cells are the warriors responsible for attacking harmful germs. There are five main categories of white blood cells, and they have different jobs, including killing germs, producing antibodies, cleaning up damaged cells and communicating with other white blood cells. White blood cells communicate with each other using special chemical messengers called cytokines, which are also an important part of the immune system.
- Antibodies are proteins that circulate in the bloodstream, identifying and helping to eliminate harmful substances.
- The lymphatic system includes organs and tissues like the tonsils, appendix and spleen, as well as the bone marrow and lymph nodes. It is responsible for moving lymph, a fluid that carries immune cells, through the body. The bone marrow is where white blood cells are made.
- The mucosa is the sticky membrane that lines the gut, as well as the respiratory and reproductive systems. It is the body's largest protective barrier against germs trying to enter the body.
How diet may impact the immune system
Eating a well-rounded diet can help support the immune system. Nutrition plays an important role in supporting a person’s total health, including how their body fights infection. Eating processed foods with poor nutritional value or not eating enough healthy foods could hurt the immune system. This may make people more prone to getting infections and certain diseases.
Nutrients to help support the immune system
Healthy foods fuel the cells that respond to threats in the body. There are several key vitamins and minerals that may help strengthen the immune system. Eating a balanced diet rich in fruits and vegetables and low on processed foods can help keep the immune system working at its best.
Vitamin A
Vitamin A is important for keeping the immune system healthy, and it’s essential to cell development. It’s also important for keeping the skin and linings of the intestines their healthiest. Some foods that contain vitamin A include:
- Apricots, mangos and cantaloupe
- Beef liver
- Broccoli
- Certain dairy products such as whole milk
- Eggs
- Green, leafy vegetables such as spinach, kale and romaine lettuce
- Orange vegetables such as carrots, pumpkin and sweet potatoes
- Salmon
Vitamin C
Vitamin C helps heal wounds and maintain healthy skin. As an antioxidant, it can also help protect against cell damage. Some foods that contain vitamin C include:
- Bell peppers
- Broccoli and kale
- Brussel sprouts
- Citrus fruits
- Potatoes
- Strawberries, papaya and cantaloupe
- Tomatoes
Vitamin D
Vitamin D helps the body build strong bones by helping to absorb calcium. It also helps the immune system function normally, which could help prevent infection and certain autoimmune diseases. People can get vitamin D by absorbing sunlight through the skin or by eating certain foods like:
- Beef liver
- Certain mushrooms if grown under certain conditions
- Egg yolks
- Fatty fish like salmon and tuna
- Fortified dairy products, including cow's milk and fortified milk alternatives such as soy, almond and oat milk
Vitamin E
Vitamin E is an antioxidant that is also involved with immune function. Foods that contain vitamin E include:
- Broccoli
- Leafy greens such as spinach
- Nuts and seeds such as sunflower seeds, almonds, peanuts and hazelnuts
- Vegetable oils such as sunflower, corn or soybean
- Wheat germ
Iron
Iron is essential for helping blood cells deliver oxygen all over the body. Foods that contain iron include:
- Beans and lentils
- Beef, lamb, chicken and turkey
- Broccoli and green peas
- Dark chocolate and raisins
- Fortified grains and breakfast cereal
- Sardines, tuna and oysters
- Tofu
Zinc
Zinc, another antioxidant, helps with wound healing and cell growth. Foods that provide sources of zinc include:
- Beef, pork and turkey
- Greek yogurt
- Lentils
- Oysters, shrimp and crab
- Pumpkin seeds
Aside from Vitamin D, the body can’t make these other essential vitamins and minerals on its own. Most people get their essential vitamins and minerals through food. If someone’s deficient in a vitamin or mineral, either due to lifestyle or health conditions, they may need to take a supplement. Deciding whether to take a supplement and how much to take is something that should be determined by a health care provider.
Key takeaways
The immune system is designed to keep people healthy. It includes an interconnected network of organs, tissues and cells that work together to combat germs. The good news? Eating a healthy diet is one of the ways to support the immune system. Experts say most vitamins and minerals that are needed to support a healthier immune system can be found in food. However, some people are missing some key nutrients due to their diets or medical conditions. If this is the case, a person should talk to a health care provider about their options. Always talk to a health care provider before starting or stopping any vitamin or supplement.
Frequently asked questions (FAQs)
The immune system is a network of organs, tissues and cells that helps the body defend against infections and certain diseases.
Eating a healthy, varied diet rich in fruits and vegetables and low in processed foods helps support the immune system.
Not everyone needs to take dietary supplements. Most people can get the vitamins and minerals they need from eating a balanced diet. People who are lacking in certain essential nutrients, either due to a medical issue or lifestyle choice, might benefit from taking a supplement. It's always best to consult with a health care provider before starting any supplements.
Practicing healthy habits — like eating a balanced diet, getting enough rest and exercising — can help a person support a healthy immune system.
This content is for informational purposes only and is not intended to replace professional medical advice, diagnosis or treatment. Consult your health care provider if you have any questions about medications, vitamins or supplements you may be considering or changes to your wellness or health care routines.
FOR VITAMINS AND SUPPLEMENTS: Consult your health care provider before taking any vitamins or supplements. These statements have not been evaluated by the Food and Drug Administration. These products are not intended to diagnose, treat, cure or prevent any disease.
-
FOR THE BODY'S BUILT-IN DEFENSE SYSTEM SOURCE: MedlinePlus. Immune system and disorders. Updated December 26, 2023.
-
FOR EATING A HEALTHY DIET SOURCE: Centers for Disease Control and Prevention. Healthy habits: Enhancing immunity. Updated December 19, 2023.
-
FOR COMPLEX SYSTEM OF CELLS, TISSUES AND ORGANS SOURCE: MedlinePlus. Immune system and disorders. Updated December 26, 2023.
-
FOR HEAL THE BODY FROM AN INFECTION OR INJURY SOURCE: Cleveland Clinic. Immune system. Updated October 20, 2023.
-
FOR INFECTIONS ARE CAUSED SOURCE: MedlinePlus. Immune system and disorders. Updated December 26, 2023.
-
FOR UNHEALTHY CELLS CAN BE CAUSED BY INFECTIONS SOURCE: National Institute of Allergy and Infectious Diseases. Overview of the immune system. Updated December 30, 2013.
-
FOR THE INNATE IMMUNE SYSTEM AND THE ADAPTIVE IMMUNE SYSTEM SOURCE: MedlinePlus. Immune response. Updated March 31, 2024.
-
FOR WHEN THE IMMUNE SYSTEM ISN’T WORKING PROPERLY SOURCE: Disorders of the immune system. Accessed October 2, 2025.
-
FOR THE SKIN IS A PERSON’S FIRST LINE OF DEFENSE AGAINST GERMS SOURCE: Centers for Disease Control and Prevention. Your immune system and diabetes. Published May 15, 2024.
-
FOR WHITE BLOOD CELLS ARE THE WARRIORS RESPONSIBLE FOR ATTACKING HARMFUL GERMS SOURCE: Cleveland Clinic. White blood cells. Updated July 23, 2021.
-
FOR SPECIAL CHEMICAL MESSENGERS CALLED CYTOKINES SOURCE: Cleveland Clinic. Cytokines. Updated January 3, 2023.
-
FOR ANTIBODIES ARE PROTEINS THAT CIRCULATE IN THE BLOODSTREAM SOURCE: National Human Genome Research Institute. Antibody. Updated August 14, 2025.
-
FOR LYMPHATIC SYSTEM INCLUDES ORGANS AND TISSUES SOURCE: Nemours Kids Health. The lymphatic system. Updated February 2021.
-
FOR MUCOSA IS THE STICKY MEMBRANE SOURCE: Cleveland Clinic. Mucosa. Updated July 24, 2025.
-
FOR EATING PROCESSED FOODS WITH POOR NUTRITIONAL VALUE OR NOT EATING ENOUGH HEALTHY FOODS SOURCE: Munteanu C, Schwartz B. The relationship between nutrition and the immune system. Frontiers in Nutrition. Published December 8, 2022.
-
FOR HEALTHY FOODS FUEL THE CELLS THAT RESPOND TO THREATS IN THE BODY SOURCE: Munteanu C, Schwartz B. The relationship between nutrition and the immune system. Frontiers in Nutrition. Published December 8, 2022.
-
FOR VITAMINS AND MINERALS THAT MAY STRENGTHEN THE IMMUNE SYSTEM SOURCE: Cleveland Clinic. 8 vitamins and minerals you need for a healthy immune system. Published December 4, 2020.
-
FOR SOME FOODS THAT CONTAIN VITAMIN A SOURCE: National Institutes of Health. Vitamin A and carotenoids. Updated March 10, 2025.
-
FOR VITAMIN C HELPS HEAL WOUNDS AND MAINTAIN HEALTHY SKIN SOURCE: Moore M. EatRight.org. How vitamin C supports a healthy immune system. Academy of Nutrition and Dietetics. Updated March 21, 2025.
-
FOR HELP PROTECT AGAINST CELL DAMAGE SOURCE: MedlinePlus. Antioxidants. Updated December 26, 2017.
-
FOR SOME FOODS THAT CONTAIN VITAMIN C SOURCE 1: Academy of Nutrition and Dietetics. How vitamin C supports a healthy immune system. Updated March 21, 2025.
-
FOR FOODS THAT CONTAIN VITAMIN C SOURCE 2: Cleveland Clinic. 17 foods that are high in vitamin C. Published April 10, 2023.
-
FOR VITAMIN D HELPS THE BODY BUILD STRONG BONES SOURCE: Aranow C. Vitamin D and the immune system. Journal of Investigative Medicine. 2011;59(6):881-886.
-
FOR GET VITAMIN D BY ABSORBING SUNLIGHT THROUGH THE SKIN SOURCE: MedlinePlus. Vitamin D. Updated May 10, 2024.
-
FOR EATING CERTAIN FOODS LIKE SOURCE: National Institutes of Health. Vitamin D. Updated June 27, 2025.
-
FOR VITAMIN E IS AN ANTIOXIDANT THAT IS ALSO INVOLVED WITH IMMUNE FUNCTION SOURCE: National Institutes of Health. Vitamin E. Updated March 26, 2021.
-
FOR IRON IS ESSENTIAL FOR HELPING BLOOD CELLS DELIVER OXYGEN SOURCE: Cleveland Clinic. What iron does for your body. Published July 25, 2024.
-
FOR FOODS THAT CONTAIN IRON SOURCE: National Institutes of Health. Iron. Updated September 4, 2025.
-
FOR ZINC, ANOTHER ANTIOXIDANT, HELPS WITH WOUND HEALING AND CELL GROWTH SOURCE: MedlinePlus. Zinc in diet. Updated January 19, 2023.
-
FOR FOODS THAT PROVIDE SOURCES OF ZINC INCLUDE SOURCE: National Institutes of Health. Zinc. Updated September 28, 2022.
-
FOR BODY CANNOT MAKE THESE ESSENTIAL VITAMINS AND MINERALS ON ITS OWN SOURCE: MedlinePlus. Vitamins. Updated July 17, 2024.
-
FOR MOST PEOPLE GET THEIR ESSENTIAL VITAMINS AND MINERALS THROUGH FOOD SOURCE: MedlinePlus. Vitamins. Updated July 17, 2024.
-
FOR DECIDING WHETHER TO TAKE A SUPPLEMENT SOURCE: National Institutes of Health. Do you need dietary supplements? Published December 2021.
-
FOR FOODS A PERSON EATS SOURCE: MedlinePlus. Vitamins. Updated July 17, 2024.
-
FOR EATING A BALANCED DIET, GETTING ENOUGH REST AND EXERCISING SOURCE: Centers for Disease Control and Prevention. Healthy habits: Enhancing immunity. Published December 19, 2023.