Using suitable similarity transformations, the momentum and thermal boundary layer equations modified by the electrically conducting Casson fluid with suction/injection are reduced to nonlinear ordinary differential equations, whose analytical and numerical solutions are obtained. The effect of the Casson fluid parameter c, pressure gradient parameter \(\beta \) , Hartmann number M, Prandtl number \(\textrm{Pr}\) , wedge temperature parameter N, suction/injection parameter s, and moving wedge parameter \(\lambda \) on the skin friction coefficient, temperature coefficient, as well as velocity and temperature profiles are presented and discussed in detail. An explicit solution is obtained in terms of error and exponential functions when \(\beta = -1\) , \(M = 0\) , \(N = 0\) with a solubility condition \(\textrm{Pr} = \frac{c}{c+1}\) . This analytical solution obtained is modified appropriately and then used to find a solution to all the model parameters. In order to validate the proposed analytical approach, the problem is numerically solved using the Chebyshev Collocation Method (CCM). The thickness of the thermal boundary layer is found to be less in the case of the suction parameter \(s > 0\) than \(s < 0\) during the investigation. Additionally, it is observed that an increase in the Hartmann number results in a decrease in the momentum boundary layer thickness.