Hydromorphone is an opioid pain medication. An opioid is sometimes called a narcotic. Hydromorphone is used to treat moderate to severe pain. The extended-release form of this medicine is for around-the-clock treatment of moderate to severe pain. This form of hydromorphone is not for use on an as-needed basis for pain. Hydromorphone may also be used for purposes not listed in this medication guide.