This study aimed to determine an equation to estimate the optimal insertion length for catheter placement via the posterior approach of the sternocleidomastoid muscle in cancer patients. This retrospective study included patients with cancer who underwent infusion port implantation surgery in the Oncology Department of the 900th Hospital of Joint Logistic Support Force of the Chinese People Liberation Army from April 2017 to September 2023. Patient height (H), weight (W), chest length (C), and length of the internal jugular vein catheter (L) were collected from medical records. The patients were randomized 7:3 to the training and validation sets. Linear regression analyses were used in the training set to determine formulas to predict catheter length. The formula predictive value was analyzed using the Bland-Altman method in the validation set. This study included 336 patients, with a mean age of 58.27 ± 11.70 years, randomized in the training (n = 235) and validation (n = 101) sets. Linear regression analysis revealed that the equations for catheter length relative to H, body mass index (BMI), and C are L = 0.144 × H - 8.258 (R² = 0.608, P < .001), L = −0.103 × B + 17.384 (R² = 0.055, P < .001), and L = 0.477 × C + 1.769 (R² = 0.342, P < .001), respectively. The multivariable linear regression analysis showed that the equation between the length of the catheter and H and C was L = 0.131 × H + 0.086 × C-8.515 (R² = 0.614, P < .001). The Bland-Altman analysis in the validation set showed that the predicted values of internal jugular vein catheter length and the actual values showed good agreement. The optimal L might be determined by simple formulas based on patients H and C.