What Are Opportunistic Infections and Who’s at Risk?

Opportunistic infections are infections caused by bacteria, viruses, fungi, or parasites that normally don’t cause illness in healthy people but become dangerous when the immune system is weakened. Some are triggered by organisms already living harmlessly in your body. Others come from common germs that a healthy immune system would easily fight off. In either case, these pathogens “take the opportunity” created by a compromised immune defense.

How Opportunistic Infections Happen

Your immune system is a layered defense. Physical barriers like skin and mucous membranes block germs from entering. White blood cells, particularly a type called CD4 cells, coordinate the attack against anything that gets through. When any layer of this system breaks down, organisms that would normally be kept in check can multiply and cause serious illness.

Some opportunistic infections come from microbes that already live on your skin, in your gut, or in your lungs. Candida, a yeast found in most people’s mouths and digestive tracts, is a perfect example. In a healthy person, the immune system keeps it under control. In someone whose defenses are compromised, it can overgrow and spread to the throat, bloodstream, or other organs. Other opportunistic infections involve pathogens picked up from the environment, like certain fungi inhaled from soil, that a healthy immune system would neutralize before symptoms ever develop.

Opportunistic infections can also show up as unusually severe versions of common illnesses. A cold sore virus that causes a minor blister in a healthy person can lead to widespread, painful lesions or even organ damage in someone who is immunocompromised.

Who Is at Risk

The single largest risk factor is HIV/AIDS. When HIV destroys CD4 cells and the count drops below 200 cells per cubic millimeter of blood (healthy counts range from 500 to 1,500), the risk of opportunistic infections rises sharply. At very low counts, below 50, the most dangerous infections become likely.

But HIV is far from the only cause. Several other conditions and treatments significantly weaken immune defenses:

  • Organ transplant recipients take medications that deliberately suppress the immune system to prevent organ rejection. The type of infection they’re vulnerable to actually shifts over time, from bacterial and fungal infections in the early weeks to viral infections in the months that follow.
  • Cancer treatment damages the bone marrow’s ability to produce white blood cells. This drop in immune cells, called neutropenia, is one of the most significant infection risks during chemotherapy.
  • Autoimmune disease medications, particularly biologic drugs that block inflammation, increase the risk of serious infections by dampening specific parts of the immune response.
  • Hospitalized patients with severe burns, major trauma, or those on ventilators or catheters face increased risk because their physical barriers to infection are breached.

Common Types of Opportunistic Infections

These infections span every category of pathogen. The most frequently seen ones include:

Fungal infections are among the most characteristic. Pneumocystis pneumonia (PCP), caused by a fungus that healthy lungs easily handle, is one of the defining infections of advanced HIV. Candidiasis (oral thrush or systemic yeast infections), cryptococcal meningitis, and valley fever are other common fungal threats. A newer concern is Candida auris, a drug-resistant fungus that spreads easily in healthcare facilities. The CDC reported 6,304 clinical cases in 2024 alone, up from just 51 cases in 2016.

Bacterial infections include tuberculosis, which is the single most common opportunistic infection worldwide in people with HIV, affecting over 40% of patients in some studies. Mycobacterium avium complex (MAC), a related bacterial group, becomes a threat when CD4 counts fall below 50. Salmonella infections that would cause a few days of food poisoning in a healthy person can become invasive and life-threatening.

Viral infections often involve viruses already dormant in the body. Cytomegalovirus (CMV) can reactivate and damage the eyes, gut, or lungs. Herpes simplex virus can cause severe, widespread sores. Human herpesvirus 8 causes Kaposi’s sarcoma, a cancer of blood vessel walls that appears as purple skin lesions.

Parasitic infections like toxoplasmosis, caused by a parasite many people carry without knowing it, can reactivate and form brain lesions when the immune system fails. Cryptosporidiosis causes severe, prolonged diarrhea that a healthy body would resolve in days.

What Symptoms Look Like

