The number of opioid overdose deaths has increased significantly over the past decade. The life-threatening effect of opioids is hypoventilation that can be reversed by the µ-opioid receptor (MOR) antagonist naloxone; however, because of the very short duration of action of naloxone, re-emergence of MOR agonist-induced hypoventilation can occur, requiring additional doses of naloxone. The MOR antagonist methocinnamox (MCAM) antagonizes hypoventilation by the non-morphinan fentanyl and the morphinan heroin in laboratory animals with an unusually long duration of action. Whole-body plethysmography was used to compare the potency and effectiveness of MCAM and naloxone for preventing and reversing hypoventilation by fentanyl, heroin, and the ultra-potent and longer-acting fentanyl analogs carfentanil and 3-methylfentanyl in male rats breathing normal air. Sessions comprised a 45-minute habituation period followed by intravenous (i.v.) administration of saline or an acute dose of MOR agonist. The rank order of potency to decrease ventilation was 3-methylfentanyl > carfentanil > fentanyl > heroin. MCAM (0.0001-0.1 mg/kg) and naloxone (0.0001-0.01 mg/kg) dose-dependently reversed hypoventilation by 3-methylfentanyl (0.01 mg/kg), carfentanil (0.01 mg/kg), fentanyl (0.1 mg/kg), or heroin (3.2 mg/kg). For prevention studies, MCAM, naloxone, or vehicle was administered i.v. 22, 46, or 70 hours prior to a MOR agonist. When administered 22 hours earlier, MCAM (0.1-1.0 mg/kg) but not naloxone (1.0 mg/kg) prevented hypoventilation by each MOR agonist. This study demonstrates the effectiveness of MCAM to reverse and prevent hypoventilation by MOR agonists including ultra-potent fentanyl analogs that have a long duration of action. Significance Statement The number of opioid overdose deaths increased over the past decade despite the availability of antagonists that can prevent and reverse the effects of opioids. This study demonstrates the effectiveness and long duration of action of the µ-opioid receptor (MOR) antagonist methocinnamox (MCAM) for reversing and preventing hypoventilation by MOR agonists including ultra-potent fentanyl analogs. These results provide support for the notion that MCAM has the potential to positively impact the ongoing opioid crisis by reversing and preventing opioid overdose.