Xanax is a category of medication. It is used treat to anxiety and panic disorder also known as alprazolam. It is called a benzodiazepine. It works by helping to calm your nervous system balance out chemicals in your body and make you feel relaxed. Xanax is available in 1mg, 2mg, 3mg, 0.5mg, and 0.25mg.