Herding with a litter is known to comfort rodents, whereas isolation and grouping with noncagemates provoke stress. The effects of stress induced by isolation and grouping with noncagemates on pain responses, and their underlying mechanisms remain elusive. We assessed the effect of isolation, a common condition during behavioral tests, and of grouping on defecation and pain behaviors of mice. Fecal pellets were counted 2 hours after exposure to the test chamber. It is significantly more in the isolated mice than in the grouped mice. Hindpaw withdrawal threshold and withdrawal latency were adopted as the indicatives of mechanical and thermal pain sensitivities, respectively. Interestingly, isolated mice showed higher pain thresholds than mice grouping with cagemates, and even those with noncagemates, indicating analgesic effects. Such effects were reduced by intrathecal injection of 0.01 mg/kg of naloxone (opioid receptor antagonist), atosiban (oxytocin and vasopressin receptor antagonist), and ketanserin (5-HT receptor antagonist). Intraperitoneal delivery of 1 mg/kg of naloxone and atosiban, but not ketanserin, also alleviated the isolation-induced analgesic effects. In contrast, these drugs at the same dose had no significant effect on the mice grouping with cagemates. In addition, the effect of morphine on thermal pain was more robust in the mice grouping with cagemates than in the isolated mice. These data demonstrated that brief isolation caused analgesia, mediated by endogenous opioidergic, oxytocinergic, and serotonergic pathways. These results indicate that isolation during pain behavioral tests can affect pain responses and the efficacy of drugs; thus, nociception tests should be conducted in grouping.