MDMA, or ecstacy is often packaged with other substances making it hard to determine what you’re ingesting and therefore how long it will stay in your system. MDMA can last in your system for up to 5-7 days depending on the amount of fat in your diet and the levels of body fat you have as fat can store toxins for a longer period of time than other organs.