Tramadol is a medication used to relieve pain. It is a synthetic opioid analgesic, similar to codeine. Tramadol is available in a variety of formulations, including immediate-release tablets, extended-release tablets, and capsules. The extended-release formulation is intended for around-the-clock treatment of pain. Tramadol is also available as a generic drug.