Other types of ADHD medications can also cause erectile dysfunction. Antidepressants are also sometimes used to treat symptoms of ADHD, and some of these medications can cause changes in libido and sexual performance. If you experience erectile dysfunction while taking an ADHD medication, your doctor may recommend switching to a different type of medication, such as a different stimulant or a non-stimulant medication.