How Long Does Xanax Stay in Your System?

Xanax stops working within hours but stays detectable much longer—about 1 to 4 days in urine, 1 to 2 days in blood or saliva, and up to 90 days in hair. It can slip past a standard benzodiazepine screen, and it must never be stopped abruptly.
Jessica Miller is the Content Manager of Addiction HelpWritten by
Kent S. Hoffman, D.O. is a founder of Addiction HelpMedically reviewed by Kent S. Hoffman, D.O.
Last updated

Battling addiction & ready for help?

Find Treatment Now

Xanax stops working long before it leaves your body. The calm most people feel fades within hours, yet the drug and its breakdown products can still be found in urine for days, in blood and saliva for a shorter window, and in hair for months. So there are really two different clocks running, and they answer two different questions.

The first clock is how long the effect lasts. The second is how long a drug test can still detect it. Confusing the two is where most worry starts, because a person can feel completely normal and still test positive. What follows walks through both, built around a detection-window table you can read at a glance.

Never stop Xanax abruptly after regular use. Benzodiazepine withdrawal can cause seizures and can be life-threatening. Call 911 for a seizure. Call or text 988 for emotional crisis. The safe way off is a medically supervised taper.
Do not stop Xanax suddenly if you have been taking it regularly. Unlike most drugs, benzodiazepines are dangerous to quit cold turkey. Abrupt discontinuation can trigger seizures, and in rare cases alprazolam withdrawal has proven fatal[1]. This is a medical situation, not a willpower test.

Call 911 or go to the nearest emergency room for:

  • A seizure of any kind, including shaking, stiffening, or a loss of consciousness
  • Severe confusion, agitation, or hallucinations after cutting back or stopping
  • A racing or irregular heartbeat, chest pain, or trouble breathing

If you take Xanax every day, the safe way off is a slow, doctor-supervised taper, never an overnight stop. A medical team can lower the dose gradually and step in if withdrawal turns dangerous[2]. If you are trying to clear the drug fast because a test is coming or because you are frightened, the answer is not a flush or a crash detox. It is real help. Find confidential Xanax treatment near you → For emotional crisis or thoughts of suicide, call or text 988 any time.

AddictionHelp.com Fast Facts
  • Effects fade in hours, traces linger for days: most people feel Xanax wear off within a few hours, while a urine test can stay positive far longer.
  • Half a day is the usual half-life: in healthy adults the average time for the body to clear half a dose of alprazolam is about 12 hours, so full elimination takes several days[3].
  • A standard 5-panel test does not screen for Xanax: the common workplace 5-panel checks for marijuana, cocaine, amphetamines, opioids, and PCP, not benzodiazepines, so alprazolam shows up only on a benzodiazepine-inclusive panel such as a 10-panel[4].
  • Even a benzo test can miss it: alprazolam is broken down into α-hydroxyalprazolam and can slip past a routine benzodiazepine screen unless the lab tests for it specifically[5].
  • No hack clears it faster: only time and a healthy liver remove Xanax; detox drinks do not beat a properly run test.

Xanax Wears Off Fast but Lingers for Days

Xanax is the best-known brand name for alprazolam, a short-acting benzodiazepine prescribed for anxiety and panic. Because it acts quickly, people tend to feel it come on within an hour and ease off over the rest of the day. The felt effects, the drowsiness and the calm, are usually gone well before the drug itself is.

That gap exists because the body removes alprazolam at a measured pace. Pharmacologists describe that pace with a number called the elimination half-life, the time it takes to clear half a dose from your blood. For alprazolam in healthy adults that average is about 12 hours[3], and published studies place the typical range at roughly 9 to 16 hours[6].

Here is the part that matters for a test. A drug is not gone after a single half-life has passed. It takes about four to five half-lives to clear almost all of a dose, so even for an average person, full elimination of one dose of Xanax takes somewhere in the neighborhood of two to four days. Regular daily use stretches that out further, because the drug is still going in while the body works to clear it.

Absorption is quick, which is part of why alprazolam earns its short-acting label. After a standard tablet, blood levels typically peak within roughly one to two hours, and the calming effect tracks that rise and fall[6]. That fast on, fast off feeling is exactly what fools people about detection. By the time the sedation has lifted, most of the drug is still in the body, working its way through the slow clearance that sets every detection window.

It helps to picture two curves. One is how you feel, which climbs fast and drops off within hours. The other is how much drug and metabolite a lab can measure, which trails behind and fades over days. A test reads the second curve, not the first. So the plain answer to how long Xanax lasts is a few hours, while the answer to how long it stays detectable is the several days that follow.

