On average, detox takes 5 days, but can range from 3 to 10 days. However, your exact length of stay depends on a variety of factors: the substance(s) you are using, the amount of substance(s) you are using, and for how long you have been using the substance(s).