Cocaine is one of the five drug groups that are tested for as standard in SAMHSA and DoT compliant drug tests, so if you've been using cocaine in any form, you should certainly be concerned about possible drug tests.
Of course, drugs don't stay in your body forever, and cocaine is no exception. If you've been clean for long enough, you shouldn't need to worry about failing a drug test. But exactly how long does it take cocaine to get out of the system? Is it the same for everybody, or does it depend on an individual's habits and body?
Cocaine and drug testing
First, let's go through some basics about drug testing. There are three common forms of drug testing: urine, saliva, and hair drug tests. Blood can also be tested of course, but this is rarely used outside medical settings because of the biohazard risk.
Every drug has a half-life, which is the typical time it takes for the concentration of a drug to be halved in the body. The shorter the half-life, the quicker a drug will be metabolized by, or expelled from, the body. Cocaine itself has a rather short half-life, so most drug screenings look instead for benzoylecgonine, which is produced by the liver when someone takes cocaine. This sticks around for much longer. Note that this doesn't apply to hair drug tests, however, because drug metabolites become permanently locked into hair cells as they grow out.
Next, every drug test uses a certain threshold to determine a positive (fail) or negative (pass) result. If the concentration of a particular drug is above the threshold, you fail the test. If it's below the threshold, even only slightly, you pass. Passing a drug test is therefore mostly a case of giving your body enough time to get the concentration of cocaine below this threshold, but what if you don't have enough time? We'll get to this later.
So, how long does it take cocaine to get out of the system?
Firstly, hair drug tests typically have a detection time of 90 days, so unless you've been clean for a good while, getting a special detox shampoo is highly recommended. Saliva tests are a little more unpredictable, as they're not standardized and quality can vary wildly, so expect a detox time of 2-10 days. If you can't wait 10 days, you would be wise to use a detox mouthwash before your test.
The chances are high that your urine will be tested, however. In this case, an occasional cocaine user might test positive for 2-5 days after last using cocaine. For heavier users, though, this can be as many as 10 days. What's more, this can also apply to people with certain kidney disorders, even when they haven't used that much. If you have any doubt, it's always best to play it safe.
Passing a drug test for cocaine
Now you know how long it takes cocaine to get out of the system, you can decide if you need some extra help on a drug test. You could start with a basic detox drink (see this one if you have a larger body mass).
If you feel you may need extra help, you can instead get a two-stage detox kit, which again is also available for heavier users. When used as directed, these kits should get you through safely.