Xanax Detection Windows by Test Type

Here is the quick answer most people are looking for. These are typical windows for standard laboratory testing after alprazolam use. Treat them as general ranges rather than guarantees, because the exact number shifts with dose, how long someone has been taking it, age, and liver health. Heavy or long-term use pushes every window toward the longer end.

Why the trace outlasts the calmWhen you swallow Xanax, the liver goes to work turning it into other compounds, chiefly α-hydroxyalprazolam, before the body clears them out[6]. A urine test is really hunting for that leftover chemistry. So a test can come back positive a day or two after the last pill even though the sedating effect wore off the first evening.
Test Type Typical Detection Window What It Reflects
Urine About 1 to 4 days after occasional use; up to a week or more with heavy or long-term use The most common test; looks for alprazolam and its metabolite
Blood About 1 to 2 days Recent use; alprazolam clears the blood within a few days
Saliva (oral fluid) About 1 to 2 days Recent use; easy to collect and hard to tamper with
Hair Up to about 90 days A long-term history of use, not recent use
Half-life (reference) Average close to half a day; typical range about 9 to 16 hours How fast the body clears half a dose, which drives every detection window

Urine is the standard choice because its window is wide enough to catch use from the past several days and the sample is easy to collect. Blood and saliva are narrower and point to fairly recent use. Hair sits at the other extreme, holding a record of use that can reach back around three months, which is why it is used to look at patterns over time rather than a single recent dose.

Does Xanax Show Up on a 5-Panel Drug Test?

Usually not, and the reason catches people off guard. The standard 5-panel drug test, the kind most often used for employment and required under federal workplace rules, screens for only five substances: marijuana, cocaine, amphetamines, opioids, and PCP[4]. Benzodiazepines are not among them, so a basic 5-panel is not looking for alprazolam at all. Someone taking Xanax can clear a standard 5-panel simply because the drug was never on the menu of what the test checks.

Benzodiazepines get caught only when a test is expanded to include them. A 10-panel screen and most clinical, pain-management, court-ordered, and treatment-program panels add a benzodiazepine assay, and that is when those detection windows apply. If you have been told a test screens for benzodiazepines, treat it as one that can detect Xanax.

Then comes the twist that runs the other way. Even a panel built to test for benzodiazepines can miss alprazolam in particular, for the reason the next section explains. So the real answer to whether Xanax shows up is layered. It is no on a standard 5-panel, usually yes on a benzodiazepine-inclusive panel, and even then only when the test is set up to catch alprazolam rather than just the older benzodiazepines it is often calibrated for.

Standard Benzodiazepine Tests Can Miss Xanax

This is the surprising part, and it cuts both ways. Alprazolam does not always show up on a routine benzodiazepine screen. Many quick immunoassay panels are calibrated for the metabolites of older benzodiazepines like diazepam and lorazepam, which are, in the words of one forensic report, readily detected. Alprazolam has historically been relatively difficult to confirm by those same methods[7].

A negative screen is not proofBecause a generic benzodiazepine panel can miss alprazolam, a negative result does not always mean none is present[7]. This matters most in clinical and safety settings, where a missed positive can hide a real risk. It is also why laboratories confirm important results with a more specific method.

A published clinical case shows how this plays out. A patient prescribed alprazolam gave a urine sample that screened positive for benzodiazepines using a standard immunoassay at a cutoff of 200 ng/mL, yet the confirmatory test found no common benzodiazepine metabolites at all, only the parent alprazolam[5]. A separate specimen from the same patient tested positive for α-hydroxyalprazolam, the alprazolam-specific metabolite, down to a detection limit of 10 ng/mL[5]. The lesson is that catching alprazolam reliably often requires testing that specifically targets it, not a generic benzodiazepine screen.

There is a second wrinkle worth knowing. The choice of sample changes what gets caught. When researchers compared oral fluid against urine for a range of benzodiazepines and opioids, several benzodiazepines showed higher detection rates in urine, because differences in how each drug is processed and excreted make one matrix better than another for a given compound[8]. In plain terms, no single test is best for everything.

The quick strip-style tests used outside a lab are even less certain. In a validation study of benzodiazepine immunoassay strips against gold-standard laboratory confirmation, the strips correctly flagged a benzodiazepine only 67% of the time and gave a false positive often enough that their specificity was 82%[9]. Point-of-care testing is a screen, not a verdict, which is why a result that carries real consequences is confirmed with a more precise method.

