Hydrocodone is used for the short-term treatment of moderate to severe pain. It is most commonly used for post-surgical or cancer pain, but it can also be used for chronic pain control in some cases.