HIV-related opportunistic infections
Opportunistic infections are serious infections that take advantage of an immune system weakened by untreated HIV, such as pneumocystis pneumonia, toxoplasmosis and cryptococcal meningitis.

Overview
Opportunistic infections are infections that happen more often, or are much more severe, in people whose immune system is weak. In people with HIV (human immunodeficiency virus), they are called HIV-related or AIDS-related opportunistic infections. The germs that cause them, such as certain fungi, parasites, bacteria and viruses, are often around us all the time. A healthy immune system keeps them in check. When HIV has badly damaged the immune system, these germs get their "opportunity" to cause illness.
HIV attacks a type of white blood cell called a CD4 cell. The number of CD4 cells in a small amount of blood (the CD4 count) shows how strong your immune system is. Most serious opportunistic infections happen when the CD4 count falls below about 200 cells per cubic millimetre of blood (written as 200 cells/mm³ or 200 cells/µL). Some of these infections are called AIDS-defining illnesses, because having one means HIV has reached its most advanced stage, AIDS (acquired immunodeficiency syndrome).
The good news is that these infections are now much less common than they used to be. HIV medicines, called antiretroviral therapy (ART), let the immune system recover. Today, opportunistic infections mostly affect people who do not yet know they have HIV, or who are not able to take HIV treatment regularly. Most of them can be treated, and many can be prevented.
Common types
Many different infections can take advantage of a weak immune system. Some of the most important are:
- Pneumocystis pneumonia (PCP): a lung infection caused by a fungus. It causes a dry cough, fever and shortness of breath that gets worse over days or weeks.
- Tuberculosis (TB): a bacterial infection, usually of the lungs, that can spread to other parts of the body. People with HIV are much more likely to get active TB, and it can happen even when the CD4 count is not very low.
- Candidiasis (thrush): a yeast infection of the mouth, throat or food pipe (esophagus). It can cause white patches in the mouth and pain when swallowing.
- Cryptococcal meningitis: a fungal infection of the lining of the brain and spinal cord. It causes headache, fever and confusion.
- Toxoplasmosis: a parasite infection that can cause swelling in the brain, leading to headache, weakness on one side of the body, confusion or seizures.
- Cytomegalovirus (CMV): a common virus that can damage the back of the eye (the retina) and cause blurry vision or blindness. It can also affect the gut.
- Mycobacterium avium complex (MAC): a bacterial infection that can spread through the body, causing fever, night sweats, weight loss and diarrhea.
- Herpes simplex and shingles: viral infections that can cause painful, long-lasting sores or rashes.
- Progressive multifocal leukoencephalopathy (PML): a rare brain infection caused by the JC virus that slowly causes weakness, clumsiness, trouble speaking or changes in thinking.
- Cryptosporidiosis and microsporidiosis: gut infections from tiny parasites that cause long-lasting, watery diarrhea.
Some cancers are also linked to a weak immune system and are often discussed together with these infections. Examples are Kaposi sarcoma, which causes purple or brown patches on the skin or inside the body, and some types of lymphoma.
Symptoms
Symptoms depend on which infection you have and where it is in the body. Some signs that are common to many opportunistic infections include:
- Fever that lasts more than a few days, or keeps coming back
- Drenching night sweats
- Losing weight without trying
- A cough that does not go away, or getting short of breath
- Diarrhea that lasts for weeks
- White patches in the mouth, or pain when swallowing
- A bad headache, stiff neck, confusion or seizures
- Changes in vision, such as blurring, floaters or blind spots
- New skin sores, rashes or dark patches
- Feeling very tired and weak
These symptoms can also have other causes. If you have HIV and notice any of them, it is important to tell your HIV care team quickly.
Causes and risk factors
Opportunistic infections are caused by germs that a healthy body can usually control. Some of them have been sleeping quietly in your body for years and "wake up" when the immune system weakens, such as TB, toxoplasmosis and CMV. Others come from the environment, such as fungi in soil or bird droppings, or parasites in water or undercooked food.
Your risk is higher if:
- You have HIV and are not taking HIV medicines, or you do not know you have HIV
- Your CD4 count is low, especially below 200
- Your viral load (the amount of HIV in your blood) is high
- You have missed doses of HIV medicine, so the virus is not controlled
- You have been exposed to TB, or you live in or have travelled to areas where certain infections are common
Diagnosis
If you have HIV and new symptoms, your health care team will want to find the cause quickly. They will ask about your symptoms, your HIV treatment and your recent CD4 count and viral load. Depending on your symptoms, tests may include:
- Blood tests, including a CD4 count, viral load, blood cultures (to look for germs growing in the blood) and tests for fungal or viral infections
- Chest X-ray or CT scan to look at the lungs
- Sputum tests (testing phlegm you cough up) for TB or PCP
- Brain scans (CT or MRI) if you have headache, confusion or weakness
- Lumbar puncture (spinal tap), where a small amount of fluid is taken from the lower back to check for meningitis
- Stool tests for parasites if you have diarrhea
- An eye exam by an eye specialist to check the retina
- Sometimes a biopsy, where a small sample of tissue is taken to look at under a microscope
Sometimes an opportunistic infection is the first sign that a person has HIV. If you are diagnosed with one of these infections, you will be offered an HIV test.
Treatment
Treatment has two main parts: treating the infection itself, and treating HIV so the immune system can recover.
Treating the infection
Each infection has its own medicines. Some people need to be treated in hospital, at least at first. Examples include:
- Trimethoprim with sulfamethoxazole (an antibiotic combination) for PCP and to help prevent toxoplasmosis
- Pyrimethamine with sulfadiazine for toxoplasmosis of the brain
- Antifungal medicines such as amphotericin b, flucytosine and fluconazole for cryptococcal meningitis, and fluconazole or itraconazole for other fungal infections
- Antiviral medicines such as ganciclovir, valganciclovir or cidofovir for CMV, and acyclovir or famciclovir for herpes and shingles
- A combination of TB medicines, often including rifampin, for tuberculosis, and a combination of antibiotics for MAC
Some infections need several weeks or months of treatment. After the main treatment, you may need to keep taking a lower-strength medicine to stop the infection coming back until your immune system is stronger.
Treating HIV
Starting or restarting HIV medicines is the most important step for long-term health. For most infections, ART is started within about two weeks. For a few infections, such as cryptococcal meningitis and TB of the brain, your doctor may wait a few weeks, because starting too early can cause dangerous swelling. Your team will decide the best timing for you.
As your immune system wakes up, some people get a short-term flare of symptoms, called immune reconstitution inflammatory syndrome (IRIS). This happens because the immune system starts reacting strongly to germs that are already there. It is usually manageable, but tell your care team right away if you feel worse after starting HIV medicines. Do not stop any of your medicines without talking to them first.
Prevention
Many opportunistic infections can be prevented. The most powerful step is taking HIV medicine every day, or as prescribed, to keep the virus under control and your CD4 count up. Other steps include:
- Get tested for HIV, so treatment can start before the immune system is damaged.
- Take preventive medicines if your doctor recommends them. When the CD4 count is low, medicines such as trimethoprim with sulfamethoxazole, or dapsone if you cannot take it, can help prevent PCP and toxoplasmosis. These can usually be stopped once your CD4 count has stayed higher for a few months.
- Get tested for TB and take treatment for sleeping (latent) TB if you have it.
- Stay up to date with vaccines your team recommends, such as those for flu, pneumonia, hepatitis and shingles.
- Be careful with food and water: cook meat thoroughly, wash fruit and vegetables, avoid unpasteurized milk, and do not drink untreated water.
- Take care around animals: wear gloves when gardening or cleaning a cat litter box, or ask someone else to do it, and wash your hands afterwards.
Living with HIV-related infections
Being diagnosed with a serious infection can be frightening, especially if you have just learned you have HIV. Remember that these infections can be treated, and many people go on to recover fully once HIV is under control.
- Keep all your appointments and blood tests, so your team can track your CD4 count and viral load.
- Use a pill organizer, phone reminders or a routine to help you take medicines on time.
- Tell your team about every medicine and supplement you take, as some interact with HIV and TB medicines.
- Eat well, rest and avoid smoking, which helps your body heal.
- Ask for support. Counsellors, peer support groups and social workers can help with worries about health, money, housing or telling others.
Outlook
The outlook depends on which infection you have, how early it is treated and how well HIV is controlled. Some infections, such as cryptococcal meningitis, PCP and toxoplasmosis of the brain, can be life-threatening, especially if treatment is delayed. With prompt care and effective HIV treatment, many people recover and their immune system becomes strong again. Once the CD4 count is back up and the virus is controlled, the risk of new opportunistic infections falls sharply, and people with HIV can expect to live long, healthy lives.
In the United States
In the United States, the NIH, CDC and the HIV Medicine Association of IDSA publish the adult and adolescent opportunistic infection guidelines, available through clinicalinfo.hiv.gov. The Ryan White HIV/AIDS Program and the AIDS Drug Assistance Program (ADAP) help people with low incomes get HIV care and medicines, including medicines to prevent and treat opportunistic infections.
When to get medical help
If you have HIV, contact your HIV care team soon if you have:
- A fever, cough or night sweats that last more than a few days
- Weight loss you cannot explain, or diarrhea lasting more than a week
- White patches in your mouth or pain when swallowing
- New skin sores, rashes or dark patches
- Any new symptom after starting or restarting HIV medicines
Call emergency services or go to the nearest emergency department if you have:
- Severe shortness of breath, or lips or face turning blue
- A severe headache with a stiff neck, fever or vomiting
- Confusion, unusual drowsiness, a seizure, or new weakness or numbness on one side of the body
- Sudden loss of vision or a curtain over part of your vision
- Signs of severe dehydration, such as passing very little urine, dizziness or fainting
In an emergency, call 911.
References
- U.S. National Library of Medicine. MeSH: AIDS-Related Opportunistic Infections. meshb.nlm.nih.gov
- MedlinePlus: HIV. medlineplus.gov/hiv.html
- CDC: HIV. cdc.gov/hiv/
- WHO: HIV and AIDS fact sheet. who.int/news-room/fact-sheets/detail/hiv-aids