Xanax can stay in your system for an average of 11 hours, but it may vary depending on factors such as metabolism and dosage.