An accelerating tube is an electrostatic lens system. This paper has deduced the ion trajectory in an accelerating tube by integrating the one in a unit electrostatic lens. The results show that tube focusing effect on ion trajectory is greatly affected by ion incident angle and the electrode dimension but almost independent of the number of the electrodes.