Although household contacts of patients with tuberculosis are known to be particularly vulnerable to tuberculosis, the published evidence focused on this group at high risk within the low-income and middle-income country context remains sparse. Using nationwide data from Brazil, we aimed to estimate the incidence and investigate the socioeconomic and clinical determinants of tuberculosis in a cohort of contacts of tuberculosis patients. In this cohort study, we linked individual socioeconomic and demographic data from the 100 Million Brazilian Cohort to mortality data and tuberculosis registries, identified contacts of tuberculosis index patients diagnosed from Jan 1, 2004 to Dec 31, 2018, and followed up the contacts until the contact's subsequent tuberculosis diagnosis, the contact's death, or Dec 31, 2018. We investigated factors associated with active tuberculosis using multilevel Poisson regressions, allowing for municipality-level and household-level random effects. We studied 420 854 household contacts of 137 131 tuberculosis index patients. During the 15 years of follow-up (median 4·4 years [IQR 1·9-7·6]), we detected 8953 contacts with tuberculosis. The tuberculosis incidence among contacts was 427·8 per 100 000 person-years at risk (95% CI 419·1-436·8), 16-times higher than the incidence in the general population (26·2 [26·1-26·3]) and the risk was prolonged. Tuberculosis incidence was associated with the index patient being preschool aged (<5 years; adjusted risk ratio 4·15 [95% CI 3·26-5·28]) or having pulmonary tuberculosis (2·84 [2·55-3·17]). The high and sustained risk of tuberculosis among contacts reinforces the need to systematically expand and strengthen contact tracing and preventive treatment policies in Brazil in order to achieve national and international targets for tuberculosis elimination. Wellcome Trust and Brazilian Ministry of Health.