To determine the optimal gas length for the gas-assisted etrusion forming of melt, numerical investigations about the gas length on the extrudate swell of melt were performed by using the finite element method. Meanwhile, the geometric model of gas-assistd extrusion forming was established. The full slip boundary condition was used as the gas-assisted condition. Numerical results show that the gas length should be shortened with increasing of the inlet volumme flow rate of melt. In addition, under the given inlet volume flow rate of melt, the extrudate swell ratio, X velocity and shear stress of melt greatly decreases with increasing the gas length. Accroding to the numerical results and experiences reported past time, under the inlet volume flow rate of 0.5cm3/s, the optimal gas lenth of gas-assisted extrusion forming is about 10mm.