This study aims to investigate the potential correlation between baseline red cell distribution width (RDW) to albumin ratio (RAR) levels and treatment failure in peritoneal dialysis-associated peritonitis (PDAP) patients. A retrospective single-center study was conducted on 286 PDAP patients. Logistic regression and generalized estimation equation (GEE) analyses were employed to assess the relationship between RAR and treatment failure. RAR emerged as a robust predictor of treatment failure in PDAP patients. Elevated RAR levels were associated with an increased risk of treatment failure, exhibiting a linear relationship. Even after adjusting for demographic and clinical variables, this association remained statistically significant. ROC analysis revealed that RAR outperformed RDW and albumin individually in predicting PDAP prognosis. This study highlights RAR as a superior prognostic marker for treatment failure in PDAP patients, offering new insights into risk assessment and management strategies for this challenging condition.