The magnetic form factor of 24Mg isotope under inelastic electron scattering was subjected to computational scrutiny via the utilization of the Oxbash code. The endeavor involved elucidating energy levels intrinsic to this nucleus through the application of the shell model, wherein the model space encompassed zbm, psd, spsdpf, and sd configurations. In the context of the sd model, the investigation harnessed two pioneering USD-type Hamiltonians, denoted as USDC and USDI, in conjunction with tailored amendments to these interaction potentials, referred to as USDCm and USDIm. This study culminated in comprehensively juxtaposing all computational outputs with empirical data sources, including information extracted from the National Nuclear Data Center (NNDC) repository. Significantly, this systematic examination underscored a notable congruence between the derived computational outcomes and the empirical observations. This alignment became conspicuously pronounced subsequent to judicious adjustments made to the g-factors, specifying values of = 1.060 and = -0.060. The profound unity between the findings of this study and experimental data manifests as compelling evidence, substantiating the efficacy and precision of the employed interaction models. It implies a reliable capacity of these models in the precise computation of magnetic form factors M1, M2, and M3