The toroidal ion trap is an ideal candidate for miniaturized ion trap because it has much higher ion trapping capacity than a standard quadrupole ion trap of equal trapping dimensions. A novel toroidal ion trap mass analyzer with triangular electrode which contained a filament end cap, a detector endcap, an inner ring and an outer ring was reported. After designing and optimizing the electrodes by theoretical simulations, we found that the asymmetric triangle electrodes could reduce the affection from toroidal shape and improve the ion ejection rate and the mass resolution of the ion trap. The best design of the toroidal ion trap with a mass resolution of 1486 at m/z 609 was obtained.