It has been known for decades that classical conditioning influences pain perception. However, the precise mechanism of pain modified by conditioning remains unclear, partly because of the lack of dedicated behavioral tests. In the present study, we aimed to develop a new method to detect conditioned pain using mice that were injected with formalin as an unconditioned nociceptive stimulus into the hind paw repetitively under a neutral environment. On the test day, the mice exhibited a pain-like behavior without the application of a pain stimulus in the environment. These results demonstrate that a conditioned nociceptive response can be induced by exposure alone to the environmental context in which the pain was previously experienced. The conditioned nociceptive response was sustained for at least 2 weeks. Furthermore, the conditioned nociceptive response was reduced by fentanyl but not by ibuprofen, pregabalin or fluvoxamine. This method may be useful for studying the mechanisms of irritable chronic pain and for the development of novel therapeutic strategies.