Xanax is used to treat anxiety and panic disorder. It is a class of drugs also known as a benzodiazepine. It calms your nervous system. Take this medicine directed by mouth. Do not take more time it cause severe side effect including depressed mood, confusion, and agitation. Xanax is available in 1mg,2mg,3mg, and 0.5mg.