Effective pain management is vital in orthopaedic care, impacting postoperative recovery and patient well-being. This study aimed to discern national and regional pain prescription trends among orthopaedic surgeons through Medicare claims data, using geospatial analysis to ascertain opioid and nonopioid usage patterns across the United States. Physician-level Medicare prescription databases from 2016 to 2020 were filtered to orthopaedic surgeons, and medications were categorized into opioids, muscle relaxants, anticonvulsants, and NSAIDs. Patient demographics were extracted from a Medicare provider demographic data set, while county-level socioeconomic metrics were obtained primarily from the American Community Survey. Geospatial analysis was conducted using Geoda software, using Moran I statistic for cluster analysis of pain medication metrics. Statistical trends were analyzed using linear regression, Mann-Whitney U test, and multivariate logistic regression, focusing on prescribing rates and hotspot/coldspot identification. Analysis encompassed 16,505 orthopaedic surgeons, documenting more than 396 million days of pain medication prescriptions: 57.42% NSAIDs, 28.57% opioids, 9.84% anticonvulsants, and 4.17% muscle relaxants. Annually, opioid prescriptions declined by 4.43% ( P < 0.01), while NSAIDs rose by 3.29% ( P < 0.01). Opioid prescriptions dropped by 210.73 days yearly per surgeon ( P < 0.005), whereas NSAIDs increased by 148.86 days ( P < 0.005). Opioid prescriptions were most prevalent in the West Coast and Northern Midwest regions, and NSAID prescriptions were most prevalent in the Northeast and South regions. Regression pinpointed spine as the highest and hand as the lowest predictor for pain prescriptions. On average, orthopaedic surgeons markedly decreased both the percentage of patients receiving opioids and the duration of prescription. Simultaneously, the fraction of patients receiving NSAIDs dramatically increased, without change in the average duration of prescription. Opioid hotspots were located in the West Coast, Utah, Colorado, Arizona, Idaho, the Northern Midwest, Vermont, New Hampshire, and Maine. Future directions could include similar examinations using non-Medicare databases.