Requests

Laboratory tests

How long do drugs stay in urine?

One of the most common questions about urine drug testing is how long a substance remains detectable after use.

Clínica Alegre practitioner distributing samples on a test plate with a pipette

Reviewed by Dr Fernando Alegre

Clinical Director · OMD, registration no. 9688

Written by the Clínica Alegre team10-minute read

In this article

The technical term is the detection window, and it is not a fixed number. It depends on the substance, dose, frequency of use, the individual's metabolism, hydration at the time of collection and, very importantly, the method and cut-off value used by the laboratory.

This article presents the approximate ranges described in the scientific literature, explains why they vary so much and addresses some common myths. These figures are intended to explain the subject, not predict the result of a particular test. Any result must be interpreted by the doctor who requested the test, taking account of the patient's medical history and list of medicines.

What does "detection window" mean?

The detection window is the period during which the substance or its metabolites are present in urine at a concentration above the test's cut-off value. It begins shortly after use, when the substance reaches the kidneys, and ends when the concentration falls below that threshold.

This has two practical consequences. First, a negative test does not prove that there was no use: it may simply mean the concentration was already below the threshold, or had not yet risen enough if use was very recent. Second, a positive test does not reveal when use occurred. It may have been hours or, in some cases, several days earlier.

It is also important to distinguish detection from effects. A substance may remain detectable in urine long after its effects have worn off. A urine test measures exposure, not impairment or intoxication.

Why tests look for metabolites

Many substances are rapidly transformed by the liver. Tests therefore often look for metabolites, which remain in the body longer than the original molecule. Cocaine, for example, is rarely detected in its original form and is much more often detected as benzoylecgonine. Cannabis tests look for a THC metabolite rather than THC itself.

The rate at which each metabolite is eliminated largely determines the detection window. Substances that accumulate in fatty tissue, such as cannabinoids, are released slowly and extend this window. Others that are more water-soluble are eliminated quickly.

Approximate ranges by substance

The following table summarises ranges frequently cited in clinical reviews of urine testing. They are approximate, were obtained under study conditions and may be shorter or longer in individual cases.

Substance or groupApproximate window in urineNotes
Amphetamines and methamphetamineAbout 2 to 3 daysMay vary with urine pH
Cocaine (benzoylecgonine)About 2 to 4 daysHeavy use may prolong detection
Opiates (morphine, codeine)About 1 to 3 daysMany synthetic opioids require specific tests
Short-acting benzodiazepinesAbout 1 to 3 daysVaries considerably by molecule
Long-acting benzodiazepinesUp to several weeks with prolonged useScreening sensitivity varies between molecules
CannabisFrom a few days to over a monthSee the dedicated section
Alcohol (ethanol)HoursSpecific markers with longer windows are available

Reference values vary between laboratories and methods. If there is any doubt about a result, the doctor who requested the tests can interpret it in context.

Cannabis: the most confusing case

THC, the main psychoactive component of cannabis, is highly fat-soluble. After use, it spreads through the tissues and is gradually released into the blood, where it is converted into metabolites that eventually reach the urine. In regular users, this reserve builds up and elimination takes longer.

This is why the detection windows described for cannabis vary so much. The ranges below are approximate and depend heavily on the cut-off value used.

Consumption patternApproximate window described
Single or occasional useAround 3 days
Moderate use, several times a weekAbout 5 to 7 days
Daily useAbout 10 to 15 days
Heavy, prolonged useMay exceed 30 days

A positive result in someone who stopped using cannabis several weeks ago may therefore reflect slow elimination rather than new use. In monitoring programmes, doctors sometimes use serial tests and the metabolite-to-creatinine ratio to assess the trend over time. This is a technical assessment that must be carried out by professionals.

Factors that shorten or lengthen the window

Even for the same substance, the detection period varies from person to person. The most relevant factors are summarised below.

FactorUsual effect on the detection window
Dose usedLarger doses tend to remain detectable for longer
Frequency of useRepeated use causes the substance to accumulate and prolongs detection
Individual metabolismGenetic variations and age affect the elimination rate
Liver and kidney functionLiver or kidney disease may prolong its presence in urine
HydrationVery dilute urine lowers the concentration; concentrated urine raises it
Test cut-off valueLower thresholds detect substances for longer
Laboratory methodConfirmation by mass spectrometry can detect lower concentrations
Body fatRelevant mainly to cannabis

These factors interact, which is why no table can reliably predict an individual's test result. Reviews on the subject acknowledge that many published ranges come from small studies using controlled doses and may not reflect real-life circumstances. The evidence is therefore useful as general guidance but limited for individual cases.

Urine, blood, saliva and hair: different windows

