To explore the risk factors for venous thromboembolism (VTE) in inpatients with colorectal cancer. The demographic factors, comorbidities, and hematological indices of patients with colorectal cancer treated in our hospital from 2016 to 2021 were collected and recorded. Venous thromboembolism events, including deep venous thrombosis and/or pulmonary embolism, were recorded and the patients were divided into the VTE group and the non-VTE group. We compared clinical data between the two groups and explored risk factors for VTE. Comparing the clinical data of 293 cases of non-VTE group and 235 cases of VTE group, we found significant differences in age, smoking, temperature, amount of blood loss, differentiation degree, peripherally inserted central catheter (PICC), radiotherapy, anemia, infection, white blood cell count, prothrombin time (PT), PT%, prothrombin ratio, international normalized ratio, thrombin time, CA199 and CEA between the two groups ( P < 0.05). Logistic regression analysis showed that age ( P = 0.0444), temperature ( P = 0.0317), amount of blood loss ( P = 0.0067), PICC ( P < 0.0001), chemotherapy ( P = 0.0459), anemia ( P = 0.0007), international normalized ratio ( P = 0.003) and CA199 ( p = 0.0234) were independent risk factors for VTE. Receiver operating characteristic curve analysis showed that the amount of blood loss predicted thrombosis better (AUC = 0.778, P < 0.001), when the cutoff value was 20 mL, the sensitivity was 76.17%, and the specificity was 79.18%, respectively. And PICC predicted thrombosis better (AUC = 0.808, P < 0.001), the sensitivity was 70.21%, and the specificity was 91.47%, respectively. Clinical parameters are associated with VTE in inpatients with colorectal cancer, which will help to guide clinicians to take effective measures to improve the patients' prognosis.