Although the repercussion of chronic treatment with large amounts of opioids on cognitive performance is a matter of concern, the effects of opioid drugs on passive avoidance learning have been scarcely studied. Here, we analyzed the effects of prolonged administration of heroin and methadone, as well as the impact of suffering repeated episodes of withdrawal on fear-motivated learning using the passive avoidance test. Mice received chronic treatment (39 days) with methadone (10mg/kg/24h), associated or not with repeated withdrawal episodes, or with heroin (5mg/kg/12h). Our results show that, regardless of the type of treatment received, all mice displayed similar basal thermal nociceptive thresholds during 25 days of treatment. In the hot plate test, both methadone and heroin induced antinociception 30min after drug administration. The analgesic effect was absent when measured 4h after heroin and 12h after methadone. Pain behavioural responses elicited by growing intensities of electric shock, applied on day 28th of treatment, were similar in all groups of mice. Our results indicate that chronic opioid treatment had promnesic effects on passive avoidance behaviour in mice, unrelated to changes in the nociceptive state.