IMPORTANCEThe association of hepatitis B virus (HBV) infection with reduced fecundability among reproductive-aged couples lacks large-population, in-depth study evidence.OBJECTIVETo investigate the association of HBV infection with time to pregnancy in couples planning pregnancy, and to explore whether this association varied by gravidity, health statuses, or lifestyles.DESIGN, SETTING, AND PARTICIPANTSThis is a population-based cohort study of Chinese couples participating in the National Free Preconception Check-up Projects during 2015 to 2017. They were planning pregnancy and were followed-up every 3 months until getting pregnant, as confirmed by gynecologic ultrasonography, or were followed-up for 1 year. Data were analyzed between March 1, 2022, and September 30, 2022.MAIN OUTCOMES AND MEASURESThe main outcome was time to pregnancy, assessed using fecundability hazard ratios (HRs). The Cox proportional hazards regression models were used to estimate the association of HBV infection with fecundability.RESULTSAmong 2 419 848 couples (mean [SD] age, 27.87 [5.20] years for women and 29.58 [5.50] years for men), 126 728 women (5.24%) and 156 572 men (6.47%) were infected with HBV. Compared with the HBV-negative group, the fecundability of both women and men in the HBV-positive group decreased by 5% (HR, 0.95; 95% CI, 0.94-0.95). Compared with couples in which both partners were HBV negative, the fecundability of those in which both partners were HBV positive declined by 6% (HR, 0.94; 95% CI, 0.93-0.96) among all couples, by 3% (HR, 0.97; 95% CI, 0.95-0.99) among nulligravidas couples, and by 7% (HR, 0.93; 95% CI, 0.91-0.95) among multigravidas couples. Both the female-male and couple models suggested that the association of HBV infection with decreased fecundability was more pronounced in couples with multigravidas. The negative association was greater in people with overweight and obesity and was inconsistent in certain subgroups; in particular, it was more pronounced in women with reproductive tract infections, normal fasting plasma glucose, and no alcohol intake and in men with normal blood pressure.CONCLUSIONS AND RELEVANCEIn this population-based cohort study, HBV infection was associated with decreased fecundability in a general reproductive-aged population, especially in couples with multigravidas. For women and men with certain health statuses and lifestyles, a comprehensive consideration of this association is recommended to provide personalized fertility guidance.