Inpatient rehab is a residential treatment center where clients reside for several lengths depending on their plans. The average stay is 30 days, but most addiction treatment facilities offer more extended programs such as 60 days, 90 days, or even longer. The treatment period depends on several determinants, including the severity of the addiction, the existence of any cooccurring mental health conditions, and whether the person has been through rehab before.