Vicodin is used to relieve moderate to severe pain. It contains an opioid (narcotic) pain reliever (hydrocodone) and a non-opioid pain reliever (acetaminophen). ... If you are using a liquid form of this medication, use a medication measuring device to carefully .