Infectious diseases, such as Helicobacter pylori, which produce systemic inflammation may be one key factor in the onset of autoimmunity. The association between H. pylori and antinuclear antibodies (ANA), a marker of autoimmunity, has been understudied. Data from the 1999–2000 National Health and Nutrition Examination Survey were used to evaluate the cross-sectional association between H. pylori seroprevalence and ANA positivity in US adults aged ≥20 years. ANA was measured in a 1:80 dilution of sera by indirect immunofluorescence using HEp-2 cells (positive ⩾3). H. pylori immunoglobulin G enzyme-linked immunosorbent assays were used to categorise individuals as seropositive or seronegative. H. pylori seropositivity and ANA positivity were common in the adult US population, with estimated prevalences of 33.3% and 9.9%, respectively. Both were associated with increasing age. H. pylori seropositivity was associated with higher odds of ANA (prevalence odds ratio = 1.89, 95% confidence interval = 1.08–3.33), adjusted for age, sex, race/ethnicity, educational attainment and body mass index. H. pylori infection may be one key factor in the loss of self-tolerance, contributing to immune dysfunction.