BackgroundApproximately 10% to 20% of myasthenia gravis (MG) patients have experienced a myasthenic crisis (MC), which contributes to morbidity and mortality. MC triggered by infection is associated with poor outcomes. However, there is a lack of prognostic factors that clinicians can utilize to target interventions for preventing recurrent infection-triggered MC. This study aimed to characterize clinical manifestations, comorbidities, and biochemical profiles associated with recurrent infection-triggered MC in MG patients.MethodsThis retrospective study included 272 MG patients hospitalized with an infection requiring at least 3 days of antibiotics from January 2001 to December 2019. Patients were further stratified into non-recurrent or recurrent infection groups. Clinical features such as gender, age, concomitant diseases, acetylcholine receptor antibodies and biochemical data (including electrolytes and coagulants), muscle strength of pelvic and shoulder girdle, bulbar and respiratory function, management with an endotracheal tube, Foley catheter, or plasmapheresis, duration of hospitalization, and culture pathogens were recorded.ResultsThe recurrent infection group was significantly older than the non-recurrent group (median age, 58.5 versus 52.0 years). Pneumonia was the most common infection andKlebsiella pneumoniaewas the most common pathogen. The presence of concomitant diabetes mellitus, activated partial thromboplastin time prolongation, the duration of hospitalization, and hypomagnesaemia were independently associated with recurrent infection. The presence of deep vein thrombosis, thymic cancer, and electrolyte imbalances i.e., hypokalemia, and hypoalbuminemia were significantly associated with a risk for infection. The influence of endotracheal intubation, anemia, and plasmapheresis during hospitalization were inconsistent.ConclusionsThe independent risk factors for recurrent infections in MG patients identified in this study include the presence of concomitant diabetes mellitus, hypomagnesaemia, activated partial thromboplastin time prolongation, and longer duration of hospitalization, highlighting the need for targeted interventions to prevent recurrent infections in this population. Further research and prospective studies are warranted to validate these findings and refine interventions for optimizing patient care.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12883-023-03306-3.