The invention provides a statistical method and device for the number of newly infected inpatients and a storage medium, and aims to solve the problem that in the prior art, statistics of the number of the newly infected inpatients is troublesome in a statistical time period. The invention provides a statistical method for the number of newly infected inpatients. The statistical method comprises the following steps: obtaining statistical time, selection of a corresponding department, authority department information, hospitalizing process information, transfer records, infection information and operation information; a step of acquiring the confirmed infection information H (a) _ Y, a step of acquiring infection information H (g) _ Y of non-surgical site infection, a step of acquiring infection information H (g) _ Y of surgical site infection, and a step of merging the infection information H (g) _ Y and the infection information H (b1) _ Y to obtain infection diagnosis information H (h); and counting the number of patients whose output results are not empty. According to the invention, the number of newly infected inpatients can be accurately counted within the statistical period,and the data of the number of newly infected inpatients can be conveniently obtained.