Our Services
Medical Information
Helpful Resources
Published on: 12/1/2026
Primary immunodeficiency is genetic and inherited, meaning the immune system is missing or has faulty components from birth, while secondary immunodeficiency is acquired later in life from an outside cause such as HIV, cancer, chemotherapy, immunosuppressant drugs, diabetes, malnutrition, or severe infection. Primary forms are rare and often appear in childhood with recurrent, unusual, or hard-to-treat infections, whereas secondary forms are far more common and may improve if the underlying trigger is treated or removed. Both types share overlapping warning signs, including frequent sinus, ear, lung, or skin infections, poor response to antibiotics, slow healing, and unexplained fatigue or weight loss, which makes the distinction difficult to make without testing. There are several important factors to consider, including age of onset, family history, and specific lab findings, so see below to understand more before drawing conclusions about your own situation. Because recurrent infections can signal anything from a mild immune problem to a serious underlying condition, taking a few minutes for a free, instant, online symptom check can help you organize your symptoms, understand likely causes, and decide how urgently to see a doctor and which specialist to ask for.
Last reviewed for medical accuracy: 11/30/2026
The immune system protects the body from infections and helps identify and remove abnormal cells. Immunodeficiency occurs when part of the immune system is missing, weakened, or not working properly. This can make certain infections more frequent, severe, or difficult to treat.
The main difference in primary vs secondary immunodeficiency is the cause:
Both types range from mild to severe. Having several infections does not automatically mean a person has an immunodeficiency. Children, for example, commonly get repeated colds, especially in childcare or school. The pattern, severity, duration, and type of infections are more important than the number alone.
Primary immunodeficiency, also called an inborn error of immunity, results from changes in genes involved in immune-system development or function. These conditions are often present from birth, although symptoms may not appear until childhood, adolescence, or adulthood.
There are hundreds of recognized primary immunodeficiency disorders. Some affect antibody production, while others involve T cells, B cells, white blood cells, complement proteins, or several parts of the immune system.
Examples include:
Primary immunodeficiencies may run in families, but a family history is not always present. A new genetic change can occur in one person, or relatives may have such mild symptoms that the condition was never diagnosed.
Possible warning signs include:
These signs are not proof of a primary immunodeficiency. Allergies, asthma, structural problems in the sinuses, exposure to other children, and some common childhood conditions can also cause repeated infections.
Secondary immunodeficiency develops after birth because something affects an immune system that was previously functioning normally. It is more common than primary immunodeficiency and may be temporary or long-lasting, depending on the cause.
Common causes include:
Secondary immunodeficiency can improve when the underlying cause is treated. For example, immune function may recover after completing chemotherapy, correcting severe nutritional deficiency, treating an infection, or adjusting an immune-suppressing medicine. However, medicines should never be stopped or changed without medical advice.
| Feature | Primary immunodeficiency | Secondary immunodeficiency |
|---|---|---|
| Main cause | Genetic or inherited immune-system problem | Another disease, medicine, infection, or external factor |
| Usual timing | Often begins in childhood, but may be diagnosed at any age | Develops after birth, sometimes suddenly |
| Family history | May be present, but not always | Usually not a family trait |
| Common examples | Antibody deficiencies, severe combined immunodeficiency, chronic granulomatous disease | HIV, cancer, chemotherapy, immune-suppressing medicines, malnutrition |
| Course | Often long-term, although severity varies | May improve if the underlying cause is treated |
| Treatment | Infection prevention, replacement immune globulin, targeted medicines, and occasionally stem-cell transplant | Treating the cause, reviewing medicines, preventing infections, and providing supportive care |
This table describes broad patterns. In real life, the distinction may require a detailed medical history, examination, blood tests, and sometimes genetic testing.
A doctor may first ask about:
Initial tests may include a complete blood count, measurements of immunoglobulins, and other tests of immune-cell function. Depending on the findings, a doctor may order tests for HIV, complement proteins, specific antibody responses, or genetic changes.
A low immune-related blood result does not always mean a person has a permanent immunodeficiency. Results can be affected by recent illness, medicines, age, pregnancy, nutrition, and laboratory variation. Doctors usually interpret results alongside symptoms and may repeat testing.
Treatment depends on which part of the immune system is affected and how severe the problem is.
Possible approaches include:
People with immunodeficiency may also be advised to practise regular hand hygiene, avoid close contact with people who have contagious infections, and seek medical care early when symptoms develop. These measures reduce risk but cannot prevent every infection.
If you are unsure whether a collection of symptoms needs medical attention, you might consider a free, online symptom check, using the doctor approved Ubie Symptom Checker. An online tool cannot diagnose an immunodeficiency, replace testing, or determine whether treatment is needed.
Speak to a doctor if infections are unusually frequent, severe, persistent, or repeatedly affect the lungs, sinuses, ears, or skin. It is also sensible to seek medical advice if you have unexplained weight loss, ongoing diarrhea, persistent thrush, poor growth in a child, or a family history of immune problems.
Speak to a doctor urgently about anything that could be life-threatening or serious, including trouble breathing, blue or gray lips, confusion, fainting, severe dehydration, rapidly worsening infection, chest pain, or a high fever in a young infant. People known to have an immunodeficiency should follow their clinician’s instructions about when to seek urgent care.
In summary, primary immunodeficiency is generally rooted in an inherited or genetic immune-system problem, while secondary immunodeficiency is acquired because of another condition or exposure. Both deserve proper evaluation, but many causes are manageable when identified and treated appropriately.
(References)
* Klangkalya N, Fleisher TA, Rosenzweig SD. Diagnostic tests for primary immunodeficiency disorders: Classic and genetic testing. Allergy Asthma Proc. 2024 Sep 1;45(5):355-363. doi: 10.2500/aap.2024.45.240051. PMID: 39294902; PMCID: PMC11425801.
* Febres A, Tristram D. Immunodeficiency Disorders (Primary and Secondary). 2026 Jan. PMID: 29763203.
* Houen G. Immunodeficiency-autoimmunity syndromes. Autoimmun Rev. 2026 Jun;25(6):104059. doi: 10.1016/j.autrev.2026.104059. Epub 2026 Apr 27. PMID: 42055380.
* Cooper MD, Lanier LL, Conley ME, Puck JM. Immunodeficiency disorders. Hematology Am Soc Hematol Educ Program. 2003;314-30. doi: 10.1182/asheducation-2003.1.314. PMID: 14633788.
* Ballow M, Sánchez-Ramón S, Walter JE. Secondary Immune Deficiency and Primary Immune Deficiency Crossovers: Hematological Malignancies and Autoimmune Diseases. Front Immunol. 2022;13:928062. doi: 10.3389/fimmu.2022.928062. Epub 2022 Jul 18. PMID: 35924244; PMCID: PMC9340211.
* Regina J, Doms J, Kampouri E, Gerber C, Manuel O, Bart PA, Candotti F, Comte D. Immunodeficiencies in Adults: Key Considerations for Diagnosis and Management. Clin Rev Allergy Immunol. 2025 Oct 17;68(1):92. doi: 10.1007/s12016-025-09103-9. Epub 2025 Oct 17. PMID: 41107625; PMCID: PMC12534305.
* Palacios-Ortega M, Guerra-Galán T, Jiménez-Huete A, García-Aznar JM, Pérez-Guzmán M, Mansilla-Ruiz MD, Mendiola ÁV, López CP, Hornero EM, Rodriguez AP, Cortijo AP, Polo Zarzuela M, Morales MM, Mandly EA, Cárdenas MC, Carrero A, García CJ, Bolaños E, Íñigo B, Medina F, de la Fuente E, Ochoa-Grullón J, García-Solís B, García-Carmona Y, Fernández-Arquero M, Benavente-Cuesta C, de Diego RP, Rider N, Sánchez-Ramón S. Dissecting Secondary Immunodeficiency: Identification of Primary Immunodeficiency within B-Cell Lymphoproliferative Disorders. J Clin Immunol. 2024 Oct 23;45(1):32. doi: 10.1007/s10875-024-01818-2. Epub 2024 Oct 23. PMID: 39441407; PMCID: PMC11499357.
* Viallard JF. [Management of hypogammaglobulinemia]. Rev Med Interne. 2023 Mar;44(3):133-138. doi: 10.1016/j.revmed.2023.01.010. Epub 2023 Jan 31. PMID: 36725480.
* Riller Q, Schmutz M, Fourgeaud J, Fischer A, Neven B. Protective role of antibodies in enteric virus infections: Lessons from primary and secondary immune deficiencies. Immunol Rev. 2024 Nov;328(1):243-264. doi: 10.1111/imr.13402. Epub 2024 Sep 28. PMID: 39340232; PMCID: PMC11659928.
* Wonnaparhown A, Hilal T, Squire J, Freeman C, Fonseca R. IgG replacement in multiple myeloma. Blood Cancer J. 2024 Jul 25;14(1):124. doi: 10.1038/s41408-024-01107-6. Epub 2024 Jul 25. PMID: 39054331; PMCID: PMC11272770.
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.