The duration of detoxification varies depending on factors such as the substance involved, the severity of addiction, and the patient's overall health. It can range from a few days to several weeks. The process is highly individualized, and medical professionals tailor the duration and treatment plan to the patient's specific needs.