The relationship between the elastic scattering phase shifts of the [Formula: see text] system and the two-particle energy spectrum in elongated boxes is established in center-of-mass frame under periodic boundary conditions. The formulas are also extended to cubic boxes to confirm the results in elongated boxes. Our analytical results will be helpful to the study of [Formula: see text] interaction on lattice by using Lüscher’s finite volume method.