Xanax is the brand name for Alprazolam, a commonly prescribed medication used to treat anxiety and panic disorders. This medication is a benzodiazepine and is classified as a non-barbiturate sedative-hypnotic drug. The proper dosage will depend on your age, gender, and medical history as well as any other medications you are taking.