Peripheral inflammation and nerve injury usually accompany each other. However, whether inflammatory and neuropathic pain share similar mechanisms at all stages is unknown. TRPV1 and P2X3 are two major ion channels in dorsal root ganglia (DRGs) and are involved in chronic pain. Here, their function and expression in DRGs at different phases of the two types of pain were investigated. Both the paw withdrawal threshold (PWT) and paw withdrawal latency were decreased in rats injected with complete Freud's adjuvant (CFA). However, only the PWT was decreased in rats with spared nerve injury (SNI). CFA increased the magnitude of the TRPV1-mediated Ca2+ response but not the P2X3-mediated Ca2+ response 14 days after injection. Consistent with this result, the P2X3 expression level in CFA rats was increased only at 3 days after injection. SNI surgery increased the magnitudes of the TRPV1- and P2X3-mediated Ca2+ responses and upregulated both TRPV1 and P2X3 expression in lumbar DRGs. The distributions of TRPV1 and P2X3 in DRGs after modeling were observed, and TRPV1 was found to be highly expressed mainly in the L4-L5 DRGs in CFA rats and in the L5-L6 DRGs in SNI rats. P2X3 was highly expressed in the L4-L6 DRGs in CFA rats 3 days after injection but was only highly expressed in the L4 DRG 14 days after modeling. On the other hand, SNI promoted the P2X3 expression L4-L5 DRGs 3 days after surgery, but only L6 DRG 14 days after modeling. All the results indicate that P2X3 and TPRV1 are involved in inflammatory and neuropathic pain by different expression levels and distributions in the lumbar DRG in the chronic stage.