Doctors Note Logo

Published on: 12/1/2026

When should a doctor test me for an immune deficiency?

Testing for an immune deficiency is typically warranted when infections are unusually frequent, severe, prolonged, or require repeated courses of antibiotics, such as four or more ear infections or two or more pneumonias in a year. Doctors also consider evaluation when infections are caused by unusual organisms, when there is poor growth in children, persistent thrush, chronic diarrhea, poor wound healing, or a family history of immune disorders. Several factors influence the timing and type of testing, including age, vaccination history, and whether another condition or medication is suppressing immunity, so see below to understand more. Because these warning signs overlap with common illnesses, a quick review of your specific pattern of symptoms can help you decide whether to request bloodwork or a referral to an immunologist. Take a free, instant, online symptom check to clarify what your symptoms may indicate and get guidance on the right next steps.

Last reviewed for medical accuracy: 11/30/2026

answer background

Concerned about your symptoms?

Explanation

When should a doctor test me for an immune deficiency?

Most people who get occasional colds, stomach bugs, or other infections do not have an immune deficiency. Children may have several infections each year, and adults can also become ill more often during periods of stress, poor sleep, exposure to young children, or seasonal outbreaks.

A doctor may consider testing for an immune deficiency when infections are unusually frequent, severe, persistent, difficult to treat, or caused by unusual organisms. Testing may also be appropriate if there are other clues, such as poor growth in a child, repeated pneumonia, or a medical condition or medicine that can weaken the immune system.

An immune deficiency, also called immunodeficiency, occurs when part of the immune system does not work as it should. It may be:

  • Primary immunodeficiency: Usually related to inherited or genetic differences and often begins in childhood, although some conditions are diagnosed in adults.
  • Secondary immunodeficiency: Develops because of another illness, medication, nutritional problem, cancer, or infection. This type is more common than primary immunodeficiency.

When to test for immunodeficiency

There is no single number of infections that automatically means you need testing. Doctors look at the overall pattern, how serious the infections are, how you recover, and whether there are other risk factors.

Testing may be considered if you or your child has:

  • Repeated ear, sinus, throat, or chest infections that require antibiotics unusually often
  • Two or more serious sinus infections or episodes of pneumonia in one year
  • Pneumonia more than once, especially if it was severe or caused complications
  • Infections that do not improve as expected with appropriate treatment
  • Infections that keep returning soon after treatment ends
  • Infections caused by unusual bacteria, fungi, or other organisms
  • Infections in several different parts of the body
  • Persistent thrush, especially in the mouth or throat, beyond infancy or without an obvious explanation
  • Recurrent deep skin abscesses or infections
  • Long-lasting diarrhea, unexplained weight loss, or poor absorption of nutrients
  • Poor growth or difficulty gaining weight in a child
  • A need for intravenous antibiotics or hospitalization to treat infections
  • A close relative with a diagnosed primary immunodeficiency
  • An autoimmune disease, certain blood disorders, or an unusual reaction to vaccines

These warning signs are based on guidance used by allergy and immunology organizations, pediatric specialists, and infectious disease experts. Having one sign does not prove that you have an immune deficiency. It means a clinician may want to investigate further.

Symptoms that do not necessarily mean immune deficiency

Frequent illness can have many explanations. For example, young children in daycare may have repeated viral infections because they are exposed to many new viruses. Allergies can cause ongoing nasal congestion that feels like repeated sinus infections. Asthma can cause cough and breathing symptoms that may be mistaken for recurrent chest infections.

Other common causes include:

  • Incomplete recovery between infections
  • Smoking or regular exposure to secondhand smoke
  • Poorly controlled diabetes
  • Chronic lung disease
  • Structural problems affecting the sinuses or airways
  • Poor sleep or significant stress
  • Medicines that affect the immune response
  • Nutritional deficiencies
  • A viral infection such as HIV, when risk factors or symptoms make testing appropriate

A doctor will usually consider these possibilities before concluding that an immune deficiency is present.

Which doctors can assess this?

Start by speaking with your primary care doctor or your child’s pediatrician. They can review your medical history, examine you, and order initial tests. If the results or infection pattern raise concern, you may be referred to an allergist-immunologist, a doctor who specializes in immune system disorders.

The doctor may ask about:

  • The number and type of infections you have had
  • Your age when the problems began
  • Whether infections required antibiotics, hospital care, or intravenous treatment
  • How quickly you recover
  • Any unusual infections
  • Vaccinations and your response to them
  • Family medical history
  • Prescription medicines, steroid use, chemotherapy, or other immune-suppressing treatments
  • Other conditions, including diabetes, lung disease, autoimmune disease, or HIV risk
  • Weight changes, diarrhea, fevers, rashes, or swollen lymph nodes