What a Positive or Negative Xanax Test Actually Means

Because of all this, it is worth being clear about what a single result can and cannot tell you. A positive screen means the test detected something consistent with a benzodiazepine. It does not, on its own, prove which drug, how much, or when it was taken. That is why laboratories run a confirmatory step, usually a form of mass spectrometry, to name the exact compound before a result is treated as final[5].

A negative result carries its own caveat. Since a generic panel can miss alprazolam entirely, a clean screen is not always proof that none is present[7]. For most people this is academic. It matters most in medical and safety settings, where a missed positive could hide a genuine risk, and it is one more reason not to read too much certainty into a single test either way.

None of this is a loophole to exploit. The unreliability of quick screens is not a reason to gamble on beating one. It is a reason to deal with the underlying question directly, which almost always turns out to be about safety rather than a test.

What Changes How Long Xanax Stays in Your System

The windows in the table are averages, and several things move a given person toward the short or long end. None of them is a lever you can safely pull to beat a test, but they explain why two people who took the same pill can clear it at different speeds.

Dose and how long you have used it. A larger dose leaves more drug to clear, and steady daily use means the body is always catching up, so detection windows run longer for regular users than for someone who took a single tablet.

Age. Clearance of alprazolam is reduced in many older adults, even healthy ones, which means the drug lingers longer as people age[6]. Doses are often lowered in later life for exactly this reason.

Liver function. The liver does almost all the work of breaking alprazolam down, so when it is impaired the drug clears more slowly. In people with alcoholic liver disease, the elimination half-life is substantially longer and clearance is slower than in healthy adults[10]. A stressed liver keeps Xanax in the system longer.

Immediate-release versus extended-release. Standard Xanax is released and absorbed quickly, while Xanax XR is built to release slowly across the day. The extended-release form is absorbed over a longer period, which spreads out the drug and can affect how a test reads depending on timing. The underlying half-life of the alprazolam itself is similar; the difference is in how fast it enters, not how it is finally cleared.

Body chemistry and other medicines. Metabolism varies from person to person, and certain drugs slow alprazolam’s breakdown by competing for the same liver enzymes, which raises and prolongs its levels[6]. This is one reason a doctor needs the full list of what you take.

The Real Danger Is Mixing Xanax With Alcohol or Opioids

If there is one safety point that outranks any test result, it is this. Xanax is a central nervous system depressant, and combining it with other depressants can slow breathing to the point of danger. Alcohol and opioids are the two that most often turn a prescription into a fatal mix.

The pattern shows up clearly in overdose data. A high proportion of opioid overdose deaths involve a benzodiazepine taken at the same time, and alprazolam in particular appears frequently in that toxicology[11]. Each drug deepens the other’s effect on breathing, so a combination that neither dose would cause alone can stop respiration.

This is why worrying about a drug test is often the wrong worry. If you are taking Xanax alongside alcohol, opioid painkillers, or street drugs, the immediate risk to your life is the combination, not the screen. Telling a clinician plainly about everything you use is what keeps that combination from becoming an emergency.

Why Detox Drinks and Flush Hacks Do Not Work

Search results are full of products that promise to clear Xanax fast. They do not do what they claim. Alprazolam is removed by the liver on its own schedule, and no drink, supplement, or amount of water speeds that chemistry up. Flooding yourself with fluids mainly dilutes urine, which many testing labs check for and flag, so the tactic can draw more scrutiny rather than less.

The question behind the questionPeople rarely search this out of idle curiosity. Often the worry underneath is bigger, whether use has slipped past a prescription, or how to stop safely. If that is you, the useful next step is not a flush. It is a conversation with a clinician who can arrange a safe taper and treatment. That path actually solves the problem the test only measures.

Trying to force the drug out carries a real hazard of its own. For someone who takes Xanax regularly, the instinct to abruptly stop and flush the system is exactly the move that can set off withdrawal seizures[12]. The body has adapted to the drug, and yanking it away is what turns dangerous, not the presence of the drug in a test.

The Safe Way to Get Xanax Out of Your System

Here is the reassuring truth. There is a safe, established way to come off Xanax, and it looks nothing like a crash detox. The danger with benzodiazepines is never gentleness. It is going too fast.

If you take Xanax regularly, the standard of care is a gradual, medically supervised taper, where a clinician lowers the dose in small steps over time so the nervous system can readjust without tipping into seizures or severe withdrawal[2]. Physical dependence on a benzodiazepine can build within weeks of regular use, so needing a taper is common and expected, not a personal failing[13]. In a supervised setting, the same class of medicine used to manage withdrawal is well studied and effective at keeping people safe while their body adjusts[14].

