Xanax (alprazolam) will cause sedation, drowsiness and somnolence as a side effect but is not typically prescribed to help with insomnia (trouble sleeping) on a regular basis. Sleepiness after taking Xanax usually occurs within 15 to 45 minutes.