Metformin is classified as a biguanide and is used in the treatment of type 2 diabetes. It is used worldwide and has been investigated in drug repositioning. The present study aims to investigate whether there is sexual dimorphism in the orofacial antinociceptive effect of metformin and the participation of TRP channels. Acute nociceptive behavior was induced by administering cinnamaldehyde or capsaicin to the upper lip. Nociceptive behavior was assessed through orofacial rubbing, and the effects of pre-treatment with metformin (125 or 250mg/Kg) or vehicle (control) were tested on the behavior. Nociceptive behavior was also induced by formalin injected into the temporomandibular joint. The chronic pain model involved infraorbital nerve transection (IONX) was evaluated using Von Frey electronic filaments. Trpv1 gene expression was analyzed in the nerve ganglion. Docking experiments were performed. Metformin, but not the vehicle, produced antinociception (p < 0.0001) in all acute nociceptive behaviors in both sexes, and these effects were attenuated by the TRPV1 antagonist capsazepine and the TRPA1 antagonist HC-030031. In IONX with better (**p < 0.01, ****p < 0.0001 vs. control) results in females. TRPV1 gene expression was observed in the metformin treated group (*p < 0.05 vs. control). Docking experiments revealed that metformin may interact with TRPV1 and TRPA1 channels. Metformin promotes orofacial antinociception in both sexes in acute pain and is more effective in chronic pain in females than in males, through the modulation of TRPV1 and TRPA1 channels. These preclinical findings suggest a potential repositioning of metformin as an analgesic agent in acute and chronic orofacial pain states.