A physical model, mathematical model and geometric model of multi-physical field (electric field, flow field, temperature field, magnetic field) were established to explore the influence of magnetic field on the temperature domain in the gap during ECM. The change law of temperature domain of ECM gap under different magnetic field design methods was studied by using COMSOL MULTIPHYSICS. The scheme is as follows: the magnetic field line is perpendicular to the electric field and the flow field is parallel; the magnetic field line is parallel to the electric field and the flow field is vertical; the electric field of the magnetic field is vertical and the flow field is vertical. The change law of the influence of the magnetic field on the electrolyte temperature is studied by simulation. The changes of current density under three magnetic field design methods and different electrolyte flow were studied. The simulation results show that when the magnetic field is perpendicular to the electric field and the flow field, the temperature change is relatively gentle, and the flow field changes uniformly under the action of the magnetic field volume force, so that the change of current density is relatively stable; The current density of anodic dissolution increases with the increase of voltage, resulting in the increase of electrolyte temperature and heat, further reducing the gap and machining gap, and the temperature in the gap will be greatly increased. Under the action of magnetic field, the electrolyte flow rate increases and the electrolyte temperature decreases greatly.