Opportunistic Infections

These are infections that happen when your body's defenses are weak. Normally, your body fights off germs, but if it's not strong enough (like from an illness or medicine), germs that usually don't cause problems can make you sick.

Condition

What people with Opportunistic Infections report

Every report comes from a Lived member, sent anonymously.

Have you tried Bactrim (Trimethoprim-Sulfamethoxazole) for Opportunistic Infections?

NameHow it went

About Opportunistic Infections

What It Is

Opportunistic infections are infections that happen more often, or become more serious, when the immune system is weakened. The germs involved, which can be viruses, bacteria, fungi or parasites, often cause little or no illness in a person with healthy immunity. When the body's defenses are lowered, those same germs get an opening, or opportunity, to cause disease that can be severe and harder to treat. Opportunistic infection is an umbrella term rather than a single disease. Examples include pneumocystis pneumonia (a fungal lung infection), tuberculosis, cytomegalovirus (CMV, a common virus that can affect the eyes, lungs or gut), cryptococcal meningitis (a fungal infection of the membranes around the brain), thrush (a yeast infection of the mouth or throat) and toxoplasmosis (a parasite infection that can affect the brain). The term is most closely linked with HIV (human immunodeficiency virus), but it applies equally to people whose immunity is lowered by cancer treatment, an organ or bone marrow transplant, or medicines that suppress the immune system.

Causes & Risk Factors

The underlying cause is a weakened immune system. In HIV, the virus destroys CD4 cells, white blood cells that coordinate the body's response to infection. Without HIV treatment, the immune system gradually weakens, and the risk of these infections rises sharply once HIV progresses to AIDS (acquired immunodeficiency syndrome), its most advanced stage. Many opportunistic infections now occur because a person does not yet know they have HIV, is not receiving treatment, or is on treatment that is not controlling the virus. Other causes of lowered immunity carry similar risks. Chemotherapy can reduce neutrophils, the white blood cells that first respond to infection, and risk is highest at certain points in each treatment cycle. Transplant recipients take medicines that deliberately suppress the immune system to protect the new organ, and long-term, high-dose corticosteroids (steroid medicines such as prednisone) and other immune-modifying drugs have a similar effect. The germs themselves come from many places: air, food, water, soil, animals and other people. Some are already in the body in an inactive state. Tuberculosis, for example, can lie dormant for years and then become active as immunity weakens.

How It's Diagnosed

Diagnosis has two parts: identifying the infection and understanding why the immune system allowed it. Depending on symptoms, clinicians may test blood, urine, sputum (mucus coughed up from the lungs) or other body fluids, and may order a chest X-ray or other imaging. Sometimes a sample is taken directly from the affected area, for example by bronchoscopy, in which a thin tube is passed into the airways. Finding the specific germ matters because treatment depends on it. For people with HIV, a CD4 count is a blood test that shows how strong the immune system currently is. A healthy adult's count is generally 500 to 1,200 cells per cubic millimeter of blood. In someone with HIV, a count of 200 or below means the infection has reached AIDS and the risk of serious opportunistic infections is high. The count is read as a trend over several tests, since single results vary. An unusual infection can also be the first sign that someone has HIV, so testing for HIV is a routine part of the workup when no other reason for weakened immunity is known.

Treatment Options

Treatment targets the specific germ, using antibiotics, antifungals, antiviral medicines or antiparasitic drugs. Some infections can be treated with pills at home; others, especially serious lung or brain infections, need medicine through a vein in the hospital. Because some of these medicines can interact with HIV medicines and transplant drugs, a clinician chooses and adjusts them with the whole medication list and conditions such as kidney disease in mind. After an infection clears, some people continue the same or a different medicine for a time to keep it from coming back. Restoring immune strength is just as important. For people with HIV, taking HIV medicines (antiretroviral therapy) exactly as prescribed is the best protection: it keeps the virus from damaging the immune system, and infection treatment generally works better when HIV is controlled. For people on cancer or transplant treatment, the care team balances the dose of immune-suppressing therapy against infection risk. Prevention is a central part of care. People at high risk of pneumocystis pneumonia, including people with HIV whose CD4 count is below 200, transplant recipients and people on long-term high-dose steroids, are often prescribed a preventive medicine, such as the antibiotic combination trimethoprim-sulfamethoxazole (Bactrim). Vaccines, advice before travel and medicine to boost white blood cell counts during chemotherapy may also be part of the plan.

What to Expect

The outlook depends on the infection, how early it is treated and whether the immune system can recover. Many opportunistic infections can be cured or controlled, and for people with HIV, effective treatment has made them far less common than in earlier decades. Some infections, such as pneumocystis pneumonia, can become life-threatening without prompt care. With pneumocystis pneumonia, people whose weakened immunity is not caused by HIV often become sick faster and more severely, which is why breathing symptoms are worth acting on early. Day to day, living with a weakened immune system involves practical habits that lower exposure: washing hands well, especially before eating and after contact with human or animal waste; keeping catheter sites and small cuts clean; and avoiding people who are sick. Food and water safety matter too: avoiding undercooked eggs and meat, unpasteurized milk or juice, and raw sprouts, and not drinking untreated water from lakes or rivers. Follow-up visits and regular blood tests show whether immunity is improving and whether preventive medicines can eventually be stopped.

When to Seek Help

If you have a weakened immune system, tell your care team about any new or unusual symptoms, such as a lasting cough, mouth sores or diarrhea, rather than waiting to see whether they pass. If you have had an unusual or repeated infection without a known cause, ask about HIV testing. Contact your care team promptly if you develop a fever, cough or shortness of breath while your immunity is lowered by HIV, a transplant or immune-suppressing medicines. During cancer treatment, call your care team right away for a fever of 100.5°F (38°C) or higher, chills, or redness or swelling where a catheter enters the body: infections during chemotherapy can become life-threatening and need urgent attention. Check with the team before taking a fever reducer, since it can hide these signs. With weakened immunity, severe or rapidly worsening trouble breathing, new confusion, a seizure, or a severe headache with a stiff neck can mean a lung or brain infection that becomes life-threatening quickly: call 911 or get emergency care.

Questions to Ask Your Doctor

  1. 1.How weakened is my immune system right now, and which infections am I most at risk for?
  2. 2.Should I be taking a preventive medicine, and when could it be stopped?
  3. 3.Which symptoms should prompt a call to you, and which need same-day care?
  4. 4.Could any of my medicines interact with infection treatment?
  5. 5.Which vaccines, food precautions or travel steps make sense for me?

Last reviewed • Oct 2026

Educational content, not medical advice.