It can help to bring a list of infections, dates, diagnoses, antibiotics, hospital visits, and test results.

What tests might a doctor order?

Testing is usually done in stages. A doctor may begin with:

  • Complete blood count (CBC) with differential: Measures white blood cells and can identify low or abnormal levels of certain immune cells.
  • Quantitative immunoglobulins: Measures antibody levels, including immunoglobulin G, A, and M.
  • Basic metabolic or liver tests: May identify illnesses that can affect immunity or explain recurrent infections.
  • HIV testing: Recommended when clinically appropriate, based on symptoms and possible exposure. HIV testing is a routine medical test and is the only way to know your status.
  • Urine or other tests: These may look for protein loss or other conditions that can contribute to immune problems.

If antibody deficiency is suspected, a doctor may check whether you make adequate antibodies after vaccination. This can involve measuring antibody responses to vaccines such as pneumococcal or tetanus vaccines. These tests should be interpreted carefully because vaccination history, age, timing, and previous infections affect the results.

Additional testing may include lymphocyte subset testing, complement tests, tests of neutrophil function, or genetic testing. These are generally ordered by a specialist when the history and initial results suggest a specific problem.

A single abnormal result does not always mean you have an immune deficiency. Levels can change during an infection, and some results vary with age, pregnancy, medications, or other health conditions. Repeat testing is sometimes needed.

Should I ask for immune testing after every infection?

Usually, no. A routine cold, influenza, COVID-19 infection, or a single episode of bronchitis does not normally require an immune-deficiency workup. Antibiotics also do not treat viral infections, so needing time to recover from a virus is not, by itself, evidence of a weak immune system.

Testing becomes more reasonable when infections are unusually severe, occur in a concerning pattern, or are accompanied by problems such as poor growth, persistent diarrhea, recurrent pneumonia, or unusual organisms.

Rather than counting every minor illness, consider the pattern and impact. Are infections repeatedly requiring medical care? Are they lasting much longer than expected? Are you failing to recover fully? These details are more useful to a doctor than the number of times you have had a runny nose.

If you are unsure how concerning your symptoms may be, you might consider a free, online symptom check using the doctor-approved Ubie Symptom Checker. It cannot diagnose an immune deficiency or replace a medical assessment, but it may help you organize symptoms and decide what to discuss with a doctor.

When to seek urgent medical help

Speak to a doctor promptly about symptoms that could indicate a serious infection or another potentially dangerous condition. Seek urgent or emergency care for:

  • Trouble breathing, bluish lips, or severe chest pain
  • Confusion, fainting, extreme weakness, or difficulty staying awake
  • Severe dehydration or inability to keep fluids down
  • A rapidly spreading skin infection or swelling of the face or neck
  • A high or persistent fever with a stiff neck, severe headache, or a widespread purple or non-blanching rash
  • Signs of sepsis, such as feeling suddenly very ill, rapid breathing, a fast heartbeat, or severe dizziness
  • An infection in someone taking chemotherapy or significant immune-suppressing medication

You should also speak to a doctor about any serious, persistent, or repeatedly worsening symptoms, even if they do not fit a specific warning sign.

The main point

Doctors generally test for an immune deficiency when infections are recurrent, severe, unusual, persistent, or associated with other warning signs. Most people with occasional infections do not have an immune disorder, but concerning patterns deserve proper evaluation.

Do not start supplements or stop prescribed medicines in an attempt to “boost” your immune system without medical advice. Arrange an appointment, describe the full history, and ask whether initial immune testing is appropriate. A careful medical review can identify immune problems when they are present while also finding more common and treatable explanations for repeated illness.