Urine is only one possible sample. Each has its own window and answers different questions.

SampleTypical windowQuestion it answers best
BloodHoursWas there very recent exposure, possibly with a current effect?
SalivaHours to about 1 to 2 daysWas there recent exposure?
UrineAbout 1 to 4 days for most substances, longer for cannabisWas there exposure in the past few days?
HairWeeks to monthsWas there repeated exposure over a long period?

These windows are approximate. The person requesting the test chooses the sample according to its purpose.

Prescription medicines also remain in urine

Many people forget that several commonly used medicines are precisely what the test is looking for. Painkillers containing codeine or morphine, benzodiazepine anxiolytics and sleeping tablets, some medicines for attention deficit hyperactivity disorder and medicines used to treat opioid dependence may produce true positive results.

These medicines should only be taken when prescribed. If you take any of them, tell the laboratory and the doctor who requested the test, ideally bringing your medication list or prescription. Never stop a prescribed medicine because of a test without speaking to your doctor: abruptly stopping some of these drugs, particularly benzodiazepines and opioids, can cause dangerous withdrawal symptoms.

Common myths about "cleansing" the body

There are many claims about ways to shorten the detection window: drinking large amounts of water, exercising intensely, or taking teas or so-called detox products. Scientific evidence does not support these methods as effective ways to eliminate substances faster. Excessive water intake merely dilutes urine, and laboratories assess dilution using creatinine and specific gravity. A diluted sample is usually reported as such and may have to be collected again.

Drinking very large amounts of water in a short time can also be dangerous because it lowers blood sodium. Instead of looking for shortcuts, the most helpful approach is to be open with the doctor about drug use and medication so that the result can be interpreted correctly.

A positive result after stopping use

Some people stop using a substance and are surprised that their result is still positive. As discussed, this can happen particularly with cannabis in frequent users and with some long-acting benzodiazepines. It may also occur if the urine is very concentrated on the day of collection.

In these situations, the doctor may suggest repeating the test after a while, assessing how concentrations change or requesting confirmation by mass spectrometry. The key is not to draw conclusions from a single value and to discuss the result and medical history with whoever requested the test.

When to seek help

If your concern about the test relates to difficulty controlling substance use, it is worth speaking to your GP. The Portuguese National Health Service offers specialist support for addictive behaviours, and your doctor can arrange a confidential referral. For non-urgent questions, SNS 24 is available on 808 24 24 24.

Signs such as extreme drowsiness, difficulty breathing, seizures, chest pain, severe agitation or loss of consciousness after using a substance require an immediate call to 112.

At Clínica Alegre in Setúbal and Seixal, you can have laboratory tests and ask our team any questions about the results.

Frequently asked questions

How many days does it take for a test to become negative?

There is no fixed number. For most substances it is a few days, but cannabis may be detected for weeks in frequent users.

Does drinking lots of water make the test negative?

It dilutes the urine, but the laboratory detects dilution and may request another sample. Drinking excessive amounts of water can also be dangerous.

Can the test tell when I used the substance?

No. The urine concentration depends on many factors and cannot establish when it was used.

Can a single use of cannabis be detected a week later?

It is less likely, but not impossible, depending on the dose, cut-off value and individual.

Do the medicines I take stay in urine?

Many do. Opioid painkillers, benzodiazepines and some prescribed stimulants can produce a positive result. Always tell the laboratory.

Does exercise speed up elimination?

There is no robust evidence that it usefully shortens the detection window.

Does a saliva test have the same window as a urine test?

No. Saliva tends to reflect more recent exposure, generally within hours to one or two days.

Did you enjoy this article?

Scientific references3
  1. Moeller KE, Kissack JC, Atayee RS, Lee KC. Clinical interpretation of urine drug tests: what clinicians need to know about urine drug screens. Mayo Clin Proc. 2017;92(5):774-96.
  2. Kale N. Urine drug tests: ordering and interpretation. Am Fam Physician. 2019;99(1):33-9.
  3. Taskinen S, Beck O, Bosch T, et al. European guidelines for workplace drug testing in urine. Drug Test Anal. 2017;9(6):853-65.
Article information
Written by
Clínica Alegre team
Clinical review
Dr Fernando Alegre, Clinical Director · OMD, registration no. 9688
Published
2 Dec 2026
Last updated
2 Dec 2026
Topic
Laboratory tests
Reading time
10 min

See also

Related treatments

Want to know what is right for you?

Contact us on WhatsApp or book an assessment, in person or online.

Book an appointment

Book your assessment.

Choose Setúbal or Seixal. We reply within opening hours.

Newsletter

Get the latest news from the Clínica Alegre.

Blog articles and clinic news, delivered to your inbox. Unsubscribe at any time.