Introduction. Atrial fibrillation (AF) is a common heart rhythm disorder. Several life-style factors have been identified as risk factors for AF, but less is known about the impact of work-related stress. This study aims to evaluate the association between work-related stress, defined as job strain, and risk of AF. Methods. Data from the Swedish WOLF study was used, comprising 10,121 working men and women. Job strain was measured by the demand-control model. Information on incident AF was derived from national registers. Cox proportional hazard regression was used to estimate hazard ratios (HR) and 95% confidence intervals (CI) for the association between job strain and AF risk. Results. In total, 253 incident AF cases were identified during a total follow-up time of 132,387 person-years. Job strain was associated with AF risk in a time-dependent manner, with stronger association after 10.7 years of follow-up (HR 1.93, 95% CI 1.10–3.36 after 10.7 years, versus HR 1.11, 95% CI 0.67–1.83 before 10.7 years). The results pointed towards a dose-response relationship when taking accumulated exposure to job strain over time into account. Conclusion. This study provides support to the hypothesis that work-related stress defined as job strain is linked to an increased risk of AF.