With alprazolam (Xanax) the onset of action for BOTH the immediate release and extended release formulations is 1 hour. Regular alprazolam will work for about 5 hours; extended release about 11 hours. Lorazepam has a more rapid onset of action, 30 – 60 minutes, and may last up to 8 hours.