Objectives Sex differences occur in atrial fibrillation (AF), including age at first manifestation, pathophysiology, treatment allocation, complication rates and quality of life. However, optimal doses of cardiovascular pharmacotherapy used in women with AF with or without heart failure (HF) are unclear. We investigated sex-specific associations of beta-blocker and renin–angiotensin system (RAS) inhibitor doses with cardiovascular outcomes in patients with AF or AF with concomitant HF.Methods We used data from the prospective Basel Atrial Fibrillation and Swiss Atrial Fibrillation cohorts on patients with AF. The outcome was major adverse cardiovascular events (MACEs), including death, myocardial infarction, stroke, systemic embolisation and HF-related hospitalisation. Predictors of interest were spline (primary analysis) or quartiles (secondary analysis) of beta-blocker or RAS inhibitor dose in per cent of the maximum dose (reference), in interaction with sex. Cox models were adjusted for demographics, comorbidities and comedication.Results Among 3961 patients (28% women), MACEs occurred in 1113 (28%) patients over a 5-year median follow-up. Distributions of RAS inhibitor and beta-blocker doses were similar in women and men. Cox models revealed no association between beta-blocker dose or RAS inhibitor dose and MACE. In a subgroup of patients with AF and HF, the lowest hazard of MACE was observed in women prescribed 100% of the RAS inhibitor dose. However, there was no association between RAS dose quartiles and MACE.Conclusions In this study of patients with AF, doses of beta-blockers and RAS inhibitors did not differ by sex and were not associated with MACE overall.