Although amphetamine-derived stimulants are widely associated with neurotoxicity, it is poorly understood whether extended exposure to such drugs produces lasting effects on neurocognitive function. This study investigates whether chronically self-administered d-amphetamine, methamphetamine (MA), or methylenedioxymethamphetamine (MDMA) leads to residual deficits in a rodent test of sustained visual attention and impulsivity. Rats were trained on a five-choice serial reaction time task and subsequently trained to self-administer d-amphetamine, MA, or MDMA (all 50 microg/infusion), intravenously, for 3 weeks. Effects on performance were evaluated 24 h after drug discontinuation and for several weeks thereafter, including various challenge sessions to increase the attentional demands of the task. The results indicate divergent patterns of self-administration among the three drugs tested with increasing rates of intake evident in rats self-administering amphetamine, but not MA, and widely fluctuating rates in the MDMA group. Withdrawal of MA resulted in severe behavioral disturbances, with significant effects on accuracy, omissions, response latency, and impulsivity that lasted up to 2 weeks in some cases. Amphetamine and MDMA withdrawal were associated with similar, but shorter-lasting effects on performance. However, when challenged with a high event rate session 6 weeks after drug discontinuation, rats previously exposed to MDMA continued to show deficits in the accuracy and speed of responding. These findings show that amphetamine-derived stimulants have both short- and long-term consequences for psychomotor functioning. The demonstration of residual deficits in rats chronically exposed to MDMA raises some concern about the potential harm caused by this drug in human ecstasy users.