The key difference between the two drugs is that Percocet contains the opioid oxycodone, while Vicodin contains the opioid hydrocodone. Both also contain acetaminophen. The amount of acetaminophen in Percocet or Vicodin varies, depending on the formula.