Toroidal rotation effects are self-consistently taken into account not only in the linear magnetohydrodynamic (MHD) stability analysis but also in the equilibrium calculation. The MHD equilibrium computation is affected by centrifugal force due to the toroidal rotation. To study the toroidal rotation effects on resistive wall modes (RWMs), a new code has been developed. The RWMaC modules, which solve the electromagnetic dynamics in vacuum and the resistive wall, have been implemented in the MINERVA code, which solves the Frieman–Rotenberg equation that describes the linear ideal MHD dynamics in a rotating plasma. It is shown that modification of MHD equilibrium by the centrifugal force significantly reduces growth rates of RWMs with fast rotation in the order of M2 = 0.1 where M is the Mach number. Moreover, it can open a stable window which does not exist under the assumption that the rotation affects only the linear dynamics. The rotation modifies the equilibrium pressure gradient and current density profiles, which results in the change of potential energy including rotational effects.