The Drug Detection Time Calculator shows how long a substance is typically detectable in urine, blood, saliva and hair, along with the main factors that can make that window shorter or longer. You choose one of eight substances: alcohol, marijuana (THC), nicotine, cocaine, opioids (heroin, morphine, codeine), fentanyl, amphetamines (Adderall, meth) or benzodiazepines (Xanax, Valium, Klonopin). The tool then displays the typical detection range for each test type side by side.
People use it for different reasons: understanding how a substance moves through the body, preparing for a prescribed medical test, or simply wanting to know how long a substance lingers after deciding to stop. Whatever brought you here, the honest answer is that detection times vary a lot between people and tests.
These ranges are general estimates drawn from published sources, not a personal prediction. They cannot tell you whether you will pass or fail a specific test, and they should never be used to make legal, medical or employment decisions. If you need certainty, talk to a doctor, pharmacist or the testing provider.
How to Use the Detection Time Calculator
Pick a substance from the drop-down menu and press Show Results. You will see four cards, one each for urine, blood, saliva and hair, showing the typical detection range, followed by a list of factors that affect detection for that substance.
The tool does not ask for your dose, how often you use, your weight or the date you last used, and it does not calculate a personal date when you will test clean. It is a reference lookup of typical windows, so read the ranges together with the factors listed underneath. If you use frequently or heavily, assume you are toward the longer end of each range, or beyond it.
How Are Drug Detection Times Estimated?
Each window in the tool is a typical range for standard tests, based on published clinical and toxicology sources. Tests usually look for a substance or its breakdown products (metabolites), which can linger longer than the drug itself.
The four test types work differently. Blood shows what is circulating now, so its window is short, usually hours to a couple of days. Saliva is similar, usually about one to four days. Urine is the most common workplace test and catches metabolites for days, or longer for frequent users of some substances. Hair records use over a longer period, which is why every substance shows "up to 90 days."
Some entries name the metabolite that is tested:
- Alcohol, urine 12-80 hours (EtG): EtG (ethyl glucuronide) is a breakdown product of alcohol that stays in urine much longer than alcohol itself.
- Nicotine, urine 3-4 days (cotinine up to 21 days): cotinine is nicotine's main metabolite, and it can be detected for longer, especially in heavy users.
- Marijuana, urine 3-30+ days: THC metabolites are stored in fat, so a single use may clear in days while daily use can be detectable for a month or more.
- Benzodiazepines, urine 3-7 days (up to 30 for long-acting): long-acting types such as diazepam stay detectable far longer than short-acting ones.
How to Read Your Results
Read each card as "typically detectable for up to this long after last use," not as an exact countdown. A range like "2-4 days (up to 14 for heavy users)" means a single, small use is likely at the short end, while repeated or heavy use pushes toward the long end.
For example, if you choose Cocaine, the tool shows urine 2-4 days (up to 14 for heavy users), blood 12-24 hours, saliva 1-2 days and hair up to 90 days. The listed factors (amount and purity, frequency, method of use, liver and kidney function, body mass, and co-use with alcohol) explain why your own window could fall outside these ranges.
Hair results look the same for every substance because a standard sample covers roughly the last three months of growth. Hair tests generally do not pick up very recent use, since it takes time for hair containing the substance to grow out from the scalp.
What Affects How Long Drugs Stay in Your System?
Detection time comes down to how much of a substance is in your body, how quickly you clear it, and how sensitive the test is. Because these factors combine, the same person can have very different windows on different occasions. That is why no calculator can promise a result.
The tool lists substance-specific factors, but the most important ones apply almost everywhere:
- Frequency and amount of use. Regular or heavy use builds up in the body and extends detection, sometimes far beyond the typical range.
- The specific test. Urine, blood, saliva and hair have different windows, and labs use different cut-off levels.
- Body fat. Fat-soluble substances such as THC are stored and released slowly.
- Metabolism, age and organ health. Liver and kidney function strongly affect how fast substances and metabolites are cleared.
- The specific drug or formulation. Long-acting benzodiazepines, extended-release medications and potent synthetic opioids can behave very differently from their short-acting relatives.
- Urine pH and hydration can affect some results, such as amphetamines.
How Long Do Common Drugs Stay in Your System?
Amphetamines are typically detectable in urine for 2-4 days (up to 7 for meth), and benzodiazepines for 3-7 days (up to 30 for long-acting types). All eight substances in the tool can show up in hair tests for up to about 90 days. Remember that heavy or frequent use can extend any of these times.
Here are the typical urine windows for the other six substances, with links to our in-depth guide for each:
- Alcohol: 12-80 hours in urine via EtG. See how long alcohol stays in your system.
- Marijuana (THC): 3-30+ days in urine. See how long weed stays in your system.
- Nicotine: 3-4 days in urine, with cotinine up to 21 days. See how long nicotine stays in your system.
- Cocaine: 2-4 days in urine, up to 14 for heavy users. See how long cocaine stays in your system.
- Opioids: 2-4 days in urine. See how long opioids stay in your system.
- Fentanyl: 1-3 days in urine, up to 7 for heavy users. See how long fentanyl stays in your system.
How Accurate Are These Detection Windows?
The ranges reflect typical results for standard tests, but they are not precise for any one person. They do not account for your dose, frequency, body composition or the exact test and cut-off level a lab uses. Some people test positive beyond the listed window, especially after heavy or long-term use, and some test negative sooner.
Do not use this tool to try to pass a drug test or to make legal, medical or job-related decisions. If you take prescribed medication, tell the testing provider or a doctor; they can interpret results properly.
Most importantly, if you depend on alcohol, benzodiazepines or opioids, do not stop suddenly to clear a test without medical advice. Alcohol and benzodiazepine withdrawal can cause seizures and can be life-threatening, and opioid withdrawal is very hard to get through without support. A doctor can help you stop safely. For free, confidential help in the US, call SAMHSA at 1-800-662-4357, or call or text 988 if you are in crisis.
Ready to Stop for Good? Track Your Clean Time with Sobrius
If you came here because you are thinking about stopping, not just waiting out a test, that is worth taking seriously. The Sobrius app counts your clean time from day one, shows money saved, and offers daily check-ins, crisis tools and a supportive community for the hard moments. It is free on iOS and Android and works for alcohol, drugs, nicotine and more. See the drug addiction tracker or the clean date tracker to learn more.
