The levels of RANKL, OPG, and the RANKL/OPG ratio were significantly higher in AAP and SAP groups compared with healthy controls (p < 0.05), and no differences were found between both apical periodontitis groups. This evidence concerns the gene TNFSF11 and periapical periodontitis.