Primary immunodeficiency
A group of mostly inherited conditions in which part of the immune system is missing or does not work properly, leading to frequent, severe or unusual infections.
Clinician view: includes diagnostic criteria, management and safety detail.

Overview
Primary immunodeficiency (medical name: primary immunodeficiency diseases, now often called inborn errors of immunity) is a large group of conditions in which part of your immune system is missing or does not work the way it should. Your immune system is the network of white blood cells, proteins and organs that protects you from germs such as bacteria, viruses and fungi. When one part of it is weak, infections can happen more often, last longer, be more severe or be caused by germs that rarely make healthy people sick.
The word "primary" means the problem is built into the immune system itself, usually because of a change (variant) in a gene. This is different from "secondary" immunodeficiency, which is caused by something outside the immune system, such as HIV infection, cancer treatment, some medicines or poor nutrition.
More than 450 different primary immunodeficiencies are now known. Some are very serious and show up in the first months of life. Others are mild and may not be found until adulthood. Each single type is rare, but taken together they are more common than many people think. Many people live full, active lives with the right diagnosis and treatment.
Main types
Doctors group these conditions by which part of the immune system is affected. Some examples are listed below.
Antibody (B-cell) deficiencies
Antibodies (also called immunoglobulins) are proteins that recognise and help destroy germs. Antibody problems are the most common type of primary immunodeficiency. Examples include common variable immunodeficiency (CVID), X-linked agammaglobulinemia and selective IgA deficiency. In hyper-IgM syndrome, the body makes one type of antibody (IgM) but cannot switch to making other important types.
Combined immunodeficiencies
These affect both T cells (white blood cells that direct the immune response and kill infected cells) and B cells. The most severe form is severe combined immunodeficiency (SCID), sometimes called "bubble boy disease." Babies with SCID can become very ill from ordinary infections and need treatment urgently.
Syndromes with immune problems
Some conditions affect the immune system along with other parts of the body:
- Wiskott-Aldrich syndrome: infections, eczema and low platelets (blood cells that help clotting), causing easy bleeding.
- Ataxia-telangiectasia: problems with balance and movement, small widened blood vessels on the eyes and skin, and infections.
- Bloom syndrome: short stature, sun-sensitive skin, infections and a higher risk of cancer.
- Job syndrome (hyper-IgE syndrome): skin and lung abscesses, eczema and very high levels of the antibody IgE.
Problems with phagocytes
Phagocytes are white blood cells that swallow and kill germs. In leukocyte adhesion deficiency, these cells cannot leave the blood to reach an infection. In Chediak-Higashi syndrome, they cannot kill germs properly, and people often have light-coloured hair, skin and eyes. Chronic granulomatous disease is another example.
Complement deficiencies
Complement is a set of blood proteins that help antibodies and white cells clear germs. Hereditary complement deficiencies can lead to repeated infections, especially meningitis caused by certain bacteria, or to autoimmune conditions such as lupus.
Immune dysregulation
In some conditions the immune system is not only weak but also overactive in the wrong ways. This can cause autoimmune disease (where the immune system attacks the body's own tissues), swollen lymph glands or bowel inflammation along with infections.
Symptoms
The main sign is infections that are more frequent, more severe, harder to treat or caused by unusual germs. Warning signs include:
- Several ear or sinus infections in a year, or repeated pneumonia (lung infection).
- Infections that do not clear up well with antibiotics, or that need antibiotics given through a vein.
- Deep skin or organ abscesses (pockets of pus).
- Thrush (a yeast infection) in the mouth or skin that keeps coming back after age one.
- Serious infections such as meningitis or bloodstream infection, especially more than once.
- In babies, poor weight gain and growth, ongoing diarrhea or severe infections in the first months of life.
- A family history of primary immunodeficiency or of early unexplained deaths from infection.
Some people also have symptoms that are not infections, such as autoimmune problems (for example, low blood counts or thyroid disease), long-lasting diarrhea, swollen lymph glands, an enlarged spleen, eczema or easy bruising.
Causes and risk factors
Most primary immunodeficiencies are caused by changes in genes that control how immune cells develop or work. These gene changes are usually inherited from one or both parents, but sometimes they happen for the first time in a child.
- X-linked conditions (such as X-linked agammaglobulinemia and Wiskott-Aldrich syndrome) mostly affect boys, because the gene is on the X chromosome.
- Autosomal recessive conditions need a changed gene from both parents. They are more common when parents are related by blood.
- Autosomal dominant conditions can be passed on by just one parent.
For some types, including CVID, a single cause often cannot be found, and genes and other factors probably both play a part. You cannot catch a primary immunodeficiency from someone else, and nothing you did caused it.
Diagnosis
Because symptoms can look like ordinary infections, diagnosis can take years. If your doctor suspects an immune problem, you may be referred to a clinical immunologist (a specialist in immune disorders).
Common tests
- Complete blood count to check the numbers of different white blood cells and platelets.
- Immunoglobulin levels to measure the main antibody types (IgG, IgA, IgM and sometimes IgE).
- Vaccine response tests, which check whether your body made antibodies after vaccines such as tetanus or pneumococcal vaccines.
- Lymphocyte subset testing (flow cytometry) to count T cells, B cells and natural killer cells.
- Complement tests and tests of how phagocytes work.
- Genetic testing to look for the exact gene change. This can guide treatment and help other family members.
Newborn screening
In many places, babies are screened for SCID with a small blood sample from the heel shortly after birth. Finding SCID before serious infections start greatly improves the chance of successful treatment.
Treatment
Treatment depends on the type and how severe it is. The aims are to prevent infections, treat them quickly, manage other problems and, for some conditions, fix the immune system.
Preventing and treating infections
- Antibiotics are used promptly for infections. Some people take them every day to prevent infections.
- Antifungal and antiviral medicines may also be used for prevention or treatment.
Immunoglobulin replacement therapy
Many people with antibody deficiencies receive immunoglobulin, which is made of antibodies collected from healthy blood donors. It is given into a vein every few weeks or under the skin, often at home, every week or so. It does not cure the condition, but it greatly lowers the number of serious infections. Treatment is usually lifelong.
Stem cell transplant and gene therapy
For SCID and some other severe types, a hematopoietic stem cell transplant (a bone marrow transplant) can replace the faulty immune system with healthy cells from a donor. Gene therapy, which corrects the faulty gene in the person's own cells, is available for a few conditions at specialist centres. Enzyme replacement is used for one form of SCID (ADA deficiency).
Targeted medicines
Some newer medicines act on the specific pathway that is faulty. For example, leniolisib blocks an overactive signalling enzyme in a condition called activated PI3K delta syndrome (APDS), and mavorixafor helps white blood cells leave the bone marrow in WHIM syndrome. Medicines that calm the immune system may be used for autoimmune problems.
Always follow the plan from your immunology team, and do not stop or change any treatment without talking to them first.
Living with primary immunodeficiency
- Act early on infections. Ask your care team for a written plan about when to call and when to start antibiotics.
- Check before any vaccine. Inactivated (non-live) vaccines are usually safe and often recommended. Live vaccines, such as measles-mumps-rubella, chickenpox, rotavirus or some travel vaccines, can be dangerous with some types, so check with your immunologist first.
- Protect yourself from germs. Wash your hands often, keep away from people who are sick when you can, and handle food safely.
- Vaccinate those around you. Family members and close contacts getting their vaccines helps protect you.
- Look after your lungs and overall health. Do not smoke, stay active, eat well and keep up with dental care.
- Blood products: some people need special (irradiated) blood if they ever need a transfusion. Carry a card or medical ID that names your condition.
- Get support. Living with a long-term condition can be tiring. Patient groups, counselling and school or work accommodations can help.
If you are planning a family, genetic counselling can explain the chance of passing the condition on and the testing options available.
Complications
Without good treatment, repeated infections can cause lasting damage. Possible complications include:
- Bronchiectasis (permanent widening and scarring of the airways) after repeated lung infections.
- Hearing loss from repeated ear infections.
- Autoimmune and inflammatory conditions, such as low blood counts, arthritis or bowel inflammation.
- Higher risk of some cancers, especially lymphoma, in certain types.
- Poor growth in children.
- Life-threatening infections, particularly in severe forms such as SCID.
Outlook
The outlook depends a great deal on the type. Many people with antibody deficiencies who receive regular immunoglobulin and good follow-up have far fewer infections and can work, study and travel. Babies with SCID who are found early and receive a stem cell transplant before serious infections often do well. Some syndromes, such as ataxia-telangiectasia, have effects beyond the immune system that need care from several specialists. Regular check-ups with an immunology team help catch problems early.
Prevention
Because most primary immunodeficiencies are genetic, they cannot be prevented. However, serious complications often can be. Newborn screening, early diagnosis, prompt treatment of infections and the right vaccines all make a big difference. If a primary immunodeficiency runs in your family, talk to your doctor about testing for relatives and genetic counselling before or during pregnancy.
In Canada
SCID is included in newborn screening in most Canadian provinces and territories, though programs vary by region. Immunoglobulin products are supplied through Canadian Blood Services (and Héma-Québec in Quebec); ask your immunology clinic how access works where you live. Leniolisib and mavorixafor may not be approved or available in Canada.
Recognition and diagnosis
Inborn errors of immunity (IEI) are classified by the IUIS Expert Committee (2022 update lists over 480 disorders) into combined, syndromic, predominantly antibody, immune dysregulation, phagocyte, innate, autoinflammatory, complement and bone marrow failure categories. Suspect IEI with recurrent, severe, persistent or opportunistic infections, infections needing IV antibiotics, failure to thrive, autoimmunity or lymphoproliferation with infection, or family history. Disseminated live-vaccine infection (BCG, rotavirus) suggests combined defects (BCG disease also suggests CGD or Mendelian susceptibility to mycobacterial disease); recurrent Neisseria infection suggests terminal complement deficiency; deep abscesses with catalase-positive organisms suggest CGD.
Initial work-up: CBC with differential (lymphopenia in infants is a red flag), serum IgG/IgA/IgM (age-adjusted), specific antibody responses to protein and polysaccharide antigens, lymphocyte subsets (CD3/CD4/CD8/CD19/CD16-56), HIV testing to exclude secondary causes. Second line: naive/memory T and switched memory B cells, T-cell proliferation, CH50/AH50, dihydrorhodamine assay, and gene panel or exome sequencing. Exclude secondary hypogammaglobulinemia (protein loss, medicines such as rituximab, hematologic malignancy). SCID is screened for in newborns using TREC assays in many jurisdictions. Diagnostic criteria for CVID follow ESID/ICON consensus (low IgG with low IgA and/or IgM, impaired vaccine responses, secondary causes excluded, age over 4 years).
Management
Refer to clinical immunology. Immunoglobulin replacement (IV or subcutaneous; typical starting IgG dose 400 to 600 mg/kg every 3 to 4 weeks IV, or the equivalent given weekly subcutaneously, adjusted to clinical response and trough levels) is indicated for agammaglobulinemia, CVID and other defects with impaired specific antibody production (AAAAI/ACAAI practice parameter, Bonilla 2015). Prophylactic antimicrobials as indicated (for example, trimethoprim-sulfamethoxazole for PJP prophylaxis in combined defects, itraconazole plus TMP-SMX in CGD). Definitive therapy with HSCT for SCID, WAS, CGD, LAD-I and others; gene therapy for selected disorders; PEG-ADA for ADA-SCID. Targeted agents: leniolisib (PI3K-delta inhibitor) for APDS, mavorixafor (CXCR4 antagonist) for WHIM syndrome, abatacept or JAK inhibitors in selected dysregulation disorders.
Cautions: avoid live vaccines in significant T-cell or combined defects and in agammaglobulinemia; use irradiated, CMV-safe blood products in suspected SCID; watch for infusion reactions, thrombosis, hemolysis and renal effects with IVIG. Patients with ataxia-telangiectasia or other DNA repair defects are radiosensitive, so minimise ionising radiation.
Monitoring and prognosis
Monitor infection frequency, IgG troughs, growth, lung function and periodic chest CT where bronchiectasis or granulomatous-lymphocytic interstitial lung disease is suspected, liver function, and cytopenias. Screen for lymphoma and gastric cancer risk in CVID as clinically indicated. Red flags: neonatal lymphopenia, opportunistic infection, sepsis, rapidly progressive lymphadenopathy. Prognosis varies widely; SCID transplanted before 3.5 months of age without active infection has excellent survival, while CVID outcomes are driven by non-infectious complications.
When to get medical help
See your doctor if you or your child:
- Has infections that keep coming back, last a long time or do not improve with treatment.
- Needs antibiotics many times a year.
- Has a baby who is not gaining weight, has ongoing diarrhea or has thrush that will not go away.
- Has a family history of primary immunodeficiency.
If you already have a diagnosis, contact your care team the same day about any fever or new infection, as advised in your plan.
Go to the emergency department or call emergency services if there is a high fever with confusion, a stiff neck, a new rash that does not fade when pressed, trouble breathing, a baby who is floppy or very hard to wake, signs of a severe allergic reaction during an immunoglobulin infusion, or any other sudden, serious illness.
In an emergency, call 911.
References
- U.S. National Library of Medicine. MeSH: Primary Immunodeficiency Diseases. meshb.nlm.nih.gov
- NIAID: Primary Immune Deficiency Diseases (PIDDs). niaid.nih.gov/diseases-conditions/primary-immune-deficiency-diseases-pidds
- Tangye SG et al. Human inborn errors of immunity: 2022 update on the classification from the IUIS Expert Committee. J Clin Immunol. doi.org/10.1007/s10875-022-01289-3
- Bonilla FA et al. Practice parameter for the diagnosis and management of primary immunodeficiency. J Allergy Clin Immunol 2015. doi.org/10.1016/j.jaci.2015.04.049