The nervous system is highly plastic during the neonatal period, being sensitive to noxious stimuli, which may cause short- and long-term pain responsivity changes. Understanding plasticity in peripheral pain pathways is crucial, particularly when the nervous system is still under development and remodeling process. Substance P (SP) is widely used as a marker for peripheral neurons with unmyelinated and small myelinated fibers. We investigated the number of SP immunoreactive neurons in the dorsal root ganglion (DRG) of male and female Wistar rats, 15 and 180 days after nociceptive stimulation during the neonatal period. Right and left 5th lumbar (L5) DRG were incubated in rabbit polyclonal anti-substance P primary followed by biotinylated donkey anti-rabbit secondary antibodies. Reaction was revealed with a nickel-diaminobenzidine solution. Labeled neurons were counted and compared between ages, genders and groups. Gender differences were present in both ages, with the number of SP-positive DRG neurons being larger in 15-days-old males on both sides. After 180 days, males showed a larger number of SP-positive neurons than females only on the nociceptive stimulated side. An increased number of SP-positive neurons in the DRG on the stimulated side was present in females, immediately after nociceptive stimulation, but not after 180 days. In conclusion, neonatal noxious stimulation caused a permanent increase in SP-positive DRG neurons in males that was not observed in females, suggesting that differences in pain processing/responsivity between genders could be related to morphological alterations of the nervous system. Anat Rec, 301:849-861, 2018. © 2017 Wiley Periodicals, Inc.