Symptoms of Xanax withdrawal can last anywhere from several weeks to several months. But the major withdrawal symptoms present during Xanax detox should resolve within about a month. However, people have reported cases of insomnia, heightened anxiety, and cravings long after the initial 30 days of Xanax withdrawal.