Because opportunistic infections can affect virtually any organ, their symptoms are wide-ranging. In a large study of HIV patients with opportunistic infections, the most common complaints were fever (67%), digestive symptoms like nausea, diarrhea, and loss of appetite (55%), and respiratory problems like cough and shortness of breath (50%). About a third had neurological symptoms including headaches, confusion, or seizures. Unexplained weight loss, swollen lymph nodes, and persistent fatigue were also common.

The challenge is that these symptoms overlap with many other conditions. What sets opportunistic infections apart is the context: these symptoms occurring in someone with a known reason for immune weakness should raise immediate concern. A persistent cough in someone with untreated HIV, for example, carries very different implications than the same cough in a healthy person.

CD4 Thresholds and Infection Risk

For people living with HIV, specific CD4 cell counts serve as reliable markers for which infections become likely. These thresholds guide both monitoring and preventive treatment:

  • Below 200 cells/mm³: Risk of Pneumocystis pneumonia rises significantly. This is also the threshold that defines AIDS.
  • Below 100 cells/mm³: Toxoplasmosis becomes a serious threat, particularly in people who carry the parasite (detectable through a blood antibody test).
  • Below 50 cells/mm³: MAC disease and CMV retinitis, which can cause blindness, become likely without preventive measures.

People with these low counts are typically started on preventive medications to keep these specific infections from developing in the first place.

How Antiretroviral Therapy Changed the Landscape

The introduction of effective HIV treatment transformed opportunistic infections from near-certainties into preventable events. A large meta-analysis found that antiretroviral therapy reduced the incidence of most opportunistic infections by 57% to 91% during the first year of treatment alone. The effect was most dramatic for oral candidiasis, PCP, and toxoplasmosis. In 2013 alone, antiretroviral therapy was estimated to have prevented roughly one million cases of opportunistic infections worldwide.

Tuberculosis proved more stubborn. While treatment did reduce TB rates, they remained higher than for other infections even after a year on therapy: about 3.5% of patients still developed pulmonary TB in that period, compared to less than 2% for nearly every other opportunistic infection. After the first year, TB risk continued to decline but never dropped as steeply as other infections.

The takeaway is straightforward. For people with HIV, starting and staying on treatment is the single most effective way to prevent opportunistic infections. As CD4 counts recover above 200, the risk drops substantially, and preventive medications for specific infections can often be stopped.

Opportunistic Infections in Hospital Settings

Opportunistic infections were long assumed to come from pathogens already living inside the patient, reactivating when the immune system faltered. Newer research has challenged that assumption. Molecular testing has shown that some opportunistic pathogens can spread between patients in healthcare settings, particularly between immunocompromised individuals. Airborne transmission has been documented for certain fungal infections, and case clusters in hospitals have been traced to shared environmental sources.

This is especially relevant for drug-resistant organisms like Candida auris, which persists on surfaces and medical equipment and spreads readily in intensive care units and long-term care facilities. It primarily affects people who are already critically ill, and its resistance to multiple antifungal drugs makes treatment difficult. Healthcare facilities now implement specific screening and isolation protocols to contain its spread.

Prevention Beyond HIV Treatment

For anyone with a compromised immune system, prevention involves a combination of strategies. People with very low CD4 counts or those on heavy immunosuppression after organ transplants are often given preventive antimicrobial medications targeted at the infections they’re most vulnerable to. As immune function improves, whether through HIV treatment or reduced immunosuppression after a transplant stabilizes, these preventive medications can typically be tapered.

Practical measures matter too. Avoiding undercooked meat reduces exposure to Toxoplasma. Staying away from areas with heavy soil disruption lowers the risk of inhaling fungal spores. Good hand hygiene and avoiding contact with people who are actively sick provide a basic but meaningful layer of protection. For transplant recipients and cancer patients, healthcare teams typically provide specific guidance tailored to the type and duration of immune suppression involved.