What that means in practice is simple. You do not have to white-knuckle it, and you should not try to. A doctor or a treatment program can build a schedule that fits your dose and history, watch for trouble, and help with the anxiety that often drove the use in the first place. The taper is usually slow on purpose, sometimes stretching over weeks or months, because a gentle pace is what lets the nervous system relearn how to settle on its own[13].

If your Xanax use is tangled up with alcohol or other drugs, that gets factored in too. Withdrawal from more than one depressant at once is more complex and belongs firmly in a supervised setting, where the same well-studied medicines used to manage withdrawal safely can be brought to bear[14]. The point worth holding onto is that safe, effective help exists, and using it is far wiser than any attempt to rush the drug out on your own.

To understand the drug and the path off it:

Whenever you are ready, free and confidential help is available.

Get matched with treatment that fits your life →

Frequently asked questions

How Long Does It Take for Xanax to Leave Your System Completely?

For an average healthy adult, a single dose of Xanax is largely cleared within about two to four days. That is because the body removes half of a dose in roughly half a day, with the average elimination half-life about 12 hours, and it takes about four to five half-lives to clear nearly all of it[3]. Regular daily use, older age, and reduced liver function all stretch that timeline longer.

How Long Does Xanax Show Up in a Urine Test?

A urine test typically detects alprazolam for about one to four days after occasional use, and up to a week or more with heavy or long-term use. Urine is the most common test because its window is wide and the sample is easy to collect. The exact number depends on your dose, how long you have been taking it, your age, and how well your liver is working.

How Long Does Xanax Stay in Your Blood, Saliva, and Hair?

Blood and saliva tests generally detect alprazolam for about one to two days, so they reflect fairly recent use. Hair testing is different, holding a record of use that can reach back roughly 90 days, which makes it useful for looking at long-term patterns rather than a single recent dose.

Will Xanax Make Me Fail a 5-Panel Drug Test?

Usually no. The standard 5-panel drug test, common for employment and required under federal workplace rules, screens for only five substances: marijuana, cocaine, amphetamines, opioids, and PCP[4]. Benzodiazepines like alprazolam are not on that list, so a basic 5-panel is not testing for Xanax at all. Benzodiazepines appear only on an expanded panel, such as a 10-panel or a clinical, pain-management, or court-ordered test set up to include them. Even then, a benzodiazepine screen can miss alprazolam specifically unless it is designed to catch it.

Why Did My Xanax Not Show Up on a Standard Drug Test?

Alprazolam can be missed by a routine benzodiazepine screen. Many quick immunoassays are tuned to the metabolites of older benzodiazepines, and alprazolam has historically been relatively difficult to confirm by those methods[7]. In one documented case, a sample screened positive for benzodiazepines at a 200 ng/mL cutoff but contained only the parent alprazolam, and detecting its specific metabolite required a targeted test down to 10 ng/mL[5]. Catching alprazolam reliably often needs testing aimed specifically at it.

Can You Flush Xanax Out of Your System Faster?

No. Alprazolam is cleared by the liver on its own schedule, and no detox drink, supplement, or amount of water speeds that up. Drinking large volumes mainly dilutes urine, which many labs check for and flag. More important, for a regular user the urge to abruptly stop and flush is exactly what can trigger dangerous withdrawal seizures[12]. The safe approach is a supervised taper, not a hack.

Is It Dangerous to Stop Taking Xanax Suddenly?

Yes. Benzodiazepines are dangerous to quit cold turkey after regular use. Abrupt discontinuation can cause seizures, and alprazolam withdrawal has in rare cases proven fatal[1]. Physical dependence can develop within weeks of regular use, so the standard of care is a gradual, medically supervised taper that lowers the dose in small steps[2]. Call 911 for any seizure.

How Long Do the Effects of Xanax Last Compared to How Long It Is Detectable?

These are two different clocks. Most people feel Xanax come on within an hour and wear off over the rest of the day, so the calming effect is usually gone within hours. Detection lasts much longer because a test hunts for the drug and its breakdown products, which linger for days in urine even after the effect has faded[6]. Feeling normal does not mean a test will come back negative.

Does Mixing Xanax With Alcohol or Opioids Change the Risk?

