Adderall XR 30 mg is a prescription medication commonly used to treat attention deficit hyperactivity disorder (ADHD) and narcolepsy. It belongs to a class of drugs known as stimulants, which work by affecting chemicals in the brain and nerves that contribute to hyperactivity and impulse control.