Acid evokes pain by exciting nociceptors; the acid sensors are proton-gated ion channels that depolarize neurons. The naked mole-rat (Heterocephalus glaber) is exceptional in its acid insensitivity, but acid sensors (acid-sensing ion channels and the transient receptor potential vanilloid-1 ion channel) in naked mole-rat nociceptors are similar to those in other vertebrates. Acid inhibition of voltage-gated sodium currents is more profound in naked mole-rat nociceptors than in mouse nociceptors, however, which effectively prevents acid-induced action potential initiation. We describe a species-specific variant of the nociceptor sodium channel Nav1.7, which is potently blocked by protons and can account for acid insensitivity in this species. Thus, evolutionary pressure has selected for an Nav1.7 gene variant that tips the balance from proton-induced excitation to inhibition of action potential initiation to abolish acid nociception.