If you have been prescribed gabapentin for seizures, you will probably take it for many years. If your healthcare provider has prescribed gabapentin for nerve pain, you will need to take it for some time after the nerve pain has resolved to keep it from returning.