How long does it take to detox from vicodin?

Depends. Each person is different. Depending on the treatment, it can be weeks to months.
A week or so. Most people feel much better within 5-7 days, if it is done properly. Cold turkey withdrawal may cause symptoms for several weeks. Sleep problems, anxiety, bowel trouble may all last weeks to months, though. It is important to work on the underlying reasons for the addiction as well, with appropriate group and individual counseling, and sometimes medication. Make sure you are seeing an expert.