We established a nomogram to predict the factors’ influence on viral infection after CAR-T therapy and found that the ratio of baseline lymphocytes and using G-CSF early or lately were able to predict viral infection after CAR-T therapy in r/r B-ALL and B-NHL. This evidence concerns the gene CSF3 and non-Hodgkin lymphoma.