Our admissions team is available now, 24/7
Xanax Guide · How Long It Stays

How long Xanax stays in the body and drug testing

Reviewed by: Dr. Mahmoud El-Sawy Last updated: September 28, 2026 7-minute read
The short answer

Xanax is detected in urine usually for up to about 3 days after occasional use, and the time may be longer with long daily use; in blood for roughly a day or two; in saliva for a similar short period; and in hair for up to about 90 days. These are approximate timeframes that vary by laboratory, type of test and person.

  • Some rapid tests may not detect alprazolam accurately, and a confirmatory test is the final arbiter.
  • If you take it by prescription, tell the laboratory and the doctor before the test.

How does the body get rid of Xanax?

Alprazolam is absorbed quickly and reaches its peak blood concentration within about one to two hours. It is then broken down in the liver, mainly by an enzyme known as CYP3A4, into products, chiefly alpha-hydroxy-alprazolam, and most of these are excreted through the kidneys in the urine.

The half-life of Xanax is about 11 hours in healthy adults, and is longer in older adults and people with liver disease. Half-life is the time it takes for the amount of drug in the blood to fall by half, and the body usually needs several times this long to clear it almost completely.

How long Xanax stays, by type of test

Urine

Up to about 3 daysThe most widely used, and the time may be longer with long daily use

Blood

About one to two daysOften used in the emergency room to assess recent use

Saliva

About one to two daysEasy to collect and detects recent use

Hair

Up to about 90 daysReveals the pattern of use over the previous months, not recent use
Infographic of how long Xanax stays in the body by type of test: urine up to about 3 days, blood about a day to two days, saliva about a day to two days, hair up to about 90 days
How long Xanax stays in blood, saliva, urine and hair

These durations are approximate and vary by laboratory and test sensitivity. For an accurate interpretation of a specific result, consult the doctor or the laboratory.

What factors affect how long Xanax stays?

  • Length and frequency of use: daily use over a long period lengthens the detection time compared with a single dose.
  • Dosage form: extended-release tablets stay relatively longer.
  • Age: older adults clear the drug more slowly.
  • Liver function: liver disease clearly slows its clearance.
  • Other medications: some drugs slow the enzyme responsible for breaking it down, so it stays longer.
  • Weight and body fat percentage: may affect how the drug is distributed and how quickly it leaves.

Does Xanax stay in the body for less time than other sedatives?

Usually yes. Xanax is a short- to intermediate-acting benzodiazepine and does not produce long-lasting active breakdown products, whereas long-acting sedatives such as Valium stay in the urine far longer. So the detection window varies a great deal within the same family:

Approximate comparison of urine detection windows
MedicineDuration of actionApproximate urine detection window
Xanax (alprazolam)Short to intermediateA few days
Rivotril (clonazepam)LongLonger, and some rapid tests may not detect it
Valium (diazepam)Very long, with active breakdown productsMay extend to weeks with long-term use

The comparison is general and approximate, and varies by laboratory, type of test and pattern of use.

When is a Xanax test ordered?

  • In the emergency room: when someone has lost consciousness or poisoning is suspected, to identify the substances responsible and guide treatment.
  • In treatment programs: to follow adherence to the reduction plan and make sure no other sedatives are being used.
  • Before prescribing new medications: to avoid dangerous interactions with other depressants.
  • In some workplaces or official procedures: according to each body's rules.

In treatment programs, testing is a tool for building trust and tracking progress, not a means of punishment. An unexpected result is discussed calmly with the patient to understand what happened and adjust the plan.

Screening test and confirmatory test

The initial test

A rapid test that detects benzodiazepines as a group and does not identify any particular drug among them, and its positive result is preliminary.

Confirmatory test

Done at a specialized laboratory with precise instruments, it identifies alprazolam and its breakdown products specifically, and is requested for any preliminary result that needs confirmation.

Why might Xanax not show up on some tests?

Some older rapid benzodiazepine tests were designed to detect certain breakdown products that alprazolam does not produce, so they may give a negative result even when it is present. Newer generations detect it better, but sensitivity differs between laboratories and test manufacturers.

For this reason, a negative result on a rapid test does not always rule out use, and a positive result does not prove it on its own. Correct interpretation needs to know the type of test and the medical history, and sometimes a confirmatory test.

The role of testing in poisoning cases

In the emergency room the doctor does not wait for the test result before starting emergency care; the priority is breathing, consciousness and vital signs. But the test helps later to find out whether other substances were taken with Xanax, such as alcohol or opioids, which changes the treatment and follow-up plan. That is why bringing the medication box or the remaining pills with the patient is valuable information for the medical team.

Are there false positive results?

Yes, some common medications can interfere with the preliminary benzodiazepine test, including the antidepressant sertraline and some HIV medications such as efavirenz. So tell the laboratory about all the medications you take, and ask for a confirmatory test if the result is unexpected.

What if I take Xanax by prescription?

A positive result in this case is expected and does not mean misuse. Keep a copy of the prescription, and tell the party requesting the test before it is done. Do not stop the medication before the test thinking that is better; abrupt discontinuation can cause dangerous withdrawal symptoms.

What does a test result mean for the family?

If the family is thinking of doing a quick home test, it is important to know that these strips vary widely in their ability to detect alprazolam and that their result is always preliminary. It is better for testing to be part of a medical assessment that explains the result and puts it in context, rather than turning into a tense confrontation at home.

A test is a helping tool, not a verdict. A positive result may be due to a prescribed medication, and a negative result does not rule out a problem if the signs are clear. What matters most is a calm conversation and a specialized assessment that looks at the whole picture and sets a safe plan.

Frequently asked questions

Frequently asked questions about how long Xanax stays in the body and testing

Didn’t find your answer?

Ask an advisor directly. The reply is confidential and carries no commitment.

Ask on WhatsApp
How long does Xanax stay in urine?

Usually up to about 3 days after occasional use, and the time may be longer with long daily use. The duration is approximate and varies by laboratory.

Does Xanax show up on a regular drug test?

It shows up in the benzodiazepine screen if the test includes it, but some rapid tests may not detect it accurately, and a confirmatory test identifies it specifically.

Can Xanax be told apart from Rivotril on a test?

A preliminary test does not distinguish between them because it detects the group as a whole, while a confirmatory test identifies each drug and its breakdown products.

How long does Xanax stay in the blood?

It is usually detected in blood for about a day or two, and a blood test is mostly used to assess recent use.

Does Xanax show up in a hair test?

Yes, it may be detected in hair for up to about 90 days, but it reveals the earlier pattern of use, not use in the last few days.

Does sertraline cause a positive result for benzodiazepines?

It can cause a false positive on some preliminary tests, which is why a confirmatory test is requested when in doubt.

Does extended-release Xanax stay longer on a test?

It may be detected slightly longer than fast-acting tablets because it is released slowly, but the difference depends on the pattern of use and the laboratory.

Does counterfeit Xanax show up on a test?

A counterfeit pill may not contain alprazolam at all, but other substances such as fentanyl or unlicensed sedatives that the usual test may not detect, which is one reason it is so dangerous.

Medical reviewDr. Mahmoud El-Sawy, Consultant Psychiatrist and Addiction Specialist

This page was written by the Eradah editorial team and reviewed by a specialist physician under the medical review policy. Last medically reviewed: September 28, 2026. The content is for education and does not replace consulting a doctor.

Need help with Xanax?

Your information is confidential and is not shared with anyone

Call WhatsApp Consultation