Abundant evidence on Xpert MTB/RIF accuracy for diagnosing tuberculosis (TB) and rifampicin resistance has been produced, yet there are few data on the population benefit of its programmatic use. We assessed whether the implementation of Xpert MTB/RIF in routine conditions would (1) increase the notification rate of laboratory-confirmed pulmonary TB to the national notification system and (2) reduce the time to TB treatment initiation (primary endpoints). We conducted a stepped-wedge cluster-randomized trial from 4 February to 4 October 2012 in 14 primary care laboratories in two Brazilian cities. Diagnostic specimens were included for 11,705 baseline (smear microscopy) and 12,522 intervention (Xpert MTB/RIF) patients presumed to have TB. Single-sputum-sample Xpert MTB/RIF replaced two-sputum-sample smear microscopy for routine diagnosis of pulmonary TB. In total, 1,137 (9.7%) tests in the baseline arm and 1,777 (14.2%) in the intervention arm were positive (p<0.001), resulting in an increased bacteriologically confirmed notification rate of 59% (95% CI = 31%, 88%). However, the overall notification rate did not increase (15%, 95% CI = −6%, 37%), and we observed no change in the notification rate for those without a test result (−3%, 95% CI = −37%, 30%). Median time to treatment decreased from 11.4 d (interquartile range [IQR] = 8.5–14.5) to 8.1 d (IQR = 5.4–9.3) (p = 0.04), although not among confirmed cases (median 7.5 [IQR = 4.9–10.0] versus 7.3 [IQR = 3.4–9.0], p = 0.51). Prevalence of rifampicin resistance detected by Xpert was 3.3% (95% CI = 2.4%, 4.3%) among new patients and 7.4% (95% CI = 4.3%, 11.7%) among retreatment patients, with a 98% (95% CI = 87%, 99%) positive predictive value compared to phenotypic drug susceptibility testing. Missing data in the information systems may have biased our primary endpoints. However, sensitivity analyses assessing the effects of missing data did not affect our results. Replacing smear microscopy with Xpert MTB/RIF in Brazil increased confirmation of pulmonary TB. An additional benefit was the accurate detection of rifampicin resistance. However, no increase on overall notification rates was observed, possibly because of high rates of empirical TB treatment. ClinicalTrials.gov NCT01363765 Please see later in the article for the Editors' Summary Tuberculosis—a contagious bacterial disease that usually infects the lungs—is a global public health problem. Each year, about 8.6 million people develop active tuberculosis and at least 1.3 million people die from the disease, mainly in resource-limited countries. Mycobacterium tuberculosis, the bacterium that causes tuberculosis, is spread in airborne droplets when people with active disease cough or sneeze. The characteristic symptoms of tuberculosis include cough, weight loss, and night sweats. Diagnostic tests for tuberculosis include sputum smear microscopy (microscopic analysis of mucus coughed up from the lungs), the growth (culture) of M. tuberculosis from sputum samples, and molecular tests (for example, the Xpert MTB/RIF test) that rapidly and accurately detect M. tuberculosis in sputum and determine its antibiotic resistance. Tuberculosis can be cured by taking several antibiotics daily for at least six months, although the emergence of multidrug-resistant tuberculosis is making the disease increasingly hard to treat. Quick, accurate diagnosis of active tuberculosis is essential to reduce the global tuberculosis burden, but in most high-burden settings diagnosis relies on sputum smear analysis, which fails to identify many infected people. Mycobacterial culture correctly identifies more infected people but is slow, costly, and rarely available in resource-limited settings. In late 2010, therefore, the World Health Organization recommended the routine use of the Xpert MTB/RIF assay (Xpert) for tuberculosis diagnosis, and several resource-limited countries are currently scaling up the use of Xpert in their national tuberculosis control programs. However, although Xpert works well in ideal conditions, little is known about its performance in routine (real-life) settings. In this pragmatic stepped-wedge cluster-randomized trial, the researchers assess the impact of replacing smear microscopy with Xpert for the diagnosis of tuberculosis in Brazil, an upper-middle-income country with a high tuberculosis burden. A pragmatic trial asks whether an intervention works under real-life conditions; a stepped-wedge cluster-randomized trial sequentially and randomly rolls out an intervention to groups (clusters) of people. The researchers randomly assigned 14 tuberculosis diagnosis laboratories in two cities to switch at different times from smear microscopy to Xpert for tuberculosis diagnosis. Specifically, at the start of the eight-month trial, all the laboratories used smear microscopy for tuberculosis diagnosis. At the end of each month, two laboratories switched to using Xpert, so that in the final month of the trial, all the laboratories were using Xpert. During the trial, 11,705 samples from patients with symptoms consistent with tuberculosis were examined using smear microscopy (baseline arm), and 12,522 samples were examined using Xpert (intervention arm). The researchers obtained the results of these tests from a database of all the diagnostic tests ordered in the Brazilian public laboratory system, and they obtained data on tuberculosis notifications during the trial period from the national notification system. In total, 9.7% and 14.2% of the tests in the baseline and intervention arm, respectively, were positive, and the laboratory-confirmed tuberculosis notification rate was 1.59 times higher in the Xpert arm than in the smear microscopy arm. However, the overall notification rate (which included people who began treatment on the basis of symptoms alone) did not increase during the trial. The time to treatment (the time between the laboratory test date and the notification date, when treatment usually starts in Brazil) was about 11 days and eight days in the smear microscopy and Xpert arms, respectively. The findings indicate that, in a setting where laboratory diagnosis for tuberculosis was largely restricted to sputum smear examination, the implementation of Xpert increased the rates of laboratory-confirmed pulmonary (lung) tuberculosis notifications and reduced the time to treatment initiation, two endpoints of public health relevance. However, implementation of Xpert did not increase the overall notification rate of pulmonary tuberculosis (probably because of the high rate of empiric tuberculosis treatment in Brazil), although it did facilitate accurate and rapid detection of rifampicin resistance. The accuracy of these findings may be limited by certain aspects of the trial design, and further studies are needed to evaluate the possible effects of Xpert beyond diagnosis and the time to treatment initiation. Nevertheless, these findings suggest that replacing smear microscopy with Xpert has the potential to increase the confirmation (but not detection) of pulmonary tuberculosis and to reduce the time to treatment initiation at the population level in Brazil and other resource-limited countries. Please access these websites via the online version of this summary at http://dx.doi.org/10.1371/journal.pmed.1001766.