By introducing a variable transformation $\xi=\frac{1}{2}(\sin \theta+1)$, the complicated deformation equation of toroidal shell is successfully transferred into a well-known equation, namely Heun's equation of ordinary differential equation, whose exact solution is obtained in terms of Heun's functions. The computation of the problem can be carried out by symbolic software that is able to with the Heun's function, such as Maple. The geometric study of the Gauss curvature shows that the internal portion of the toroidal shell has better bending capacity than the outer portion, which might be useful for the design of metamaterials with toroidal shell cells.