The thermodynamic functions of toroidal black holes are investigated in this paper by taking the cosmological constant as a dynamic variable equivalent to the pressure. The equation of state and the Smarr relation of a toroidal black hole are given. Then, the Gibbs function is obtained by calculating the Euclidian action. Further we study other thermodynamic functions of the toroidal black hole, such as, the free energy, internal energy and thermodynamic enthalpy. The heat capacities of the toroidal black hole at constant pressure and constant volume are obtained as well. The results show that toroidal black holes have no van der Waals type phase transition. Toroidal black hole is a stable thermodynamic system because its constant pressure heat capacity is greater than zero and constant volume heat capacity is equal to zero.