(References)

  • * Yoon C, Chaisson LH, Patel SM, Allen IE, Drain PK, Wilson D, Cattamanchi A. Diagnostic accuracy of C-reactive protein for active pulmonary tuberculosis: a meta-analysis. Int J Tuberc Lung Dis. 2017 Sep 1;21(9):1013-1019. doi: 10.5588/ijtld.17.0078. PMID: 28826451; PMCID: PMC5633000.

  • * Tan R, Hugli O, Cavassini M, Darling K. Non-targeted HIV testing in the emergency department: not just how but where. Expert Rev Anti Infect Ther. 2018 Dec;16(12):893-905. doi: 10.1080/14787210.2018.1545575. Epub 2018 Nov 20. PMID: 30406726.

  • * Puck JM. Newborn screening for severe combined immunodeficiency and T-cell lymphopenia. Immunol Rev. 2019 Jan;287(1):241-252. doi: 10.1111/imr.12729. PMID: 30565242; PMCID: PMC6324582.

  • * Aranda CS, Guimarães RR, de Gouveia-Pereira Pimentel M. Combined immunodeficiencies. J Pediatr (Rio J). 2021 Mar-Apr;97 Suppl 1(Suppl 1):S39-S48. doi: 10.1016/j.jped.2020.10.014. Epub 2020 Dec 17. PMID: 33340461; PMCID: PMC9432339.

  • * Bateman CM, Kesson A, Powys M, Wong M, Blyth E. Cytomegalovirus Infections in Children with Primary and Secondary Immune Deficiencies. Viruses. 2021 Oct 5;13(10). doi: 10.3390/v13102001. Epub 2021 Oct 5. PMID: 34696432; PMCID: PMC8538792.

  • * Khan YW, Minnicozzi SC, Lawrence MG. Navigating diagnostic options for inborn errors of immunity in children: a case-based illustration. Curr Opin Pediatr. 2022 Dec 1;34(6):589-594. doi: 10.1097/MOP.0000000000001178. Epub 2022 Sep 9. PMID: 36081368.

  • * Thakar MS, Logan BR, Puck JM, Dunn EA, Buckley RH, Cowan MJ, O'Reilly RJ, Kapoor N, Satter LF, Pai SY, Heimall J, Chandra S, Ebens CL, Chellapandian D, Williams O, Burroughs LM, Saldana BD, Rayes A, Madden LM, Chandrakasan S, Bednarski JJ 2nd, DeSantes KB, Cuvelier GDE, Teira P, Gillio AP, Eissa H, Knutsen AP, Goldman FD, Aquino VM, Shereck EB, Moore TB, Caywood EH, Lugt MTV, Rozmus J, Broglie L, Yu LC, Shah AJ, Andolina JR, Liu X, Parrott RE, Dara J, Prockop S, Martinez CA, Kapadia M, Jyonouchi SC, Sullivan KE, Bleesing JJ, Chaudhury S, Petrovic A, Keller MD, Quigg TC, Parikh S, Shenoy S, Seroogy C, Rubin T, Decaluwe H, Routes JM, Torgerson TR, Leiding JW, Pulsipher MA, Kohn DB, Griffith LM, Haddad E, Dvorak CC, Notarangelo LD. Measuring the effect of newborn screening on survival after haematopoietic cell transplantation for severe combined immunodeficiency: a 36-year longitudinal study from the Primary Immune Deficiency Treatment Consortium. Lancet. 2023 Jul 8;402(10396):129-140. doi: 10.1016/S0140-6736(23)00731-6. Epub 2023 Jun 20. PMID: 37352885; PMCID: PMC10386791.

  • * Howley E, Golwala Z, Buckland M, Barzaghi F, Ghosh S, Hackett S, Hague R, Hauck F, Holzer U, Klocperk A, Koskenvuo M, Marcus N, Marzollo A, Pac M, Sinclair J, Speckmann C, Soomann M, Speirs L, Suresh S, Taque S, van Montfrans J, von Bernuth H, Wainstein BK, Worth A, Davies EG, Kreins AY. Impact of newborn screening for SCID on the management of congenital athymia. J Allergy Clin Immunol. 2024 Jan;153(1):330-334. doi: 10.1016/j.jaci.2023.08.031. Epub 2023 Sep 9. PMID: 37678573; PMCID: PMC10940165.

  • * Wilkinson M, McCrea K, Culbertson A. Cancer Prevention and Screening for People Living with Human Immunodeficiency Virus. Nurs Clin North Am. 2024 Jun;59(2):273-288. doi: 10.1016/j.cnur.2024.01.002. Epub 2024 Mar 15. PMID: 38670694.

  • * Dirks J, Wölfl M, Speer CP, Härtel C, Morbach H. Inborn Errors of Immunity in Early Childhood: Essential Insights for the Neonatologist. Neonatology. 2024;121(5):646-655. doi: 10.1159/000540436. Epub 2024 Aug 23. PMID: 39182489.

Tell your friends about us.

We would love to help them too.

smily Shiba-inu looking

For First Time Users

What is Ubie’s Doctor’s Note?

We provide a database of explanations from real doctors on a range of medical topics. Get started by exploring our library of questions and topics you want to learn more about.

Was this page helpful?

Purpose and positioning of servicesUbie Doctor's Note is a service for informational purposes. The provision of information by physicians, medical professionals, etc. is not a medical treatment. If medical treatment is required, please consult your doctor or medical institution. We strive to provide reliable and accurate information, but we do not guarantee the completeness of the content. If you find any errors in the information, please contact us.