AIDS-Related Opportunistic Infections

These are infections that people with AIDS are more likely to get because their immune system is weak. Common examples include pneumonia caused by a fungus, skin cancers, and infections caused by viruses or parasites. These infections can be serious and need treatment.

Condition

What people with AIDS-Related Opportunistic Infections report

Every report comes from a Lived member, sent anonymously.

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

NameHow it went

About AIDS-Related Opportunistic Infections

What It Is

AIDS-related opportunistic infections are infections that take hold when HIV (human immunodeficiency virus) has badly weakened the immune system. The germs behind them (bacteria, viruses, fungi and parasites) are often ones a healthy immune system keeps in check, or ones that cause only mild illness in most people. In someone with advanced HIV, they can become serious and sometimes life-threatening, affecting the lungs, brain, eyes, gut or the whole body. Common examples include Pneumocystis pneumonia (often called PCP), a fungal lung infection; tuberculosis (TB); cryptococcal meningitis, a fungal infection of the lining around the brain; cytomegalovirus (CMV) infection of the retina at the back of the eye; toxoplasmosis and cryptosporidiosis, both parasitic infections; and Mycobacterium avium complex (MAC), a bacterial infection related to TB. Many of these, along with certain cancers such as Kaposi sarcoma and lymphoma, are called AIDS-defining conditions: having one means HIV has reached AIDS, its most advanced stage.

Causes & Risk Factors

The underlying cause is the damage untreated HIV does to the immune system. HIV destroys CD4 cells, a type of white blood cell that helps coordinate the body's defenses against infection. As their number falls, the body has a harder time fighting germs it meets for the first time, and old, inactive infections can reawaken. Latent TB, for example, is more likely to become active TB disease in someone with HIV. The risk becomes high once the CD4 count falls to 200 or below. Because HIV medicines are widely used, these infections are less common in the United States than they once were. They still occur, typically in one of three situations: a person doesn't know they have HIV, so an infection is the first sign; they know but aren't receiving HIV treatment; or their treatment isn't controlling the virus. The germs themselves spread in different ways, including through the air, contaminated food or water, body fluids and contact with feces. Exposure matters, but the deciding factor is how well the immune system is working.

How It's Diagnosed

Diagnosis has two parts: identifying the infection and understanding the state of the immune system behind it. Because each opportunistic infection behaves differently, testing follows the symptoms. A cough and breathlessness may lead to a chest X-ray, a sample of sputum (mucus coughed up from the lungs) or a bronchoscopy, in which a thin tube collects fluid from the airways. Headache and fever may call for a lumbar puncture (spinal tap) to test the fluid around the brain and spinal cord. Vision changes call for a dilated eye exam. Blood tests, cultures and sometimes a tissue biopsy help confirm which germ is responsible. Anyone found to have one of these infections who hasn't been tested for HIV should be, since an opportunistic infection is sometimes the first sign of HIV. For people with HIV, two blood tests frame the picture. The CD4 count measures how many of these immune cells are in a cubic millimeter of blood: healthy adults usually have about 500 to 1,200, and a count of 200 or below means HIV has progressed to AIDS and the risk of life-threatening infections is high. The viral load test measures how much HIV is in the blood and shows whether HIV medicines are working. All people with HIV should also be tested for TB, because treating inactive TB lowers the chance that it becomes active disease.

Treatment Options

Treatment works on two fronts at once. The infection itself is treated with medicine aimed at the specific germ: antibiotics for bacterial infections such as TB (and for PCP, which is usually treated with the antibiotic combination sulfamethoxazole and trimethoprim), antifungals for cryptococcal meningitis, antivirals for CMV, and antiparasitic drugs for infections such as toxoplasmosis. Serious infections may start with medicine given through a vein; cryptococcal meningitis, for example, is most often treated with intravenous amphotericin B, an antifungal. People with moderate to severe PCP are often given a short course of corticosteroids alongside the anti-infection medicine, which lowers the risk of death. The second front is antiretroviral therapy (ART), the daily HIV medicines that stop the virus from multiplying. ART protects the immune system and usually lets the CD4 count rise, which makes it the best long-term protection against new opportunistic infections. Infection treatments also tend to work better when HIV is controlled. Some infection medicines and HIV medicines interact, so the care team chooses them together. Prevention is part of treatment, too. People with a CD4 count below 200 are given a preventive medicine against PCP, such as the antibiotic sulfamethoxazole and trimethoprim (Bactrim). After an infection has been treated, a person may need to keep taking the same or a different medicine to stop it from coming back. Everyday steps lower exposure as well: vaccines the care team recommends, washing hands after contact with feces, avoiding undercooked eggs, unpasteurized dairy or juice and untreated lake or river water, and talking with the care team before travel.

What to Expect

How things go depends heavily on which infection is involved, how early it is treated and how well HIV can be brought under control. Some infections, such as PCP in people with AIDS, often develop slowly over days to weeks. Cryptococcal meningitis can become life-threatening quickly. A serious infection may mean a hospital stay and a long course of medicine. Some effects can last: untreated CMV retinitis, for example, can lead to blindness. The broader outlook has changed a great deal. ART can make HIV a manageable long-term condition, and taken consistently it usually rebuilds the CD4 count, which lowers the risk of further infections. As the immune system recovers after ART begins, though, it can sometimes react strongly to an infection already in the body and temporarily make symptoms worse, even while treatment is appropriate. This is called immune reconstitution inflammatory syndrome (IRIS), and it is most commonly seen with TB and cryptococcal meningitis. It needs medical assessment, but it does not by itself mean HIV treatment is failing. Ongoing care means regular CD4 and viral load blood tests, taking HIV medicines every day, and keeping up with any preventive medicines for as long as the care team advises.

When to Seek Help

If you have HIV and are not on treatment, or have stopped it, arrange to see an HIV care provider; starting or restarting ART is the main way to lower the risk of these infections. Anyone with an unexplained serious infection, or with ongoing fevers, weight loss or long-lasting diarrhea, who has never had an HIV test should ask for one. For people with HIV, especially with a low CD4 count, contact the care team promptly about a new cough, fever or mild shortness of breath, which can be early signs of PCP or TB, about a new or lasting headache, which can be an early sign of cryptococcal meningitis, and about symptoms that get worse after starting HIV medicines. New floaters, blind spots or blurred vision need an eye exam right away, since CMV retinitis can damage sight. Severe trouble breathing or breathlessness at rest can mean a lung infection such as PCP has become dangerous. A bad headache with fever, a stiff neck, confusion or hallucinations can signal meningitis, which can quickly become life-threatening. For either, call 911 or go to an emergency department.

Questions to Ask Your Doctor

  1. 1.What do my CD4 count and viral load mean for my risk of these infections right now?
  2. 2.Which preventive medicines or vaccines do I need, and when might I be able to stop them?
  3. 3.How will my infection treatment and my HIV medicines be coordinated, and are there interactions to watch for?
  4. 4.Which symptoms should make me call you, and which mean I should go straight to the emergency department?
  5. 5.Are there foods, water sources or travel plans I should be careful about?

Last reviewed • Oct 2026

Educational content, not medical advice.