The phenotype of primary immunodeficiency disorders (PID), and especially common variable immunodeficiency (CVID), may be dominated by symptoms of autoimmune disorders. Furthermore, autoimmunity may be the first manifestation of PID, frequently preceding infections and the diagnosis of hypogammaglobulinemia, which occurs later on. In this case, distinguishing PID from hypogammaglobulinemia secondary to anti-inflammatory treatment of autoimmunity may become challenging. The aim of this study was to evaluate the diagnostic accuracy of peripheral blood lymphocyte phenotyping in resolving the diagnostic dilemma between primary and secondary hypogammaglobulinemia. Comparison of B and T cell subsets from patients with PID and patients with rheumatic disease, who developed hypogammaglobulinemia as a consequence of anti-inflammatory regimes, revealed significant differences in proportion of naïve B cells, class-switched memory B cells and CD21low B cells among B cells as well as in CD4+ memory T cells and CD4+ T follicular cells among CD4+ T cells. Identified differences in B cell and T cell subsets, and especially in the proportion of class-switched memory B cells and CD4+ T follicular cells, display a considerable diagnostic efficacy in distinguishing PID from secondary hypogammaglobulinemia due to anti-inflammatory regimens for rheumatic disease.