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 free energy, internal energy, and thermodynamic enthalpy. The heat capacity of the toroidal black hole at constant pressure and constant volume is obtained. 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 heat capacity at constant pressure is greater than zero and its heat capacity at constant volume is equal to zero.