How Long Does Xanax Stay in Your System?

Xanax (alprazolam) stays in your system for roughly two to four days after your last dose, though it can be detected even longer depending on the type of test. The drug’s average half-life is about 11.2 hours, meaning your body eliminates half of a dose in that time. But “out of your system” and “undetectable on a drug test” are two different things, and several personal factors can stretch or shorten that window.

How Your Body Processes Xanax

After you swallow a tablet, Xanax is absorbed quickly. Blood levels peak within one to two hours. From there, your liver does most of the work, breaking the drug down through a family of enzymes called CYP3A. This process produces byproducts (metabolites), one of which is still mildly active before being cleared by the kidneys.

The average elimination half-life of 11.2 hours means that after roughly 11 hours, half the drug remains in your bloodstream. After another 11 hours, a quarter remains, and so on. It generally takes four to five half-lives for a drug to be considered fully eliminated. For most healthy adults, that works out to about two to three days. But the FDA-reported half-life range is wide: 6.3 to 26.9 hours. Someone on the longer end of that range could carry trace amounts for four days or more.

Detection Windows by Test Type

Drug tests don’t just look for the parent drug. They also pick up those metabolites your liver creates, which linger after the drug’s effects have worn off. Here’s how long Xanax is typically detectable:

  • Urine: Up to 5 to 7 days for most people. Urine tests are the most common screening method, and because metabolites concentrate in urine, this window is longer than for blood.
  • Blood: Up to 4 to 5 days. A blood draw can detect Xanax well after you’ve stopped feeling any anti-anxiety effects.
  • Saliva: Roughly 1 to 2.5 days. Saliva tests have a shorter detection window and are less commonly used.
  • Hair: Up to 90 days. Hair follicle tests capture a much longer history of use, though they’re typically reserved for specific legal or employment situations.

These are general estimates. Chronic or heavy use pushes every window longer because the drug accumulates in body tissues over time.

What Makes Xanax Stay Longer

The 11.2-hour average half-life applies to healthy adults, but your individual clearance time depends on several factors that can slow your liver’s ability to break the drug down.

Age is one of the biggest variables. Liver metabolism naturally slows with age, so older adults tend to clear Xanax more slowly. The wide half-life range (up to nearly 27 hours) partly reflects this. A half-life of 27 hours means full elimination could take five to six days rather than two.

Liver function matters significantly. Because Xanax relies on liver enzymes for breakdown, any degree of liver impairment, from fatty liver disease to cirrhosis, can meaningfully prolong the drug’s effects and its detection window.

Body composition plays a role as well. Xanax is lipophilic, meaning it dissolves into fat tissue. People with a higher body fat percentage may store the drug longer, releasing it back into the bloodstream gradually.

Other medications can interfere with the same liver enzymes that process Xanax. Certain antifungal drugs, some antibiotics, and even grapefruit juice can slow enzyme activity, keeping Xanax in your system longer than expected. The reverse is also true: some medications speed up those enzymes and shorten the window.

Dose and duration of use are straightforward. Higher doses take longer to clear. And if you’ve been taking Xanax daily for weeks or months, the drug builds up in your tissues, extending the total clearance time well beyond what a single dose would produce.

Effects Wear Off Before the Drug Clears

Most people feel Xanax’s calming effects for four to six hours, even though the drug itself remains in the body much longer. This gap trips people up in two ways. First, it can lead someone to take another dose too soon, stacking levels higher than intended. Second, it creates a false sense that the drug is “gone” when a test would still detect it days later.

The metabolites your liver produces are part of the reason. They’re far less active than the original drug, so you don’t feel them working, but they’re still circulating and still showing up on screens.

Withdrawal Can Start While It’s Still Detectable

Because Xanax is relatively short-acting compared to other drugs in its class, withdrawal symptoms can begin within 6 to 24 hours after the last dose. Early signs typically include rebound anxiety, restlessness, and difficulty sleeping. This onset often catches people off guard because it arrives faster than with longer-acting alternatives.

Withdrawal symptoms can persist for days to weeks, depending on how long you’ve been taking the drug and at what dose. The timeline is not the same as the detection timeline. Your body can still test positive for Xanax while you’re already experiencing withdrawal, because the remaining drug levels have dropped below what your nervous system has adapted to, even though trace amounts remain measurable in blood or urine.