Cannabis can remain in your system for anywhere from 1 to 30 days after last use and can be detectable in hair follicle drug testing for several months. That’s a wide range in the window of detection, and many things can affect the longevity of marijuana. Here are 6 factors that can influence how long cannabis stays in your system.