Tramadol is prescribed to patients with moderate to severe pain, even those as young as 12 years old. Only patients who are likely to require medication to alleviate pain around-the-clock should take tramadol extended-release pills or capsules. An opiate (narcotic) analgesic, like tramadol, is used to treat severe pain. It alleviates pain by modifying neural and brain activity.