Our Services
Medical Information
Helpful Resources
Published on: 12/1/2026
Diagnosing immunodeficiency typically begins with a complete blood count (CBC) with differential, followed by blood tests measuring immunoglobulin levels (IgG, IgA, IgM, IgE), antibody titers in response to vaccines, and complement protein levels. Doctors may also order lymphocyte subset analysis by flow cytometry to count T cells, B cells, and NK cells, plus functional tests that check how well those cells respond to stimulation. Genetic testing can confirm specific inherited conditions, while newborn screening (TREC testing) detects severe combined immunodeficiency early, and additional studies such as HIV testing, imaging, or biopsy may be needed depending on symptoms. Which tests are ordered depends on your age, infection history, and family history, and results often must be repeated or interpreted alongside other findings. There are several important factors to consider before testing, so see below to understand more.
If you are dealing with frequent, unusual, or hard-to-treat infections, guessing at the cause can delay answers you need. A few minutes spent on a free, instant, online symptom check can help you organize what you are experiencing, see which conditions may explain your pattern of illness, and understand which type of specialist or lab work might come next. It is private, requires no appointment, and gives you clearer language to bring to your doctor so the right tests get ordered sooner rather than later.
Last reviewed for medical accuracy: 11/30/2026
Immunodeficiency means that part of the immune system is missing, weakened, or not working properly. It can be present from birth (primary immunodeficiency) or develop later because of another condition, medicine, infection, or treatment (secondary immunodeficiency).
There is no single test that diagnoses every type of immunodeficiency. Doctors usually begin with your medical history and a physical examination, then choose lab tests for immunodeficiency based on your symptoms, age, infection history, and possible risk factors.
Having frequent infections does not automatically mean you have an immunodeficiency. Children may have several infections each year, especially in school or daycare, and adults can also experience repeated minor infections. Doctors are more concerned when infections are unusually severe, difficult to treat, caused by uncommon organisms, or associated with poor growth or other warning signs.
Before ordering tests, a doctor will ask about:
The doctor may examine the lymph nodes, tonsils, skin, mouth, lungs, abdomen, and growth pattern. Small or absent tonsils and lymph nodes can sometimes suggest a particular immune problem, but examination findings alone cannot confirm a diagnosis.
A complete blood count (CBC) with differential is often one of the first lab tests for immunodeficiency. It measures the number and types of blood cells, including:
Neutrophils help fight many bacterial and fungal infections. A low neutrophil count, called neutropenia, can increase infection risk. A low lymphocyte count, or lymphopenia, may suggest a problem involving T cells or other parts of the immune system.
The CBC may also identify anemia, unusual blood cells, or low platelets, which can point toward an underlying medical condition. Because blood counts can change temporarily during infections or after medicines, an abnormal result is often repeated before conclusions are drawn.
Immunoglobulins are antibodies made by B cells. The main types tested are:
Low levels may indicate an antibody deficiency, while unusually high or abnormal levels can be associated with infection, inflammation, or other conditions. Results must be interpreted according to age because normal antibody levels differ between children and adults.
A low immunoglobulin level does not always mean a primary immunodeficiency. Protein loss through the kidneys or intestines, certain blood cancers, and medicines that suppress the immune system can also lower antibody levels.
Measuring antibody levels after vaccination helps determine whether the immune system can produce an effective response. Doctors may check antibodies to vaccines such as:
This test is different from simply measuring total IgG. Some people have normal immunoglobulin levels but cannot make enough protective antibodies after vaccination. In certain cases, the doctor measures antibody levels before and several weeks after a vaccine to assess the response.
Recent vaccination, previous infections, and the timing of the blood test can affect results. A specialist may be needed to interpret the findings accurately.
A blood test called flow cytometry can count different types of lymphocytes. It commonly measures:
This test can help identify problems with cellular immunity or unusual patterns of immune cells. It is particularly useful when a person has severe or persistent viral, fungal, or opportunistic infections, or when the CBC shows a low lymphocyte count.
CD4 testing is also used in people with HIV, although the result must be considered alongside an HIV test and other clinical information.
HIV can weaken the immune system and is an important possible cause of secondary immunodeficiency. Testing usually involves a laboratory antigen-and-antibody test, with additional testing if the result is reactive.
HIV testing is a routine part of evaluating unexplained immune suppression in many situations. It is confidential, and modern treatment can effectively control HIV and substantially reduce the risk of serious infections.
The complement system is a group of proteins that helps antibodies and white blood cells destroy microbes. Doctors may order:
Complement problems can increase the risk of certain bacterial infections, particularly infections involving Neisseria species. They may also be associated with some autoimmune conditions. The specific pattern of abnormal results helps guide further testing.
A normal neutrophil count does not always mean neutrophils work normally. If a person has deep skin or organ abscesses, unusual bacterial or fungal infections, or a strong family history, doctors may assess neutrophil function.
One commonly used test is the oxidative burst test, performed by flow cytometry. It evaluates whether neutrophils can produce the substances needed to kill certain microbes. This can help investigate chronic granulomatous disease and related disorders.
Other specialized tests may assess how neutrophils move toward infection or engulf bacteria. These tests are usually arranged by an immunologist or specialist laboratory.
Doctors may also investigate conditions that can weaken the immune system without being a genetic immunodeficiency. Depending on the situation, tests may include:
These investigations are important because treating the underlying cause may improve immune function.
Genetic testing may be considered when immunodeficiency begins in childhood, infections are severe or unusual, several relatives are affected, or initial testing suggests a specific immune disorder.
Testing may involve:
A genetic result should be interpreted by an immunologist or genetic specialist. Some findings are uncertain and do not prove that a gene change is causing symptoms. Genetic counseling can help explain the result and what it may mean for relatives.
A bone marrow examination is not needed for everyone. It may be recommended when doctors suspect a bone marrow disorder, blood cancer, a severe problem with blood-cell production, or a complex immune condition.
Additional tests may include imaging, stool tests, lung studies, or tissue testing, depending on the infections and symptoms involved. These tests do not diagnose every immunodeficiency directly, but they can reveal complications or help identify another cause.
Speak to a doctor if infections are frequent, unusually severe, persistent, or repeatedly require antibiotics or hospital care. You should also seek medical advice for unexplained weight loss, ongoing diarrhea, persistent fever, repeated pneumonia, unusual infections, or poor growth in a child. If you are unsure how symptoms fit together, you might consider a free, online symptom check, using the doctor approved Ubie Symptom Checker, but an online tool cannot replace medical evaluation or laboratory testing.
Seek urgent care or speak to a doctor immediately about anything that could be life-threatening or serious, including trouble breathing, severe dehydration, confusion, a rapidly worsening infection, blue or gray lips, or a high fever in a very young infant.
Testing should be guided by a qualified healthcare professional. Abnormal results do not always confirm immunodeficiency, and normal initial tests do not rule out every immune disorder. A doctor—often with help from a clinical immunologist—can decide which lab tests for immunodeficiency are appropriate and explain what the results mean.
(References)
* Primary immunodeficiencies. Bull World Health Organ. 1971;45(1):125-42. PMID: 5004396; PMCID: PMC2427897.
* Fischer A. Primary T-cell immunodeficiencies. Curr Opin Immunol. 1993 Aug;5(4):569-78. doi: 10.1016/0952-7915(93)90040-y. PMID: 8216933.
* Yong PF, Chee R, Grimbacher B. Hypogammaglobulinaemia. Immunol Allergy Clin North Am. 2008 Nov;28(4):691-713, vii. doi: 10.1016/j.iac.2008.06.003. PMID: 18940570.
* Ryan MW. AAOA allergy primer: immunodeficiency. Int Forum Allergy Rhinol. 2014 Sep;4 Suppl 2:S74-8. doi: 10.1002/alr.21379. PMID: 25182361.
* Ip W, Gaspar HB, Kleta R, Chanudet E, Bacchelli C, Pitts A, Nademi Z, Davies EG, Slatter MA, Amrolia P, Rao K, Veys P, Gennery AR, Qasim W. Variable phenotype of severe immunodeficiencies associated with RMRP gene mutations. J Clin Immunol. 2015 Feb;35(2):147-57. doi: 10.1007/s10875-015-0135-7. Epub 2015 Feb 8. PMID: 25663137.
* Verma N, Burns SO, Walker LSK, Sansom DM. Immune deficiency and autoimmunity in patients with CTLA-4 (CD152) mutations. Clin Exp Immunol. 2017 Oct;190(1):1-7. doi: 10.1111/cei.12997. Epub 2017 Jul 21. PMID: 28600865; PMCID: PMC5588810.
* Borzutzky A, Rauter I, Fried A, Rachid R, McDonald DR, Hammarstrom L, Grimbacher B, Abraham RS, Geha RS. Defective TLR9-driven STAT3 activation in B cells of patients with CVID. Clin Immunol. 2018 Dec;197:40-44. doi: 10.1016/j.clim.2018.08.008. Epub 2018 Aug 23. PMID: 30145329.
* Kalina T, Abraham RS, Rizzi M, van der Burg M. Editorial: Application of Cytometry in Primary Immunodeficiencies. Front Immunol. 2020;11:463. doi: 10.3389/fimmu.2020.00463. Epub 2020 Mar 19. PMID: 32265921; PMCID: PMC7096470.
* Erol Cipe F, Keskindemirci G. Very high immunoglobulin E levels in children: when from pediatrician to immunologist? Minerva Pediatr (Torino). 2024 Feb;76(1):13-18. doi: 10.23736/S2724-5276.20.05778-3. Epub 2020 Aug 4. PMID: 32748607.
* Khoenkhoen S, Ádori M, Pedersen GK, Karlsson Hedestam GB. Flow Cytometry-Based Protocols for the Analysis of Human Plasma Cell Differentiation. Front Immunol. 2020;11:571321. doi: 10.3389/fimmu.2020.571321. Epub 2020 Sep 29. PMID: 33133085; PMCID: PMC7550473.
We would love to help them too.
For First Time Users
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.