In this paper, a three-dimensional (3-D) generic magnetic equivalent circuit (MEC) using mesh-based formulation was developed for the electrical engineering applications. The particularity of this model consists in a discretization with hexahedral mesh elements, which can be chosen by the designer. For example, the 3-D generic MEC has been applied to a U-cored static electromagnetic device. In order to confirm the effectiveness of the proposed technique, the semi-analytic results have been compared with those obtained using 3-D finite-element analysis (FEA). The computation time is divided by 3 with an error less than 1 %.