Abstract The electric power industry impacts each state’s economy significantly, driven by increasing electricity consumption that necessitates expanding power plants and finding alternative energy sources. Among alternative energy sources, ocean and sea wave energy converters can be distinguished as a separate class. Wave energy converters transform wave energy into mechanical and then electrical energy. The purpose of the study is to analyze and optimize the magnetic system of a transverse flux machine (TFM) linear generator and to determine the influence of the distance between the stator cores on the efficiency of the generator. This research included conducting 3D modeling and analysis to identify this rational distance. The methods for investigating the magnetic system and calculating the magnetic field pattern are divided into analytical and numerical. Thanks to advanced software for solving such tasks, numerical calculation methods based on the finite element method play a decisive role. Meanwhile, analytical calculations of the magnetic circuit are performed using Kirchhoff’s second law for preliminary analysis. The article discusses a two-phase linear TFM generator with a U-shaped core and permanent magnets. The results of numerical modeling show that the distance between the stator cores should have a specific size and requires detailed selection when designing the magnetic system in each particular case. In the design studied, it was calculated that 6 mm between the stator cores increases the machine’s performance. 3D modeling is necessary for accurate analysis, considering the axial magnetic flux to minimize stray fields and their mutual demagnetization. Future research will explore an E-shaped core TFM design.