In this paper, we study the self-gravitating accretion disks by considering the toroidal component of magnetic field, [Formula: see text] and wind/outflow in the flow and also investigate the effect of two parameters, [Formula: see text] and [Formula: see text] corresponding to magnetic field on the latitudinal structure of such accretion disks. The cooling of the disk is parameterized simply as, [Formula: see text] (where [Formula: see text] is the internal energy and [Formula: see text] is the cooling timescale and [Formula: see text] is a free constant) and the heating rate is decomposed into two components, magnetic field and viscosity dissipations. We have shown that when the toroidal magnetic field becomes stronger, the heating process (viscous and resistivity) and the radiative cooling rate increase. Ohmic heating is much bigger than viscous heating and cooling, so we must consider the role of the magnetic field in the energy equation. Our numerical solutions show that the thickness of the disk decreases with strong toroidal component of magnetic field. The magnetic field leads to production of the outflow in the low latitude. So, by increasing the toroidal component of the magnetic field, the regions which belong to inflow decrease and the disk is cooled.