Methylphenidate, sold under the trade name Ritalin among others, is a stimulant medication used to treat attention deficit hyperactivity disorder (ADHD) and narcolepsy. It may be taken by mouth or applied to the skin, and different formulations have varying durations of effect.