Many different types of drug tests can test for cocaine. How long it can be detected for depends on how much you have used. Cocaine is likely to be detectable for 12-48 hours in saliva, 2-4 days in urine and 12-48 hours in blood. For chronic (regular and/or heavy) users of cocaine, it may be detectable for much longer. Like other drugs, cocaine is likely to be detectable in hair for up to 90 days.