Oxycodone is an opioid pain medication. An opioid is sometimes called a narcotic. Oxycodone is used to treat moderate to severe pain.