Xanax is used for the treatment of panic attacks and anxiety. It helps balance out chemicals in the body. works by lessening abnormal excitement in the brain. It balances out chemicals in your body. Do not take more time once a day. Xanax is available in more variants: 1mg, 2mg, 3mg, 0.5mg, and 0.25mg.