Your time in drug rehab will be unique to you. Factors specific to your situation, such as how long you’ve used opioids, your medical and mental health history, and other factors will play a role in your time in treatment. One key goal with drug rehab is to get the most out of your program. Think about why you’re going to treatment and what you want from your time there. Per the National Institute on Drug Abuse (NIDA), you can aim to receive treatment for up to 90 days (three months). Longer treatment programs could increase the chances that a person will remain on the recovery path for a long time.