Maximizing efficiency, power density, and reliability stands as paramount objectives in the advancement of power electronic systems. Notably, the dimensions and losses of magnetic components emerge as primary constraints hindering the miniaturization of such systems. Researchers have increasingly focused on the design of loss minimization and size optimization of magnetic devices. In this paper, with the objective of minimizing the loss of magnetic devices, an optimal design method for the winding structure of devices is proposed based on the coupling relationship between the loss prediction model and the design variables. The method examines the decoupling conditions between the design variables and the loss model, deriving optimized design closure equations for the design variables. This approach furnishes a technical foundation for the miniaturized design of miniature apparatuses incorporating magnetic components, offering a straightforward and adaptable design methodology. The finite element method simulation results and experimental measurement data verify the accuracy of the prediction of the proposed method and the validity of the optimal design theory of device loss.