Percocet is used to help relieve moderate to severe pain. It contains an opioid pain reliever (oxycodone) and a non-opioid pain reliever (acetaminophen). Oxycodone is an opioid pain medication. An opioid is sometimes called a narcotic. Acetaminophen is a less potent pain reliever that increases the effects of oxycodone.