Xanax (alprazolam) can be detected in urine for up to 5 days after your last dose, though the exact window depends on how long you’ve been taking it, your body composition, and the type of test used. For a single dose in a healthy adult, the drug typically clears faster, often within 2 to 4 days. Chronic or heavy use pushes detection closer to that 5-day mark or potentially beyond it.
How Your Body Processes Xanax
Xanax has an average elimination half-life of about 11 hours in healthy adults, meaning roughly half the drug leaves your body every 11 hours. It takes about five half-lives for a drug to be essentially cleared from your system, which puts total elimination at around 55 hours, or just over two days, for a typical healthy person.
But urine tests don’t look only for the drug itself. Your liver breaks Xanax down into a metabolite called alpha-hydroxyalprazolam, and that byproduct lingers in urine longer than the parent drug. This is why urine detection windows extend well past the point where you stop feeling any effects.
Factors That Extend the Detection Window
The 11-hour half-life is an average for healthy, younger adults. Several factors can slow your body’s processing considerably, keeping the drug and its metabolites in your urine longer.
Age: Older adults clear Xanax more slowly. According to FDA labeling data, the average half-life in healthy elderly subjects is 16.3 hours, compared to 11 hours in younger adults. Some older individuals had half-lives as long as 27 hours, which could push urine detection out to a week.
Liver function: The liver does the heavy lifting in breaking down Xanax. In people with liver disease, the half-life ranged from about 6 hours all the way to 65 hours in FDA studies, with an average around 20 hours. If your liver isn’t working efficiently for any reason, the drug stays in your system significantly longer.
Body weight: Xanax is fat-soluble, so it can accumulate in fatty tissue and release slowly. In individuals with obesity, the average half-life jumped to nearly 22 hours, with some subjects reaching over 40 hours. That’s roughly double the clearance time of a lean, healthy adult.
Dosage and duration of use: A single low dose clears faster than weeks or months of regular use. With repeated dosing, the drug builds up in your tissues, and your body needs more time to flush it all out.
Why the Type of Test Matters
Not all urine drug tests are equally good at detecting Xanax, and this is an important detail most people don’t realize. Standard workplace and clinical drug screens use a method called immunoassay, which looks for a broad class of drugs rather than specific ones. Xanax belongs to the benzodiazepine family, but it doesn’t always trigger a positive result on these broad screens.
Research comparing immunoassay methods to more precise laboratory techniques found that one commonly used immunoassay kit missed 36 out of 100 positive benzodiazepine samples. That’s a false-negative rate of 36%. Newer immunoassay kits perform better, especially at lower detection thresholds, but the takeaway is that a standard screen can miss Xanax entirely depending on the testing technology used.
When accuracy matters, labs use a technique called liquid chromatography with mass spectrometry. This is the gold standard. It can identify alprazolam and its specific metabolite at concentrations as low as 20 nanograms per milliliter, and it’s far less likely to produce a false result in either direction. Confirmatory testing with this method is typically ordered when an initial screen comes back positive or when there’s a specific reason to look for benzodiazepines.
False Positives From Other Medications
If you’re taking a standard immunoassay screen and haven’t used Xanax, two common medications can trigger a false positive for benzodiazepines: the anti-inflammatory drug oxaprozin (sometimes prescribed for arthritis) and the antidepressant sertraline (Zoloft). These drugs share enough chemical similarity to cross-react with the antibodies used in screening tests. If you test positive and believe it’s a false result, a confirmatory lab test can distinguish between these medications and actual benzodiazepine use.
Detection in Other Sample Types
Urine is the most common testing method, but Xanax can also be detected in blood, saliva, and hair. Blood tests have a shorter detection window, typically 1 to 2 days, since they measure the active drug rather than accumulated metabolites. Saliva testing is similar, with a window of roughly 2.5 days. Hair testing has the longest reach, potentially detecting use for up to 90 days, but it’s less commonly used outside forensic or legal settings.
A Practical Timeline
For a healthy adult in their 20s or 30s, with normal liver function and a healthy weight, who took a single dose of Xanax: the drug will likely be undetectable in urine within 2 to 4 days. For someone older, heavier, or with compromised liver function who has been taking Xanax regularly, detection could extend to 5 days or longer, particularly with sensitive confirmatory testing. The variability is wide enough that no single number applies to everyone, but 5 days is a reasonable upper bound for most people on standard tests.