The bigger danger with Xanax is not a test, it is combining it with other depressants. Xanax slows the central nervous system, and alcohol or opioids deepen that effect, which can slow breathing to a fatal degree. A high proportion of opioid overdose deaths involve a benzodiazepine taken at the same time, with alprazolam appearing frequently in that toxicology[11]. Tell a clinician about everything you take.

Get Treatment Help

If you or someone you love is struggling with addiction, getting help is just a phone call away, or consider trying therapy online with BetterHelp.

Exclusive offer: 20% Off BetterHelp*

Following links to the BetterHelp website may earn us a commission that helps us manage and maintain AddictionHelp.com. *Get 20% off your first month of BetterHelp. Offer valid for new BetterHelp users only. Offer cannot be combined with insurance.

14 Sources
  1. Haque W, Watson DJ, Bryant SG. (1990). Death following suspected alprazolam withdrawal seizures: a case report. Texas Medicine.
  2. Ashton H. (2005). The diagnosis and management of benzodiazepine dependence. Current Opinion in Psychiatry.
  3. Oo CY, Kuhn RJ, Desai N, Wright CE, McNamara PJ. (1995). Pharmacokinetics in lactating women: prediction of alprazolam transfer into milk. British Journal of Clinical Pharmacology.
  4. Moeller KE, Lee KC, Kissack JC. (2008). Urine drug screening: practical guide for clinicians. Mayo Clinic Proceedings.
  5. Kampfrath T, Peng P, Vairavan V, Lee D. (2015). Benzodiazepine in a urine specimen without drug metabolites. Laboratory Medicine.
  6. Greenblatt DJ, Wright CE. (1993). Clinical pharmacokinetics of alprazolam. Therapeutic implications. Clinical Pharmacokinetics.
  7. Rogers WO, Hall MA, Brissie RM, Robinson CA. (1997). Detection of alprazolam in three cases of methadone/benzodiazepine overdose. Journal of Forensic Sciences.
  8. Petrides AK, Melanson SEF, Kantartjis M, et al. (2018). Monitoring opioid and benzodiazepine use and abuse: Is oral fluid or urine the preferred specimen type? Clinica Chimica Acta.
  9. Crépeault H, Tobias S, Angelucci J, et al. (2025). Detection of benzodiazepines in the unregulated drug supply using point of care and confirmatory drug checking technologies: A validation study. Drug and Alcohol Dependence.
  10. Juhl RP, Van Thiel DH, Dittert LW, Smith RB. (1984). Alprazolam pharmacokinetics in alcoholic liver disease. Journal of Clinical Pharmacology.
  11. Bannon MJ, Lapansie AR, Jaster AM, et al. (2021). Opioid deaths involving concurrent benzodiazepine use: Assessing risk factors through the analysis of prescription drug monitoring data and postmortem toxicology. Drug and Alcohol Dependence.
  12. Warner MD, Peabody CA, Boutros NN, Whiteford HA. (1990). Alprazolam and withdrawal seizures. Journal of Nervous and Mental Disease.
  13. Authier N, Balayssac D, Sautereau M, et al. (2009). Benzodiazepine dependence: focus on withdrawal syndrome. Annales Pharmaceutiques Françaises.
  14. Amato L, Minozzi S, Vecchi S, Davoli M. (2010). Benzodiazepines for alcohol withdrawal. Cochrane Database of Systematic Reviews.
Written by
Jessica Miller is the Content Manager of Addiction Help

Editorial Director

Jessica Miller is the Editorial Director of Addiction Help. Jessica graduated from the University of South Florida (USF) with an English degree and combines her writing expertise and passion for helping others to deliver reliable information to those impacted by addiction. Informed by her personal journey to recovery and support of loved ones in sobriety, Jessica's empathetic and authentic approach resonates deeply with the Addiction Help community.

Reviewed by
  • Fact-Checked
  • Editor
Kent S. Hoffman, D.O. is a founder of Addiction Help

Co-Founder & Chief Medical Officer

Kent S. Hoffman, D.O. has been an expert in addiction medicine for more than 15 years. In addition to managing a successful family medical practice, Dr. Hoffman is board certified in addiction medicine by the American Osteopathic Academy of Addiction Medicine (AOAAM). Dr. Hoffman has successfully treated hundreds of patients battling addiction. Dr. Hoffman is the Co-Founder and Chief Medical Officer of AddictionHelp.com and ensures the website’s medical content and messaging quality.

Real Help. Real Recovery.

Compare centers, explore options and start your path to recovery today.

Find Treatment Now

"AddictionHelp.com is helping to make recovery available to EVERYONE!"

- Angela N.