Patients with cancer experience insomnia or sleep disturbances. This study aimed to explore whether the discrepancy between a patient's desired time in bed and total sleep time (DBST) index is a measurement tool for insomnia severity or sleep onset latency [SOL] in patients with cancer. This retrospective medical records review study gathered clinical information and rating scale scores including Insomnia Severity Scale (ISI), Cancer-related Dysfunctional Beliefs about Sleep scale (C-DBS), Patient Health Questionnaire-9 items (PHQ-9), State subcategory of State and Trait Anxiety Inventory, and Short form of Fear of Progression Questionnaire. Sleep indices of time variables (bedtime, sleep onset time, and wake-up time), duration variables [SOL, time in bed (TIB), time in bed for 24 hours (TIB/d), and duration from wake-up time to bedtime (WTB)], and the DBST index were calculated. The ISI score was predicted by PHQ-9 (β=0.34, P<0.001), C-DBS (β=0.17, P=0.034), and DBST index (β=0.22, P=0.004) with a significant correlation with the DBST index (r=0.19, p=0.020). The DBST index was significantly correlated with long SOL (r=0.23, P=0.005). Long SOL was predicted by early bedtime (β=0.18, P=0.045), short WTB (β=-0.26, P=0.004), and high DBST index (β=0.19, P=0.013). The DBST index was significantly correlated with a predicting variable each for insomnia severity and SOL in patients with cancer.