Carpal tunnel syndrome (CTS) is a condition involving nerve entrapment that often leads to chronic neuropathic pain. We aimed to evaluate sleep quality and related parameters in diabetic and non-diabetic CTS patients. Method: This study included a total of 366 patients with chronic CTS. These patients' sleep quality was evaluated using the Pittsburgh Sleep Quality Index (PSQI) and depression using the Beck Depression Inventory (BDI). The severity of neuropathic pain was evaluated using the Douleur Neuropathique-4 (DN4) questionnaire and a visual analogue scale (VAS). Results: In the non-diabetic patient group, the total PSQI score was found to affect BDI and VAS, while in the diabetic patient group, the duration of symptoms affected VAS, BDI and fasting glucose levels. Conclusion: For diabetic patients, hyperglycemia depression and chronification of neuropathic pain may lead to deterioration of sleep quality. Therefore, consideration of these parameters in the treatment may break a vicious cycle.