ObjectivesMissed opportunities to diagnose tuberculosis are costly to patients and society. In this study, we (1) estimate the frequency and duration of diagnostic delays among patients with active pulmonary tuberculosis and (2) determine the risk factors for experiencing a diagnostic delay.DesignA retrospective cohort study of patients with tuberculosis using longitudinal healthcare encounters prior to diagnosis.SettingCommercially insured enrollees from the Commercial Claims and Encounters or Medicare Supplemental IBM Marketscan Research Databases, 2001–2017.ParticipantsAll patients diagnosed with, and receiving treatment for, pulmonary tuberculosis, enrolled at least 365 days prior to diagnosis.Primary and secondary outcome measuresWe estimated the number of visits with tuberculosis-related symptoms prior to diagnosis that would be expected to occur in the absence of delays and compared this estimate to the observed pattern. We computed the number of visits representing a delay and used a simulation-based approach to estimate the number of patients experiencing a delay, number of missed opportunities per patient and duration of delays (ie, time between diagnosis and earliest missed opportunity). We also explored risk factors for missed opportunities.ResultsWe identified 3371 patients diagnosed and treated for active tuberculosis that could be followed up for 1 year prior to diagnosis. We estimated 77.2% (95% CI 75.6% to 78.7%) of patients experienced at least one missed opportunity; of these patients, an average of 3.89 (95% CI 3.65 to 4.14) visits represented a missed opportunity, and the mean duration of delay was 31.66 days (95% CI 28.51 to 35.11). Risk factors for delays included outpatient or emergency department settings, weekend visits, patient age, influenza season presentation, history of chronic respiratory symptoms and prior fluoroquinolone use.ConclusionsMany patients with tuberculosis experience multiple missed diagnostic opportunities prior to diagnosis. Missed opportunities occur most commonly in outpatient settings and numerous patient-specific, environment-specific and setting-specific factors increase risk for delays.