Oxycodone and hydrocodone are prescription pain medications. Both can treat short-term pain caused by an injury or surgery. They may also be used to treat pain that is chronic, or long-term. Additionally, each may also be prescribed to treat other conditions, including chronic cough, pain from cancer, and arthritis.