The article is aimed at simulating an electric field in the interelectrode gap during the electrochemical machining of a thin-walled part cavity for aerospace equipment. The study involved simulating the process of electrochemical cavity machining at a constant voltage in a steady-state mode in the COMSOL Multiphysics environment. The simulation was carried out for the scheme of electrochemical machining with a movable cathode and vertical and horizontal feeding to the workpiece surface undergoing machining while maintaining a constant interelectrode gap. The following simulation conditions were adopted: 12Cr18Ni10Ti stainless steel as the material of the cathode tube; AlMg6 aluminum alloy as the material of the thin-walled part; NaNO3 solution as the electrolyte. When simulating the electric field in the interelectrode gap, the heat exchange process was taken into account. The simulation of the electric field in the electrochemical cavity machining of a thin-walled part yielded a macro that allows the process simulation to be adapted to different input process conditions. As a result of the simulation, the following distribution patterns were obtained: current density in the cathode, potentials, electric field in the interelectrode gap and adjacent area, and process temperature of electrochemical machining. The simulation results show that the electric field lines are directed toward the cathode from the workpiece periphery. This means that anodic dissolution of material occurs in a given region, which characterizes the law concerning the distribution of potentials in an electrochemical cell. The temperature distribution pattern obtained in the simulation revealed that a temperature increase in the machining zone is insignificant. An increase in electrolyte temperature is shown to result in a proportional increase in wall temperature. Thus, the conducted study provides a theoretical insight into the examined process.