Background: The Xpert MTB/RIF assay is an automated molecular test that is designed to simultaneously detect Mycobacterium tuberculosis (MTB) complex and rifampin resistance. However, there are relatively few studies on this method in China. Xpert has been routinely used at Peking University People's Hospital (PKUPH) since November 2016. Thus, the aim of this study was to evaluate the performance of Xpert, and provide a reference and guidance for the detection and diagnosis of TB in non-TB specialized hospitals. Methods: The medical records of inpatients simultaneously tested with Xpert, acid-fast bacilli (AFB) smear microscopy, and interferon-gamma release assay (IGRA, by T-SPOT®.TB) at PKUPH from November 2016 to October 2018 were reviewed. Active TB cases were considered according to a composite reference standard (CRS). Then, the three methods were evaluated and compared. Results: In total, 787 patients simultaneously tested with Xpert, AFB, and IGRA were enrolled; among them 11.3% (89/787) were diagnosed and confirmed active pulmonary TB (PTB, 52 cases), extrapulmonary TB (EPTB, 17 cases), and tuberculous pleurisy (TP, 20 cases). The sensitivity of Xpert in detecting PTB, EPTB, and TP was 88.