PurposePreoperative anxiety is considered a common part of the surgerical experience and can be associated with serious postoperative side effects. This study aims to determine the relationship between preoperative anxiety level and postoperative pain outcomes in patients undergoing total hip replacement (THR) and total knee replacement (TKR). DesignThe study used a cross-sectional and correlational research method. MethodsThe study was conducted with a total of 104 participants, who underwent 17 THR and 87 TKR, at the Orthopedic Clinic of a state hospital in southern Turkey between June 2021 and June 2022. The State-Trait Anxiety Inventory (STAI) was used to determine preoperative anxiety level, and the Visual Analog Scale (VAS) and the Revised American Pain Society Patient Outcome Questionnaire (APS-POQ-R) were used to assess postoperative pain level. FindingsThe mean preoperative STAI-I and STAI-II scores of the participants who underwent THR and TKR were 53.95 ± 10.51 and 44.20 ± 10.55, respectively. There was a moderate positive correlation between STAI-I scores and VAS pain scores at preoperative and postoperative 6th, 12th, 24th, and 36th hours. There was a moderate positive correlation between STAI-I scores and affective subdimension scores, a moderate positive correlation with pain severity and sleep interference and activity interference, and a weak positive correlation between STAI-II scores and pain severity and sleep interference, activity interference and affective. The factors independently affecting the 6th-hour VAS pain score were determined as male gender, THR procedure, and increasing STAI score. ConclusionsWe found that high preoperative state anxiety was associated with early postoperative pain outcomes. State anxiety was associated with pain in the 6th postoperative hour. Considering the multidimensional nature of anxiety, further research is recommended to understand the anxiety domain in surgical patients.