Gabapentin and tramadol are used to treat different types of pain. Gabapentin is an antiseizure medication, or anticonvulsant, and is also used for nerve pain, or neuralgia. Tramadol, however, is an opioid analgesic, or pain reliever and is used to manage moderate to severe pain.