Xanax is a drug that can treat depression and panic disorder in patients. This is a short acting medication and this is the reason why it is prescribed in divided doses in a day. The medication is highly addictive in nature when misused, taken in higher doses or for a longer span of time. Xanax falls under the prescription only category. The biological half-life of the medication is up to four to five hours.