Cocaine can remain in your system from 2 to 4 days, and may be detected in your hair for up to 3 months. Cocaine typically stays in your system for 1 to 4 days, but it can be detected for up to a ...