We investigated the associations between genetic polymorphisms of the ENPP2 gene and two types of nociceptive pain: postoperative pain and cancer pain. Here, ENPP2 is linked to cancer.