Hydrocodone is used to treat moderate to moderately severe pain. It works by changing the way the brain and nervous system respond to pain. This medication is available in an oral tablet, long acting tablet, or a solution (liquid) to be taken by mouth. Some hydrocodone products may also be formulated with certain medications such as aspirin or acetaminophen. Hydrocodone belongs to a class of drugs known as opiates. It works by changing how your brain and nervous system respond to pain.