The purpose of this study was to explore the association between myasthenia gravis (MG) and the risk of atrial fibrillation (AF) in an Asian population. The risk was analyzed in a cohort of 5528 patients with history of MG and 5528 individuals without MG using a hospitalization claim dataset. Both groups were matched by age, sex, index year and baseline comorbidities as an original analysis. A Cox proportional hazard model was used to estimate the hazard ratio and 95% confidence interval of AF after adjusting for demographic and relevant clinical covariates. The adjusted hazard ratio of the MG group compared with that of the non-MG group was 1.03 (95% confidence interval, 0.76-1.38) for AF. A stratified analysis showed that compared with the propensity score matched non-MG group, there was no increased risk of developing AF based on age categories, gender, or comorbidities. Different time follow-up periods results showed no increased risk of AF compared with the non-MG group. Overall, in the Taiwanese cohort, MG is not associated with an increased risk of AF.