Objective: To assess the relationship between serum albumin and length of stay (LOS) of the intensive care unit (ICU).Design and Participants: we retrospectively analyze 2280 patients with acute heart failure(AHF) from the medical information mart for intensive care IV (the MIMIC-IV ) database. Materials and Methods: The exposure variable of the present study was serum albumin. The outcome variable was LOS. The final models were established by multivariate linear regression, and subgroup analysis was performed. Trend test and smooth fitting curves were used to evaluate the association between serum albumin and LOS. Results: When the value of serum albumin was less than 5.1g/dl, the analysis of 2280 patients showed that the linear relationship between albumin and LOS. LOS was gradually shortened with the albumin increasing (β: -0.636; 95%CI: -0.819, -0.453; P <0.001). In subgroup, sepsis and serum albumininitial had an interactive effect on LOS (P=0.036), and there was significantly different between AHF patients with sepsis (β:-1.927; 95%CI:-3.823, -0.030) and without sepsis(β: -1.412; 95%CI:-1.737, -1.087) .Conclusion: When serum albumin was less than 5.1g/dl, the negative association was presented between serum albumin level and LOS among patients with AHF, and this association is even closer in patients with sepsis.