text: how long does cocaine take to come out of your urine?   the amount of time any drug can be detected in one's system can vary from person to person and test to test. it certainly can also depend on the amount of the drug taken and when it was taken relative to the time of the test. keeping in mind that there is no 100% hard and fast rule for how long a drug will be in one's system, cocaine can stay in your system for approximately 5 days  your whole drug history is stored in your hair until it is cut. some types of shampoo and bleaching of hair may remove drugs from the hair.